Building/Compiling HOWTOs

I'm slowing moving things from my FAQ into the wiki. If the answer to your question(s) aren't listed below check the FAQ.

Building netrek-client-cow from source the debian way

I recommend compiling netrek-client-cow under a pristine build environment use debian's pbuilder.

$ sudo apt-get update
$ sudo apt-get install pbuilder

MIRRORSITE=http://mirrors.kernel.org/debian sid main non-free contrib
OTHERMIRROR="deb ftp://ftp.real-time.com/linux/real-time sid custom main non-free contrib|deb-src ftp://ftp.real-time.com/linux/real-time sid custom main non-free contrib"
EXTRAPACKAGES=fakeroot
DEBEMAIL="First Last <you@domain.com>"
BUILDUSERNAME=you
BUILDRESULTUID=2000
BUILDRESULTGID=2000
AUTO_DEBSIGN=yes

$ sudo pbuilder login --save-after-login
Building the build Environment
[snip]
File extracted to: /var/cache/pbuilder/build/XXXX
# vi /etc/apt/sources.lists

deb-src ftp://ftp.real-time.com/linux/real-time sid custom main non-free contrib
# apt-get update
# apt-get dist-upgrade
# logout
Copying back the cached apt archive contents
 -> Saving the results, modifications to this session will persist
[snip]
 -> cleaning the build env

$ sudo pbuilder login
Building the build Environment
[snip]
File extracted to: /var/cache/pbuilder/build/XXXX

# cd /tmp
# apt-get update
# apt-get build-dep netrek-client-cow
# apt-get -b source netrek-client-cow

# apt-get install ssh
# cd ..
# scp netrek-client-cow* me@mainbox:/tmp

On my main box, I use dupload to sign, upload, and process the .deb into a pool hierarchy. I normally make sure the same source .deb compiles on sid, etch, and sarge, so I only 'dpkg-buildpackage -sa' for sid. My etch, sarge pbuilders have deb-src for sid listed above and I just 'dpkg-buildpackage -B' for them to conserve on disk space and bandwidth (for full source uploads).

You can RTFM pbuilder manual for more details.

Building/Compiling HOWTOs (last edited 2006-04-27 04:24:56 by BobTanner)