[debian-mysql] Bug#621020: Re: really? (Debian Policy and LSB)

Didier 'OdyX' Raboud odyx at debian.org
Thu Apr 12 12:45:22 UTC 2012


Le 11.04.2012 22:04, Raphael Hertzog a écrit :
> On Wed, 11 Apr 2012, Nicholas Bamber wrote:
>> Hmm... This contradicts section 6.1 of the Debian policy.
>>
>> "The package management system looks at the exit status from these
>> scripts. It is important that they exit with a non-zero status if
> 
> Here "these scripts" refer to "package maintainer scripts"
> ({pre,post}{inst,rm}) and not to "init scripts". So there's no
> contradiction.
> 
> The problem of using "set -e" in init script is even documented
> in policy 9.3.2:
> http://www.debian.org/doc/debian-policy/ch-opersys.html#s-writing-init

For what is worth, this has been discussed at length in #546743 and is
now documented as the #661002 bug against lsb-base.

Please note that #661002 "lsb-base:/lib/lsb/init-functions may fail if
`set -e` is used" is tagged as +help: patches are welcome and could
eventually lead to a fix in policy.

(Deciding whether energy should be put in functions for SysVinit is up
to each reader.)

Cheers,

OdyX

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 663 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20120412/f00f358b/attachment.pgp>


More information about the pkg-mysql-maint mailing list