[Debconf-devel] Bug#723843: debconf: uninitialized value on "EOF" (^D)

Niels Thykier niels at thykier.net
Fri Sep 20 11:46:57 UTC 2013


On 2013-09-20 13:38, Niels Thykier wrote:
> Package: debconf
> Version: 1.5.51
> Severity: minor
> 
> Hi,
> 
> During a "dpkg-reconfigure localepurge", I hit "EOF" (^D) to one of
> the questions and it triggered a warning about using an uninitialized
> value.  If it is relevant, I was using the "readline" frontend.
> 
> """
> Selecting locale files 
> Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 111.
> You chose not to keep any locales. This means that all locales will be removed from your system. Are you sure this really is what you want?
> """
> 
> ~Niels
> 


So, turns out I can trigger similar warnings in other places too by
^D'ing the remaining questions (see warnings.log).

This is localepurge from git (but I suppose the one in experimental
should be suffient for triggering this bug).  I have attached the
templates file in case the type of template helps you find the bugs.

~Niels


-------------- next part --------------
A non-text attachment was scrubbed...
Name: warnings.log
Type: text/x-log
Size: 2318 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debconf-devel/attachments/20130920/1b50baaa/attachment-0001.bin>
-------------- next part --------------
Template: localepurge/nopurge
Type: multiselect
Choices: ${locales}
_Description: Selecting locale files
 localepurge will remove all locale files from your system but the ones for
 the language codes you select now. Usually two character locales like "de"
 or "pt" rather than "de_DE" or "pt_BR" contain the major portion of
 localizations. So please select both for best support of your national
 language settings.  The entries from /etc/locale.gen will be preselected
 if no prior configuration has been successfully completed.

Template: localepurge/use-dpkg-feature
Type: boolean
Default: true
_Description: Use dpkg --path-exclude?
 dpkg supports --path-exclude and --path-include options to filter files
 from packages being installed.
 .
 Please see /usr/share/doc/localepurge/README.dpkg-path for more
 information about this feature.  It can be enabled (or disabled)
 later by running "dpkg-reconfigure localepurge".
 .
 Caveat: Changing this option will only take affect for packages
 unpacked after localepurge has been (re)configured.  Packages
 installed or upgraded together with localepurge may (or may not) be
 subject to the previous configuration of localepurge.

Template: localepurge/none_selected
Type: boolean
Default: false
_Description: Really remove all locales?
 You chose not to keep any locales. This means that all locales will be
 removed from your system. Are you sure this really is what you want?

Template: localepurge/remove_no
Type: note
_Description: localepurge will not take any action
 localepurge will not be useful until you successfully configure it with
 the command "dpkg-reconfigure localepurge". The configured entries from
 /etc/locale.gen of the locales package will then be automagically
 preselected.

Template: localepurge/mandelete
Type: boolean
Default: true
_Description: Also delete localized man pages?
 Based on the same locale information you chose above, localepurge can also
 delete superfluous localized man pages.

Template: localepurge/dontbothernew
Type: boolean
Default: false
_Description: Inform about new locales?
 If you are content with the selection of locales you chose to keep and
 don't want to care about whether to delete or keep newly found locales,
 just deselect this option to automatically remove new locales you probably wouldn't
 care about anyway. If you select this option, you will be given the opportunity
 to decide whether to keep or delete newly introduced locales.

Template: localepurge/showfreedspace
Type: boolean
Default: true
_Description: Display freed disk space?
 localepurge can calculate and display the disk space freed by its
 operations and show a saved disk space summary at quitting.

Template: localepurge/quickndirtycalc
Type: boolean
Default: true
_Description: Accurate disk space calculation?
 There are two ways available to calculate freed disk space. One is
 much faster than the other but far less accurate if other changes occur
 on the filesystem during disc space calculation. The other one works more
 accurately and is therefore the preferred choice.

Template: localepurge/verbose
Type: boolean
Default: false
_Description: Display verbose output?
 localepurge may be configured to explicitly show which locale files it
 deletes. This possibly causes a lot of screen output.


More information about the Debconf-devel mailing list