Search This Blog

Tuesday, May 15, 2007

updating texmacs to new upstream release

As of Tue, May 15, 2007 Debian contains the following versions of Texmacs.

Stable (Etch) : 1:1.0.6-10
Testing (Lenny) : 1:1.0.6-11
Unstable (Sid) : 1:

On my system, I am using Debian Etch, texmacs Couple of days back, texmacs released As a maintainer of this package, I want to build the package which can eventually be uploaded to Debian Sid. This document provides a recipe of commands to achieve this goal.

Here I assumed that you are using pdebuild for the first time. If you have used it before, skip the appropriate steps.

$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 \
--auto-debsign \
-- --basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \
--distribution $DISTRIBUTION $@

$cp ~/bin/ ~/bin/pdebuild-sid
$chmod +x ~/bin/pdebuild-sid

$cd ~/practice/

Obtain the latest source from texmacs website


Rename the upstream sources

$tar xzvf TeXmacs- -C .
$mv TeXmacs- texmacs-
$tar czvf texmacs_1.0.6.10.orig.tar.gz texmacs-
$rm -rf TeXmacs- texmacs-
$ls texmacs*

Obtain the latest sources available in Debian Sid


Create the corresponding Debian source for

$dpkg-source -x texmacs_1.0.6.9-4.dsc
$cd texmacs-
$uupdate -u ../texmacs_1.0.6.10.orig.tar.gz
New Release will be 1:
-- Untarring the new sourcecode archive ../texmacs_1.0.6.10.orig.tar.gz
Success! The diffs from version 1: worked fine.
Remember: Your current directory is the OLD sourcearchive!
Do a "cd ../texmacs-" to see the new package
$cd ..
$rm -rf texmacs-

Update the changelog and do other necessary stuff

$cd texmacs-
$cd ..

Build the package. The final packages will be in ~/pbuilder/result

$cd ~/pbuilder/result
$ls texmacs**
texmacs_1.0.6.10-1.diff.gz texmacs_1.0.6.10-1_i386.changes texmacs_1.0.6.10.orig.tar.gz
texmacs_1.0.6.10-1.dsc texmacs_1.0.6.10-1_i386.deb texmacs-common_1.0.6.10-1_all.deb
$linda texmacs_1.0.6.10-1.dsc
$lintian texmacs_1.0.6.10-1.dsc