[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RPM



Folks,

I'm still trying to figure out how RPM (4.1) works and found two issues:


First, here an anamoly and I'm wondering whether it's my lack of
understanding or rpm is broken!

I'm installing 4 rpm's,  upgrading one rpm, then erasing
the 4 rpms previously installed. It appears that some
triggers are ignoring the version information and being falsely triggered:


    SCRIPT INSTALL test4b-1
    SCRIPT test4b pre install ARG1=1 ARG2=
    SCRIPT test4b post install ARG1=1 ARG2=
    
    SCRIPT INSTALL test4c-1
    SCRIPT test4c pre install ARG1=1 ARG2=
    SCRIPT test4c post install ARG1=1 ARG2=
    
    SCRIPT INSTALL test4d-1
    SCRIPT test4d pre install ARG1=1 ARG2=
    SCRIPT test4d post install ARG1=1 ARG2=
    
    SCRIPT INSTALL test4e-1
    SCRIPT test4e pre install ARG1=1 ARG2=
    SCRIPT test4e post install ARG1=1 ARG2=
    
    SCRIPT INSTALL test4a-1
    SCRIPT test4a-1 pre install ARG1=1 ARG2=
    SCRIPT test4a-1 post install ARG1=1 ARG2=
    SCRIPT test4c triggerin: trigger=test4a 1.0-1 ARG1=1 ARG2=1
    SCRIPT test4d triggerin: trigger=test4a 1.0-1 ARG1=1 ARG2=1

Wrong! We're installing test4a-1.0-1 but the install trigger for test4a-2.0-1
is firing!

    SCRIPT test4e triggerin: trigger=test4a 2.0-1 ARG1=1 ARG2=1
    SCRIPT test4a-1 triggerin: trigger=test4b ARG1=1 ARG2=1
    
    SCRIPT UPGRADE test4a-2
    SCRIPT test4a-2 pre install ARG1=2 ARG2=
    SCRIPT test4a-2 post install ARG1=2 ARG2=
    SCRIPT test4c triggerin: trigger=test4a 1.0-1 ARG1=2 ARG2=2

Wrong! We're installing (upgrading) test4a-2.0-1 but the install trigger for
test4a-1.0-1 is firing!

    SCRIPT test4d triggerin: trigger=test4a 1.0-1 ARG1=2 ARG2=2
    SCRIPT test4e triggerin: trigger=test4a 2.0-1 ARG1=2 ARG2=2
    SCRIPT test4a-2 triggerin: trigger=test4b ARG1=1 ARG2=1
    SCRIPT test4c triggerun: trigger=test4a 1.0-1 ARG1=2 ARG2=1
    SCRIPT test4d triggerun: trigger=test4a 1.0-1 ARG1=2 ARG2=1

Wrong! We're installing (upgrading) test4a-2.0-1 but the uninstall trigger
for test4a-2.0-1 is firing!

    SCRIPT test4e triggerun: trigger=test4a 2.0-1 ARG1=2 ARG2=1
    SCRIPT test4a-1 triggerun: trigger=test4b ARG1=0 ARG2=1
    SCRIPT test4a-1 pre uninstall ARG1=1 ARG2=
    SCRIPT test4a-1 post uninstall ARG1=1 ARG2=
    SCRIPT test4c triggerpostun: trigger=test4a 1.0-1 ARG1=2 ARG2=1
    SCRIPT test4d triggerpostun: trigger=test4a 1.0-1 ARG1=2 ARG2=1

Wrong! We're installing (upgrading) test4a-2.0-1 but the postuninstall trigger
for test4a-2.0-1 is firing!

    SCRIPT test4e triggerpostun: trigger=test4a 2.0-1 ARG1=2 ARG2=1
    
    SCRIPT ERASE test4a-2

Wrong! We're erasing test4a-2.0-1 but the uninstall trigger
for test4a-1.0-1 is firing!

    SCRIPT test4c triggerun: trigger=test4a 1.0-1 ARG1=1 ARG2=0

ditto

    SCRIPT test4d triggerun: trigger=test4a 1.0-1 ARG1=1 ARG2=0
    SCRIPT test4e triggerun: trigger=test4a 2.0-1 ARG1=1 ARG2=0
    SCRIPT test4a-2 triggerun: trigger=test4b ARG1=0 ARG2=1
    SCRIPT test4a-2 pre uninstall ARG1=0 ARG2=
    SCRIPT test4a-2 post uninstall ARG1=0 ARG2=

Wrong! We're erasing test4a-2.0-1 but the postuninstall trigger
for test4a-1.0-1 is firing!

    SCRIPT test4c triggerpostun: trigger=test4a 1.0-1 ARG1=1 ARG2=0

Wrong! We're erasing test4a-2.0-1 but the postuninstall trigger
for test4a-1.0-1 is firing!

    SCRIPT test4d triggerpostun: trigger=test4a 1.0-1 ARG1=1 ARG2=0
    SCRIPT test4e triggerpostun: trigger=test4a 2.0-1 ARG1=1 ARG2=0
    
    SCRIPT ERASE test4b-1
    SCRIPT test4b pre uninstall ARG1=0 ARG2=
    SCRIPT test4b post uninstall ARG1=0 ARG2=
    
    SCRIPT ERASE test4c-1
    SCRIPT test4c pre uninstall ARG1=0 ARG2=
    SCRIPT test4c post uninstall ARG1=0 ARG2=
    
    SCRIPT ERASE test4d-1
    SCRIPT test4d pre uninstall ARG1=0 ARG2=
    SCRIPT test4d post uninstall ARG1=0 ARG2=
    
    SCRIPT ERASE test4e-1
    SCRIPT test4e pre uninstall ARG1=0 ARG2=
    SCRIPT test4e post uninstall ARG1=0 ARG2=


Second, the following command core dumps if the rpm contains no files
to install (as in the attached the test cases). Try it!

	rpm -q --qf "FILENAMES=%{FILENAMES}\n\n" -p test4a-1.0-1.i386.rpm


Attached are the test cases.
	
Regards,

Howard G Page

Attachment: rpmtest.tarz
Description: Binary data


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []