Bug#296935: Setting up of webcalendar fails

2005-02-27 Thread Filippo Rusconi
Hellow Justin,

 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?

I cannot run  dpkg-reconfigure webcalendar :

/usr/sbin/dpkg-reconfigure: webcalendar is broken or not fully installed

Cheers,

Filippo


-- 
Please, deactivate the HTML mail feature: use simple text mail for me.

Filippo Rusconi, PhD - CNRS researcher - key C78F687C @ pgp.mit.edu

Author of ``GNU polyxmass'' at http://www.polyxmass.org

USM0503 MNHN - UMR5153 CNRS - U565 INSERM

57, rue Cuvier   Tél. : +33 (0)1 40 79 36 84
Case Postale 26 +33 (0)1 40 79 31 46
F-75231 Paris CEDEX 05  +33 (0)1 40 79 48 55


signature.asc
Description: Digital signature


Bug#296935: Setting up of webcalendar fails

2005-02-27 Thread Justin Pryzby
On Sun, Feb 27, 2005 at 10:41:05AM +0100, Filippo Rusconi wrote:
 Hellow Justin,
 
  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?
 
 I cannot run  dpkg-reconfigure webcalendar :
 
 /usr/sbin/dpkg-reconfigure: webcalendar is broken or not fully installed
I know, I had the same problem.

I don't know if that's right, or if there's a second problem.  You can
work around it by editting the appropriate line in
/var/cache/debconf/config.dat.

Justin


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



Bug#296935: Setting up of webcalendar fails

2005-02-27 Thread Justin Pryzby
On Sun, Feb 27, 2005 at 06:39:52PM +0100, Filippo Rusconi wrote:
 
  I don't know if that's right, or if there's a second problem.  You can
  work around it by editting the appropriate line in
  /var/cache/debconf/config.dat.
 
 Yes, it helped. However, the install of webcalendar along with a
 number of other packages seamed very much complicated to me. I could
 not even understand how to point my web browser to webcalendar...
 nothing was put in /var/www, which as I understand it, the standard
 location for Apache-served files... 
I believe that that's intentional.  The webcalendar files are in
/usr/share because they are sharable, and apache.conf (or its
counterpart) is updated with a web alias: /webcalendar =
/usr/share/webcalendar.

Besides keeping them in share/, this allows an easy way to disable
web apps without removing them; just edit apache.conf.

 When I tried to load a /usr/share/webcalendar/index.php file in
 mozilla-firefox it asked me if I wanted to store it on disk, not
 recognizing that this was php script !
