rpm4/rpm5 incompat: rpm5 firing on provides

Jan Rękorajski baggins at pld-linux.org
Tue Oct 30 08:59:38 CET 2012


On Mon, 29 Oct 2012, Elan Ruusamäe wrote:

> # rpm -q rpm
> rpm-5.4.10-18.x86_64
> 
> # rpm -q rc-scripts initscripts
> rc-scripts-0.4.3.3-3.x86_64
> rc-scripts-0.4.5.4-2.x86_64
> package initscripts is not installed
> 
> # rpm -q --whatprovides initscripts
> rc-scripts-0.4.3.3-3.x86_64
> rc-scripts-0.4.5.4-2.x86_64
> 
> # rpm -e rc-scripts-0.4.3.3-3.x86_64
> mv: cannot stat ‘/etc/sysconfig/network-scripts/ifcfg-*’: No such file 
> or directory
> error: %trigger(rc-scripts-0.4.3.3-3.x86_64) scriptlet failed, exit status 1
> mv: cannot stat ‘/etc/sysconfig/network-scripts/ifcfg-*’: No such file 
> or directory
> error: %trigger(rc-scripts-0.4.3.3-3.x86_64) scriptlet failed, exit status 1
> 
> # rpm -q --triggers rc-scripts-0.4.3.3-3.x86_64
> triggerpostun scriptlet (using /bin/sh) -- initscripts
> mv -f /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/interfaces

Can you provide output of 'rpm -vvv' on rpm4 and rpm5?

Jeff, will changing:
	rpmdsNew(sourceH, RPMTAG_PROVIDENAME, 0);
 to:
	rpmdsNew(sourceH, RPMTAG_NVRA, 0);

in handleOneTrigger in lib/psm.c:~1338, give the old behaviour?

-- 
Jan Rękorajski                                 | PLD/Linux
SysAdm                                         | http://www.pld-linux.org/
baggins<at>mimuw.edu.pl
baggins<at>pld-linux.org


More information about the pld-devel-en mailing list