Bug#487761: Re postinst overwrites /etc/imapproxy.conf with empty file

2008-06-25 Thread Sven Hartge
José Luis Tallón wrote:

 I have produced a fixed version. Please test it so that we can
 double-check before having this uploaded.

Looks fine to me.

Grüße,
Sven.



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



Bug#487761: Re postinst overwrites /etc/imapproxy.conf with empty file

2008-06-24 Thread Sven Hartge
Um 03:04 Uhr am 24.06.08 schrieb José Luis Tallón:

 I have been unable to reproduce this bug in my preliminar testing.
 Would you mind giving me some more details ?

 Any additional information you can provide to nail this bug down
 will be wellcome.

Now I tried to install imapproxy on a server which never ever before had 
this package installed, so no leftover files or debconf entries are to be 
found. But:

Setting up imapproxy (1.2.6-3) ...
Can't open imapproxy.conf: No such file or directory at - line 8.
Starting IMAP proxy: /etc/init.d/imapproxy: line 47:  5272 Segmentation fault   
   start-stop-daemon
 --start --quiet --pidfile=$PIDFILE --exec $DAEMON -- $ARGS
invoke-rc.d: initscript imapproxy, action start failed.
dpkg: error processing imapproxy (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 imapproxy

And again imapproxy.conf is empty:

[EMAIL PROTECTED]:/etc# ls -al imapproxy.conf 
-rw-r--r-- 1 root root 0 24. Jun 11:41 imapproxy.conf

During installation I get only asked on debconf question about the ip to
listen on (with localhost being the default).

Grüße,
Sven

-- 
Sven Hartge -- professioneller Unix-Geek
Meine Gedanken im Netz: http://www.svenhartge.de/



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



Bug#487761: Re postinst overwrites /etc/imapproxy.conf with empty file

2008-06-24 Thread José Luis Tallón
Sven Hartge wrote:
 Um 03:04 Uhr am 24.06.08 schrieb José Luis Tallón
 I have been unable to reproduce this bug in my preliminar testing.
 Would you mind giving me some more details ?
 
Unfortunately, it seems that my test environment was flawed (stale
configuration file left from testing)
You are right w.r.t this bug: there was a typo in the postinst script.


 Any additional information you can provide to nail this bug down
 will be wellcome.
 

 Now I tried to install imapproxy on a server which never ever before had 
 this package installed, so no leftover files or debconf entries are to be 
 found. But:
   
Yup.

I have produced a fixed version. Please test it so that we can
double-check before having this uploaded.

The new version is available at:
http://devel.adv-solutions.net/debian/pool/main/mail/imapproxy/imapproxy_1.2.6-4_i386.deb

should you need to build it, the relevant files are available at that
same folder.



Sorry for the inconvenience.

Looking forward to getting your feedback on the resolution of this bug.


J.L.




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



Bug#487761: Re postinst overwrites /etc/imapproxy.conf with empty file

2008-06-23 Thread Sven Hartge
Here is a -x version of the postinst.

Setting up imapproxy (1.2.6-3) ...
+ '[' -e /usr/share/debconf/confmodule ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/imapproxy.postinst 
configure ''
+ '[' -e /usr/share/debconf/confmodule ']'
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_version 2.0
+ _db_cmd 'VERSION 2.0'
+ IFS=' '
+ printf '%s\n' 'VERSION 2.0'
+ IFS='
'
+ read -r _db_internal_line
+ RET=2.0
+ case ${_db_internal_line%%[   ]*} in
+ return 0
+ set -e
+ DESTFILE=/etc/imapproxy.conf
+ CFGFILE=imapproxy.conf
+ PARAMS='server_hostname proc_username proc_groupname chroot_directory 
listen_port'
+ server_hostname=localhost
+ proc_username=nobody
+ proc_groupname=nogroup
+ chroot_directory=/var/lib/imapproxy/chroot
+ listen_port=143
+ case $1 in
+ '[' -e /usr/share/debconf/confmodule ']'
+ db_get imapproxy/imap-server
+ _db_cmd 'GET imapproxy/imap-server'
+ IFS=' '
+ printf '%s\n' 'GET imapproxy/imap-server'
+ IFS='
'
+ read -r _db_internal_line
+ RET=localhost
+ case ${_db_internal_line%%[   ]*} in
+ return 0
+ server_hostname=localhost
+ '[' localhost = localhost ']'
+ listen_port=1143
+ test -f /etc/imapproxy.conf
++ tempfile
+ TMPFILE=/tmp/fileHeEd0K
+ mv /etc/imapproxy.conf /tmp/fileHeEd0K
+ export PARAMS
+ export server_hostname proc_username proc_groupname chroot_directory 
listen_port
+ /usr/bin/perl - /etc/imapproxy.conf imapproxy.conf
+ '[' '!' -f /var/lib/imapproxy/chroot/etc/localtime ']'
+ for p in '$PARAMS' PARAMS
+ export server_hostname=
+ server_hostname=
+ for p in '$PARAMS' PARAMS
+ export proc_username=
+ proc_username=
+ for p in '$PARAMS' PARAMS
+ export proc_groupname=
+ proc_groupname=
+ for p in '$PARAMS' PARAMS
+ export chroot_directory=
+ chroot_directory=
+ for p in '$PARAMS' PARAMS
+ export listen_port=
+ listen_port=
+ for p in '$PARAMS' PARAMS
+ export PARAMS=
+ PARAMS=
+ rm -f /tmp/fileHeEd0K
+ '[' -e /usr/share/debconf/confmodule ']'
+ db_stop
+ echo STOP
+ '[' -x /etc/init.d/imapproxy ']'
+ update-rc.d imapproxy defaults 98
++ which invoke-rc.d
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d imapproxy start
Starting IMAP proxy: /etc/init.d/imapproxy: line 47:  3920 Segmentation fault   
   (core dumped) start-stop-daemon --start --quiet --pidfile=$PIDFILE --exec 
$DAEMON -- $ARGS
invoke-rc.d: initscript imapproxy, action start failed.
+ exit 139
dpkg: error processing imapproxy (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 imapproxy




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



Processed: Re: Bug#487761: Re postinst overwrites /etc/imapproxy.conf with empty file

2008-06-23 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 tags #487761 + moreinfo unreproducible
Bug#487761: postinst overwrites /etc/imapproxy.conf with empty file
There were no tags set.
Tags added: moreinfo, unreproducible

 thanks
Stopping processing here.

Please contact me if you need assistance.

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


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



Bug#487761: Re postinst overwrites /etc/imapproxy.conf with empty file

2008-06-23 Thread José Luis Tallón
tags #487761 + moreinfo unreproducible
thanks


Hi, Sven

I have been unable to reproduce this bug in my preliminar testing.
Would you mind giving me some more details ?
Does 1.2.6-2 exhibit this behaviour ?

The -3 upgrade has been done to fix an annoying bug (non-grave, just
cosmetic) with PERL 5.10. Systems with PERL 5.8 work perfectly with -2
AFAIK.

Any additional information you can provide to nail this bug down
will be wellcome.


Thanks,

J.L.




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