Bug#718166: a2disconf fails on purge when conf already gone

2013-07-28 Thread Jean-Michel Vourgère
I spent "some" time on that issue, and could not find a reasonable aswner:

I noticed that dh_apache2 generates snipets with:
apache2_invoke enconf phppgadmin || exit $?
Adding the "|| exit $?" really does help (I could not believe it at first).

This may somehow be linked to the fact that that apache2-maintscript-helper:415
calls that specific a2disconf in a subshell (see comment there).

Just my 2 cents... This is way too subtile for me.
I agree a2disconf --purge return code is surprising.


-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201307281037.05785.jmv_...@nirgal.com



Bug#718166: a2disconf fails on purge when conf already gone

2013-07-28 Thread Thijs Kinkhorst
Package: apache2
Version: 2.4.6-2
Severity: important

Hi,

My package phpmyadmin uses the apache2-maintscript-helper as documented on
the Wiki. On purge, I get "subprocess installed post-removal script
returned error exit status 1". When running with set -x, it seems to be
a2disconf that exits in error:

apache2_invoke postrm: Purging state for phpmyadmin
+ [ -x /usr/bin/logger ]
+ local LOGGER=/usr/bin/logger -p daemon.info -t phpmyadmin 
+ /usr/bin/logger -p daemon.info -t phpmyadmin apache2_invoke postrm: Purging 
state for phpmyadmin
+ a2disconf -p -f -q phpmyadmin
dpkg: error processing phpmyadmin (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 phpmyadmin

# a2disconf -p -f phpmyadmin
ERROR: Conf phpmyadmin does not exist!

It seems logical to me that it would exit 0 when disabling a conf that
has already disappeared, especially when it's invoked with the "force"
option.


cheers,
Thijs

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2 depends on:
ii  apache2-bin   2.4.6-2
ii  apache2-data  2.4.6-2
ii  lsb-base  4.1+Debian12
ii  mime-support  3.54
ii  perl  5.14.2-21
ii  procps1:3.3.8-2

Versions of packages apache2 recommends:
ii  ssl-cert  1.0.32

Versions of packages apache2 suggests:
pn  apache2-doc  
pn  apache2-suexec-pristine | apache2-suexec-custom  
ii  apache2-utils2.4.6-2
pn  www-browser  

Versions of packages apache2-bin depends on:
ii  libapr1  1.4.8-1
ii  libaprutil1  1.5.2-1
ii  libaprutil1-dbd-sqlite3  1.5.2-1
ii  libaprutil1-ldap 1.5.2-1
ii  libc62.17-7
ii  libcap2  1:2.22-1.2
ii  libldap-2.4-22.4.31-1+nmu2
ii  liblua5.1-0  5.1.5-4
ii  libpcre3 1:8.31-2
ii  libssl1.0.0  1.0.1e-3
ii  libxml2  2.9.1+dfsg1-2
ii  perl 5.14.2-21
ii  zlib1g   1:1.2.8.dfsg-1

Versions of packages apache2-bin suggests:
pn  apache2-doc  
pn  apache2-suexec-pristine | apache2-suexec-custom  
pn  www-browser  

Versions of packages apache2 is related to:
ii  apache2  2.4.6-2
ii  apache2-bin  2.4.6-2

-- Configuration Files:
/etc/apache2/ports.conf changed [not included]
/etc/apache2/sites-available/000-default.conf [Errno 2] No such file or 
directory: u'/etc/apache2/sites-available/000-default.conf'
/etc/apache2/sites-available/default-ssl.conf [Errno 2] No such file or 
directory: u'/etc/apache2/sites-available/default-ssl.conf'

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20130728092134.26913.98692.report...@flowsel.uvt.nl