rpm-5.4.10-22.i686 loops forever when installing ntpd-4.2.6p5-5.i686.rpm

Jeffrey Johnson n3npq at me.com
Sat Dec 1 12:23:27 CET 2012


On Dec 1, 2012, at 4:47 AM, Jan Rękorajski <baggins at pld-linux.org> wrote:

> On Fri, 30 Nov 2012, Jeffrey Johnson wrote:
> 
>> Try each of the 2 order permutations.
>> 
>> FWIW the behavior of triggers from already installed packages when both
>> Packages are in the same transaction
>> Has _NEVER_ been documented anywhere I am aware of precisely.
> 
> As I understand the docs, it should work exacty the same regardles if
> it's in one transaction or not.
> 

Your understanding isn't what is implemented.

The Triggername index in an rpmdb is used to find
what triggers fire in other packages.

There is no attempt to find triggers in the "added set",
i.e. in other packages in the same transaction. Should
a trigger be run from a package that isn't yet installed?

> 
> 
> Recall that the $1 passed to regular scripts contains the number of
> instances of the package which will be installed when the operation has
> completed. $1 for triggers is exactly the same -- it is the number of
> instances of the source (or triggered) package which will remain when
> the trigger has completed. Similarly, $2 is the number of instances of
> the target package which will remain.
> 
>> I'll actually try the test.spec if my guess above isn't correct ;-)
> 
> Both permutations are wrong, $1 and $2 should be 1 in both cases.
> 
> [root at sith RPMS]# rpm -Uvh test-0.1-0.1.noarch.rpm 
> Preparing...                ########################################### [100%]
>   1:test                   ########################################### [100%]
> [root at sith RPMS]# rpm -Uvh test-target-0.1-0.1.noarch.rpm 
> Preparing...                ########################################### [100%]
>   1:test-target            ########################################### [100%]
> triggerin:test-0.1-0.1
> #: 2
> 1: 1
> 2: 0
> 
> [root at sith RPMS]# rpm -Uvh test-target-0.1-0.1.noarch.rpm 
> Preparing...                ########################################### [100%]
>   1:test-target            ########################################### [100%]
> [root at sith RPMS]# rpm -Uvh test-0.1-0.1.noarch.rpm 
> Preparing...                ########################################### [100%]
>   1:test                   ########################################### [100%]
> triggerin:test-0.1-0.1
> #: 2
> 1: 0
> 2: 1
> 

OK I will look this weekend.

73 de Jeff
> 
> -- 
> Jan Rękorajski                                 | PLD/Linux
> SysAdm                                         | http://www.pld-linux.org/
> baggins<at>mimuw.edu.pl
> baggins<at>pld-linux.org
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en



More information about the pld-devel-en mailing list