That's a php problem, though, not a webcalendar one.  If you haven't
already found the solution, check /etc/apache*/conf.d/*php*, and
possibly uncomment some lines to enable php preprocessing.  Maybe
dpkg-reconfigure php4 will do that for you, actually.

Justin


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



Bug#296935: Setting up of webcalendar fails

2005-02-26 Thread Justin Pryzby
On Fri, Feb 25, 2005 at 09:36:52PM -0800, Steve Langasek wrote:
  The problem may be that the DB_PASSWORD line is unable to handle an @
  sign (though I cannot reproduce it). 
 
 I'm not sure why you can't reproduce this:
1) You seem to have replaced ')' with '}'.  (Just for the record).

  'SINGLE_USER_LOGIN' =  };
  ^^^
2) The DB password should be of debconf type password, not string,
such that the value is not echoed to the screen (and I think debconf
also discards the value ASAP).

3) I can reproduce the problem now; I had to purge webcalendar and
then reinstall it.  I don't understand why.

dpkg-reconfigure webcalendar
/usr/sbin/dpkg-reconfigure: webcalendar is broken or not fully installed

Shouldn't purging erase the debconf values so I can install it again?
It doesn't.

4) /etc/webcalendar/settings.php is not removed on purge, which causes
an unsightly message /etc/webcalendar not empty so not removed.
That file should be manually rm in prerm:purge (but not in
prerm:remove).

Justin


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



Bug#296935: Setting up of webcalendar fails

2005-02-25 Thread Filippo Rusconi
Package: webcalendar
Version: 0.9.45-3
Severity: grave
Justification: renders package unusable

The Setting up of webcalendar fails with following output:

Setting up webcalendar (0.9.45-3) ...
Search pattern not terminated at -e line 1.
dpkg: error processing webcalendar (--configure):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 webcalendar
E: Sub-process /usr/bin/dpkg returned an error code (1)


Note that when I did apt-get install webcalendar, the following
dependencies were successfully resolved :

The following NEW packages will be installed:
  apache apache-common apache-utils libapache-mod-php4 libedit2 php4
php4-cli php4-common php4-mysql webcalendar

And then the packages were configured:

Setting up apache-utils (1.3.33-3) ...
Setting up apache-common (1.3.33-3) ...

Setting up apache (1.3.33-3) ...

Creating config file /etc/apache/httpd.conf with new version

Creating config file /etc/apache/srm.conf with new version

Creating config file /etc/apache/access.conf with new version

Creating config file /etc/apache/modules.conf with new version
Starting web server: apache.

Setting up php4-common (4.3.10-2) ...
Setting up libapache-mod-php4 (4.3.10-2) ...
Replacing config file /etc/apache/modules.conf with new version

Setting up libedit2 (2.9.cvs.20040827-1) ...

Setting up php4 (4.3.10-2) ...

Setting up php4-cli (4.3.10-2) ...

Setting up php4-mysql (4.3.10-2) ...

It is after this setting up that webcalendar failed to be setup (see above)

Cheers,

Filippo Rusconi


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-fr8
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages webcalendar depends on:
ii  apache [httpd]1.3.33-3   versatile, high-performance HTTP s
ii  debconf [debconf-2.0] 1.4.40 Debian configuration management sy
ii  php4  4:4.3.10-2 server-side, HTML-embedded scripti
ii  php4-cli  4:4.3.10-2 command-line interpreter for the p
ii  php4-mysql4:4.3.10-2 MySQL module for php4

-- debconf information:
* webcalendar/conf/db_host: localhost
* webcalendar/note/sql_install:
  webcalendar/status/db_installed: false
* webcalendar/note/admin_user:
  webcalendar/conf/db_persistent: true
  webcalendar/conf/single_user_login:
* webcalendar/conf/single_user_mode: false
* webcalendar/conf/db_database: webcalname
* webcalendar/conf/db_type: mysql
* webcalendar/conf/db_login: webcalsqlusername
* webcalendar/conf/db_password: [EMAIL PROTECTED]
  webcalendar/conf/use_http_auth: false
* webcalendar/status/debconf_managed: true



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



Bug#296935: Setting up of webcalendar fails

2005-02-25 Thread Justin Pryzby
On Fri, Feb 25, 2005 at 09:42:43PM +0100, Filippo Rusconi wrote:
 Package: webcalendar
 Version: 0.9.45-3
 Severity: grave
 Justification: renders package unusable
 
 The Setting up of webcalendar fails with following output:
 
 Setting up webcalendar (0.9.45-3) ...
 Search pattern not terminated at -e line 1.
Could you edit /var/lib/dpkg/info/webcalendar.postinst and add the
following as line #2: set -x.  Then try to complete the webcalendar
configuration.  Send the output to me, and Cc: the bug.

FWIW, this works for me on a new installation.  I suspect that the
perl script is causing problems, but can't see how (and I'd like to
confirm this first of all).

Justin


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



Bug#296935: Setting up of webcalendar fails

2005-02-25 Thread Filippo Rusconi
Hello, 

thanks for answering the bug report.

I did as you requested, and then tried an install of the package. This
is the output:

Setting up webcalendar (0.9.45-3) ...
+ Version=0.9.45-1
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/webcalendar.postinst 
configure ''
+ Version=0.9.45-1
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ case $1 in
+ '[' '!' ']'
+ configure
+ CONF_FILE=/etc/webcalendar/settings.php
+ CF_TEMPLATE=/etc/webcalendar/settings.php.tpl
+ db_get webcalendar/status/debconf_managed
+ _db_cmd 'GET webcalendar/status/debconf_managed'
+ echo 'GET webcalendar/status/debconf_managed'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=true
+ return 0
+ '[' true = false ']'
+ db_get webcalendar/conf/db_type
+ _db_cmd 'GET webcalendar/conf/db_type'
+ echo 'GET webcalendar/conf/db_type'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=mysql
+ return 0
+ DB_TYPE=mysql
+ db_get webcalendar/conf/db_host
+ _db_cmd 'GET webcalendar/conf/db_host'
+ echo 'GET webcalendar/conf/db_host'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=localhost
+ return 0
+ DB_HOST=localhost
+ db_get webcalendar/conf/db_login
+ _db_cmd 'GET webcalendar/conf/db_login'
+ echo 'GET webcalendar/conf/db_login'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=webcalsqlusername
+ return 0
+ DB_LOGIN=webcalsqlusername
+ db_get webcalendar/conf/db_password
+ _db_cmd 'GET webcalendar/conf/db_password'
+ echo 'GET webcalendar/conf/db_password'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ [EMAIL PROTECTED]
+ return 0
+ [EMAIL PROTECTED]
+ db_get webcalendar/conf/db_database
+ _db_cmd 'GET webcalendar/conf/db_database'
+ echo 'GET webcalendar/conf/db_database'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=webcalname
+ return 0
+ DB_DATABASE=webcalname
+ db_get webcalendar/conf/db_persistent
+ _db_cmd 'GET webcalendar/conf/db_persistent'
+ echo 'GET webcalendar/conf/db_persistent'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=true
+ return 0
+ DB_PERSISTENT=true
+ db_get webcalendar/conf/use_http_auth
+ _db_cmd 'GET webcalendar/conf/use_http_auth'
+ echo 'GET webcalendar/conf/use_http_auth'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ USE_HTTP_AUTH=false
+ db_get webcalendar/conf/single_user_mode
+ _db_cmd 'GET webcalendar/conf/single_user_mode'
+ echo 'GET webcalendar/conf/single_user_mode'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ SINGLE_USER_MODE=false
+ db_get webcalendar/conf/single_user_login
+ _db_cmd 'GET webcalendar/conf/single_user_login'
+ echo 'GET webcalendar/conf/single_user_login'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=
+ return 0
+ SINGLE_USER_LOGIN=
+ '[' false = true ']'
+ SINGLE_USER_MODE=N
+ 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;
} '
Search pattern not terminated at -e line 1.
dpkg: error processing webcalendar (--configure):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 webcalendar
E: Sub-process /usr/bin/dpkg returned an error code (1)


Hope this helps,

Ciao,

Filippo



signature.asc
Description: Digital signature


Bug#296935: Setting up of webcalendar fails

2005-02-25 Thread Justin Pryzby
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]