Bug 486164 - rpmbuild should remove duplicate requires
rpmbuild should remove duplicate requires
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-18 12:46 EST by Stepan Kasal
Modified: 2009-03-18 09:41 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-03-18 09:41:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Stepan Kasal 2009-02-18 12:46:20 EST
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-18 19:06:50 EST
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 09:41:50 EDT
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

Note You need to log in before you can comment on or make changes to this bug.