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.
- Install Pristine Build Environment (pbuilder)
$ sudo apt-get update $ sudo apt-get install pbuilder
- Customize pbuilder. Add info to $HOME/.pbuilderrc
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
- Log into your pbuilder and tell pbuilder any changes made will be saved and rolled back into the .tgz (pristine) tarball.
$ sudo pbuilder login --save-after-login Building the build Environment [snip] File extracted to: /var/cache/pbuilder/build/XXXX # vi /etc/apt/sources.lists
- Add the sid deb-src to your sources.list file
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
- Log back into pbuilder, this time in throw away mode.
$ sudo pbuilder login Building the build Environment [snip] File extracted to: /var/cache/pbuilder/build/XXXX
- Get the Debian source package, the build dependencies, and the source code itself and compile it
# cd /tmp # apt-get update # apt-get build-dep netrek-client-cow # apt-get -b source netrek-client-cow
- Normally, I scp the resulting packages to my main box for debsign-ing and uploading.
# 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.