Bug 1498956

Summary: mariadb-common has an Obsoletes with %{?_isa} - not functional
Product: [Fedora] Fedora Reporter: Mattias Ellert <mattias.ellert>
Component: mariadbAssignee: Michal Schorm <mschorm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dciabrin, hhorak, jstanek, mbayer, mkocka, mmuzila, mschorm, praiskup
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mariadb-10.2.9-3.fc27 mariadb-10.2.12-5.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-04 21:49:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mattias Ellert 2017-10-05 15:49:58 UTC
Description of problem:

https://koji.fedoraproject.org/koji/rpminfo?rpmID=11585409

mariadb-common-3:10.2.9-2.fc28.x86_64.rpm has the following obsoletes:

mariadb-common(x86-64) < 3:10.2.9-2.fc28
mariadb-galera-common < 5.5.36-10
mariadb-libs(x86-64) <= 3:10.2.9-2.fc28

Obsoletes only applies to package names, not provides. The obsoletes with the %{_isa} does not match any package names, only provides from other packages - and are therefore ignored.

Updating from previous versions relies on the obsoletes on mariadb-libs to update cleanly. As it is now this obsoletes is ignored and the update fails.

mariadb-common explicitly obsoleting earlier versions of itself does not make sense, that is implicit and does not need to be stated. The proper obsoletes should be:

mariadb-galera-common < 5.5.36-10
mariadb-libs < 3:10.2.9-2.fc28

Version-Release number of selected component (if applicable):

mariadb-common-3:10.2.9-2.fc28.x86_64.rpm

How reproducible:

Always

Steps to Reproduce:
1. dnf update in rawhide with mariadb-devel installed

Actual results:

File conflict due to mariadb-libs

Expected results:

Old mariadb-libs removed due to obsoletes in new mariadeb-common

Comment 1 Michal Schorm 2017-10-05 16:10:38 UTC
Hello, 

I understand your request only partially. I think, the following patch should be applied, however I think the "mariadb-galera-common" has right obsolete (in SPECfile)


diff --git a/mariadb.spec b/mariadb.spec
index 19d1845..53d7666 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -354,8 +354,7 @@ Provides: mariadb-galera-common = %{sameevr}
 Obsoletes: mariadb-galera-common < %{obsoleted_mariadb_galera_common_evr}
 
 %if %{without clibrary}
-Obsoletes: %{name}-libs%{?_isa} <= %{sameevr}
-Obsoletes: %{name}-common%{?_isa} < %{sameevr}
+Obsoletes: %{name}-libs <= %{sameevr}
 %endif

Comment 2 Michal Schorm 2017-10-05 16:11:32 UTC
Btw workarounf for you, till it's fixed:
  use "--allowerasing" dnf option

Comment 3 Michal Schorm 2017-10-05 17:20:36 UTC
Tested, pushed, building

Comment 4 Fedora Update System 2017-10-06 08:03:13 UTC
mariadb-10.2.9-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-dff1218bfa

Comment 5 Fedora Update System 2017-10-06 22:26:13 UTC
mariadb-10.2.9-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-dff1218bfa

Comment 6 Fedora Update System 2017-10-10 19:29:46 UTC
mariadb-10.2.9-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2017-11-23 21:27:27 UTC
mariadb-10.2.10-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b83201239

Comment 8 Fedora Update System 2017-11-25 00:37:12 UTC
mariadb-10.2.10-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b83201239

Comment 9 Fedora Update System 2018-01-23 21:42:54 UTC
mariadb-10.2.10-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2018-01-27 11:10:51 UTC
mariadb-10.2.12-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-66833616aa

Comment 11 Fedora Update System 2018-01-28 23:05:05 UTC
mariadb-10.2.12-5.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-66833616aa

Comment 12 Fedora Update System 2018-01-29 09:27:21 UTC
mariadb-10.2.12-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-66833616aa

Comment 13 Fedora Update System 2018-01-29 19:08:29 UTC
mariadb-10.2.12-5.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-66833616aa

Comment 14 Fedora Update System 2018-02-04 21:49:59 UTC
mariadb-10.2.12-5.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.