Bug 157045 - Requires(post,postun) not honoured
Requires(post,postun) not honoured
Status: CLOSED DUPLICATE of bug 155700
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
:
Depends On:
Blocks: 156901
  Show dependency treegraph
 
Reported: 2005-05-06 08:50 EDT by Gary Benson
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-06 11:16:15 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 Gary Benson 2005-05-06 08:50:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-1.3.1 Firefox/1.0.3

Description of problem:
I have a bunch of packages with %post and %postun scriptlets like this:

  %post
  rebuild-gcj-db %{_libdir}

  %postun
  rebuild-gcj-db %{_libdir}

rebuild-gcj-db comes from java-1.4.2-gcj-compat, and has existed since 1.4.2.0-40jpp_16rh, so I have the following:

  Requires(post,postun): java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh

If I install a bunch of packages including java-1.4.2-gcj-compat and packages I get these errors:

  slippy:[fc4t3]# ls
  ant-1.6.2-3jpp_6fc.i386.rpm
  ant-trax-1.6.2-3jpp_6fc.i386.rpm
  bcel-5.1-1jpp_4fc.noarch.rpm
  classpathx-jaf-1.0-2jpp_3fc.noarch.rpm
  classpathx-mail-1.0-3jpp_1fc.noarch.rpm
  eclipse-ecj-3.1.0_fc-0.M6.14.i386.rpm
  gjdoc-0.7.4-5.i386.rpm
  gnu-crypto-2.0.1-1jpp_3fc.noarch.rpm
  gnu-crypto-jce-jdk1.4-2.0.1-1jpp_3fc.noarch.rpm
  gnu-crypto-sasl-jdk1.4-2.0.1-1jpp_3fc.noarch.rpm
  jakarta-commons-logging-1.0.4-2jpp_3fc.i386.rpm
  java-1.4.2-gcj-compat-1.4.2.0-40jpp_18rh.i386.rpm
  java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_18rh.i386.rpm
  jessie-1.0.0-6.noarch.rpm
  junit-3.8.1-3jpp_4fc.noarch.rpm
  log4j-1.2.8-7jpp_3fc.noarch.rpm
  regexp-1.3-1jpp_5fc.i386.rpm
  xalan-j2-2.6.0-2jpp_1fc.noarch.rpm
  xml-commons-1.0-0.b2.6jpp_12fc.i386.rpm
  xml-commons-apis-1.0-0.b2.6jpp_12fc.i386.rpm
  xml-commons-resolver-1.1-1jpp_4fc.noarch.rpm
  slippy:[fc4t3]# rpm -ivh *
  Preparing...                ########################################### [100%]
     1:gnu-crypto-sasl-jdk1.4 ########################################### [  5%]
     2:gnu-crypto-jce-jdk1.4  ########################################### [ 10%]
     3:gnu-crypto             ########################################### [ 14%]
     4:xml-commons            ########################################### [ 19%]
     5:xml-commons-apis       ########################################### [ 24%]
  /var/tmp/rpm-tmp.34749: line 1: rebuild-gcj-db: command not found
  error: %post(xml-commons-apis-1.0-0.b2.6jpp_12fc.i386) scriptlet failed, exit status 127
     6:regexp                 ########################################### [ 29%]
  /var/tmp/rpm-tmp.34749: line 1: rebuild-gcj-db: command not found
  error: %post(regexp-1.3-1jpp_5fc.i386) scriptlet failed, exit status 127
     7:gjdoc                  ########################################### [ 33%]
     8:eclipse-ecj            ########################################### [ 38%]
  /var/tmp/rpm-tmp.21179: line 1: /usr/bin/rebuild-gcj-db: No such file or directory
  error: %post(eclipse-ecj-3.1.0_fc-0.M6.14.i386) scriptlet failed, exit status 127
     9:classpathx-jaf         ########################################### [ 43%]
    10:classpathx-mail        ########################################### [ 48%]
    11:bcel                   ########################################### [ 52%]
    12:junit                  ########################################### [ 57%]
    13:jakarta-commons-logging########################################### [ 62%]
  /var/tmp/rpm-tmp.12709: line 1: rebuild-gcj-db: command not found
  error: %post(jakarta-commons-logging-1.0.4-2jpp_3fc.i386) scriptlet failed, exit status 127
    14:java-1.4.2-gcj-compat  ########################################### [ 67%]
    15:java-1.4.2-gcj-compat-d########################################### [ 71%]
    16:ant                    ########################################### [ 76%]
    17:xalan-j2               ########################################### [ 81%]
    18:ant-trax               ########################################### [ 86%]
    19:jessie                 ########################################### [ 90%]
    20:log4j                  ########################################### [ 95%]
    21:xml-commons-resolver   ########################################### [100%]
  slippy:[fc4t3]# 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
Try and install that bunch of rpms (all from /mnt/redhat/rel-eng/FC4-re0505.0)


Actual Results:  I got the error messages shown above.

Expected Results:  java-1.4.2-gcj-compat should have been installed before any of the packages that required it to be.

Additional info:
Comment 1 Paul Nasrat 2005-05-06 09:01:03 EDT
What rpm version?

Does rpm 4.4.1-18.1 from rawhide work as anticipated.
Comment 2 Gary Benson 2005-05-06 09:04:41 EDT
Apologies, rpm-4.3.2-21.

Will it break my (FC3) box if I install FC4t3's rpm on it?
Comment 3 Paul Nasrat 2005-05-06 10:54:50 EDT
Yeah, do you not have a rawhide box?

See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155700

I'll consider this a request to back port for fc3.
Comment 4 Gary Benson 2005-05-06 11:02:51 EDT
If it works in rawhide then that's cool.  Don't backport it on my behalf ;)
Comment 5 Paul Nasrat 2005-05-06 11:16:15 EDT

*** 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.