Hello.
The debian/rules file contains the following:
-- cut --
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_configure:
qmake -Wall
override_dh_auto_test:
-- cut --
This works on a Lenny system with some packages from Squeeze. The debhelper
package version on this system is 7.4.15. The dh_auto_target is skipped
[...]
# Skipping dh_auto_test - empty override
[...]
When I try the same source on a clean Squeeze system with debhelper version
7.9.1 the override targets did not work. In this case only "qmake" and not
"qmake -Wall" is executed and the package creation abourts due to the not
avaiable test target in the qmake generated Makefile:
[...]
dh_auto_test
make[1]: Entering directory `~/pmt/dbusIceConverter'
make[1]: *** No rule to make target `test'. Stop.
make[1]: Leaving directory `~/pmt/dbusIceConverter'
dh_auto_test: make -j1 test returned exit code 2
make: *** [binary] Error 29
PS: Yes the manpage mentioned was dh(1), sorry for that.
Regards,
Dirk
-----Original Message-----
From: Joey Hess [mailto:[email protected]]
Sent: Thursday, July 01, 2010 7:47 PM
To: Meul, Dirk; [email protected]
Subject: Re: Bug#587739: debhelper: override_dh_<command> did not work
Dirk Meul wrote:
> For me the override_dh_<command> target are not working any more. Not running
> automatically the package's test suites with:
>
> # Commands not to run:
> override_dh_auto_test:
>
> as described in the manpage did not work. Only putting:
As described in what manpage? Possibly the dh(1) man page? Are you using dh in
your rules file? Why did you not include a copy of your rules file in this bug
report?
Needless to say, dh still supports override targets. You must be doing
something wrong.
--
see shy jo