[Build-common-hackers] Bug#448141: wrong order of debhelper commands

Fabian Greffrath greffrath at leat.rub.de
Fri Feb 22 12:45:49 UTC 2008


I have some news regarding this issue:

If I add the following line

	binary-predeb/faac:: binary-predeb/libfaac0

to the very top of debian/rules (i.e. right between the shebang line and the 
first include line), the faac package ends up with the right versioned 
dependency on the libfaac0 shared library package.

I believe this is due to the order in which the binary-predeb rule is executed 
per package. Currently the rule calls the three commands
	dh_installdeb
	dh_perl
	dh_shlibdeps
for each package in debian/control one by one. This means that - if the faac 
package occurs before the libfaac0 package in debian/control - the 
${shlib:Depends} for faac are calculated before dh_installdeb has been run for 
libfaac0. Thus faac's dh_shlibdeps does not consider libfaac0's shlibs file.

I believe (but have not tested yet, though) that the issue will be fixed if 
first dh_installdeb is run for each package in debian/control and *then* both 
dh_perl and dh_shlibdep are run for each package.

To make a long story short, please consider changing this behaviour
	dh_installdeb -pfaac
	dh_perl -pfaac
	dh_shlibdeps -pfaac
	dh_installdeb -plibfaac0
	dh_perl -plibfaac0
	dh_shlibdeps -plibfaac0
into this
	dh_installdeb -pfaac
	dh_installdeb -plibfaac0
	dh_perl -pfaac
	dh_shlibdeps -pfaac
	dh_perl -plibfaac0
	dh_shlibdeps -plibfaac0

Thank you for your effort!

Cheers,
Fabian

-- 
Dipl.-Phys. Fabian Greffrath

Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum

Telefon: +49 (0)234 / 32-26334
Fax:     +49 (0)234 / 32-14227
E-Mail:  greffrath at leat.ruhr-uni-bochum.de





More information about the Build-common-hackers mailing list