[blfs-dev] Xorg Font package causes script stop and exit shell

Bruce Dubbs bruce.dubbs at gmail.com
Thu Mar 6 14:29:29 PST 2014

Arthur Radley wrote:
> I'm building BLFS from a recent development version. The package
> font-bh-ttf-1.0.3.tar.bz2 in Xorg Fonts causes the installation script to
> exit with an error...
> rm: cannot remove
> 'font-bh-ttf-1.0.3/@baseconfigdir@/conf.avail/42-luxi-mono.conf': Permission
> denied
> rm: cannot remove
> 'font-bh-ttf-1.0.3/@baseconfigdir@/conf.d/42-luxi-mono.conf': Permission denied
> So some files did not get installed, and it wasn't really obvious either. I
> might not have known except for noticing that the exit command did not
> return to the previous shell but logged me out of the console. And there was
> the build directory still sitting there in the font directory.
> I'm running the Xorg scripts as an ordinary user and Sudo is installed, so
> the as_root function is using the sudo "if" condition. I reproduced this
> issue by attempting to re-install font-bh-ttf-1.0.3 manually. The ordinary
> user cannot delete this package's build directory (and perhaps others, who
> knows). I could remove it with sudo. I often find that root is required to
> delete build directories.
> Anyway, I don't know if this affects other people or not. What's your
> opinion of adding the as_ root function to the rm -rf $packagedir command in
> these Xorg scripts?

Some packages modify or create packages in the local directory when 
doing a make install so when you exit sudo, you can't delete those files 
in the directory.  Just go ahead and use sudo to delete.

   -- Bruce

More information about the blfs-dev mailing list