[Build-common-hackers] Bug#509263: cdbs: Create an option to pass arguments to dh_installman in the debhelper rule

Emilio Pozuelo Monfort pochu at ubuntu.com
Sat Dec 20 14:14:19 UTC 2008

Package: cdbs
Version: 0.4.52
Severity: wishlist


This is from anjuta 2.24.2-1 debian/rules:

	# dh_installman is buggy and doesnt like dealing with manpage names
	# with periods in them.
	mkdir -p  debian/tmp/usr/share/man/man1/
	cp debian/anjuta_import.sh.1 debian/tmp/usr/share/man/man1/
	gzip -9 debian/tmp/usr/share/man/man1/anjuta_import.sh.1

That is a workaround for CDBS' debhelper rule not allowing to pass arguments to dh_installman.
In this case, we would need to pass it '--language=C', as documented in dh_installman(1).

The attached patch allows the use of DEB_INSTALL_MANPAGES_ARGS_ALL and DEB_INSTALL_MANPAGES_ARGS_$(cdbs_curpkg).


-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cdbs depends on:
ii  debhelper                     7.0.17     helper programs for debian/rules

Versions of packages cdbs recommends:
ii  autotools-dev                 20080123.2 Update infrastructure for config.{

Versions of packages cdbs suggests:
ii  devscripts                    2.10.43    scripts to make the life of a Debi
ii  doc-base                      0.8.18     utilities to manage online documen

-- no debconf information
-------------- next part --------------
--- /usr/share/cdbs/1/rules/debhelper.mk	2008-04-01 11:51:40.000000000 +0200
+++ /usr/share/cdbs/1/rules/debhelper.mk.new	2008-12-20 14:56:10.000000000 +0100
@@ -167,7 +167,7 @@ $(patsubst %,binary/%,$(DEB_ALL_PACKAGES
 $(patsubst %,binary-install/%,$(DEB_ALL_PACKAGES)) :: binary-install/%:
 	dh_installdocs -p$(cdbs_curpkg) $(DEB_INSTALL_DOCS_ALL) $(DEB_INSTALL_DOCS_$(cdbs_curpkg)) 
 	dh_installexamples -p$(cdbs_curpkg) $(DEB_INSTALL_EXAMPLES_$(cdbs_curpkg))
-	dh_installman -p$(cdbs_curpkg) $(DEB_INSTALL_MANPAGES_$(cdbs_curpkg)) 
+	dh_installman -p$(cdbs_curpkg) $(DEB_INSTALL_MANPAGES_ARGS_ALL) $(DEB_INSTALL_MANPAGES_ARGS_$(cdbs_curpkg)) $(DEB_INSTALL_MANPAGES_$(cdbs_curpkg))
 	dh_installinfo -p$(cdbs_curpkg) $(DEB_INSTALL_INFO_$(cdbs_curpkg)) 
 	dh_installmenu -p$(cdbs_curpkg) $(DEB_DH_INSTALL_MENU_ARGS)
 	dh_installcron -p$(cdbs_curpkg) $(DEB_DH_INSTALL_CRON_ARGS)

More information about the Build-common-hackers mailing list