Russ Allbery: Debian packaging of Git upstreams
Since there's a discussion of packaging software for Debian that uses Git
upstream on Planet Debian
right
now, I
wanted to weigh in and advocate for my current workflow for this
situation, which I'm quite fond of. It's worth noting that I'm also
upstream for quite a few of the packages I maintain, all in Git, and I use
(almost) exactly the same structure for packaging my own software as for
packaging anyone else's. So I have some experience with both sides of
this.
First off, I completely agree with Joey: if upstream is already using Git,
there's no reason not to base the Debian packaging on the upstream
repository, and many, many reasons to do so. One of the biggest
advantages is that when repositories share a common basis and have been
regularly merged, you can easily cherry-pick commits, which is wonderful
for security releases and situations where you need a quick bug fix from
an unreleased upstream branch. I make very heavy use of this when
packaging OpenAFS.
I do, however, like to base the Debian packaging on the released tarball,
if for no other reason than that's the artifact that other people can more
easily confirm. Yes, you can do the same thing with a Git tag, but the
tarball is what upstream considers a release, so if one is available, I
think it makes the most sense to base the packaging on it. I do this even
for my own software.
Thankfully, it's not that difficult to do both. Sam Hartman was the one
who showed me this technique, and (after I used a manual script for some
time for a couple of packages) Guido G nther incorporated the support into
git-import-orig. The key idea is to still import the tarball into the
upstream branch, but instead of making that import a simple commit, you
make it a merge commit referencing the upstream release tag or commit from
their Git repository.
This means that you still get the exact contents of the release tarball on
the upstream branch (and pristine-tar works as normal), but that branch is
also based on the full upstream line of development. Therefore, so is
your packaging branch (master or what have you) since you merge upstream
into it. You can then charry-pick and take advantage of all of the normal
Git features when following upstream development.
This is dead simple to do with git-import-orig. Just add the upstream
repository as a remote for your Git repository, make sure it's up to date
with
git fetch and you have the upstream tags, and then pass the
flag --upstream-vcs-tag <tag> to git-import-orig whenever importing
the upstream release tarball. git-import-orig will handle the
construction of the merge commit for you and everything will just work,
exactly like it normally does with git-buildpackage except with a more
complete history.
This support was added in git-buildpackage 0.6.0~git20120324, so it's
available in unstable and testing.
(I was going to update my notes on
Debian packaging with Git to include this information before posting
this, but I see that it will require some restructuring and quite a few
changes to that document and I don't have time tonight. Hopefully soon.)
Today was spent at my apartment with Zoe. Harvey Norman were scheduled to
deliver the fridge, washing machine and TV. Someone from Telstra was
scheduled to come out and monkey with the MDF to get the naked ADSL
happening, and my desk was scheduled to be delivered.
My parents drove us over in the morning, with some of our suitcases. Zoe was
very happy with her new room and bed.
I was going to get a 1 hour advance warning of Harvey Norman coming, so we
all went for a little walk around the neighbourhood to explore. It turns out
there's a convenience store right next door, which is, well extremely
convenient. I won't need to even hop in the car to get last minute bread or
milk or anything like that. Very happy about that. There's also a really
gorgeous little
Puppet is a nice tool but it has a significant problem with passwords:
Today Thursday April 4th I give a talk at
A few weeks ago I taught a class on Open Source: Contributing to free culture (
playing with constexpr.
Much better than C++ templates.
I've meant to look at
I actually started to hack a bit on Hy, and will try to continue to do so,
since I'm really eager to learn a bit more about both Lisp and Python
internals in the process. I've already send a few patches on small bugs I've
encountered, and proposed a few ideas. It's really exciting to be able to
influence early a language design that I'll love to use! Being a recent fan
of Common Lisp, I tend to grab the good stuff from it to add them into Hy.
Daniel Pocock posted
You might have already
Last year, I failed to write and mention that I'd joined the Council of the
Free/Libre Open-Source Software UK group
Let's work through each of the steps in the diagram:
The upstream release
I was going to post this yesterday, but some might have thought that it was a joke. April 1st is always an annoying day to communicate real information. If you have been fond of the way Debian and Ubuntu manage multiple PostgreSQL versions in parallel, you can now have the same on OS X with Homebrew:
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="299" src="http://www.youtube.com/embed/1vui-LupKJI?wmode=transparent&autohide=1&egm=0&hd=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&showsearch=0#t=16m14s" width="400"></iframe>
After having used mutt for about a decade, I decided it's time I move
away from it, for various reasons that I won't go into here.
I've been evaluating thunderbird^Wicedove now for a few weeks, but I
can already see I won't keep using it forever, because I find too many
issues with it:
I've moved (only a couple of blocks from where I was before), and as the new place has