Re: Mini tutorial: setting up a chroot to check build depends
Thanks Joey, this is great.
I started from base2_1.tgz from slink and `apt-get upgrade`d to
potato using packages I had already. After installing
build-essential, I finished with 81 packages.
(Actually 80 packages and timezones in removed status).
Does that sound okay?
Joey Hess wrote:
> 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