[pacman-dev] [PATCH] No error in makepkg when removing deps fails

Allan McRae mcrae_allan at hotmail.com
Thu Apr 3 02:08:20 EDT 2008


Allan McRae wrote:
>
> I'm looking into how to best do this at the moment.  Is "pacman -Qtd" 
> not enough here given everything is installed using --asdep?  Ideally, 
> pacman would remove the installed dependencies and this check can be 
> removed.
>   

Having actually played around with this some more I see that using 
pacman is useless without setting up all the unionfs stuff.  However, 
what is wrong with removing the $CHROOT_SHELL/rw directory when 
something like this happens?  Apart from having to fix 
$CHROOT_SHELL/rw/etc/sudoers (makechrootpkg appears to stuff up adding 
the nobody user), I don't see any problem here.  I could be missing 
something....  How else do people clean up the chroot?

>
> It looks like makepkg/pacman is trying to remove mesa (a makedepend) 
> before imagemagick (another makedepend that requires openexr).  So this 
> particular case could be fixed by removing mesa from the makedepeds.  
> I'm looking into whether this is a makepkg's fault or pacman's.  I'm 
> guessing makepkg...
>   
Turns out it is a pacman bug.  If I have three packages (a, b and c) 
where b depends on a and c depends on b, then a "pacman -Rs a c" fails.  
I am making a pactest up for this now.

Allan




More information about the pacman-dev mailing list