[Build-common-hackers] Bug#215066: could you please make a hook just before dh_gencontrol?

Masato Taruishi Masato Taruishi <taru@debian.org>, 215066@bugs.debian.org
Fri, 10 Oct 2003 13:04:20 +0900


Package: cdbs
Version: 0.4.12
Severity: wishlist

In debhelper.mk, there is the following comment:

# This rule is called to create a package.  Generally it's not going to be
# useful to hook things onto this rule.
$(patsubst %,binary-makedeb/%,$(DEB_ARCH_REGULAR_PACKAGES)) :: binary-makedeb/% : common-binary-predeb-arch binary-makedeb-IMPL/%

But I faced in situaions such that the hook needs. For example,

  1) To create substvars of all installed files including DEBAIN//postinst.

        - dh_perl seems to do this.

     Now I'm developing dh_ruby which is similar to dh_perl but for ruby.
     In development stage, I'd like to manage dh_ruby locally so insert the
     dh_ruby hook after dh_installdeb.

  2) To modify DEBIAN/postinst after dh_installdeb.

      The openldap2 package do this. In the rules, the following
      modification is done:

        dh_installdeb
        perl -w debian/dh_installscripts-common -p slapd
	dh_perl
	...

   the debian/dh_installscripts-common replaces the installed
   maintainer-scripts such as DEBIAN/{pre,post}{rm,inst} and so on
   in order to insert common scripts.

   This must be called between dh_installdeb and before dh_perl.

Maybe binary-post-installdeb and binary-pre-gencontrol would be
needed. How do you think?

Thanks for your efforts.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux taru.local.valinux.co.jp 2.4.22-1-686 #1 Fri Sep 5 23:04:29 EST 2003 i686
Locale: LANG=ja_JP.EUC-JP, LC_CTYPE=ja_JP.EUC-JP

-- no debconf information