On Fri, Feb 25, 2005 at 10:53:48PM +0100, Filippo Rusconi wrote:
> Hello, 
> 
> thanks for answering the bug report.
> 
> I did as you requested, and then tried an install of the package. This
> is the output:
Okay, it is as I suspected; perl is somehow causing the problem.

> + [EMAIL PROTECTED]
If that wasn't a temporary password before, then it should be now.

I'm including this below for reference of the maintainer.
> + cat /etc/webcalendar/settings.php.tpl

> + perl -e '
my %CF_REPLACE = ('
 \''DB_TYPE'\''=> mysql,
 '\''DB_HOST'\''           => localhost,
 '\''DB_TYPE'\''           => mysql,
 '\''DB_HOST'\''           => localhost,
 '\''DB_LOGIN'\''          => webcalsqlusername,
 '\''DB_PASSWORD'\''       => [EMAIL PROTECTED],
 '\''DB_DATABASE'\''       => webcalname,
 '\''DB_PERSISTENT'\''     => true,
 '\''USE_HTTP_AUTH'\''     => false,
 '\''SINGLE_USER_MODE'\''  => N,
 '\''SINGLE_USER_LOGIN'\'' =>          );

while (my $line = <STDIN>) {
        foreach my $search (keys %CF_REPLACE) {
                my $replace = $CF_REPLACE{$search};
                $line =~ s/DEBCONF::$search/$replace/g;
        }

        print $line;
}
'

The problem may be that the DB_PASSWORD line is unable to handle an @
sign (though I cannot reproduce it).  Can you try running
dpkg-reconfigure webcalendar, and entering a purely alphanumeric
password?

It may also be that it is unable to deal with SINGLE_USER_LOGIN being
null (though I suspect that this is okay, since that how my install
should look).

Other comments for the maintainer: the s/DEBCONF::// should be
anchored, and doesn't seem to need the /g modifier:

        $line =~ s/^.*?: DEBCONF/;

Also, the .tpl (template?) file should be installed into
/usr/share/webcalendar, and not into /etc/, since it is not a
configuration file.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to