<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>apt-get install debian-wizard&#187; dpkg</title>
	<atom:link href="http://raphaelhertzog.com/tag/dpkg/feed/" rel="self" type="application/rss+xml" />
	<link>http://raphaelhertzog.com</link>
	<description>Insider infos, master your Debian/Ubuntu distribution</description>
	<lastBuildDate>Fri, 18 May 2012 18:25:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>My Debian Activities in March 2012</title>
		<link>http://raphaelhertzog.com/2012/04/01/my-debian-activities-in-march-2012/</link>
		<comments>http://raphaelhertzog.com/2012/04/01/my-debian-activities-in-march-2012/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 21:30:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Activity summary]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Handbook]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Multiarch]]></category>
		<category><![CDATA[nautilus-dropbox]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2601</guid>
		<description><![CDATA[My monthly summary is always a good way to have the latest news of Debian projects that I am working on.]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you&#8217;re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (227.83 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg</h3>
<p>Thanks to Guillem, dpkg with multiarch support is now available in Debian sid. The road has been bumpy, and it has again been delayed multiple times even after Guillem <a href="https://lists.debian.org/debian-devel-announce/2012/03/msg00005.html">announced it</a> on debian-devel-announce. Finally, the upload happened on March 19th.</p>
<p>I did not appreciate his announce because it was not coordinated at all, and had I been involved from the start, we could have drafted it in a way that sounded less scary for people. In the end, <a href="https://lists.debian.org/debian-devel/2012/03/msg00394.html">I provided a script</a> so that people can verify whether they were affected by one of the potential problems that Guillem pointed out. While real, most of them are rather unlikely for typical multiarch usage.</p>
<p><a href="http://bugs.debian.org/664058">Bernhard R. Link submitted a patch</a> to add a new &#8211;status command to dpkg-buildflags. This command would print all the information required to understand which flags are activated and why. It would typically be called during the build process by debian/rules to keep a trace of the build flags configuration. The goal is to help debugging and also to make it possible to extract that information automatically from build logs. I reviewed his patch and we made several iterations, it&#8217;s mostly ready to be merged but there&#8217;s one detail where Bernhard and I disagree and I <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664058#35">solicited Guillem&#8217;s opinion</a> to try to take a decision. Unfortunately neither Guillem nor anyone else chimed in.</p>
<p>On request of Alexander Wirt, I uploaded a new <a href="https://lists.debian.org/debian-backports-changes/2012/03/msg00315.html">backport of dpkg</a> where I dropped the DEB_HOST_MULTIARCH variable from dpkg-architecture to ensure multi-arch is never accidentally enabled in other backports.</p>
<p>One last thing that I did not mention publicly at all yet, is that I contacted Lennart Poettering to suggest an improvement to the <code>/etc/os-release</code> file that he&#8217;s <a href="http://0pointer.de/blog/projects/os-release.html">trying to standardize across distributions</a>. It occurred to me that this file could also replace our <code>/etc/dpkg/origins/default</code> file (and not only <code>/etc/debian_version</code>) provided that it could store ancestry information. After some discussions, he <a href="http://www.freedesktop.org/software/systemd/man/os-release.html">documented new official fields</a> for that file (ID_LIKE, HOME_URL, SUPPORT_URL, BUG_REPORT_URL). Next step for me is to improve dpkg-vendor to support this file (as a fallback or as default, I don&#8217;t know yet).</p>
<h3>Packaging</h3>
<p>I packaged quilt 0.60 (we&#8217;re now down to 9 Debian-specific patches, from a whopping 26 in version 0.48!) and zim 0.55.</p>
<p>In prevision of the next upstream version of Publican, <a href="https://lists.debian.org/debian-perl/2012/03/msg00002.html">I asked the Perl team</a> to package a few Perl modules that Publican now requires. Less than two weeks after, all of them were in Debian Unstable. Congrats and many thanks to the Perl team (and Salvatore Bonaccorso in particular, which I happen to know because we were on the same plane during last Debconf!).</p>
<p>On a side note, being the maintainer of nautilus-dropbox became progressively less fun over the last months, in particular because the <a href="https://bugs.launchpad.net/ubuntu/+source/nautilus-dropbox/+bug/909488">upstream authors tried to override some of the (IMO correct) packaging decisions</a> that I made and got in touch with Ubuntu community managers to try to have their way. Last but not least, I keep getting duplicates of <a href="https://bugs.launchpad.net/ubuntu/+source/nautilus-dropbox/+bug/937546">a bug that is not in my package</a> but in the official package and that Dropbox did not respond to my query.</p>
<h3>Book update</h3>
<p>The translation is finished and we&#8217;re now reviewing the whole book. It takes a bit more time than expected because we&#8217;re trying to harmonize the style and because it&#8217;s difficult to coordinate the work of several volunteer reviewers.</p>
<p>The book cover is now almost finalized (click on it to view it in higher definitions):</p>
<p><a href="http://raphaelhertzog.com/files/2012/04/front-cover.png"><img src="http://raphaelhertzog.com/files/2012/04/front-cover-232x300.png" alt="" title="The Debian Administrator&#039;s Handbook Front Cover" width="232" height="300" class="aligncenter size-medium wp-image-2656" /></a></p>
<p>We also made some progress on the interior design for the paperback. Unfortunately, I have nothing to show you yet. But it will be very nice&#8230; and made with just a LaTeX stylesheet tailored for use with dblatex.</p>
<p>The <a href="http://debian-handbook.info/liberation/">liberation fundraising</a> slowed down with only 41 new supporters this month but it made a nice bump anyway thanks to a generous donation of 1000 EUR by <a href="http://www.offensive-security.com/">Offensive security</a>, the company behind <a href="http://www.backtrack-linux.org/">Backtrack Linux</a>. They will soon communicate on this, hopefully it will boost the operation. It would be really nice if we managed to raise the remaining 3000 EUR in the few weeks left until the official release of the book!</p>
<p>The work on my book dominated the month and explains my relative inactivity on other fronts. I worked much more than usual, and my wife keeps telling me that I look tired and that I should go in bed earlier&#8230; but I see the end of the tunnel: if everything goes well, the book should be released in a few weeks and I will be able to switch back to a saner lifestyle.</p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2012/04/01/my-debian-activities-in-march-2012/#comments">One comment</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2012/04/01/my-debian-activities-in-march-2012/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Debian Activities in February 2012</title>
		<link>http://raphaelhertzog.com/2012/03/01/my-debian-activities-in-february-2012/</link>
		<comments>http://raphaelhertzog.com/2012/03/01/my-debian-activities-in-february-2012/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 09:00:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Activity summary]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Multiarch]]></category>
		<category><![CDATA[quilt]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2596</guid>
		<description><![CDATA[My monthly summary is always a good way to have the latest news of Debian projects that I am working on.]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you&#8217;re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (384.14 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg and multiarch</h3>
<p>The month started with a <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658341#73">decision of the technical committee</a> which allowed me to proceed with an upload of a multiarch dpkg even if Guillem had not yet finished his review (and related changes). Given this decision, Guillem made <a href="http://lists.debian.org/debian-experimental-changes/2012/02/msg00025.html">the experimental upload</a> himself.</p>
<p>I <a href="http://raphaelhertzog.com/2012/02/07/dpkg-with-multiarch-support-available-in-debian-experimental/">announced the availability</a> of this test version and invited people to test it. This lead to <a href="http://lists.debian.org/debian-devel/2012/02/threads.html#00184">new discussions on debian-devel</a>.</p>
<p>We learned in those discussions that Guillem <a href="http://lists.debian.org/20120210225620.GA8782@gaara.hadrons.org">changed his mind</a> about the possibility of sharing (identical) files between multiple <code>Multi-Arch: same</code> packages, and that he dropped that feature. But if this point of the multiarch design had been reverted, it would mean that we had to update again all library packages which had already been updated for multi-arch. The discussions mostly stalled at this point with a final note of Guillem <a href="http://lists.debian.org/20120215011510.GA15353@gaara.hadrons.org">explaining</a> that there was a tension between convenience and doing the right things every time that we discuss far-reaching changes.</p>
<p>After a few weeks (and a <a href="http://lists.debian.org/debian-devel/2012/02/msg00589.html">helpful summary from Russ Allbery</a>), Guillem <a href="http://lists.debian.org/20120301030201.GB8180@gaara.hadrons.org">said</a> that he remained unconvinced but that he put back the feature. He also <a href="http://lists.debian.org/20120229001505.GA2296@gaara.hadrons.org">announced</a> that he&#8217;s close to having completed the work and that he would push the remaining parts of the multiarch branch to master this week (with the 1.16.2 upload planned next week).</p>
<p>That&#8217;s it for the summary. Obviously I participated in the discussions but I didn&#8217;t do much besides this&#8230; I have a &#8220;mandate&#8221; to upload a multiarch dpkg to sid but I did not want to make use of it while those discussions remained pretty unconclusive. Also Guillem made it pretty clear that the multiarch implementation was <a href="http://lists.debian.org/debian-dpkg/2012/02/msg00066.html">&#8220;buggy&#8221;, &#8220;not right&#8221; and &#8220;not finished&#8221;</a> and that he had reworked code fixing at least some of the issues&#8230; since he never shared that work in progress, I also had no way to help even just by reviewing what he&#8217;s doing.</p>
<p>We also got a few multiarch bug reports, but I couldn&#8217;t care to get them fixed since Guillem clearly held a lock on the codebase having done many private changes&#8230; it&#8217;s not quite like this that I expect to collaborate on a free software project but life is full of surprises!</p>
<p>I&#8217;ll be relieved once this story is over. In the mean time, I have added one new thing on my TODO list since I made a <a href="http://lists.debian.org/20120214131720.GD11824@rivendell.home.ouaza.com">proposal to handle bin-nmu changelogs</a> and it&#8217;s something that could also fix <a href="http://bugs.debian.org/440094">#440094</a>.</p>
<h3>Misc dpkg stuff</h3>
<p>After a discussion with Guillem, we agreed that copyright notices should only appear in the sources and not in manual pages or <code>--version</code> output, both of which are translated and cause useless work to translators when updated. Guillem already had some code to do it for <code>--version</code> strings, and I took care of the <a href="http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commit;h=95ea2221c63137e50b50761d9b91ac43ebee3a09">changes for the manual pages</a>.</p>
<p>I merged some minor documentation updates, fixed a bug with a missing manpage. Later I <a href="http://lists.debian.org/20120215161251.GA26551@rivendell.home.ouaza.com">discovered</a> that some recent changes lead to the loss of all the translated manual pages. I suggested an improvement to <code>dh_installman</code> to fix this (and even prepared a <a href="http://lists.debian.org/20120223220259.GA1670@rivendell.home.ouaza.com">patch</a>). In the end, Guillem opted for <a href="http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commitdiff;h=806dfa8237d9e1e3c80a8b096cb1496d930fd34d">another way of installing translated manual pages</a>.</p>
<p>Triggered by a <a href="http://lists.debian.org/4F31C323.9090606@debian.org">discussion on debian-devel</a>, I added a new entry to my TODO list: implementing <code>dpkg-maintscript-helper rm_conffile_if_owner</code> to deal with the case where a conffile is taken over by another package which might (or might not) be installed.</p>
<h3>Misc packaging</h3>
<p>At the start of the month, I packaged quilt 0.51. The number of Debian specific patches is slowly getting down. With version 0.51, we dropped 5 patches and introduced a new one. Later in the month I submitted 4 supplementary patches upstream which have been accepted for version 0.60.</p>
<p>This new version (just released, I will package it soon) is an important milestone since it&#8217;s the first version without any C code (Debian had this for a long time but we were carrying an intrusive patch for this). Upstream developer Jean Delvare worked on this and based his work on our patch, but he went further to make it much more efficient.</p>
<p>Besides quilt, I also uploaded dh-linktree 0.2 (minor doc update), sql-ledger 2.8.36 (new upstream version), logidee-tools 1.2.12 (minor fixes) and publican 2.8-2 (to fix release critical bug <a href="http://bugs.debian.org/660795">#660795</a>).</p>
<h3>Debian Consultants</h3>
<p>The Debian Project Leader is working on federating <a href="http://lists.debian.org/debian-companies/">Debian Companies</a>. As the owner of <a href="http://www.freexian.com">Freexian SARL</a>, I was highly interested in it since Freexian “contributes to Debian, offers support for Debian and has a strategic interest in Debian”. There&#8217;s only one problem, you need to have at least 2 Debian developers on staff but I have no employees (it&#8217;s me only). I tried to argue that I have already worked with multiple Debian developers (as contractors) when projects were too big for me alone (or when I did not have enough time). Alas this argument was not accepted.</p>
<p>Instead, and since our fearless leader is never afraid to propose compromises, he suggested me (and MJ Ray who argued something similar than me) to try to bring life to the <a href="http://lists.debian.org/debian-consultants/">Debian Consultants</a> list which (in his mind) would be more appropriate for one-man companies like mine. I accepted to help &#8220;animate&#8221; the list, and on his side, he&#8217;s going to promote both the &#8220;Debian Companies&#8221; and the &#8220;Debian Consultants&#8221; lists.</p>
<p>In any case, the list has seen some traffic lately and you&#8217;re encouraged to join if you&#8217;re a freelancer offering services around Debian. The most promising thing is that James Bromberger offered to <a href="http://lists.debian.org/debian-consultants/2012/02/msg00020.html">implement a real database of consultants</a> instead of the <a href="http://www.debian.org/consultants/">current static page</a>.</p>
<h3>Book update</h3>
<p>We made quite some progress this month. There&#8217;s only one chapter left to translate. I thus decided to start with proofreading. I made a <a href="https://plus.google.com/111785500145924152411/posts/6Jiuz5FZmZo">call for volunteers</a> and I submitted one (different) chapter to 5 proofreaders.</p>
<p>The <a href="http://debian-handbook.info/liberation/">liberation campaign</a> made a nice leap forwards thanks to good coverage on <a href="http://barrapunto.com/articles/12/02/09/0938234.shtml">barrapunto.com</a>. We have reached 80% while we were only at 72% at the start of the month (thanks to the 113 new supporters!). There&#8217;s thus less than 5000 EUR to raise before the book gets published under a free license.</p>
<p>Looking at the progression in the past months, this is unlikely to be completed on time for the release of the book in April. It would be nice though&#8230; so please share the news around you.</p>
<p>Speaking of the book&#8217;s release, I&#8217;m slowly preparing it. Translating docbook files is not enough, I must be able to generate HTML, ePub and PDF versions of the book. I&#8217;m using <a href="https://fedorahosted.org/publican/">Publican</a> for most formats, but for the PDF version Publican is moving away of fop and the replacement (webkit-based) is far from being satisfactory to generate a book ready for print. So I plan to use <a href="http://dblatex.sourceforge.net/">dblatex</a> and get Publican to support dblatex as a backend.</p>
<p>I have hired Benoît Guillon, the upstream author of dblatex, to fix some annoying bugs and to improve it to suit my needs for the book (some results are already in the upstream CVS repository). I&#8217;m also working with a professional book designer to get a nice design.</p>
<p>I have also started to <a href="https://plus.google.com/111785500145924152411/posts/G9oDQko6iFo">look for a Python Django developer</a> to build the website that I will use to commercialize the book. The website will have a larger goal than just this though (&#8220;helping to fund free software developers&#8221;) but in free software it&#8217;s always good to start with your own case. <img src='http://raphaelhertzog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Hopefully everything will be ready in April. I&#8217;m working hard to meet that deadline (you might have noticed that my blog has been relatively quiet in the last month&#8230;).</p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2012/03/01/my-debian-activities-in-february-2012/#comments">No comment</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2012/03/01/my-debian-activities-in-february-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dpkg with multiarch support available in Debian experimental</title>
		<link>http://raphaelhertzog.com/2012/02/07/dpkg-with-multiarch-support-available-in-debian-experimental/</link>
		<comments>http://raphaelhertzog.com/2012/02/07/dpkg-with-multiarch-support-available-in-debian-experimental/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 08:29:23 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Multiarch]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2576</guid>
		<description><![CDATA[Dpkg with multiarch support has landed in Debian experimental, please test it and help us bring multiarch into shape for Debian wheezy.]]></description>
			<content:encoded><![CDATA[<p><img src="http://raphaelhertzog.com/files/2011/07/modify-package-e1309263139826.jpg" alt="" title="Packaging internals" width="270" height="270" class="alignleft size-full wp-image-1985" />As I <a href="http://lists.debian.org/debian-devel/2012/02/msg00184.html">announced on debian-devel</a>, Guillem Jover <a href="http://lists.debian.org/debian-experimental-changes/2012/02/msg00025.html">uploaded a snapshot</a> of dpkg&#8217;s multiarch branch to experimental (version 1.16.2~wipmultiarch). Beware: There will<br />
likely be some small &#8220;interface&#8221; changes between this version and the version that will be released later in unstable (possibly in the output of <code>dpkg --get-selections</code>, <code>dpkg --list</code>, maybe other commands).</p>
<p>multiarch allows you to install packages from different architectures on the same machine. This can be useful if your computer can run programs from 2 architectures (eg. x86 CPU supporting i386 and amd64), or if you often need to cross-compile software and thus need the libraries of your target architecture.</p>
<h3>Test dpkg with multiarch support</h3>
<p>If you want to test multiarch support in dpkg, install the package from experimental (<code>apt-get install dpkg/experimental</code> assuming you have experimental in your sources.list).</p>
<p>Then you can add a supplementary architecture to your system by doing <code>sudo dpkg --add-architecture &lt;arch&gt;</code> (e.g. i386 if you are on amd64, and vice-versa). APT will automatically pick up the new architecture and start downloading the Packages file for the new architecture (it uses <code>dpkg --print-foreign-architectures</code> to know about them).</p>
<p>From there on you can install packages from the &#8220;foreign&#8221; architectures with &#8220;<code>apt-get install foo:&lt;arch&gt;</code>&#8220;. Many packages will not be installable because some of their dependencies have not yet been updated to work with in a multiarch world (libraries must be installed in a multiarch-compliant path so as to be co-installable, and then marked &#8220;<code>Multi-Arch: same</code>&#8220;). Other dependencies might need to be marked &#8220;<code>Multi-Arch: foreign</code>&#8220;. See <a href="http://wiki.debian.org/Multiarch/Implementation">wiki.debian.org/Multiarch/Implementation</a> for more HOWTO-like explanations.</p>
<p>Now is a good time to see if you can install the foreign packages that you could need in such a setup and to help to convert the required libraries.</p>
<p>You can also read <a href="http://blog.mraw.org/2012/02/01/dpkg_with_multiarch/">Cyril Brulebois&#8217; article</a> which quickly shows how to hunt for the problematic packages which have not been converted to multiarch (in his sample, &#8220;ucf&#8221; is not ready. Since it&#8217;s an &#8220;<code>Architecture: all</code>&#8221; package which can run on any architecture, it means that it&#8217;s lacking a &#8220;<code>Multi-Arch: foreign</code>&#8221; field).</p>
<h3>Report bugs</h3>
<p>If you discover any bug in dpkg&#8217;s multiarch implementation, please report it to the Bug Tracking System (against &#8220;dpkg&#8221; with the version &#8220;1.16.2~wipmultiarch&#8221;).</p>
<p>If you notice important libraries or packages which are not yet multiarch ready, please open wishlist bug reports requesting the conversion and point the maintainers towards the wiki page linked above. Even better, prepare patches and submit those with your bug reports.</p>
<p>Again, you can follow the <a href="http://blog.mraw.org/2012/02/06/dpkg_with_multiarch_redux/">lead of Cyril Brulebois</a> who filed 6 bugs!</p>
<h3>Review the multiarch implementation</h3>
<p>If you&#8217;re a C programmer and have some good knowledge of dpkg (or are willing to learn more of it), we would certainly benefit from more eyes reviewing the multiarch branch. If you want to discuss some design issues of the multiarch implementation in dpkg (or have questions related to your review), please get in touch via <a href="mailto:debian-dpkg@lists.debian.org">debian-dpkg@lists.debian.org</a>.</p>
<p>The latest version of the branch is pu/multiarch/master in <a href="http://git.hadrons.org/?p=debian/dpkg.git;a=shortlog;h=refs/heads/pu/multiarch/master">Guillem&#8217;s personal repository</a>.  I have my own version of the branch (<a href="http://anonscm.debian.org/gitweb/?p=users/hertzog/dpkg.git;a=shortlog;h=refs/heads/pu/multiarch/full">pu/multiarch/full</a>) which is usually a snapshot of Guillem&#8217;s branch with my own submitted fixes.</p>
<pre>
$ git clone git://git.debian.org/dpkg/dpkg.git
$ cd dpkg
$ git remote add guillem git://git.hadrons.org/git/debian/dpkg/dpkg.git
$ git remote add buxy git://git.debian.org/~hertzog/dpkg.git
$ git fetch guillem &#038;&#038; git fetch buxy
</pre>
<p>If you followed the instructions above, the relevant branches are thus guillem/pu/multiarch/master and buxy/pu/multiarch/full. Both branches are regularly rebased on top of master where Guillem merges progressively the commits from the multi-arch branch as his review progresses.</p>
<p>Thank you in advance for your help bringing multiarch in shape for Debian Wheezy, </p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2012/02/07/dpkg-with-multiarch-support-available-in-debian-experimental/#comments">6 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2012/02/07/dpkg-with-multiarch-support-available-in-debian-experimental/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>My Debian Activities in January 2012</title>
		<link>http://raphaelhertzog.com/2012/02/01/my-debian-activities-in-january-2012/</link>
		<comments>http://raphaelhertzog.com/2012/02/01/my-debian-activities-in-january-2012/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 15:20:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Activity summary]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[DEP-2]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Multiarch]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2555</guid>
		<description><![CDATA[My monthly summary is always a good way to have the latest news of Debian projects that I am working on.]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you&#8217;re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (213.68 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg</h3>
<p>The &#8220;biggest change&#8221; I made is a <a href="http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commitdiff;h=2b6e4e5f2667538d93d8a6beb92abaf2f6137191">small patch</a> that brings to an end years and years of recurring discussions about the build-arch and build-indep targets of debian/rules (see <a href="http://bugs.debian.org/229357">#229357</a>). Last year the technical committee took this issue in its hands (see <a href="http://bugs.debian.org/629385">#629385</a>) but it failed to take any resolution. Fortunately thanks to this we got some concrete numbers on the colateral damages inflicted on the archive for each possible approach. In the end, Guillem and I managed to agree on the way forward.</p>
<p>The remaining of what I did as dpkg maintainer has not much to do with coding. I reviewed the work of Gianluca Ciccarelli on dpkg-maintscript-helper who is trying to provide helper functions to handle migration between directories and symlinks. I also <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608930#105">reviewed</a> a 2000-lines patch from Patrick Schoenfeld who&#8217;s trying to provide a perl API to parse dpkg log files and extract meaningful data out of them.</p>
<p>I updated the dpkg-architecture manual page to document the Makefile snippet /usr/share/dpkg/architecture.mk and to drop information that&#8217;s no longer releveant nowadays.</p>
<p>I <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00010.html">reviewed</a> a <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00000.html">huge patch</a> prepared by Russ Allbery to update the Debian policy and document the usage of symbols files for libraries. As the author of dpkg-gensymbols, I was keen to see it properly documented at the policy level.</p>
<p>I brought up for discussion a <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00041.html">detail</a> that was annoying me for quite some time: some copyright notices were embedded in translatable strings and updating them resulted in useless work for translators. In the end we decided to drop those notices and to keep them only at the source level.</p>
<p>I updated my multiarch branch on top of Guillem&#8217;s branch several times, all the fixes that were in my branch have been integrated (often in a modified form).</p>
<p>Unfortunately even if the code works quite well, Guillem doesn&#8217;t want to release anything to Debian until he has finished to review everything&#8230; and many people are annoyed by the unreasonable delay that it imposes. Cyril Brulebois <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00035.html">tried</a> <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00038.html">to</a> <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00044.html">release</a> a <a href="http://lists.debian.org/debian-experimental-changes/2012/01/msg00186.html">snapshot</a> of the current multiarch branch to experimental but Guillem has been prompt to <a href="http://lists.debian.org/debian-experimental-changes/2012/02/msg00000.html">revert</a> this upload.</p>
<p>I&#8217;m somewhat at a loss in this situation. I offered my help to Guillem multiple times but he keeps doing his work in private, he doesn&#8217;t share many details of his review except some comments in commit logs or when it affects the public interface. I <a href="http://lists.debian.org/debian-dpkg/2012/01/msg00053.html">complained once more</a> of this sad situation.</p>
<h3>Debian Package Maintenance Hub</h3>
<p>That&#8217;s the codename I use for a new infrastructure that I would like to develop to replace the Package Tracking System and the DDPO and several other services. I started to draft a Debian Enhancement Proposal (DEP), see <a href="http://dep.debian.net/deps/dep2/">DEP-2</a>, and <a href="http://lists.debian.org/debian-qa/2012/01/msg00070.html">requested some comments</a> within the QA team.</p>
<p>For now, it looks like that nobody had major objections on the driving idea behind this project. Those who commented were rather enthusiastic. I will continue to improve this DEP within the QA team and at some point I will bring the discussion to a larger audience like debian-devel@lists.debian.org.</p>
<h3>Package Tracking System</h3>
<p>Even if I started to design its replacement, the PTS will still be used for quite some time so I implemented two new features that I deemed important: displaying a TODO notice when there is (at least) one open bug related to a release goal, displaying a notice when the package is involved in an ongoing or upcoming transition.</p>
<h3>Misc packaging tasks</h3>
<p>I created and uploaded the <a href="http://packages.debian.org/unstable/dh-linktree">dh-linktree</a> package which is a debhelper addon to create symlink trees (useful to replace embedded copies of PHP/JavaScript libraries by symlinks to packaged copies of those files).</p>
<p>I packaged <a href="http://packages.qa.debian.org/quilt">quilt</a> 0.50. I helped the upstream authors to merge a Debian patch that had been forwarded by Martin Quinson (a quilt&#8217;s co-maintainer). I packaged a security release of <a href="http://packages.qa.debian.org/wordpress">WordPress</a> (3.3.1) and a new upstream release of <a href="http://packages.qa.debian.org/feed2omb">feed2omb</a> and <a href="http://packages.qa.debian.org/gnome-shell-timer">gnome-shell-timer</a>.</p>
<p>I prepared a new Debian release of <a href="http://packages.qa.debian.org/python-django">python-django</a> with a patch cherry-picked from the upstream SVN repository to fix the RC bug #655666.</p>
<h3>Book update</h3>
<p>We&#8217;re again making decent progress in the translation of <a href="http://debian-handbook.info/">the Debian Administrator&#8217;s Handbook</a>, about 12 chapters are already translated.</p>
<p>The <a href="http://debian-handbook.info/liberation/">liberation campaign</a> is also (slowly) going forward. We&#8217;re at 72% now (thanks to 63 new supporters!) while we were only at 67% at the start of January.</p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2012/02/01/my-debian-activities-in-january-2012/#comments">5 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2012/02/01/my-debian-activities-in-january-2012/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>My Debian Activities in December 2011</title>
		<link>http://raphaelhertzog.com/2012/01/03/my-debian-activities-in-december-2011/</link>
		<comments>http://raphaelhertzog.com/2012/01/03/my-debian-activities-in-december-2011/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 13:27:17 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Activity summary]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[ledgersmb]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[nautilus-dropbox]]></category>
		<category><![CDATA[quilt]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2464</guid>
		<description><![CDATA[My monthly summary is always a good way to have the latest news of Debian projects that I am working on.]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you&#8217;re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (364.18 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg and Multiarch</h3>
<p>I had some hope to have a multiarch-enabled dpkg in sid for Christmas as Guillem told me that it was realistic. Alas Guillem got sick. We&#8217;re in January and we&#8217;re still not there.</p>
<p>While some of Guillem&#8217;s commits in December were related to multi-arch, the size of his <a href="http://git.hadrons.org/?p=debian/dpkg.git;a=shortlog;h=refs/heads/pu/multiarch/master">pu/multiarch/master</a> branch did not really shrink. We still have 36 commits to merge&#8230; most of the work he did was refactoring some parts of the code that were already merged. And he initiated some discussion on <a href="http://lists.debian.org/debian-dpkg/2011/12/msg00005.html">interface changes</a>. I participated to those discussions hoping to bring them to a quick resolution.</p>
<p>I&#8217;m still maintaining my own <a href="http://anonscm.debian.org/gitweb/?p=users/hertzog/dpkg.git;a=shortlog;h=refs/heads/pu/multiarch/full">pu/multiarch/full</a> branch, it is based on Guillem&#8217;s branch but with <a href="http://lists.debian.org/debian-dpkg/2011/12/msg00001.html">further</a> <a href="http://bugs.debian.org/652063">fixes</a> that I developed and that he has not yet merged</a> and with a change reverted (Guillem&#8217;s branch allows crossgrading packages between different architectures while dpkg does not manage this correctly yet).</p>
<p>I can only hope that January will be the last month of this never-ending saga. It&#8217;s been one year since I started working on this project. <img src='http://raphaelhertzog.com/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
<h3>Misc dpkg work</h3>
<p>I reviewed (and later merged) a patch of Kees Cook to enhance dpkg-buildflags so that it can report which hardening features are enabled. This feature might then be used by tools like lintian to detect missing hardening features.</p>
<p>I <a href="http://lists.debian.org/debian-dpkg/2011/12/threads.html#00008">mentored Gianluca Ciccarelli</a> who is trying to enhance dpkg-maintscript-helper to take care of replacing a directory by a symlink and vice-versa.</p>
<p>I took care of <a href="http://bugs.debian.org/651993">#651993</a> so that dpkg-mergechangelogs doesn&#8217;t fail when it encounters an invalid version in the changelog, and of <a href="http://bugs.debian.org/652414">#652414</a> so that <code>dpkg-source --commit</code> accepts a relative filename when a patch file is explicitly given.</p>
<p>Guillem also <a href="http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commitdiff;h=c07f7fea4206bc002578b2032871c9f63457bde8">merged a fix</a> I developed for <a href="http://bugs.launchpad.net/bugs/369898">LP#369898</a>.</p>
<h3>Packaging work</h3>
<p><a href="http://packages.qa.debian.org/wordpress">WordPress</a> 3.3 came out so I immediately packaged it. Despite my <a href="http://core.trac.wordpress.org/ticket/19065">upstream bug report</a>, they did not update their <a href="http://wordpress.org/download/source/">GPL compliance page</a> which offers the corresponding sources for what&#8217;s bundled in the tarball. So I hunted for the required sources myself, and bundled them in the debian.tar.xz of the Debian source package. It&#8217;s a rather crude solution but this allowed me to close the release critical bug <a href="http://bugs.debian.org/646729">#646729</a> and to reintroduce the Flash files that were dropped in the past&#8230; which is great since the Flash-based file uploader is nicer than the one using the browser&#8217;s file field.</p>
<p><a href="http://packages.qa.debian.org/quilt">Quilt</a> 0.50 came out after 2 years of (slow) development. The Debian package has many patches and several of them had to be updated to cope with the new upstream release. Fortunately some of them were also merged upstream. It still took an entire morning to complete this update. I also converted the packaging from CDBS to dh with a short rules file.</p>
<p><a href="http://packages.qa.debian.org/zim">Zim</a> 0.54 came out and I immediately updated the package since it fixed a <a href="https://bugs.launchpad.net/zim/+bug/872311">bug that was annoying me</a>.</p>
<h3>Review of the ledgersmb packaging</h3>
<p>As the sql-ledger maintainer (and a user of this software for my accounting), I have been hoping to get ledgersmb packaged as a possible replacement for it. I have been following the various efforts initiated over time but none of them resulted in a real package in Debian.</p>
<p>This is a real pity so I tried to fix this by offering to sponsor package uploads. That&#8217;s why I did a <a href="http://lists.alioth.debian.org/pipermail/pkg-sql-ledger-discussion/2011-December/000145.html">first review</a> of the packaging. It took several hours because you have to explain everything that&#8217;s not good enough.</p>
<p>I also filed a wishlist bug against lintian (<a href="http://bugs.debian.org/652963">#652963</a>) to suggest that lintian should detect improper usage of dpkg-statoverride (this is a mistake that was present in the package that I reviewed).</p>
<h3>nautilus-dropbox work</h3>
<p>I wanted to polish the package in time for the Ubuntu LTS release and since Debian Import Freeze is in January, I implemented some of the important fixes that I wanted.</p>
<p>The Debian package diverges from upstream in that the non-free binaries are installed in /var/lib/dropbox/ instead of $HOME.<br />
Due to a bug, the files were not properly root-owned so I first fixed this (unpacking the tarball as root lead to reuse of the embedded user &#038; group information, and those information changed recently on the Dropbox side apparently).</p>
<p>Then we recently identified other problems related to proxy handling (see <a href="http://bugs.debian.org/651065">#651065</a>). I fixed this too because it&#8217;s relatively frequent that the initial download triggered during the package configuration fails&#8230; and in that case it&#8217;s the user that will re-trigger a package download after having given the appropriate credentials through PackageKit. Without my fix, usage of pkexec would imply the loss of the http_proxy environment variable and thus it would not be possible for a user to download through a proxy.</p>
<p>Last but not least I reorganized the Debian specific patches to better separate what can and should be merged upstream, from the changes that upstream doesn&#8217;t want. Unfortunately Dropbox insists on being able to auto-update their non-free binaries, they are, thus, against the installation under /var/lib/dropbox and the corresponding changes.</p>
<h3>Book update</h3>
<p>We&#8217;re making decent progress in the translation of <a href="http://debian-handbook.info/">the Debian Administrator&#8217;s Handbook</a>, about 6 chapters are already translated (not yet reviewed though).</p>
<p>The <a href="http://debian-handbook.info/liberation/">liberation campaign</a> is also (slowly) going forward. We&#8217;re at 67% now (thanks to 90 new supporters!) while we were only at 60% at the start of December.</p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2012/01/03/my-debian-activities-in-december-2011/#comments">2 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2012/01/03/my-debian-activities-in-december-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Debian Activities in November 2011</title>
		<link>http://raphaelhertzog.com/2011/12/02/my-debian-activities-in-november-2011/</link>
		<comments>http://raphaelhertzog.com/2011/12/02/my-debian-activities-in-november-2011/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 10:30:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Handbook]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[nautilus-dropbox]]></category>
		<category><![CDATA[PTS]]></category>
		<category><![CDATA[publican]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2303</guid>
		<description><![CDATA[My monthly summary is always a good way to have the latest news of Debian projects that I am working on. This month a dpkg backport, further work on multiarch, bug triaging, various package uploads, a translation of a chapter of my book, and more.]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you’re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (310.73 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg: Multi-Arch Saga</h3>
<p>I know lots of people are waiting the landing of multiarch in Debian unstable, and so am I. Things are progressing, though not as quickly as I hoped. Guillem merged about half of the branch between the 24th October and the 6th of November. After that most of the work happened on his personal repository in his <a href="http://git.hadrons.org/?p=debian/dpkg.git">pu/multiarch/master</a> branch.</p>
<p>I verify this repository from time to time because Guillem does not inform me when he has made progress. I noticed changes on his repository on the 10th, 19th, 23th, 28th of November and on the 1th of December.</p>
<p>He announced a long time ago that he had some &#8220;interface changes&#8221; and up to now only wrote about the switch from the command-line option <code>--foreign-architecture</code> (to put in /etc/dpkg/dpkg.cfg) to the explicit command <code>dpkg --add-architecture</code> that only needs to be called once (see <a href="http://lists.debian.org/20111118094506.GA7073@gaara.hadrons.org">mail here</a>). As of today (December 2th), the promised email for the other interface changes is still not here.</p>
<p>On November 23th, I <a href="http://lists.debian.org/20111125162132.GA8044@rivendell.home.ouaza.com">reviewed Guillem&#8217;s work</a> and <a href="http://lists.debian.org/20111126010540.GA18646@rivendell.home.ouaza.com">tried to run the code in his branch</a>. I spent the whole day chasing up regressions and submitted lots of fixes to Guillem. Thanks to the extensive test-suite I wrote when I developed my branch, it has been fairly easy to track them all down.</p>
<p>All the issues I reported have been fixed in the latest version of Guillem&#8217;s branch although the fixes are often slightly different from those that I submitted.</p>
<h3>Dpkg: Squeeze Backport</h3>
<p>At the start of the month, I uploaded what I expected to be a fairly uncontroversial backport of dpkg 1.16.1.1. It turns out <a href="http://lists.debian.org/20111102153239.GF17115@rivendell.home.ouaza.com">I was wrong</a>.</p>
<p>After some discussion, I think we came to an agreement that it was acceptable to backport dpkg-dev and libdpkg-perl only. My goal was not to bring the latest dpkg to users but to make it easier for package maintainers to backport packages using new features provided by dpkg-dev >= 1.16 (such as hardening build flags, the makefile snippets provided in /usr/share/dpkg/, or the improved dpkg-buildflags interface).</p>
<p>Thus I modified the source package uploaded to squeeze-backports to build only dpkg-dev and libdpkg-perl. It has been uploaded on November 23th and it&#8217;s waiting in the NEW queue for a backports admin to process it.</p>
<h3>Misc Dpkg Work</h3>
<p>I merged a <a href="http://bugs.debian.org/648180">patch of Colin Watson</a> to be able to verify build-dependencies for a foreign architecture (taking into account the Multi-Arch status of each package listed).</p>
<p>I released dpkg 1.16.1.2 with two minor fixes that were sitting in the sid branch. I wanted to get rid of this so that the path is clear for a 1.16.2 upload with multiarch. The package just migrated to testing so we&#8217;re fine.</p>
<p>I spent another day doing dpkg bug triaging on Launchpad, we&#8217;re now down to <a href="https://bugs.launchpad.net/ubuntu/+source/dpkg">77 bugs</a> with many of them tagged as incomplete and likely to expire in 2 months.</p>
<h3>The Debian Administrator&#8217;s Handbook</h3>
<p><a href="http://debian-handbook.info/liberation/"><img src="http://debian-handbook.info/files/2011/06/ebook-128x128.png" alt="eBook" style="float: right;" height="128" width="128"></a>We released a sample chapter so that it&#8217;s easier to have an idea of the quality of the book. The chapter covers the APT tools quite extensively. I bet that even you could learn something about apt-get/aptitude&#8230;</p>
<p>The <a href="http://www.ulule.com/debian-handbook/">crowfunding campaign on Ulule</a> ended on November 28th.<br />
With 673 supporters, we raised 24345 EUR. Of those, 14935 EUR have been put in the liberation fund and the rest corresponds to the various pre-orders and rewards offered.</p>
<p>This means that the translation will happen (we just started) but that the book is currently not going to be released under a free license. Don&#8217;t despair&#8230; As <a href="http://debian-handbook.info/faq/#q2.3">planned</a>, the <a href="http://debian-handbook.info/liberation/">liberation campaign</a> is carried on until the 25 K€ target is reached!</p>
<p>Instead of being hosted on Ulule, this permanent campaign is on the project website at <a href="http://debian-handbook.info/liberation/">debian-handbook.info/liberation/</a>. Note that any contribution of 10 EUR or more means that you get a copy of the ebook as soon as it&#8217;s available (even if the liberation target is not reached).</p>
<h3>Package Tracking System</h3>
<p>At the start of the month, I filed two ideas of improvements for the PTS in the bug tracking system: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647258">#647258</a> is about showing outstanding bugs that relate to a release goal and <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647901">#647901</a> is about warning maintainers that the package is affected by a current transition. If you&#8217;re a coder and want to start contributing to Debian and its QA team, those bugs could be interesting targets for a start. <img src='http://raphaelhertzog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  In both cases, I have been in contact with members of the release team because those ideas require some structured data from the release team as input. Thanks to Meddi Dohguy and Niels Thykier for their help.</p>
<p>Later in the month, the topic of relocating the PTS once again came up. For historical reasons, the PTS was hosted on master.debian.org together with the BTS. Nowadays the BTS has its own host and it made no sense anymore to have the PTS separate from the rest of the QA services hosted on qa.debian.org (currently quantz.debian.org). So together with Martin Zobel Helas we took care to plan the migration and on November 19th we executed the plan. It worked like a charm and almost nobody noticed (only one undocumented dependency was missed, which <a href="http://bugs.debian.org/649849">broke the SOAP interface</a>).</p>
<h3>Misc Packaging Work</h3>
<p>WordPress was broken in Ubuntu and it was also not properly synchronized with Debian due to an almost useless change on their side. Thus <a href="https://bugs.launchpad.net/bugs/886876">I requested a sync</a> so that the working version from Debian gets imported in Ubuntu.</p>
<p>I sponsored the docbook-xsl 1.76.1 upload that I needed for Publican. Then I updated Publican just to discover that the test-suite triggers a new bug in fop (filed as <a href="http://bugs.debian.org/649476">#649476</a>). I disabled the test-suite temporarily and uploaded Publican 2.8 to unstable. BTW, I also filed 2 upstream bugs with patches for issues I discovered while trying to generate the sample chapter of my book (see <a href="https://bugzilla.redhat.com/show_bug.cgi?id=752851">here</a> and <a href="https://bugzilla.redhat.com/show_bug.cgi?id=754340">here</a>).</p>
<p>I uploaded a version 0.7.1 of nautilus-dropbox and fixed <a href="http://bugs.debian.org/648215">#648215</a> at the same time. I made an <acronym title="Non-Maintainer Upload">NMU</acronym> of bison to fix a long-standing release critical bug that hit me once more during an upgrade (see <a href="http://bugs.debian.org/645038">#645038</a>).</p>
<p>I uploaded to experimental a new version of gnome-shell-timer compatible with GNOME 3.2. I took the opportunity to install from experimental the few <a href="http://www.0d.be/debian/debian-gnome-3.2-status.html">GNOME 3.2 packages</a> which are not yet in unstable&#8230;</p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2011/12/02/my-debian-activities-in-november-2011/#comments">7 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2011/12/02/my-debian-activities-in-november-2011/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>My Debian activities in October 2011</title>
		<link>http://raphaelhertzog.com/2011/11/01/my-debian-activities-in-october-2011/</link>
		<comments>http://raphaelhertzog.com/2011/11/01/my-debian-activities-in-october-2011/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 09:18:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Handbook]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[nautilus-dropbox]]></category>
		<category><![CDATA[python-django]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2251</guid>
		<description><![CDATA[This is my monthly summary of my Debian related activities. If you’re among the people who made a donation to support my work (130.30 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects. Dpkg work The month started with fixing newly [...]]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you’re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (130.30 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg work</h3>
<p>The month started with fixing newly reported bugs to prepare the 1.16.1.1 release:</p>
<ul>
<li><a href="http://bugs.debian.org/644492">#644492</a>: there was a flaw in a change I made to the trigger setup code. This resulted in packages being incorrectly marked as configured while they were only unpacked in a new chroot.</li>
<li><a href="http://bugs.debian.org/642656">#642656</a>: dpkg-source&#8217;s refusal to build when it detects unrecorded changes broke the (mostly unused, except by the lintian test suite apparently) “2.0” source format.</li>
<li><a href="http://bugs.debian.org/644412">#644412</a>: the Makefile snippet “buildflags.mk” did not respect the new maintainer specific environment variables (like DEB_CFLAGS_MAINT_APPEND) because make does not forward environment variable through <code>$(shell …)</code>. Fixed that by manually exporting the required variables.</li>
<li>I also disabled dpkg-buildpackage&#8217;s output of the build flags since it was confusing several maintainers. dpkg-buildpackage invokes debian/rules and it has no (clean) way to discover the build flags changes that maintainer request by setting the dedicated environment variables in debian/rules. Maintainers expect to see the build flags with the modifications they have requested and not just the default values set by the distribution.</li>
</ul>
<p>With the help of Guillem, we decided on a proper fix for a race condition sometimes triggered by parallel builds when 2 concurrent dpkg-gencontrol try to update debian/files (see <a href="http://bugs.debian.org/642608">#642608</a>). This ended up requiring a new package (libfile-fcntllock-perl) that the Debian perl team kindly packaged for us. With all this sorted, it was a rather easy fix.</p>
<h4>Multiarch progress</h4>
<p>I also spent lots of time on multiarch. I fixed an old bug that requested to support the multi-arch paths in case of cross-building (see <a href="http://bugs.debian.org/595144">#595144</a>), the discussion was not really conclusive on which of the two proposed patches was better so I ended up picking my own patch because it was closer to how we currently deal with cross-building. Then I fixed 2 issues that have been reported on Ubuntu&#8217;s dpkg. The first one (<a href="https://bugs.launchpad.net/bugs/863675">LP #863675</a>) was rather severe since an installed package ended being &#8220;disappeared&#8221; in favor of its foreign counterpart that was removed (but that had some config files left). The second one (<a href="https://bugs.launchpad.net/bugs/853679">LP #853679</a>) only affected dselect users (apparently there are still some!) who had a self-conflicting library (Provides: foo, Conflicts: foo) installed for multiple architectures.</p>
<p>But the bulk of the time spent on multiarch has been spent discussing with various parties on how to go forward with multiarch. The release team <a href="http://lists.debian.org/debian-dpkg/2011/10/msg00050.html">commented on the schedule of the merge</a> to ensure it makes it into Wheezy, and the Debian project leader also <a href="http://lists.debian.org/debian-dpkg/2011/10/msg00060.html">commented on the problems encountered so far</a>.</p>
<p>While not the best course of action I could have hoped for, it certainly helped since Guillem started pushing some reviewed commits. Out of the 66 commits that were in my pu/multiarch/full branch one week ago, 20 have been merged in the master branch already.</p>
<h3>Python-django security update and RC bug</h3>
<p>Since python-django&#8217;s maintainer did not manage to prepare the required security updates, I stepped in and prepared version 1.2.3-3+squeeze2 for Squeeze and 1.0.2-1+lenny3 for Lenny. Unfortunately this <a href="http://bugs.debian.org/641405">security update</a> is an example of how an inactive maintainer is likely to result in a severe delay for the release of security updates.</p>
<p>Furthermore in this specific case, the security team did not want to release the Squeeze security update until the Lenny one had been investigated (which required some time since upstream no longer supports the version in Lenny) but they did not make this very clear.</p>
<p>Later another release critical bug had been filed against the package (<a href="http://bugs.debian.org/646634">#646634</a>) but after investigation, it turned out to be a local configuration problem so I downgraded it. I still <a href="https://code.djangoproject.com/ticket/17116">forwarded the test suite failure</a> to upstream authors since the test could be enhanced.</p>
<p>In any case, co-maintainers for python-django are welcome. I really preferred the situation where I can quietly sit down as backup maintainer&#8230; <img src='http://raphaelhertzog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>WordPress packaging</h3>
<p>WordPress sounds similar to python-django. I&#8217;m also &#8220;only a backup maintainer&#8221; but Giuseppe has been inactive for many months and I had to step in August because I wanted the new upstream version. I discovered a bit late that I was not subscribed to wordpress&#8217; bugs and thus the release critical bug <a href="http://bugs.debian.org/639733">#639733</a> (that I introduced with my new upstream version) went unattended for a rather long time. Once aware, though, I quickly fixed it.</p>
<p>I also took the opportunity to start a discussion on debian-devel about <a href="http://lists.debian.org/debian-devel/2011/10/msg00558.html">how to deal with embedded javascript libraries</a> and proposed a mechanism of &#8220;opportunistic replacement with symlinks&#8221;. WordPress is my testbed package for this mechanism, you can check out its <a href="http://anonscm.debian.org/gitweb/?p=collab-maint/wordpress.git;a=blob;f=debian/dh_linktree;hb=master">debian/dh_linktree</a> that implements the replacement logic.</p>
<p>The discussion has not been very interesting but at least I learned that Debian now requires that each source package shipping minified javascript files includes the original files too. It&#8217;s somewhat of a pain since it&#8217;s not a license requirement in many cases (many of those libraries are not under the GPL), but just a Debian requirement that many upstreams are not complying with. WordPress is affected and Jakub Wilk thus opened <a href="http://bugs.debian.org/646729">#646729</a> which is going to be a long-standing RC bug. To give good measures, I spent several hours investigating the case of each javascript file in the WordPress source package and I filed a <a href="http://core.trac.wordpress.org/ticket/19065">new ticket on the upstream bugtracker</a>.</p>
<h3>Dropbox packaging work</h3>
<p>A few months after the <a href="http://raphaelhertzog.com/2011/06/06/official-debian-ubuntu-packages-for-nautilus-dropbox/">introduction of nautilus-dropbox to Debian and Ubuntu</a>, I can say that the decision to only support the download of dropbox in the postinst has been a mistake. Because of this decision I had to make the postinst fail if the download failed. Even if the error message is relatively clear, this lead to many (mostly automated) bug reports on the Ubuntu side. Various other problems cropped up on top of this (trying to start dropbox while the package was not configured would result in an error because the user did not have the required rights to install the software, reinstalling the package while dropbox was running would result in a failure too, etc.).</p>
<p>I have fixed all those issues in the version 0.7.0-2 of the package. Now if the user has to install dropbox, it will use PolicyKit to request the root rights. The postinst will no longer fail if the dropbox download fails since it can be run later by the user. And I fixed the download code to remove the replaced file before unpacking a new file (insead of overwriting the existing file). All this work has been forwarded upstream.</p>
<h3>The Debian Administrator&#8217;s Handbook Update</h3>
<p>I&#8217;m glad to tell you that the <a href="http://debian-handbook.info/2011/the-translation-will-happen-now-towards-the-liberation/">translation will happen</a> because we reached the minimal funding goal on October 22th with the help of 380 supporters.</p>
<p><img src="http://raphaelhertzog.com/files/2011/11/debian-handbook-new-300x168.jpg" alt="" title="Debian Handbook Banner" width="300" height="168" class="aligncenter size-medium wp-image-2333" /></p>
<p>Now the fundraising continues, but this time the goal is the liberation of the resulting book. For this to happen, we need to reach 25000 EUR in the liberation fund. So far we&#8217;re at 37% of this goal with 9400 EUR in the liberation fund (which means that 59% of the money raised has been put in the liberation fund).</p>
<p class="action-call"><a href="http://debian-handbook.info/go/ulule-rh/">Click here if you want to contribute towards the liberation of this book.</a></p>
<p>With (less than) 27 days left, it&#8217;s going to be a challenge to meet the goal, but we do like challenges, don&#8217;t we?</p>
<h3>Misc work</h3>
<ul>
<li>I filed <a href="http://bugs.debian.org/644486">#644486</a> against dh-make so that new packages have proper support of dpkg-buildflags from the start.</li>
<li>I merged lots of patches from Luca Falavigna in the developers-reference.</li>
<li>I discussed debtags integration in the PTS with Enrico Zini and Paul Wise.</li>
<li>I updated publican&#8217;s packaging for the new upstream version 2.8. I had to write a new patch that <a href="https://bugzilla.redhat.com/show_bug.cgi?id=747871">I forwarded upstream</a>.</li>
<li>I filed an <a href="https://bugzilla.gnome.org/show_bug.cgi?id=662668">upstream bug on hamster-applet</a> because just running hamster-time-tracker no longer brings its window forward.</li>
</ul>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2011/11/01/my-debian-activities-in-october-2011/#comments">3 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2011/11/01/my-debian-activities-in-october-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My Debian activities in September 2011</title>
		<link>http://raphaelhertzog.com/2011/10/07/my-debian-activities-in-september-2011/</link>
		<comments>http://raphaelhertzog.com/2011/10/07/my-debian-activities-in-september-2011/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 14:19:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian Handbook]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Me]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2115</guid>
		<description><![CDATA[This is my monthly summary of my Debian related activities. If you’re among the people who made a donation to support my work (144.3 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects. Dpkg work While taking care of the last [...]]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you’re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (144.3 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg work</h3>
<p>While taking care of the last details for the hardening feature in dpkg 1.16.1, I have <a href="http://lists.debian.org/debian-devel/2011/09/msg00054.html">mailed debian-devel</a> to find volunteers to handle a <a href="http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags">hardening release goal</a>. The objective is to ensure a large number of packages have been converted/rebuilt to actually use the new hardening build flags.</p>
<p>Then I prepared the draft of the announce of the dpkg 1.16.1 upload (aka <a href="http://lists.debian.org/debian-devel-announce/2011/09/msg00001.html">Bits of dpkg maintainers</a> sent to debian-devel-announce) which got expanded by Guillem to also cover new features since dpkg 1.15.7.</p>
<p>update-alternatives got some refactoring by Guillem which resulted in a regression that has been fortunately discovered by Sven Joachim. I fixed that regression and did some further cleanup inspired by the root cause of this regression (see <a href="http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=shortlog;h=3609b52cca240eea58735907d9810486f560e5fe">top 4 commits here</a>).</p>
<p>Note that Sven is one of the few persons who are running the git version of dpkg. Hopefully the number of tester will increase since I recently documented the <a href="http://wiki.debian.org/Teams/Dpkg/Contribute#Use_the_Git_version_of_dpkg_and_report_problems">APT repositories with autobuilt versions of dpkg</a> in the wiki.</p>
<p>At the end of the month, I started working on a bugfix release (what&#8217;s going to be 1.16.1.1) by fixing some of the unavoidable problems discovered after an upload that accumulated more than 4 months worth of work (see <a href="http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=shortlog;h=570886809efd1b551072fe52ccfd4e50a4175375">top 4 commits here</a>).</p>
<h3>The Debian Administrator&#8217;s Handbook</h3>
<p>I spent countless hours finalizing the launch of the crowdfunding campaign for the Debian Administrator&#8217;s Handbook and it <a href="http://raphaelhertzog.com/2011/09/27/do-you-want-a-free-debian-book-read-this/">went live on September 27th</a>.</p>
<p>So far it&#8217;s on good track with more than 63% of the base funding already secured. But we still have a long way to go to reach the liberation goal (we&#8217;re at 21%). It&#8217;s still worth nothing that more than 55% of the money raised has been put in the liberation fund so there are many persons who care about getting the book freed.</p>
<p>More than 250 persons are supporting the project currently with an average contribution of 38 EUR. I would have expected much less for the average contribution but many more supporters. I still hope we can get more people on board with the perspective of a good DFSG-free Debian ebook.</p>
<p><a href="http://debian-handbook.info/go/ulule-rh/"><img src="http://raphaelhertzog.com/files/2011/09/d-a-h-ulule-banner-300x168.png" alt="" title="The Debian Administrator&#039;s Handbook" width="300" height="168" class="aligncenter size-medium wp-image-2225" /></a></p>
<p>Did you order your copy? If not, <a href="http://debian-handbook.info/go/ulule-rh/">click here and fix this</a>! <img src='http://raphaelhertzog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  By the way Paypal used to be required but it&#8217;s no longer the case, you can support the project just with your usual credit card.</p>
<h3>Misc blog updates</h3>
<p>Over time, I have written many useful articles for Debian users and Debian contributors. But scattered in the history, they are somewhat difficult to find. To fix this I have created some index pages listing them. Check them out:</p>
<ul>
<li><a href="http://raphaelhertzog.com/mastering-debian/">Mastering Debian</a></li>
<li><a href="http://raphaelhertzog.com/contributing-to-debian/">Contributing to Debian</a></li>
<li><a href="http://raphaelhertzog.com/debian-packaging/">Debian Packaging Tutorials</a></li>
</ul>
<p>Two new articles joined those pages this month: <a href="http://raphaelhertzog.com/2011/09/16/how-to-triage-bugs-in-the-debian-bug-tracking-system/">How to triage bugs in the Debian Bug Tracking System</a> and <a href="http://raphaelhertzog.com/2011/09/13/understand-dpkg-and-dont-get-stuck-with-a-maintainer-script-failure/">Understand dpkg and don’t get stuck with a maintainer script failure</a>.</p>
<p>While writing the first article, I noticed we lacked a good page showing the most buggy packages so I quickly created it (with the help of <a href="http://wiki.debian.org/UltimateDebianDatabase">UDD</a>): <a href="http://qa.debian.org/cgi-bin/bugs-by-source">http://qa.debian.org/cgi-bin/bugs-by-source</a></p>
<h3>Misc packaging work</h3>
<p>I did a small update to the developer&#8217;s reference. Luca Falavigna submitted a patch to clarify how one is supposed to deal with meta-packages (cf <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569219">#569219</a>), I improved it and integrated the result in the SVN repository.</p>
<p>I upgraded <a href="http://packages.qa.debian.org/n/nautilus-dropbox.html">nautilus-dropbox</a> to version 0.6.9 and while doing this I discovered a bug in mergechanges (filed as <a href="http://bugs.debian.org/640782">#640782</a>). I uploaded a new release of quilt mainly to add the Multi-Arch: foreign field so that it can satisfy dependencies of foreign packages (i.e. packages of a different architecture).</p>
<p>Django released some security advisories (tracked in <a href="http://bugs.debian.org/641405">#641405</a>) and since the maintainer did not deal with the issue, I stepped up to the task (I&#8217;m a backup maintainer) and released the fixed version 1.3.1 to unstable. I took the opportunity to switch from python-support to dh_python2, and do some misc improvements to the packaging (see <a href="http://packages.debian.org/changelogs/pool/main/p/python-django/current/changelog#version1.3.1-1">changelog</a>).</p>
<p>I wanted to update <a href="http://packages.qa.debian.org/publican">publican</a> to a newer version but it turned out to be not possible because Debian doesn&#8217;t have the latest version of docbook-xsl yet. I also discovered some bugs in the test suite and forwarded upstream the patch I created (see <a href="https://bugzilla.redhat.com/show_bug.cgi?id=738161">upstream bug</a>). On top of this, fop was failing due to some java problem related to the introduction of multiarch. After <a href="http://bugs.debian.org/641530">having reported the bug</a>, the java maintainers quickly released a fixed version.</p>
<p>So now publican is ready in the git repository but it&#8217;s waiting on the docbook-xsl update. I got in touch with the maintainer who said he would have the time to take care of it by mid-october.</p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2011/10/07/my-debian-activities-in-september-2011/#comments">One comment</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2011/10/07/my-debian-activities-in-september-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Understand dpkg and don&#8217;t get stuck with a maintainer script failure</title>
		<link>http://raphaelhertzog.com/2011/09/13/understand-dpkg-and-dont-get-stuck-with-a-maintainer-script-failure/</link>
		<comments>http://raphaelhertzog.com/2011/09/13/understand-dpkg-and-dont-get-stuck-with-a-maintainer-script-failure/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 12:11:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[User Documentation]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[maintainer scripts]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2055</guid>
		<description><![CDATA[Continuing my series of articles on dpkg&#8217;s errors, this time I&#8217;ll cover a pretty common one which has several variations: Setting up acpid (1:2.0.12-1) ... rm: cannot remove `/etc/rc1.d/K20acpid': No such file or directory dpkg: error processing acpid (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: acpid Even [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing my <a href="http://raphaelhertzog.com/2011/06/27/deciphering-one-of-dpkgs-weirdest-errors-short-read-on-buffer-copy/">series</a> <a href="http://raphaelhertzog.com/2011/07/18/deciphering-one-of-dpkg-weirdest-errors-unable-to-open-pathtofoo-dpkg-new/">of</a> <a href="http://raphaelhertzog.com/2011/08/01/understanding-dpkgs-file-overwrite-error/">articles</a> on dpkg&#8217;s errors, this time I&#8217;ll cover a pretty common one which has several variations:</p>
<pre>
Setting up acpid (1:2.0.12-1) ...
rm: cannot remove `/etc/rc1.d/K20acpid': No such file or directory
dpkg: error processing acpid (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 acpid
</pre>
<p>Even if dpkg is failing and outputting the error message, the real problem is not in dpkg but in the installed package (acpid in the example above). As we <a href="http://raphaelhertzog.com/2010/11/08/5-reasons-why-a-debian-package-is-more-than-a-simple-file-archive/">already learned</a>, a package contains not only files but also &#8220;maintainer scripts&#8221; that are executed at various points of the installation process (see <a href="http://wiki.debian.org/MaintainerScripts">some useful graphics</a> to understand how they are called, thanks to <a href="http://raphaelhertzog.com/2011/08/07/people-behind-debian-margarita-manterola/">Margarita Manterola</a>).</p>
<div id="attachment_2173" class="wp-caption aligncenter" style="width: 310px"><a href="http://raphaelhertzog.com/files/2011/09/upgrade.png"><img src="http://raphaelhertzog.com/files/2011/09/upgrade-300x243.png" alt="" title="Maintainer scripts in a package upgrade" width="300" height="243" class="size-medium wp-image-2173" /></a><p class="wp-caption-text">Maintainer scripts in a package upgrade</p></div>
<p>In the introductory example it was acpid&#8217;s &#8220;post-installation script&#8221; that failed, and dpkg is only forwarding that failure back to the caller. The maintainer scripts are stored in <code>/var/lib/dpkg/info/</code>. You can thus inspect them and even modify them if you hit a bug and want to work around it (do this only if you understand what you do!).</p>
<p>One common modification is to add &#8220;<code>set -x</code>&#8221; at the start of the script and to retry the failing operation. That way you can see what&#8217;s executed exactly. Here&#8217;s what the output could look like after the addition of &#8220;<code>set -x</code>&#8221; to <code>/var/lib/dpkg/info/acpid.postinst</code>:</p>
<pre>
$ sudo dpkg --configure acpid
Setting up acpid (1:2.0.12-1) ...
+ dpkg --compare-versions 1:2.0.11-1 lt-nl 1.0.10-3
+ dpkg --compare-versions 1:2.0.11-1 lt-nl 1.0.6-16
+ dpkg --compare-versions 1:2.0.11-1 lt 1.0.6-6
+ rm /etc/rc1.d/K20acpid
rm: cannot remove `/etc/rc1.d/K20acpid': No such file or directory
dpkg: error processing acpid (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 acpid
</pre>
<p>This output helps you locate the command that is actually failing. Here&#8217;s it&#8217;s relatively easy since we have an error message from &#8220;rm&#8221;. And the fix is trivial too, we replace &#8220;rm&#8221; with &#8220;rm -f&#8221; so that it doesn&#8217;t fail when the file doesn&#8217;t exist (this is a fake bug I made up for this article—I just added a failing rm call—but it&#8217;s inspired by real bugs I experienced).</p>
<p>Maintainer scripts are supposed to be idempotent: we should be able to execute them several times in a row without bad consequences. It happens from time to time that the maintainer gets this wrong&#8230; on the first try it works, so he uploads his package and we discover the problem only later once someone ended up executing the same code twice for some reason.</p>
<p class="action-call">Follow me on <a href="http://identi.ca/raphaelhertzog">Identi.ca</a>, <a href="http://twitter.com/raphaelhertzog">Twitter</a>, <a href="http://www.facebook.com/HertzogRaphael">Facebook</a> and <a href="https://plus.google.com/111785500145924152411/">Google+</a>. Or subscribe to this blog by <a href="http://raphaelhertzog.com/feed/">RSS</a> or by <a href="http://raphaelhertzog.com/email-newsletter/">email</a>.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2011/09/13/understand-dpkg-and-dont-get-stuck-with-a-maintainer-script-failure/#comments">14 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2011/09/13/understand-dpkg-and-dont-get-stuck-with-a-maintainer-script-failure/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>My Debian activities in August 2011</title>
		<link>http://raphaelhertzog.com/2011/09/04/my-debian-activities-in-august-2011/</link>
		<comments>http://raphaelhertzog.com/2011/09/04/my-debian-activities-in-august-2011/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 08:50:00 +0000</pubDate>
		<dc:creator>Raphaël Hertzog</dc:creator>
				<category><![CDATA[Debian News]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[gnome-shell-timer]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[QA]]></category>
		<category><![CDATA[Vacation]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://raphaelhertzog.com/?p=2051</guid>
		<description><![CDATA[This is my monthly summary of my Debian related activities. If you’re among the people who made a donation to support my work (91.44 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects. Dpkg work When I came back from Debconf, [...]]]></description>
			<content:encoded><![CDATA[<p>This is my monthly summary of my Debian related activities. If you’re among the people who <a href="http://raphaelhertzog.com/go/donate/">made a donation to support my work</a> (91.44 €, thanks everybody!), then you can learn how I spent your money. Otherwise it’s just an interesting status update on my various projects.</p>
<p><img src="http://raphaelhertzog.com/files/2011/05/newspaper-computer-300x211.jpg" alt="" title="Monthly news" class="aligncenter size-medium wp-image-1772" height="211" width="300"></p>
<h3>Dpkg work</h3>
<p>When I came back from Debconf, I merged my implementation of <code>dpkg-source --commit</code>  (already presented <a href="http://raphaelhertzog.com/2011/08/05/my-debian-activities-in-july-2011/">last month</a>). I continued some work on the hardening build flags but it&#8217;s currently stalled waiting on Kees Cook to provide the required documentation to integrate in dpkg-buildflags(1).</p>
<p>Following a discussion held during DebConf, <a href="http://michael-prokop.at/blog/">Michael Prokop</a> has been kind enough to setup a <a href="http://jenkins.grml.org/view/Debian/job/dpkg-binaries/">git-triggered auto-builder of dpkg</a> (using Jenkins). You can now help us by testing the latest git version. Follow those instructions:</p>
<pre>
$ wget -O - http://jenkins.grml.org/debian/C525F56752D4A654.asc | sudo apt-key add -
$ sudo sponge /etc/apt/sources.list.d/dpkg-git &lt;&lt;END
deb http://jenkins.grml.org/debian dpkg main
END
$ sudo apt-get update &#038;&#038; sudo apt-get upgrade
</pre>
<p>On the bug fixing side I took care of <a href="http://bugs.debian.org/640198">#640198</a> (minor man page update), <a href="http://bugs.debian.org/638291">#638291</a> (a fix to correctly handle hardlinks of conffiles), <a href="http://bugs.debian.org/637564">#637564</a> (the simplification logic of union dependencies was broken in some cases) and <a href="http://bugs.debian.org/631494">#631494</a> (interrupting dpkg-source while building a native source package left some temporary files around that should have been cleaned).</p>
<h3>WordPress update</h3>
<p>I released WordPress 3.2.1 in unstable (after having taken the time to test the updated package on my blog!) and fixed its RC bug (<a href="http://bugs.debian.org/625773">#625773</a>). In the process I discovered a false positive in lintian (I reported it in <a href="http://bugs.debian.org/637473">637473</a>).</p>
<h3>Gnome-shell-timer package</h3>
<p>From time to time, I like to use the <a href="http://en.wikipedia.org/wiki/Pomodoro_Technique">Pomodoro Technique</a>. That&#8217;s why I was an user of <a href="http://packages.debian.org/stable/timer-applet">timer-applet</a> in GNOME 2. Now with the switch to GNOME 3, I lost this feature. But I recently discovered <a href="https://github.com/olebowle/gnome-shell-timer">gnome-shell-timer</a>, a GNOME Shell extension that provides the same features.</p>
<p>I created a <a href="http://packages.debian.org/sid/gnome-shell-timer">Debian package</a> of it and quickly filed some bugs while I was testing it (two <a href="https://github.com/olebowle/gnome-shell-timer/issues/3">usability</a> <a href="https://github.com/olebowle/gnome-shell-timer/issues/4">issues</a> and an <a href="https://github.com/olebowle/gnome-shell-timer/issues/6">encoding problem</a>)</p>
<h3>QA Work</h3>
<p>During DebConf I met <a href="http://qa.debian.org/developer.php?login=gio">Giovanni Mascellani</a> and he was interested to help the QA team. He started working on the backlog of bugs concerning the Package Tracking System (PTS) and submitted a bunch of patches. I reviewed them and merged them but since they were good, I quickly got lazy and <a href="http://lists.debian.org/debian-qa/2011/08/msg00082.html">got him added to the QA team</a> so that he can commit his fixes alone. It also helps to build trust when you have had the opportunity to discuss face to face. <img src='http://raphaelhertzog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3>Vacation</h3>
<p>That&#8217;s not so much compared to usual but to my defense I also took 2 weeks of vacation with my family. But somehow even in vacation I can&#8217;t really forget Debian. Here&#8217;s my son:<br />
<a href="http://raphaelhertzog.com/files/2011/09/baptiste-debian.jpg"><img src="http://raphaelhertzog.com/files/2011/09/baptiste-debian-300x225.jpg" alt="" title="My son with the Debian umbrella" width="300" height="225" class="aligncenter size-medium wp-image-2123" /></a></p>
<h3>Thanks</h3>
<p>See you next month for a new summary of my activities.</p>
<p style="font-size: smaller"><a href="http://raphaelhertzog.com/2011/09/04/my-debian-activities-in-august-2011/#comments">3 comments</a> | Liked this article? <a href="http://raphaelhertzog.com/support-my-work/">Click here</a>. | My blog is <a href="http://flattr.com/thing/26545/apt-get-install-debian-wizard">Flattr-enabled</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://raphaelhertzog.com/2011/09/04/my-debian-activities-in-august-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

