[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mini tutorial: setting up a chroot to check build depends



I figured this might save some people some time. If you want to set up a
small debian install to see if your build dependancies work in the real
world, or to find out what build deps your package needs in the first place, 
just type the following:

mkdir /tmp/debian
cd /tmp/debian
tar zxf <mirror>/debian/dists/unstable/main/disks-i386/current/base2_2.tgz
cp /etc/apt/sources.list etc/apt/
cp /etc/resolv.conf etc/
chroot `pwd` bin/sh
apt-get update
dpkg --purge lilo
yes '' | apt-get -y install build-essential

Then you can go archive the resulting directory tree, and use a fresh copy
to test-build each of your packages in.

-- 
see shy jo


Reply to: