Bug 118773

Summary: Requires(pre,postun) screws up package ordering
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: leonard-rh-bugzilla, rdieter, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: triage|leonardjo|closed|duplicate
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-25 18:37:53 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:
Attachments:
Description Flags
spec-file none

Description Enrico Scholz 2004-03-20 00:08:49 UTC
Description of problem:

# rpm -Uvh test-*0-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:test-B                 ########################################### [ 33%]
   2:test                   ########################################### [ 67%]
   3:test-A                 ########################################### [100%]


Expected would be that 'test-A' gets installed before 'test'. The
trigger seems to be the 'postun' Requires; without it, things are
fine.


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

rpm-4.2-0.69 - rpm-4.3-0.21


How reproducible:

100%



Additional information:

-vvvv output is

: ========== +++ test-0-1 noarch/linux 0x0
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D:  Requires: test-A                                        YES (added provide)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: ========== +++ test-A-0-1 noarch/linux 0x0
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (cached)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (cached)
D: ========== +++ test-B-0-1 noarch/linux 0x0
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (cached)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (cached)
D: closed   db index       /var/lib/rpm/Depends
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D:     0    0    0    2    0 +test-B-0-1
D: ========== successors only (1293 bytes)
D:     1    0    0    0    0 +test-0-1
D:     2    0    0    1    0 +test-A-0-1

Comment 1 Enrico Scholz 2004-03-20 00:09:32 UTC
Created attachment 98702 [details]
spec-file

Comment 2 Enrico Scholz 2004-03-20 00:17:44 UTC
When writing

| Requires(pre):    test-A
| Requires(postun): test-A

instead of

| Requires(pre,postun):  test-A

things are fine too.

Comment 3 Robert Scheck 2004-03-20 17:50:18 UTC
Maybe your problem it's related with: #118780

Comment 4 Leonard den Ottolander 2004-04-13 14:08:11 UTC
Yes, duplicate of bug 118780. Closing as such.


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

Comment 5 Leonard den Ottolander 2004-04-13 14:32:33 UTC
Not the same issue according to mschwendt. Reopening.


Comment 6 Mike A. Harris 2005-04-25 18:37:53 UTC

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

Comment 7 Fedora Update System 2005-09-16 21:24:50 UTC
From User-Agent: XML-RPC

xorg-x11-6.8.2-1.FC3.45 has been pushed for FC3, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.