Bug 1593185

Summary: Recommends doesn't affect installation tsort enough
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: igor.raits, mjw, packaging-team-maint, pmatilai, pmoravco, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.14.2-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-07 16:14:48 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 Pavel Raiskup 2018-06-20 08:58:12 UTC
Steps to reproduce:

   # dnf copr enable praiskup/test-copr-selinux
   # dnf install copr-frontend

Results:

The copr-frontend-1.133.git.5.c97f58bd.wtree.zkwc5c-1.fc28.noarch package
is installed before
copr-selinux-1.48.git.183.173b2667.wtree.zkwc5c-1.fc28.noarch
even though `copr-frontend` recommends `copr-selinux` and even though
there is no dependency cycle.

Comment 1 Pavel Raiskup 2018-06-20 10:38:54 UTC
Btw., `Requires:` helps.  I rebuilt the `copr-frontend` with that Requires:
into `praiskup/test-copr-selinux-2`, so with:

   # dnf copr enable praiskup/test-copr-selinux
   # dnf copr enable praiskup/test-copr-selinux-2
   # dnf install copr-frontend

The `copr-selinux` is installed before `copr-frontend` package.

Comment 2 Igor Raits 2018-08-10 15:02:25 UTC
Can you describe what packages you have there and which deps?

Comment 3 Panu Matilainen 2018-08-16 13:29:46 UTC
Fixed upstream now: https://github.com/rpm-software-management/rpm/commit/b7ab1d1d6f2f1adc6ddfae51773d70b9ba08b883 and should make it to F28 via updates sooner or later.

Thanks for the report.

Comment 4 Pavel Raiskup 2018-08-16 14:13:07 UTC
(In reply to Igor Gnatenko from comment #2)
> Can you describe what packages you have there and which deps?

Sorry, clime removed those projects.  I haven't had time to re-create
them.

(In reply to Panu Matilainen from comment #3)
> Thanks for the report.

Thanks for the fix.

Comment 5 Panu Matilainen 2018-08-21 12:29:56 UTC
FWIW, fixed in rawhide now.

Comment 6 Fedora Update System 2018-08-22 13:10:30 UTC
rpm-4.14.2-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-16c78b3d92

Comment 7 Fedora Update System 2018-08-23 11:02:25 UTC
rpm-4.14.2-1.fc28 has been pushed to the Fedora 28 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-16c78b3d92

Comment 8 Fedora Update System 2018-09-07 16:14:48 UTC
rpm-4.14.2-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.