On Wed, Jan 10, 2001 at 09:59:53AM -0600, Gordon Sadler wrote: > > The #PACKAGE# lines above are from the example scripts in > /usr/share/debhelper/dh_make/debian*/rules if you debianize a source > package by running dh_make, #PACKAGE# will be replaced with the package > name. If you just copy them yourself you need to change the #PACKAGE# > reference yourself. However, the #DEBHELPER# anchors allow > dh_installdocs, dh_installmenu, et al to add the appropriate script > fragments in their place. >
I think I get it now. I removed the script fragments I was using and put dh_installdocs dh_installdeb into debian/rules instead of the code that previously put postinst and friends into debian/tmp/DEBIAN. The doc links seem to be OK now, and what's more lintian now seems to be happy too. Thanks for the tips, everyone. By the way, wouldn't it be appropriate to mention in the policy document that their sample code (sec 6.4) need not actually be used, since debhelper provides a simpler interface? I've got another bizarre problem though, now. meschach is actually a library, so there's meschach with the shared library, and meschach-dev with the header files for compiling against, and the static library. If I understand correctly, I want to run ldconfig in the postinst for meschach but not for meschach-dev. From what I understood what the docs to be saying, I handle this by creating a meschach.postinst and meschach-dev.postinst, which are identical, except that meschach.postinst has the extra lines: case "$1" in configure) ldconfig ;; abort-upgrade|abort-remove|abort-deconfigure) ;; esac If I understand correctly, the two postinsts are turned into a postinst for the respective packages when dh_installdeb is run, which I run in two places for the two packages. However, after building, when I look inside the deb files, I find that *both* packages have the ldconfig script in them, ie both postinsts were derived from meschach.postinst! lintian helpfully notices the problem: W: meschach-dev: postinst-has-useless-call-to-ldconfig So what have I done wrong? Why is meschach-dev.postinst being ignored by meschach-dev? Drew -- PGP public key available at http://dparsons.webjump.com/drewskey.txt Fingerprint: A110 EAE1 D7D2 8076 5FE0 EC0A B6CE 7041 6412 4E4A
pgpTqzoSiajuu.pgp
Description: PGP signature