[Debconf-devel] Bug#1154662: debconf: Fix command and database examples in the English manual pages
Karl Jonatan Nyberg
jonatan.k.nyberg at gmail.com
Sat Nov 21 09:19:20 GMT 2026
Source: debconf
Version: 1.5.92
Severity: minor
Tags: patch
Hi,
While translating the debconf manual pages into Swedish, I found several
examples in the English originals that fail when copied or describe
different behaviour from the implementation. The attached patch updates
five English manual pages.
* debconf-getlang(1) tells readers to use --status. The command rejects
that option. Its option parser, synopsis and example all use --stats.
* In confmodule(3), db_input 'foo/bar' lacks a priority, and the trailing
"|| true" hides the error. The example should use
db_input medium 'foo/bar' || true.
* In debconf(7), the LDAP fallback uses host:localhost. The LDAP driver
requires server and basedn. The patch supplies both and explains which
end of the SSH tunnel "localhost" refers to. The next SSH example is
missing its closing double quote. The File fallback example also needs
shell quoting and lowercase field names. One working spelling is:
export DEBCONF_DB_FALLBACK='File{filename:/root/config.dat
backup:false}'
The value "no" is treated as true by the driver, so it does not disable
backups.
* In debconf.conf(5), the driver that takes Filename is File. The stack
example needs "Driver: Stack" because the Perl module name is
case-sensitive. The writable LDAP example supplies BindPasswd alone;
the driver binds anonymously unless BindDN is supplied as well.
* In debconf-devel(7), "do while [ ! "$ok" ];" is a shell syntax error.
The patch uses "while [ ! "$ok" ]; do", preserving the example's
intentional infinite-loop pitfall. It also clarifies that UNREGISTER
and PURGE release the calling package's ownership. A question remains
in the database while another package owns it.
I rendered all five corrected pages, ran debconf-getlang --stats against
sample templates, and checked the shell examples with Debian's dash.
I tested the SSH quoting locally and checked the LDAP fields against the
driver.
Thanks,
Jonatan Nyberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debconf-english-manpages.patch
Type: text/x-diff
Size: 5515 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debconf-devel/attachments/20261121/5f8ba391/attachment.patch>
More information about the Debconf-devel
mailing list