poldek -r broken again?

Jacek Konieczny jajcus at jajcus.net
Sun May 2 20:16:22 CEST 2010


On Sun, May 02, 2010 at 08:11:39PM +0200, Przemyslaw Iskra wrote:
> %if "%{pld_release}" != "ac"
> %pretrans -p <lua>
> -- this needs to be a dir
> if posix.stat("/usr/include/X11", "type") == "link" then
> 	-- feel free to write in pure lua, but success on first install is not important.
> 	os.execute("umask 022; mv -f /usr/include/X11{,.rpmsave}; mkdir -m755 -p /usr/include/X11 && mv -f /usr/include/X11.rpmsave/*
> /usr/include/X11")
> end
> %endif
> 
> Makes rpm lose track of current root directory. That is, it is unnable
> to exit the chroot correctly before continuing instalation.

Oh, my investigation didn't go that far.  Anyway, starting poldek/rpm
with $PWD == '/' ('cd /' before running poldek) seems to be a working 
workaround.

Greets,
        Jacek


More information about the pld-devel-en mailing list