Bug 118780 - Requires(pre,postun) is ignored for installed packages
Requires(pre,postun) is ignored for installed packages
Status: CLOSED DUPLICATE of bug 155700
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-03-20 01:17 EST by Michael Schwendt
Modified: 2007-11-30 17:10 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-22 20:10:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Schwendt 2004-03-20 01:17:13 EST
Installed is a package which "Requires(pre,postun): foo". 

$ rpm -qR test | grep foo


$ rpm -q --whatrequires foo
no package requires foo

And I can "rpm -e foo" and the %postun scriptlet in the installed
package fails. Like in Enrico's bug 118773 report, splitting the
requirements to

Requires(pre): foo
Requires(post): foo

fixes this, and "foo" shows up in upon "--whatrequires foo" query, too.

Version-Release number of selected component (if applicable):
rpm-4.3-0.21 (and rpm-4.2.1-0.30)

How reproducible:

Additional info:
I'm prepared to hear this is a feature, not a bug. ;)
Comment 1 Jeff Johnson 2004-03-20 10:39:00 EST
Ok, it's a "feature" not a bug.

You have known and adequate workaround. I suggest you use that.
Comment 2 Leonard den Ottolander 2004-04-13 10:08:15 EDT
*** Bug 118773 has been marked as a duplicate of this bug. ***
Comment 3 Mike A. Harris 2005-04-22 09:13:10 EDT
This is not a feature.  It is a bug.  RPM documentation clearly states
that the syntax:  Requires(foo,bar) is valid.  Fix rpm.
Comment 4 Warren Togami 2005-04-22 18:19:06 EDT
Comment 5 Leonard den Ottolander 2005-04-22 18:30:03 EDT
Comment 6 Paul Nasrat 2005-04-22 20:09:14 EDT
See bug #155700 which I'll close as a dupe of this for details of issue.  I've
tested a fix - basically a test that is incorrect in (pre,postun) cases and I'll
get a testing package out next week.  
Comment 7 Paul Nasrat 2005-04-22 20:10:53 EDT
Sorry easier closing this way around - as other bug is on blockers.  

*** This bug has been marked as a duplicate of 155700 ***

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