Joey Hess [Wed, 25 Jun 2008 16:28:28 +0000 (12:28 -0400)]
dh_auto_install: Rather than looking at the number of binary packages being acted on, look at the total number of binary packages in the source package when deciding whether to install to debian/package or debian/tmp. This avoids inconsistencies when building mixed arch all+any packages using the binary-indep and binary-arch targets. Closes: #487938
Joey Hess [Wed, 25 Jun 2008 07:36:50 +0000 (03:36 -0400)]
Correct docs about dh_install and debian/tmp in v7 mode
* Correct docs about dh_install and debian/tmp in v7 mode. It first looks in
the current directory, or whatever is configured with --srcdir. Then it
always falls back to looking in debian/tmp.
* Medium urgency to get this doc fix into testing.
Joey Hess [Mon, 16 Jun 2008 04:06:45 +0000 (00:06 -0400)]
Add a build dependency on file. The rules file now runs dh_strip and dh_shlibdeps, which both use it. (It could be changed not to, but it's good to have it run all the commands as a test.) Closes: #486439
Joey Hess [Thu, 8 May 2008 04:05:30 +0000 (00:05 -0400)]
dh_installinit: Add --restart-after-upgrade, which avoids stopping a daemon in the prerm, and instead restarts it in the postinst, keeping its downtime minimal. Since some daemons could break if files are upgraded while they're running, it's not the default. It might become the default in a future (v8) compatability level. Closes: #471060
Joey Hess [Sun, 4 May 2008 20:12:55 +0000 (16:12 -0400)]
dh addon interface
* dh: Add an interface that third-party packages providing debhelper commands
can use to insert them into a command sequence.
(See dh(1), "SEQUENCE ADDONS".)
* dh: --with=foo can be used to include such third-party commands.
So, for example, --with=cli could add the dh_cli* commands from
cli-common.
* Moved python-support special case out of dh and into a python-support
sequence addon. --with=python-support is enabled by default to avoid
breaking backwards compatability.
One problem with the log files is that if dh_clean is not the last command run, they will be left behind. This is a particular problem on build daemons that use real root. Especially if cdbs is used, since it runs dh_listpackages after clean, thereby leaving behind log files that only root can touch. Avoid this particular special case by inhibiting logging by dh_listpackages.
New v7 mode, which only has one change from v6, and is the new recommended default.
* New v7 mode, which only has one change from v6, and is the new
recommended default.
* dh_install: if --sourcedir is not specified, first look for files in
debian/tmp, and then will look in the current directory. This allows
dh_install to interoperate with dh_auto_install without needing any
special parameters.
dh_auto_install: New program, automates running make install, or using setup.py to install. Supports the PREFIX=/usr special case needed by MakeMaker Makefiles. (Support for cmake and other build systems planned but not yet implemented.)
dh_auto_build: New program, automates building the package by either running make or using setup.py. (Support for cmake and other build systems planned but not yet implemented.)
dh_auto_configure: New program, automates running ./configure, Makefile.PL, and python distutils. Calls them with exactly the same options as cdbs does by default, and allows adding/overriding options.
dh_icons: Support .xpm format icons. Stop looking for .jpg icons, and also, for compleness, support .icon files. This matches the set of extensions supported by gtk-update-icon-cache. Closes: #448094
dh_installman: man --recode transparently uncompresses compressed pages. So when saving the output back, save it to a non-compressed filename (and delete the original, compressed file). Closes: #470913
Joey Hess [Thu, 6 Mar 2008 06:59:44 +0000 (01:59 -0500)]
* dh_lintian: Finally added this since linda is gone and there's only
lintian to worry about supporting. Closes: #109642, #166320, #206765
(Thanks to Steve M. Robbins for the initial implementation.)
Joey Hess [Wed, 27 Feb 2008 21:33:27 +0000 (16:33 -0500)]
* dh_compress: Pass -n to gzip to yeild more reproducible file contents.
The time stamp information need not be contained in the .gz file since the
time stamp is preserved when compressing and decompressing. Closes: #467100