Debian Developers - lintian: postinst-does-not-load-confmodule

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > October 2005 > lintian: postinst-does-not-load-confmodule





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author lintian: postinst-does-not-load-confmodule
Nicolas Boullis

2005-10-08, 8:48 pm

Hi,

I was about to upload a new release of one of my packages, but lintian
complains that "postinst-does-not-load-confmodule". Running lintian with
-i, I can get more information:

N: Even if your postinst does not involve debconf, you currently need to
N: make sure it loads one of the debconf libraries. This will be changed
N: in the future.

I can't understand why I should load anything related to debconf, if I
don't use debconf in postinst. (I use debconf in preinst and config,
where I load it with ". /usr/share/debconf/confmodule".)

What am I missing?


Cheers,

Nicolas


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Josselin Mouette

2005-10-08, 8:48 pm

Le dimanche 09 octobre 2005 Ă_ 01:37 +0200, Nicolas Boullis a Ă©crit :
> I can't understand why I should load anything related to debconf, if I
> don't use debconf in postinst. (I use debconf in preinst and config,
> where I load it with ". /usr/share/debconf/confmodule".)
>
> What am I missing?


See debconf-devel(7):
- incluez toujours /usr/share/debconf/confmodule au début de votre
postinst, mĂŞme si vous ne lancez aucune des commandes db_*.
C’est nécessaire pour s’assurer que lescript config sera bien
lancé (voyez la section BIDOUILLES pour plus de détails) ;

Or, for English readers:
* Always source /usr/share/debconf/confmodule at the top of your
postinst, even if you won't be running any db_* commands in it.
This is required to make sure the config script gets a chanceto
run (see HACKS for details).

--
.''`. Josselin Mouette /\./\
: :' : josselin.mouette@ens-lyon.org
`. `' joss@debian.org
`- Debian GNU/Linux -- The power of freedom

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com