Guido G nther: Using git svn and git-buildpackage to build packages maintained in Subversion
Many team maintained packages in Debian are maintained in Subversion which
makes a lot of sense if people agreed on a common workflow. If you want to use
git to work on these packages you can still do so with a bit of
configuration without changing anything for the other team members. Let's take
system-config-printer as example. git-svn can be used to checkout the
svn repository:
git svn clone svn+ssh://svn.debian.org/svn/pkg-gnome/ -T packages/unstable/system-config-printer -t tags/system-config-printer system-config-printer
Since the pkg-gnome team keeps all the packages in one huge SVN repository and
splits the directories by release first and then by package the above command
uses -T to point git-svn to system-config-printer's trunk and -t to point
it to the tags directory. In simpler repositories where trunk, branches
and tags are subdirectories of the same base directory using --stdlayout
instead is enough.
Since in SVN based packaging the upstream sources usually aren't kept in the
repository git-buildpackage needs to know where to find them and how to
combine things in the build-directory:
cd system-config-printer
cat <<EOF >.git/gbp.conf
[git-buildpackage]
# Build in a separate build-area
export-dir = ../build-area/
# Look for tarballs in ../tarballs
tarball-dir = ../tarballs/
# Overlay the upstream sources on top of it
overlay = True
# Don't use pristine-tar
pristine-tar = False
# Compression type of the tarball
compression = bzip2
Like with svn-buildpackage the orig-tarball is expected to be found in
../tarballs where you should put it now e.g. using the get-orig-source
target of debian/rules (yes, git-buildpackage should support this
implicitly). You can then work on the package as usual using all the nifty
git commands like git-rebase, etc. and build the package (in this case
using git-pbuilder):
git-buildpackage --git-pbuilder
or if you don't want to export the current branch's HEAD of your git repository
but your working copy (which might contain uncommitted changes) to the
build-area instead use:
git-buildpackage --git-pbuilder --git-export=WC
The built packages can then be found in ../build-area. Once the package is
ready pushing the changes into the SVN remote repository is as simple as:
git svn dcommit
git svn tag -m"Tagging system-config-printer (1.2.3-0.2)" 1.2.3-0.2
The last command appropriately tags the new version. This saves a bit of
typing. In order to fetch changes others have made use:
git svn rebase
This fragment of code was extracted from a direct-to-MX PHP spam cannon installed on a customer server. Yes, it contains a real DNS stub resolver written in PHP (which abuses the promiscuous cache of a local large ISP).
FrOSCon was a blast. I had two booths of my own MirBSD and FreeWRT as
well as shares of Debian and Grml. Well, MirBSD was run by Benny and gecko2
because I just didn t have any time for it, despite XTaran s help with the
FreeWRT booth. All I did was the initial setup of both booths, while at the
same time answering about three questions regarding FreeWRT in parallel.
Wow. What a little small, open hardware can do to you. XTaran and I had fun
and we ll do FreeWRT booths again; I managed to flash my two FON2100 devices
( La Fonera the FON2200 can use the same image, says nbd of OpenWrt) and
will fix the port s remaining few bugs I found; XTaran will try to push the
WL-500gPv2 development. The social part was nice as well, although I think
the greek restaurant in the city will not be visited by me again. Anyway,
if you didn t attend FrOSCon, your own fault
Since the BitTorrent tracker used by MirOS is down, here s the link to 
Well,
Just echoing what happens in
Another day, another story about #ukgov cuts and today it s the turn of libraries. When I turned on the TV at breakfast, they were discussing
Sadly, I cannot find this book in English, as it is very well worth a read. But if the topic sounds interesting and you can understand the language, don't hesitate and pick up the book. It gives an interesting insight on the topic, for a group of people (us techies) used to looking at things in a much more human-cognitive-process-oriented way.
[update] I found this nice
This is my third video of me while doing my tattoo, hopefully it won t get removed again due to licensing, because I tried to provide all the necessary copyright. This is its first time showing up on
I d like to have this one on as some kind of personal zeitgeist moment if anything, and I m definitely not making any other versions of this video. I have why I did it , and all the other things written in my previous posts related to this video.
Enjoy
<object height="324" width="400"><param name="movie" value="http://www.youtube.com/v/edKUKCTOpo0&hl=en&fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed allowfullscreen="true" allowscriptaccess="always" height="344" src="http://www.youtube.com/v/edKUKCTOpo0&hl=en&fs=1" type="application/x-shockwave-flash" width="425"></embed></object>
Related posts:
An EOF analysis of annual Irish rainfall (first principal component). We see increased rainfall, with a shift
point around 1978.
Released just a few hours ago: