[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ldconfig in postinst



On Mon, 3 Sep 2001, Drew Parsons wrote:

> W: meschach: postinst-has-useless-call-to-ldconfig

> (and do I need to put dpkg-shlibdeps in debian/rules somewhere?  It seems
> fine without it)

> My postinst is:
> #!/bin/sh
> # meschach.postinst, runs ldconfig
> set -e

> case "$1" in
>        configure)
>                ldconfig
>                ;;
>        abort-upgrade|abort-remove|abort-deconfigure)
>                ;;
> esac

> #DEBHELPER#
> ##################################################

> Thanks for any clues or explanations,

Check the contents of the postinst script in the binary package.  The
#DEBHELPER# line gets replaced with debhelper hints based on the various dh_*
commands you've called, and if you call dh_makeshlibs, this will include a
call to ldconfig in the postinst and the postrm.

Which means you have two calls to ldconfig in the resulting postinst script,
and lintian is expecting only one. :)

Cheers,
Steve Langasek
postmodern programmer



Reply to: