From: Brian Warner Date: Tue, 18 Aug 2009 01:40:52 +0000 (-0700) Subject: new experimental deb-packaging rules. Only works for sid so far. X-Git-Tag: trac-4100~47 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/webapi.txt?a=commitdiff_plain;h=24b1805ca09db981c824d6f325b2b904c0585b92;p=tahoe-lafs%2Ftahoe-lafs.git new experimental deb-packaging rules. Only works for sid so far. --- diff --git a/Makefile b/Makefile index 6b12403e..87895614 100644 --- a/Makefile +++ b/Makefile @@ -241,7 +241,6 @@ test-clean: clean: rm -rf build _trial_temp _test_memory .checked-deps .built - rm -f debian rm -f `find src/allmydata -name '*.so' -or -name '*.pyc'` rm -rf src/allmydata_tahoe.egg-info rm -rf support dist @@ -402,6 +401,11 @@ deb-jaunty-head: $(MAKE) increment-deb-version fakeroot debian/rules binary +# new experimental debian-packaging-building target +.PHONY: EXPERIMENTAL-deb +EXPERIMENTAL-deb: is-known-debian-arch + misc/build-deb.sh + # These targets provide for windows native builds .PHONY: windows-exe windows-installer windows-installer-upload diff --git a/misc/build-deb.sh b/misc/build-deb.sh new file mode 100644 index 00000000..e15d4287 --- /dev/null +++ b/misc/build-deb.sh @@ -0,0 +1,38 @@ +#!/bin/bash +set -e + +# $PYTHON and $ARCH must be set + +if [ -z "$PYTHON" ]; then + PYTHON=python +fi +if [ -z "$ARCH" ]; then + echo "must set ARCH= before running this script" + exit 1 +fi + +NAME=$($PYTHON setup.py --name) +VERSION=$($PYTHON setup.py --version) + +# actually, it's the debchange using a different author than the +# debian/control Maintainer: entry that makes lintian think this is an NMU. +# Put "local package" on the first line of the changelog entry to supress +# this warning. +TARBALL=${NAME}-${VERSION}.tar.gz +DEBTARBALL=${NAME}_${VERSION}.orig.tar.gz +DEBDIR=build/debian/${NAME}-${VERSION} +$PYTHON setup.py sdist --formats=gztar +rm -rf build/debian +mkdir -p build/debian +cp dist/$TARBALL build/debian/$DEBTARBALL +(cd build/debian && tar xf $DEBTARBALL) +zcat misc/debian/$ARCH.diff.gz | (cd $DEBDIR && patch -p1) +chmod +x $DEBDIR/debian/rules +# We put "local package" on the first line of the changelog entry to suppress +# the lintian NMU warnings (since debchange's new entry's "author" will +# probably be different than the what the debian/control Maintainer: field +# says) +echo "updating version to $VERSION-1" +(cd $DEBDIR && debchange --newversion $VERSION-1 "local package: 'make deb' build") +(cd $DEBDIR && debuild -uc -us) + diff --git a/misc/debian/edgy.diff.gz b/misc/debian/edgy.diff.gz new file mode 100644 index 00000000..8a625832 Binary files /dev/null and b/misc/debian/edgy.diff.gz differ diff --git a/misc/debian/etch.diff.gz b/misc/debian/etch.diff.gz new file mode 100644 index 00000000..f1ec1b44 Binary files /dev/null and b/misc/debian/etch.diff.gz differ diff --git a/misc/debian/feisty.diff.gz b/misc/debian/feisty.diff.gz new file mode 100644 index 00000000..da6d03dd Binary files /dev/null and b/misc/debian/feisty.diff.gz differ diff --git a/misc/debian/gutsy.diff.gz b/misc/debian/gutsy.diff.gz new file mode 100644 index 00000000..961c65d4 Binary files /dev/null and b/misc/debian/gutsy.diff.gz differ diff --git a/misc/debian/hardy.diff.gz b/misc/debian/hardy.diff.gz new file mode 100644 index 00000000..afb0f71b Binary files /dev/null and b/misc/debian/hardy.diff.gz differ diff --git a/misc/debian/intrepid.diff.gz b/misc/debian/intrepid.diff.gz new file mode 100644 index 00000000..0e670ee2 Binary files /dev/null and b/misc/debian/intrepid.diff.gz differ diff --git a/misc/debian/jaunty.diff.gz b/misc/debian/jaunty.diff.gz new file mode 100644 index 00000000..2d8df969 Binary files /dev/null and b/misc/debian/jaunty.diff.gz differ diff --git a/misc/debian/karmic.diff.gz b/misc/debian/karmic.diff.gz new file mode 100644 index 00000000..bb29a71c Binary files /dev/null and b/misc/debian/karmic.diff.gz differ diff --git a/misc/debian/lenny.diff.gz b/misc/debian/lenny.diff.gz new file mode 100644 index 00000000..497a3733 Binary files /dev/null and b/misc/debian/lenny.diff.gz differ diff --git a/misc/debian/sid.diff.gz b/misc/debian/sid.diff.gz new file mode 100644 index 00000000..8f543460 Binary files /dev/null and b/misc/debian/sid.diff.gz differ