[Pkg-xfce-devel] help get rid of the noise in the debian/ubuntu diffs

Jani Monoses jani.monoses at gmail.com
Tue Dec 6 16:24:27 UTC 2005


>
> W: xfmedia: binary-without-manpage xfmedia-remote
> W: xfmedia: postinst-has-useless-call-to-ldconfig
> W: xfmedia: postrm-has-useless-call-to-ldconfig
>
> I see no postinst nor ldconfig calls on debian/ files. Still
> investigating. Any hints?
>

they are added by the cdbs scripts, specifically debhelper.mk
This in turn calls dh_makeshlibs which if there's a .so in the package
assumes it is a shared object added to the system and ld.conf database needs
updating, so
it adds a ldconfig call to the postrm and postints script. This can be seen
only in the binary .deb file.
In xfmedia's case there's a plugin called xfmedia-infopipe.so but it is not
for general consumption
so it should not trigger a ldconfig.
To prevent dh_makeshlibs from adding a .so it should be called with the -X
pattern argument.
This patch makes CDBS call dh_makeshlibs that way.

Jani

Index: debian/rules
===================================================================
--- debian/rules        (revision 339)
+++ debian/rules        (working copy)
@@ -4,7 +4,7 @@
 include /usr/share/cdbs/1/class/autotools.mk

 DEB_CONFIGURE_EXTRA_FLAGS := --enable-final
-
+DEB_DH_MAKESHLIBS_ARGS_xfmedia := -Xinfopipe
 binary-post-install/xfmedia::
        dh_installman debian/xfmedia.1
        dh_installmime -pxfmedia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20051206/2772598f/attachment.htm


More information about the Pkg-xfce-devel mailing list