Archive for the ‘Debian (en)’ Category

Goddies with bts’ “status” and “select”

Sunday, September 21st, 2008

Since I was watching Don Armstrong’s talk about Debbugs’ SOAP interface I wanted to use devscripts' bts to get a list of boinc‘s top five bug reporter. Finally, this is possible with devscripts (>= 2.10.36):

bts status file:- `bts select source:boinc archive:both` \
  | egrep "^originator" | cut -f2- | sort | uniq -ci | sort -n \
  | tail -n5

 2 Riccardo Stagni <unriccio@email.it>
 3 Martin Michlmayr <tbm@cyrius.com>
 6 Robert Millan <rmh@aybabtu.com>
 6 Thibaut VARENE <varenet@debian.org>
10 Sandro Tosi <matrixhasu@gmail.com>

Sweet – Thanks Debbugs and Devscripts maintainers!
And congratulations Sandro (or thank you – whatever you find appropriate)!

Update:
Lucas Nussbaum recently demonstrated how the Ultimate Debian Database (UDD) can be used to assemble cool stats about Debian bugs. This brought me to translate the above shell code into an SQL query for UDD. To retrieve boinc‘s top five bug reporter from UDD, one would use a query like this:

udd=> select submitter, count(*) from (select * from bugs
  where source = 'boinc' union select * from archived_bugs
  where source = 'boinc') as all_boinc_bugs group by submitter
  order by count desc limit 5;
              submitter               | count
--------------------------------------+-------
 Sandro Tosi <matrixhasu@gmail.com>   |     8
 Thibaut VARENE <varenet@debian.org>  |     6
 Robert Millan <rmh@aybabtu.com>      |     6
 Martin Michlmayr <tbm@cyrius.com>    |     3
 Michael Ablassmeier <abi@grinser.de> |     2
(5 rows)

The small difference between the two lists is because UDD does not handle bugs that are assigned to multiple packages correctly yet.

Converting git-svn tag branches to real tags

Saturday, August 30th, 2008

Over the last few days I’ve converted some Subversion repositories used for Debian packaging to Git. None of these Subversion repositories contained upstream sources because of Subversion’s storage inefficiency. With Git I wanted to change that and also track the upstream sources in my repositories. To move a Git repository from a debian-only to debian+upstream layout I found zack’s recipe very helpful.

The actual conversion to Git was done with git-svn. I cloned the Subversion repositories with git-svn‘s --prefix=svn-import/ and --stdlayout options so that the trunk and all branches and tags were imported as remote branches with svn-import/ prepended. Then I created local branches of the previous Subversion branches and removed the remote remnants, for example:

git checkout -b debian/backports/etch svn-import/branches/etch-backports
git branch -d -r svn-import/branches/etch-backports

The Subversion tags are imported as svn-import/tags/<version> where <version> is the Debian version number. I don’t need branches for every version of my packages but I wanted to convert these tags to real Git tags but without losing the actual commit dates and messages. To achieve this I wrote this small script:

#!/bin/bash

for branch in `git branch -r`; do
    if [ `echo $branch | egrep "svn-import/tags/.+$"` ]; then
        version=`basename $branch`
        subject=`git log -1 --pretty=format:"%s" $branch`
        export GIT_COMMITTER_DATE=`git log -1 --pretty=format:"%ci" $branch`

        echo "Tag $version [Y/n]?"
        read yesno
        if [ -z $yesno ] || [ $yesno = "Y" ]; then
            git tag -s -f -m "$subject" "debian/$version" "$branch^"
            git branch -d -r $branch
        fi
    fi
done

For each remote branch that contains svn-import/tags/ it gets the version number, the commit message of the tag and exports GIT_COMMITTER_DATE (man git-tag) with the value of the date the version was tagged in Subversion and then asks you if it should tag the parent of the tag branch with the original commit date and message and remove the then unnecessary tag branch. The “safety measure” is there because people sometimes commit directly to Subversion tags (ugh!) and then "$branch^" would not be the commit you want to tag. To decide which Subversion tags are safe to tag with this script, gitk --all can be of great help.

P.S.: This is my first post on Planet Debian, so hello Planet! :-)

Kudos to the DebConf 8 videoteam!

Tuesday, August 12th, 2008

Thanks to the DebConf 8 videoteam I can watch all talks at DebConf 8 via live video streams from home. This is really a great service for all us who don’t attend DebConf! And it is much more fun than watching the recordings of the talks after DebConf has finished because questions/comments on IRC are relayed to the conference rooms. The only downside of the streams is the earpiercing tango between the sessions. :-)

DPL Election 2008

Sunday, March 30th, 2008

Today the voting period for the Debian Project Leader Election 2008 has started, and here is the ballot I've just submitted:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- - - -=-=-=-=-=- Don't Delete Anything Between These Lines =-=-=-=-=-=-=-=-
d81e16a2-03b6-4340-84f2-51de89b8185e
[ 2 ] Choice 1: Steve McIntyre
[ 1 ] Choice 2: Raphael Hertzog
[ 3 ] Choice 3: Marc Brockschmidt
[ 4 ] Choice 4: None Of The Above
- - - -=-=-=-=-=- Don't Delete Anything Between These Lines =-=-=-=-=-=-=-=-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH73cBft6HNdxCZCkRAmIgAJ49VGjuI6g+tIcgXhqMHXqE/kTNjQCcDqy5
oQSqQHJ5YCYtYE7y05mNdms=
=BwB2
-----END PGP SIGNATURE-----

