1.1 --- a/README.txt Tue Jul 22 23:52:09 2008 +0200
1.2 +++ b/README.txt Fri Jul 25 00:54:42 2008 +0200
1.3 @@ -160,3 +160,14 @@
1.4 export LD_LIBRARY_PATH=`./user-path /usr/lib`
1.5 export PYTHONPATH=`./user-path /usr/lib/python2.5/site-packages/`
1.6 export PYTHONPATH=${PYTHONPATH}:`./user-path /var/lib/python-support/python2.5`
1.7 +
1.8 +Notes on Foreign Distribution Package Management
1.9 +------------------------------------------------
1.10 +
1.11 +It appears potentially impossible to create a package management "sandbox" for
1.12 +other distributions than the one in use, at least with the fakeroot and
1.13 +fakechroot tools employed by user-setup. However, as the root user it is
1.14 +possible to create such a sandbox and to run programs inside it, just like a
1.15 +normal "chroot jail". To create the sandbox, run the following command:
1.16 +
1.17 +user-setup-as-root
2.1 --- a/user-setup Tue Jul 22 23:52:09 2008 +0200
2.2 +++ b/user-setup Fri Jul 25 00:54:42 2008 +0200
2.3 @@ -18,7 +18,8 @@
2.4 echo
2.5 echo "user-setup"
2.6 echo "user-setup file:///tmp/$DISTNAME/"
2.7 + echo "user-setup http://ftp.xx.debian.org/debian/"
2.8 exit 1
2.9 fi
2.10
2.11 -fakeroot fakechroot debootstrap --variant=fakechroot $DISTNAME $PACKAGEROOT $1
2.12 +fakeroot fakechroot --use-system-libs debootstrap --variant=fakechroot $DISTNAME $PACKAGEROOT $1
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/user-setup-as-root Fri Jul 25 00:54:42 2008 +0200
3.3 @@ -0,0 +1,28 @@
3.4 +#!/bin/bash
3.5 +# Usage: user-setup [ <mirror> ]
3.6 +
3.7 +# Configuration:
3.8 +if [ -e userinstall-defaults ]; then
3.9 + source userinstall-defaults
3.10 +elif [ -e /etc/default/userinstall ]; then
3.11 + source /etc/default/userinstall
3.12 +else
3.13 + echo "No defaults found for userinstall."
3.14 + exit 1
3.15 +fi
3.16 +
3.17 +if [[ $1 == "--help" ]]; then
3.18 + echo "Usage: user-setup [ <mirror> ]"
3.19 + echo
3.20 + echo "Examples:"
3.21 + echo
3.22 + echo "user-setup"
3.23 + echo "user-setup file:///tmp/$DISTNAME/"
3.24 + exit 1
3.25 +fi
3.26 +
3.27 +debootstrap $DISTNAME $PACKAGEROOT $1
3.28 +
3.29 +# If the fakeroot/fakechroot things were the only problem, we would run the
3.30 +# following command and use the libraries as usual.
3.31 +#chown -R $USER.$USER $PACKAGEROOT