Bug 486164

Summary: rpmbuild should remove duplicate requires
Product: [Fedora] Fedora Reporter: Stepan Kasal <kasal>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: ffesti, jnovy, n3npq, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-18 13:41:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stepan Kasal 2009-02-18 17:46:20 UTC
rpm -qR postfix or rpm -qR sendmail starts with /bin/sh repeated five times and continues with several other binaries repeated two or three times.

I know that rpmbuild removes duplicates generated by external scripts.
Shouldn't it take care about duplicates it generates itself as well?

Comment 1 Jeff Johnson 2009-02-19 00:06:50 UTC
Having multiple /bin/sh listings does not mean duplicates. E.g. all
the /bin/sh dependencies have different context markers like Requires(pre): etc,
that is not duplicate, the context markers are different.

All *identical* duplicate dependencies have been filtered for nearly a decade.

Comment 2 Panu Matilainen 2009-03-18 13:41:50 UTC
Like Jeff said, identical dependencies are filtered out, it's just the default --requires format which is misleading here:

[pmatilai@localhost ~]$ rpm -q --qf "[%{requireflags:deptype}: %{requirename}\n]" sendmail|grep /bin/sh
pre: /bin/sh
post: /bin/sh
preun: /bin/sh
postun: /bin/sh
auto: /bin/sh