LFS - DESTDIR Style

Sukucorp Sukucorp sukucorp at gmail.com
Mon Mar 31 19:50:14 PDT 2008


On Mon, Mar 31, 2008 at 5:12 PM, Bryan Kadzban
<bryan at kadzban.is-a-geek.net> wrote:
>  But any kind of DESTDIR type
>  setup would require it, if the package's "make install" is run as a
>  non-root user.

fakeroot is not an absolute requirement for install-root style PM. I
use the following wrappers to avoid using fakeroot.

chgrp | chown )
	$RealCommand "$@"
	exit 0
;;
install )
	args=""
	# Consume parameters that we don't want executed
	until [ -z "$1" ]
	do
		case "$1" in
		-c )
			shift 1
		;;
		-o|-g|-O|-G|--owner|--group )
			shift 2
		;;
		--owner=*|--group=* )
			shift 1
		;;
		* )
			args="$args $1"
			shift 1
		;;
		esac
	done
	$RealCommand $args
	exit $?
;;
ldconfig )
	$RealCommand "$@" 2>/dev/null >/dev/null
	# Remove the old cache file
	rm -f $FakeInstallDir/etc/ld.so.cache*
	exit 0
;;

-- 
Tushar Teredesai
 mailto:tushar at linuxfromscratch.org
 http://www.linuxfromscratch.org/~tushar/



More information about the lfs-dev mailing list