This one time, at band camp, Crossfire wrote:
>[EMAIL PROTECTED] was once rumoured to have said:
>> Hi
>> (wow this weeks hot topic)
>> I need to install a debian woody system to compile some bits for an
>> embedded box.
>
>We actually do this all the time at work.  We mostly work from debian
>stable or testing, but we need to build our binaries against Woody.
>
>I shall recommend the tool that was recommended to me when I started
>all of 4 months ago -- pbuilder.
>
>pbuilder unpacks a chroot image and lets you play inside it so you can
>build things the way you need, and then cleans up after itself when
>you're done.  Its aware of the debian packaging system, so it can
>build source packages automatically, fetching build dependancies as
>necessary.

pbuilder rocks.  I use it to backport my debs to sarge here at Anchor.  (I
also use it for build testing to make sure the build deps are correct before
uploading to Debian itself.)

% sudo aptitude install pbuilder
% cat ~/.pbuildderrc
DISTRIBUTION=sarge
MIRRORSITE="http://mirror.optus.net/debian/";
PBUILDERROOTCMD=sudo
BUILDSOURCECMD=fakeroot
DEBBUILDOPTS="-i'\+\+pristine-trees|\+\+saved.*|,,.*'"
% sudo pbuilder create

from there you have a Debian Sarge build environment, and all the regular
pbuidler commands are available to do stuff in.

(This is running on a Ubuntu breezy workstation)

As an aside, there's a tool in Fedora called 'mock' that I've not really
played with, but I plan to soon in order to build RPMs; currently we have a
bunch of RH and FC chroots on a build server that rot over time, and I
really want to move to a more robust, cleaner, and reproducible package
build system for those machines.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to