Your message dated Mon, 26 Aug 2013 19:03:03 +0000
with message-id <[email protected]>
and subject line Bug#709928: fixed in debconf 1.5.51
has caused the Debian Bug report #709928,
regarding debconf: "uninitialized value in concatenation", missing 
/var/cache/debconf
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
709928: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709928
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debconf
Version: 1.5.50
Severity: important
Tags: patch

Dear Maintainer,

I received the following "Use of unitialized value in concatentation"
error when I tried to upgrade/install any package.

  root@bishop:~# apt-get install --reinstall nmap
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following package was automatically installed and is no longer required:
    libgtk2-ruby
  Use 'apt-get autoremove' to remove it.
  0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
  Need to get 0 B/4,003 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  Use of uninitialized value in concatenation (.) or string at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm 
line 46, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value in pattern match (m//) at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value $directory in -d at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value $directory in concatenation (.) or string at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
  debconf: DbDriver "config": mkdir :No such file or directory
  (Reading database ... 340051 files and directories currently installed.)
  Preparing to replace nmap 6.25-0.1 (using .../nmap_6.25-0.1_amd64.deb) ...
  Unpacking replacement nmap ...
  Processing triggers for man-db ...
  Use of uninitialized value in concatenation (.) or string at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm 
line 46, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value in pattern match (m//) at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value $directory in -d at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
  Use of uninitialized value $directory in concatenation (.) or string at 
/usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
  debconf: DbDriver "config": mkdir :No such file or directory
  dpkg: error processing man-db (--unpack):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   man-db
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  root@bishop:~#

The cause was found to be related to a missing "/var/cache/debconf" directory.

  rm -fr /var/cache/debconf
  apt-get install <some package>
  (error)

The module

  /usr/share/perl5/Debconf/DbDriver/File.pm

uses 'abs_path' to resolve "/var/cache/debconf" but if the directory
is missing it will return an undefined value resulting in the errors
described.  In the module it can be seen that it will create the missing
directory if needed, but this step is performed after the error.
Moving the directory creation to an earlier point resolves the
problem (patch attached).
 
-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debconf depends on:
ii  perl-base  5.14.2-21

Versions of packages debconf recommends:
ii  apt-utils     0.9.8.1
ii  debconf-i18n  1.5.50

Versions of packages debconf suggests:
pn  debconf-doc                <none>
pn  debconf-utils              <none>
ii  libgtk2-perl               2:1.247-2
pn  libnet-ldap-perl           <none>
pn  libqtcore4-perl            <none>
pn  libqtgui4-perl             <none>
pn  libterm-readline-gnu-perl  <none>
ii  perl                       5.14.2-21
ii  whiptail                   0.52.15-1

-- no debconf information
--- /usr/share/perl5/Debconf/DbDriver/File.pm.orig	2013-05-26 13:00:58.552721414 -0700
+++ /usr/share/perl5/Debconf/DbDriver/File.pm	2013-05-26 13:00:41.492636234 -0700
@@ -39,16 +39,16 @@
 
 	$this->error("No filename specified") unless $this->{filename};
 
+	my ($directory)=$this->{filename}=~m!^(.*)/[^/]+!;
+	if (! -d $directory) {
+		mkdir $directory || $this->error("mkdir $directory:$!");
+	}
+
 	$this->{filename} = abs_path($this->{filename});
 
 	debug "db $this->{name}" => "started; filename is $this->{filename}";
 	
 	if (! -e $this->{filename}) {
-		my ($directory)=$this->{filename}=~m!^(.*)/[^/]+!;
-		if (! -d $directory) {
-			mkdir $directory || $this->error("mkdir $directory:$!");
-		}
-
 		$this->{backup}=0;
 		sysopen(my $fh, $this->{filename}, 
 				O_WRONLY|O_TRUNC|O_CREAT,$this->{mode}) or

--- End Message ---
--- Begin Message ---
Source: debconf
Source-Version: 1.5.51

We believe that the bug you reported is fixed in the latest version of
debconf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <[email protected]> (supplier of updated debconf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 26 Aug 2013 13:26:46 -0400
Source: debconf
Binary: debconf debconf-i18n debconf-doc debconf-utils
Architecture: source all
Version: 1.5.51
Distribution: unstable
Urgency: low
Maintainer: Debconf Developers <[email protected]>
Changed-By: Joey Hess <[email protected]>
Description: 
 debconf    - Debian configuration management system
 debconf-doc - debconf documentation
 debconf-i18n - full internationalization support for debconf
 debconf-utils - debconf utilities
Closes: 709928 711693
Changes: 
 debconf (1.5.51) unstable; urgency=low
 .
   * Fix warning when /var/cache/debconf is missing.
     Closes: #709928
   * debconf-set-selections: Do not change the default template
     value when overriding the value of existing questions. Closes: #711693
Checksums-Sha1: 
 da8ead24206a9e2a00a3db37f68494486ed351de 1964 debconf_1.5.51.dsc
 6823fe4c4e89d9a928bfd616c027a79e78f29d66 1002500 debconf_1.5.51.tar.gz
 e20f64d10d3da13729eba420e1027493d8f7222d 159098 debconf_1.5.51_all.deb
 de4415343ca6bf288c761408c12300fb9a86e815 204016 debconf-i18n_1.5.51_all.deb
 2b282819776ea8530a0a152a81470f5e6ab134a1 314602 debconf-doc_1.5.51_all.deb
 1e307873d3a4b629c7429dc341c960b87aa820d2 55160 debconf-utils_1.5.51_all.deb
Checksums-Sha256: 
 36b918d30d1debcf08cb2b146ece20f61adb826166d85ce007d73a652f508dfb 1964 
debconf_1.5.51.dsc
 7c917f1b6a44d46501150630d384f0b41e071f21e5e4e2bfb72cc1f92faa952e 1002500 
debconf_1.5.51.tar.gz
 5810f4146e4a5aa6698da93f5494373784bd616b55a165cfd8d8c07cf9ecbae7 159098 
debconf_1.5.51_all.deb
 26c04db8c3eea2cbe07effdc654f8445d5105ebace3596cc5dc4da1d346cd220 204016 
debconf-i18n_1.5.51_all.deb
 a81f4ff1d09d9b794a05ff8e0fdefa4fc3ef182dd43dd0dde7c2117ad69296a5 314602 
debconf-doc_1.5.51_all.deb
 d54ba9ee0b36194912db1044f5517318f4deebdf275cc187ef65f6624a8af389 55160 
debconf-utils_1.5.51_all.deb
Files: 
 90f0f71f325f308b3ea2e3f45fb98b1e 1964 admin optional debconf_1.5.51.dsc
 9127880a0e03dfa2ee9a691162440651 1002500 admin optional debconf_1.5.51.tar.gz
 8822dfc807ff63eb732b7e4f68846685 159098 admin important debconf_1.5.51_all.deb
 59e4ee9035ad8e7fc2384379d8cb2ad3 204016 localization important 
debconf-i18n_1.5.51_all.deb
 6e8bf0b9fee4ed2860aec12868c87637 314602 doc optional debconf-doc_1.5.51_all.deb
 55943da32ea7fdae86c9ea1cad4c4a09 55160 devel optional 
debconf-utils_1.5.51_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIVAwUBUhuisMkQ2SIlEuPHAQi3MQ//Y6muCvbzJ7KQjgxmfLVbUTL0qwnDQAuN
myVLk6s+ZpHnA40r7J5IhJ+cEeFBVZ/23r9N3bX2vrAVfeqt9X4CTlda7cFdw745
xGcG/T2A3QPv6C1zhshvHhHMnaTRLG/MimBQitvnQXaDYmvbzDp5o/H1W+Qs1t2g
XhTsnqSWQxyDfOrpMO+TJ+gcFTQCBV16+YvhilvDb0OJ+b81hkEJQ6jRSXRaFw/k
4ApxdEKxd0GCMUPJfBXnYCRsVH2sO9bK6evVEzt4yGs/M7OYSU7hqEjCG9N78932
eVgvxR3bPKh9Ec/iVSfS3m/hhllDWJeNOfpE3MuF+mR2YePzo6mQFYW/9Gk+dPHD
m2S03ELWYBpC9SycJhffNthbjjRD/mbQN1Vhnfa28jAWGCv3IJqGKDPfciTZIuoI
V4b/3Iu6fZCKngw7EqGyOCuHElwQsyUxMewBGzpCYYKAxP8ZBOLe2vfp2z3FT3rD
tZp79qtamMPMTQiLANwpP7Gls/afXDUwXH6tIbowbH1wlNYfdKccWdXdQZ2/vSb7
Bq4ZSw6kW2PVkK2hUflg/TM8xquh6b/GZKxelMfiYmeNQ+lPU6+LVLtitngzcP0G
s8FdHJgxVTKiVWWeSpNsQgBd0Vu5linyOeC0R0Ddgp9mQsYypu6UREK4wcDr3p5r
tZfAO5n4sY0=
=fr/i
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to