[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#268003: marked as done (Variable interpolation strange behaviour)

Your message dated Fri, 02 Sep 2005 16:11:06 -0700
with message-id <87ek87uktx.fsf@becket.becket.net>
and subject line Officially fixed
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 25 Aug 2004 13:52:21 +0000
>From sjg@easynet.fr Wed Aug 25 06:52:21 2004
Return-path: <sjg@easynet.fr>
Received: from shiva.easynet.fr [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BzyCL-00016h-00; Wed, 25 Aug 2004 06:52:21 -0700
Received: from sjg by shiva.easynet.fr with local (Exim 3.36 #1 (Debian))
	id 1BzyCC-0004S7-00; Wed, 25 Aug 2004 15:52:12 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Sebastien Gross <sjg@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Variable interpolation strange behaviour
X-Mailer: reportbug 2.61
Date: Wed, 25 Aug 2004 15:52:12 +0200
Message-Id: <E1BzyCC-0004S7-00@shiva.easynet.fr>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25

Package: libconfig-general-perl
Version: 2.26-1
Severity: important

Hi there,

I use Config::General for a while on my Debian system (version 2.26) and
today I noticed a strange behabiour.

I call the configuration file using these lines:

#!/usr/bin/perl -w

use strict;
use Config::General;
use Data::Dumper;

my $conf = Config::General->new(
        -ConfigFile => "tests.cf",
        -InterPolateVars => 1,

my $c = {$conf->getall()};

print Dumper $c;


My configuraton file:
dir             /path/to/some/files

        backend LDAP
        dir     $dir
                dir     $dir
                server          host
                login           ldap_dn
                password        secret
                base            dc=somedomain,dc=tld
                port            ldap
                uri             ldap://$server
                        dir     $dir
                        version         2
                        debug           0

        base            ou=dns,dc=somedomain,dc=tld
        template        $dir/dns/dns_zone.tpl

This configuration fails with
"Use of uninitialized variable $dir"

If I put the <DNS> block before the <backends> one, it works fine.
Anyway the $dir variable is defined a a global variable, thus should be
used anywhere in the configuration file.   

On the onther hand it seems that tom@daemon.de (upstream email) is not
valid anylonger (such as perl@daemon.de as specifyed on the CPAN page).

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages libconfig-general-perl depends on:
ii  perl                          5.8.3-3    Larry Wall's Practical Extraction 

-- no debconf information

Received: (at 268003-done) by bugs.debian.org; 2 Sep 2005 23:11:06 +0000
>From tb@becket.net Fri Sep 02 16:11:06 2005
Return-path: <tb@becket.net>
Received: from vp085189.reshsg.uci.edu (becket.becket.net) [] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EBKgc-00007P-00; Fri, 02 Sep 2005 16:11:06 -0700
Received: from tb by becket.becket.net with local (Exim 4.52)
	id 1EBKgc-0005aK-66
	for 268003-done@bugs.debian.org; Fri, 02 Sep 2005 16:11:06 -0700
From: Thomas Bushnell BSG <tb@becket.net>
To: 268003-done@bugs.debian.org
Subject: Officially fixed
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
X-Reply-Permission: Posted or emailed replies to this message constitute
		 permission for an emailed response.
X-PGP-Fingerprint: 1F0A1E51  63 28 EB DA E6 44 E5 5E  EC F3 04 26 4E BF 1A 92
X-Tom-Swiftie: "Who drank the last beer?" Tom asked, hopping mad
Date: Fri, 02 Sep 2005 16:11:06 -0700
Message-ID: <87ek87uktx.fsf@becket.becket.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: 268003-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 

Version: 2.29-1

This NMU-fixed bug became closed when QA took over the package.

Reply to: