Peter Eisentraut: Bootstrapping Debian packages
I read something about dh_make again a while ago, which made me wonder, besides dh_make, how do people generally bootstrap new Debian packages. I don't think I've ever actually used dh_make for anything but experimenting. For the longest time, copying over the packaging files from some similar package worked pretty well.Recently, however, I have applied a completely new strategy: I start with nothing, call
debuild, fix the error, retry, until it works. This might sound pretty bizarre, but it works pretty well and enhances your understanding of how the packaging tools work.Here is about how it works:
Start with nothing, call
debuild, it complains:cannot find readable debian/changelog anywhere!Call
dch --create, which says:Cannot find debian directory!OK,
mkdir debian, call dch --create again, fill in the template. Call debuild again, now it says:but there's no debian/rules there!Create a
debian/rules, that's easy to do by heart nowadays, at least as a start:#!/usr/bin/make -fCall
%:
dh $@
debuild again, now dpkg-buildpackage actually starts, but stops with:dpkg-source: error: cannot read mypackage/debian/control: No such file or directoryAt this point I'm too lazy to figure out what is necessary to put into
debian/control, so let's just keep it simple and touch debian/control. At this point dpkg-source gets into a bit of trouble:Use of uninitialized value $sourcepackage in sprintf at /usr/bin/dpkg-source line 290.So let's put that in and also follow the subsequent advice to add
debian/source/format and the Maintainer and Standards-Version fields. So far we have:Source: mypackageThe next hint of a message is:
Maintainer: Peter Eisentraut <petere@debian.org>
Standards-Version: 3.9.2
dh: No packages to build.This means we need a binary package stanza, so I'll just add
Package: mypackageNow
Architecture: any
debhelper complains:dh: Compatibility levels before 5 are deprecated.Not sure why it didn't complain about that earlier. Let's stick 8 in there.
At this point I had to do actual work and mess around with
debian/rules a bit to get the package to actually build, but a few minutes later I had a functioning provisional package.The next step is to clean up the warnings from the various
dpkg-* workers:dpkg-gencontrol: warning: missing information for output field DescriptionSo we add
dpkg-gencontrol: warning: package mypackage: unused substitution variable $ shlibs:Depends
dpkg-deb: warning: parsing file 'debian/mypackage/DEBIAN/control' near line 6 package 'mypackage': missing description
dpkg-genchanges: warning: missing Section for binary package mypackage; using '-'
dpkg-genchanges: warning: missing Priority for binary package mypackage; using '-'
dpkg-genchanges: warning: missing Section for source files
dpkg-genchanges: warning: missing Priority for source files
Description, Depends, Section, and Priority.And finally we have a list of complaints from Lintian to address:
W: mypackage source: debhelper-but-no-misc-depends mypackageThe only things I added manually after that were
E: mypackage source: package-uses-debhelper-but-lacks-build-depends
W: mypackage source: package-needs-versioned-debhelper-build-depends 8
W: mypackage source: debhelper-overrides-need-versioned-build-depends (>= 7.0.50~)
E: mypackage source: temporary-debhelper-file debhelper.log
E: mypackage: no-copyright-file
Vcs-*, Homepage, and Enhances.Now the only things left to do are running the thing through
cowbuilder a few times and putting in all the necessary build dependencies, and writing a nice changelog entry.Note, this method does not replace putting in some thought. But it's an interesting way to get a relatively clean package.
So I got my hands on that new machine, somewhere, somehow, and I had to make myself comfortable on it. The biggest difference in that machine and the ones I used before is the RAID controller, an Adaptec 5405, instead of the 3ware ones I used to have before. That means getting used to new tools, messages and all these things which I ll try to document here.Step 1: does vendor deliver?Well, yes, mostly. There is (mainline) kernel support for the controller, Squeeze s kernel will boot up just fine and I just throw my junk into /dev/sda and it will handle the whole raidy thingy itself. But what is when I want to check the health of the disks, to add a spare or modify the caching?
Second speaker at today'sseminar,Vladimir Mojica. He is talking about th legal backing for DRM and TPM as well as laws against circumvention. He quotes USA's DMCA as one of the most complete, advanced and forward-minded laws,inviting the audience to push for such a law here.
I hope he gets to my (written)question, as today is a very important day in this regard: The Senate has requested the presidency to reject signing the ACTA treaty!
The
For some time, code documentation for phpMyAdmin had no official place. The reason for this was phpdoc eating way too much memory on daily runs, so I've disabled the cron job. Today I gave a try to
After my
Another month, another Games Team IRC Meeting happening. This time it was decided to have it again on Sunday, the time was set to 10 am UTC. To find out the time in your localtime, issue
A lot of work has taken place since my last report. First, since my original mentor, Matt Zimmerman, is going to be moving, he helped arrange for Stefano Zacchiroli to fill in for him temporarily. I have had a call with Stefano, and I am looking forward to getting to work with him more over the next couple of weeks.
Shortly after my first report, we realized that having the dashboard only display bugs severely limited its usefulness. In our original design, we had it pulling a list of bugs with specific usertags from the BTS. This forced all information to be added to bugs, which we viewed as a good thing since it made the information available to the Debian Maintainers without requiring them to familiarize themselves with DEX. The issue was that when looking back at the ancient-patches project or forward to the big merges project, a large portion of the work will be triaging and determining whether or not the changes are even applicable in Debian. If they aren t, there is no reason for a bug to be filed on the BTS. As a result, I spent a fair amount of time re-writing most of the dashboard. It still supports finding bugs on the BTS that have been tagged with a specific DEX usertag, but it is now task-based rather than bug-based.
A task can be a bug number, a package name, a patch name, or anything. It is merely something that needs to be done for a project. Each task will have a name, an assignee, a status, a note, and a bug associated with it. There are two ways to define a list of tasks for a project. The first is to tag bugs on the BTS with a user of debian-derivatives@lists.debian.org and a tag with a format of dex-<distribution>-
<project> (i.e. dex-ubuntu-ancient-patches). The script will convert the bugs to tasks and automatically set all of the fields. The second method is to specify the list of tasks in a plain text file on the server the scripts are being run on. Eventually, this list will be able to be specified via a web interface. Currently, you are only able to specify the task name in the file. This means that all of the other fields for a task created in this manner are initially blank. I am still deciding on the best way to specify additional information about each task in the file. Once I decide on a method, it should not be too difficult to modify the script to parse and store that additional information.
For the ancient patches DEX project, everyone involved had to update a status file stored in a VCS on alioth. This was rather annoying, so we decided early on that we want to be prevent this from being necessary for future projects. This means that the dashboard needs a way for users to modify the information on it. For tasks that are based on bugs, this is rather easy; you simply use the BTS email interface to adjust the bug. However, for other tasks, we needed the ability to modify them on the dashboard. I have managed to get this partially implemented. Currently, all cells on the table are text input fields (with css being used to hide the boxes). This means that you can click on any cell and edit its contents. Hitting the submit button will execute a script to save these changes. This is the tricky part. The dashboard is a collection of html files generated by a python script. The script is meant to be run by cron every n minutes. When you update something via a web interface, you usually expect to see the changes instantly. This means that we can t wait for the python script to run again and re-generate the html files. As a result, I currently have it setup so that when you submit the form, it will go and modify the html files to reflect the changes. The next time cron runs the python script, the html files will be re-created, and the changes made by the user will be lost. Once I come up with a method for storing additional information about a task, it shouldn t be too hard to make changes made by a user via the web interface permanent.
I also did some work on a script to generate graphs. There are two types of graphs I hope to be able to display on the dashboard. One graph will help show which individuals have done the most work on a project. I have not started working on this graph yet. The second type of graph is meant to show the number of open tasks versus time. This will allow people to quickly see the progress of a project, estimate how long the project will take to complete, and notice if things start to slow down. I have some initial code for this graph using matplotlib. However, due to the many changes that were made to the dashboard, I had to hold off a bit on this graph, as it relies on certain information provided by the dashboard. I hope to sort out some of the last few issues with this graph, such as getting the axes to display properly, and then merge it with the dashboard sometime in the next few weeks.
Allison Randal approached me a while ago to see if my Summer of Code project might be in a state where it could be used to assist with a Python 2.7 DEX project that she was working on. For a while, I did not think that it would be ready. However, last week, I helped her get the related bugs usertagged appropriately, and they now show up in the DEX dashboard. While the dashboard is still not complete, it does allow her and everyone else working on the project to clearly see the tasks (bugs) that they need to focus on and the current status of each of them. I plan to try and incorporate any feedback I receive from people working on this project into my designs.
All of my code is available in a
Receiving a full rejection for DebConf travel sponsorship
reminds me of a time I was asked to nominate members for
a corporate board of directors.
At the time I replied that I would not be of much help
because I value things which are irrelevant to such
positions. Sure, I can identify worthless, grandstanding
blowhards, but of the people who are not, I am unqualified
to guess which ones make good board members and which do
not.
The person who had asked me was somewhat confused by my
answer, because we come from different perspectives on
how the world works and possibly how the world should
work.
Today we had our long-awaited Travel Sponsorship team meeting.
It took a little more than 90 minutes but had us check the ratings
we did in the past days, discuss various of the people and aspects of
our decisions, and then finally we decided on the cutoff levels for
this year.
Actually an easy step (in theory) cutoff levels, it is always hard.
On the one side there are the beancounters and the team working each
year to find money for the conference. Doing whatever it takes to have
our sponsors happy. Who, of course, can not give us unlimited amounts
of money.
On the other hand there are all the (possible) attendees. Many of which
can not afford the travel if we do not help them.
Getting both sides happy is near to impossible. We had about 100 people
asking for nearly 60 000 Euros. On the other hand we had 35 000 Euro to
give out. Doesn t match, and getting another 25 000 Euro just so is not
very likely to happen. Which lead to a Sorry, no money this year for
29 people.
We currently have 12 people still waiting for money. They got a maybe,
if someone cancels or we are lucky to get another sponsor mail, and we
hope we can help them, but we are not sure. We are waiting for another
7800 Euros here.
But the nice and shiny side of this all is: We have 56 people who we
agreed to sponsor travel for, in total 35 000 Euros.

Well, every once in a while we re forced to do something that isn t particularly interesting or pleasant. Last week it happened again: I had to import a few pretty big PSTs (most 2Gig, one 10Gig, with about 100.000 emails) into our dovecot IMAP.
Doing this with Outlook itself was out of the question: it took way too long, even on the local network (many hours for a 1G file) and was prone to hanging and crashes, which were obviously a pain to debug and start over.
Note: This is an idea I had, not something I'm working on. If it interests
you, please work on it. I may come back to this some day, but not
anytime soon, but I thought I'd share it anyway.
When downloading updates for a Debian package, often much of the
data doesn't actually change, or at least not much. Because of
this, the debdelta service is a wonderful idea (and Debian
should adopt it officially).
However, a different way of achieving that might be like this: