Weblog entry #31 for dkg

debhelper 7 and lintian disagree
Posted by dkg on Tue 20 May 2008 at 16:46
I'm excited by version 7 of debhelper, in particular the opportunity for debian/rules minimization. I suspect this will lower the barrier for rapid, reasonable packaging of simple software tools in a way that should be easy to audit and maintain.

The most-minimized debian/rules possible with it is just (from dh(1)):

#!/usr/bin/make -f
%:
	dh $@
And all of the project-specific interesting bits go into nice, clean, well-named files under debian/.

However, lintian (at least as of 1.23.48) complains loudly about the minimized debian/rules:

E: xdotool source: debian-rules-missing-required-target binary
E: xdotool source: debian-rules-missing-required-target binary-arch
E: xdotool source: debian-rules-missing-required-target binary-indep
E: xdotool source: debian-rules-missing-required-target build
E: xdotool source: debian-rules-missing-required-target clean
I'm not sure the right way to proceed: should i try to manually add overrides for each package that uses a minimized debian/rules? Should lintian recognize debhelper-specific minimized rules files and accept them? Should debhelper assuage lintian somehow? Or is this rules file minimization actually not as good an idea as I think it is?

I notice that mr, which is Joey Hess's first example package using the minimized rules also reports the same errors.

 

Comments on this Entry

Posted by Anonymous (79.215.xx.xx) on Tue 20 May 2008 at 17:02
How about making lintian use the same way of checking if a makefile target exists that debhelper also uses?

make -s -n $target 2>/dev/null

If make exists with 0 the target it there, otherwise it isn't.


-- Florian Ragwitz <rafl@debian.org>

[ Parent | Reply to this comment ]

Posted by Anonymous (67.223.xx.xx) on Tue 20 May 2008 at 17:29
Bug #477628 is already tagged pending, though I doubt it was fixed that way --Joey

[ Parent | Reply to this comment ]

Posted by dkg (216.254.xx.xx) on Tue 20 May 2008 at 17:39
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Ah, sweet. I had searched for "debhelper" in the page of unarchived lintian bugs, but hadn't turned up 477628 since it only mentions "dh".

Thanks for the pointer, Joey.

[ Parent | Reply to this comment ]

Posted by Anonymous (66.93.xx.xx) on Tue 20 May 2008 at 18:24
This represents a bug...in lintian. Lintian mistakenly believes that it can parse a Makefile in a cursory way and figure out if it supports all the necessary targets. However, many make features can confuse it, such as the % wildcard used here.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search