Search This Blog


Saturday, April 14, 2007

recipe for building texmacs package with pdebuild

As of Fri Apr 13, 2007, the stable branch of Debian (Etch) carries texmacs 1:1.0.6-10, unstable branch of Debian (Sid) carries texmacs 1:1.0.6-11 . Assuming that pdebuild is used for the first time, the following recipe can be used to build the unstable's texmacs packages on a machine running Debian Etch (stable).
$cp /usr/share/doc/pbuilder/examples/ ~/bin/pbuilder-sid
$mkdir -p ~/pbuilder/result
$sudo aptitude install cdebootstrap
$pbuilder-sid create # if second time, use 'pbuilder-sid update'

$cat ~/bin/

DISTRIBUTION=`basename $0 | cut -f2 -d '-'`
pdebuild --buildsourceroot fakeroot \
--buildresult $BASE_DIR/result \
-- --basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \
--distribution $DISTRIBUTION $@

$cp ~/bin/ ~/bin/pdebuild-sid
$chmod +x ~/bin/pdebuild-sid
$cd ~/practice/
$dpkg-source -x texmacs_1.0.6-11.dsc
$cd texmacs-1.0.6
The commands can be changed accordingly for other packages as well as for distributions other than sid. The ~/bin/ performs similar function for pdebuild as /usr/share/doc/pbuilder/examples/ does for pbuilder.

Tested on Debian Etch, using pbuilder 0.161

No comments: