Bug#1025815: maintainerscripts choke on debconf-set-selection set input

Marc Haber mh+debian-packages at zugschlus.de
Fri Dec 9 19:15:29 GMT 2022


Package: slapd
Version: 2.5.13+dfsg-2
Severity: minor

Hi,

the autopkgtests for sudo use debconf-set-selections to preconfigure
slapd to test sudo-ldap. The input file was taken from
debconf-get-selections output and contained extra whitspace before "when
needed":

slapd   slapd/dump_database     select when needed
(fixed version)

Since a few months, openldap's maintainer scripts choke on that in the
case construct that has "when needed" in one of the cases. Those scripts
fall through to the *) clause, erroring out.

Using a construct like

RET="$(echo $RET | sed 's/^[[:space:]]\+//')"

before the case fixes the issues for me, but I am not sure whether this
is an acceptable fix for the package.

Nevetheless, openldap should be able to reconfigure itself after the
Debconf database is preseeded with a string that came out of
debconf-get-selections.

If this is a debconf issue, please reassign appropriately.

In sudo, I fixed this by removing extra whitespace from the file

Greetings
Marc



More information about the Pkg-openldap-devel mailing list