This is the first election where I can actively participate since I became a Debian Developer on December 4th, 2007, and therefore I'm very interested in this year's DPL candidates and the election in general. I'm however a little bit disappointed because in my perception the candidates and their goals are less controversial than in the years before. It is also interesting to note that since 2004 this is the first election that has fewer candidates than the election in the preceding year (2008: #3, 2007: #8, 2006: #7, 2005: #6, 2004: #3).

Current mood: very happy!

Sunday, October 21st, 2007

Cause: “DAM Approval: Approved on 2007-10-21 by Joerg Jaspert (joerg)”. And this happened only 23 days after Front Desk checked the completeness of my report. I'm somehow impressed, thought this would take longer. Thanks to Joerg Jaspert!

Now I'm anxiously awaiting my account creation, let's see how long this takes...

How to find orphaned packages YOU should work on?

Thursday, October 11th, 2007

While being a Debian New Maintainer applicant, I decided to help the QA team by working on orphaned packages once I'm a Debian Developer. Currently there are 321 packages which are orphaned (O) or which a maintainer intents to adopt (ITA), see the packages overview for the Debian QA Group. Okay, so I've the choice to work on 321 different packages now, but which one should I choose? A tool which can help with this decision is wnpp-alert, it checks for installed packages that are up for adoption, orphaned or for which help is requested (RFH). It narrows down my selection to four orphaned packages, great! Now I want to sort these packages by their popularity (What's this?). For this task I've written a little script which uses the excellent grep-dctrl and ept-cache tools:

#!/bin/sh

MAINT=`(test -z "$1" && echo packages@qa.debian.org) || echo "$1"`

for x in `grep-status -F Maintainer "$MAINT" -n -s Package`; do
    ept-cache show $x | grep-dctrl '' -n -s Popcon,Package | paste -sd '\t';
done | sort -nr

It searches for installed packages that are maintained by the Debian QA Group and sorts them by their popcon score. If an argument is given to this script it will use it as search pattern for the Maintainer field instead of packages@qa.debian.org.

Note: You need to enable the popcon data provider for ept-cache for this script to work. See /usr/share/doc/ept-cache/README for details.

Backports of BOINC and KBoincSpy for Debian/sarge

Sunday, August 13th, 2006

If you're running Debian GNU/Linux 3.1 (codename "sarge") because you prefer a stable operating system but also want to run the latest versions of BOINC and/or KBoincSpy, you can now install the official backports of these two I created for sarge. The packages are available on backports.org. Have a look at these instructions for installing packages from backports.org. The current version of the backports are: BOINC 5.4.10 and KBoincSpy 0.9.1

A special thanks goes to Daniel Baumann for sponsoring these packages.

New logo for kernel-patch-debianlogo

Saturday, July 29th, 2006

One of the coolest Debian packages is without doubt kernel-patch-debianlogo. ;-) However, this package was missing a cool image I made a year ago and that is my logo of Tux with a Debian swirl on his belly. You can have a look at it here. I've now changed this and made the package even cooler, yeah! My work is currently only available in a Bazaar branch, instructions for getting the branch and creating the package follows:

# get my bzr branch
bzr get http://blue-dwarf.de/download/bzr/kpd

# go the package source dir and build the package
cd kpd/kernel-patch-debianlogo/ && debuild -uc -us

Now install the package, recompile your kernel with the patch applied and have fun! If the kernel-patch-debianlogo maintainers like the logo it'll probably be included in the official package.

Update: I've filed http://bugs.debian.org/380367.

2nd Update: A package of my kernel-patch-debianlogo version is now in my personal package repository for your convenience, so you don't have to build the package yourself.

ORSA 0.7.0 uploaded to Debian

Saturday, September 24th, 2005

ORSA (acronym for Orbit Reconstruction, Simulation and Analysis), developed and maintained by Pasquale Tricarico, is a framework for scientific grade Celestial Mechanics investigations and calculations. Four months ago I packaged ORSA for Debian and it was just recently sponsored (aka uploaded) by Christoph Berg. Thanks again Christoph for sponsoring ORSA!

More information about ORSA in Debian and which binary packages are built from the ORSA source package can be obtained from these pages (for the impatient: apt-get install xorsa):

With the addition of ORSA, Debian is one step closer to becoming The Universal Operating System for Scientists. :-)

BOINC packages moved to pkg-boinc.alioth.debian.org

Saturday, June 25th, 2005

I moved all BOINC packages (boinc-client, boinc-dev and boinc-manager) to the repository at the pkg-boinc Alioth project. Just add the following lines to your /etc/apt/sources.list to use it's repository with APT:

# BOINC packages for Debian "sid" (unstable)
deb     http://pkg-boinc.alioth.debian.org/debian unstable main
deb-src http://pkg-boinc.alioth.debian.org/debian unstable main

If you have some spare time and are interested in packaging BOINC, you are invited to join us at pkg-boinc.