Robert Edmonds: Converting to --upstream-vcs-tag
Recently, the Google protobuf developers announced a migration of their
project's source code from an svn repository to a git repository. Up until
this point, the Debian protobuf package repository had only tracked upstream
development by embedding upstream release tarballs using
gbp import-orig with
pristine-tar. It would be nice to smoothly migrate the packaging repository to
additionally make use of the --upstream-vcs-tag option to gbp import-orig,
the advantages of which have been well described by Russ Allbery.
This turned out to be harder than expected, so for reference I documented the
steps I took below. Note that this packaging repository uses the default gbp
import-orig repository layout, where upstream sources are placed on a branch
named upstream, and the Debian branch is named master.
Add an upstream remote configured to track the upstream repository's master
branch and tags.
$ git remote add --tags --track master upstream https://github.com/google/protobuf.git
The upstream remote shouldn't be confused with our upstream branch. Note
that git-remotes are local to the repository, so the upstream remote should
probably be documented in the debian/README.source file.
Fetch the upstream branch and tags.
$ git fetch upstream
warning: no common commits
remote: Counting objects: 5210, done.
remote: Compressing objects: 100% (861/861), done.
remote: Total 5210 (delta 3869), reused 5194 (delta 3855)
Receiving objects: 100% (5210/5210), 3.57 MiB 1.43 MiB/s, done.
Resolving deltas: 100% (3869/3869), done.
From https://github.com/google/protobuf
* [new branch] master -> upstream/master
* [new tag] v2.6.0 -> v2.6.0
$
We now have a git-remote upstream, a remote-tracking branch upstream/master
which corresponds to the master branch that upstream makes releases from, and
a release tag v2.6.0. Note that the remote-tracking branch upstream/master
shouldn't be confused with our master branch.
Up until this point, our upstream branch has been synthetically generated by
importing upstream's release tarballs with gbp import-orig. We need to merge
this synthetic history with upstream/master. Unfortunately, I couldn't find a
way to do this without using a temporary branch.
$ git checkout -b tmp upstream/master
Branch tmp set up to track remote branch master from upstream.
Switched to a new branch 'tmp'
$ git merge -s ours -m \
"Merge the original 'upstream' branch with upstream's new master branch" upstream
Merge made by the 'ours' strategy.
$ git checkout upstream
Switched to branch 'upstream'
Your branch is up-to-date with 'origin/upstream'.
$ git merge --ff-only tmp
Updating 7ed940b..9ba221e
Fast-forward
CHANGES.txt 49 +-
COPYING.txt => LICENSE 0
Makefile.am 64 +-
Makefile.in 1041 --
README.txt => README.md 49 +-
[...many more lines...]
$ git branch -D tmp
Deleted branch tmp (was 5f18f02).
$
There are now an additional 400 or so commits on our upstream branch,
corresponding to the new git repository history published by upstream.
Import the 2.6.0 release tarball against the upstream v2.6.0 tag, using the
--upstream-vcs-tag option.
$ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
$ gbp import-orig -u 2.6.0 --upstream-vcs-tag=v2.6.0 ~/debian/tarballs/protobuf_2.6.0.orig.tar.gz
gbp:info: Importing '/home/edmonds/debian/tarballs/protobuf_2.6.0.orig.tar.gz' to branch 'upstream'...
gbp:info: Source package is protobuf
gbp:info: Upstream version is 2.6.0
pristine-tar: committed protobuf_2.6.0.orig.tar.gz.delta to branch pristine-tar
gbp:info: Merging to 'master'
gbp:info: Successfully imported version 2.6.0 of /home/edmonds/debian/tarballs/protobuf_2.6.0.orig.tar.gz
$
The upstream branch now contains a mixture of the original series of release
tarball content imported by plain gbp import-orig and the upstream/master
branch as published by upstream.
Updating the Debian packaging repository when new upstream releases occur only
requires a git fetch to pull down upstream's updated git history and release
tag and using the --upstream-vcs-tag option when importing the release
tarball with gbp import-orig.
This was my third month working on Debian LTS, and the first where
I actually uploaded packages. I also worked on userland packages
for the first time.
In the middle of February I finished and uploaded a security update
for the kernel package (linux-2.6 version 2.6.32-48squeeze11,
me: Who are you?
joeyh: I'm Joey -- 
Localization in the web context is hard, I know. To make things easier,
it may seem like a good idea to use GeoIP to detect what country an IP
is coming from and default your localization based on that. While I
disagree with that premise, this blog post isn't about that.
Instead, it's about the fact that most of you get something wrong about
this little country. I know, I know. If you're not from here, it's
difficult to understand. But please get this through your head: Belgium
is not a French-speaking country.
That is, not entirely. Yes, there is a large group of French-speaking
people who live here. Mostly in the south. But if you check the numbers,
you'll find that there are, in fact, more people in Belgium who speak
Dutch rather than French. Not by a very wide margin, mind you, but still
by a wide enough margin to be significant. Wikipedia
Almost seven years ago, at a time when the VCS wars have not even properly started yet, GitHub was seven days old and most Haskell related software projects were using
A few months ago I decided it would be good to re-rip my CD collection,
retaining a lossless digital copy, and set about planning the project. I
then realised I hadn't the time to take the project on for the time being
and parked it, but not before figuring a few bits and pieces out.
Starting at the beginning, with ripping the CDs. The most widely used CD
ripping software on Linux systems is still cdparanoia, which is pretty good,
but it's still possible to get bad CD rips, and I've had several in a very
small sample size. On Windows systems, the recommended ripper is Exact Audio
Copy, or EAC for short. EAC calculates checksums of ripped CDs or tracks
and compares them against an online database of rips called AccurateRip. It
also calibrates your CD drive against the same database and uses the calculated
offset during the rip.
I wasn't aware of any AccurateRip-supporting rippers until recently when
It is almost exactly 1 year and a half since I came up with the idea of having a way of making backups using Rsnapshot automatically triggered by my laptop when I have the backup media connected to my laptop. This could mean connecting a USB drive directly to the laptop or mounting a NFS/sshfs share in my home network. Today I tagged

Now a days I'm more and more attracted towards Plan9, an Operating
System meant to be the successor of UNIX and created by same people
who created original UNIX. I'm always baffled by the simplicity of
Plan9. Sadly Plan9 never took off for whatever reasons.
I've been for a while trying to run Plan9, I ran Plan9 on Raspberry Pi
model B using 9pi, but I couldn't experiment with it more due to some
restrictions in my home setup.
I installed original Plan9 4th Edition from Bell labs (now part of
Alcatel-Lucent), I will write about it in on different post. But
running virtual machine on my system is again PITA as system is
already old (3 and half year). I came across the 
I've been a mostly happy Thinkpad owner for almost 15 years. My first
Thinkpad was a 570, followed by an X40, an X61s, and an X220. There
might have been one more in there, my archives only go back a decade.
Although it's lately gotten harder to buy Thinkpads at UNB as Dell
gets better contracts with our purchasing people, I've persevered,
mainly because I'm used to the Trackpoint, and I like the availability
of hardware service manuals. Overall I've been pleased with the
engineering of the X series.
Over the last few days I learned about the installation of the
superfish malware on new Lenovo systems, and Lenovo's completely
inadequate response to the revelation. I don't use Windows, so this
malware would not have directly affected me (unless I had the
misfortune to use this system to download installation media for some
GNU/Linux distribution). Nonetheless, how can I trust the firmware
installed by a company that seems to value its users' security and
privacy so little?
Unless Lenovo can show some sign of understanding the gravity of this
mistake, and undertake not to repeat it, then I'm afraid you will be
joining Sony on my list of vendors I used to consider buying from.
Sure, it's only a gross income loss of $500 a year or so, if you
assume I'm alone in this reaction. I don't think I'm alone in being
disgusted and angered by this incident.
So blah blah