Bug 486164 - rpmbuild should remove duplicate requires
Summary: rpmbuild should remove duplicate requires
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-18 17:46 UTC by Stepan Kasal
Modified: 2009-03-18 13:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-18 13:41:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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