Your message dated Tue, 09 Sep 2014 18:04:04 +0000
with message-id <e1xrpls-0001yp...@franck.debian.org>
and subject line Bug#760944: fixed in loganalyzer 3.6.6+dfsg-2
has caused the Debian Bug report #760944,
regarding loganalyzer: postinst incorrectly checks for activation w/ apache2.4
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
760944: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760944
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: loganalyzer
Version: 3.6.6+dfsg-1
Severity: serious
Tags: patch
Justification: Policy 6.2

Hello there,

loganalyzer's postinst creates
/etc/apache2/conf-available/loganalyzer.conf during installation, but
fails to detect that it has already created this file during subsequent
postinst runs, which leads to failure to configure during package
upgrades. This appears to stem from copy-and-waste during converting the
package to work with both apache2.2 and apache2.4. :)

Please see the following transcript for details:

:) fernst@fernst:~$ ls -al /etc/apache2/*/*logana*
lrwxrwxrwx 1 root root 28 Mar 19 12:31 
/etc/apache2/conf-available/loganalyzer.conf -> /etc/loganalyzer/apache.conf
lrwxrwxrwx 1 root root 28 Mar 19 12:31 /etc/apache2/conf.d/loganalyzer -> 
/etc/loganalyzer/apache.conf
lrwxrwxrwx 1 root root 34 Mar 19 12:31 
/etc/apache2/conf-enabled/loganalyzer.conf -> ../conf-available/loganalyzer.conf
:) fernst@fernst:~$ sudo bash
:) root@fernst:/home/fernst$ sh -x /var/lib/dpkg/info/loganalyzer.postinst 
configure
+ set -e
+ [ configure = configure ]
+ webserver=apache2
+ pkgname=loganalyzer
+ [ -x /usr/sbin/apache2 ]
+ a2enmod php5
Module php5 already enabled
+ a2enmod cgi
Module cgi already enabled
+ HTTPD_ETC=/etc/apache2
+ HTTPD_CONF_OLD=/etc/apache2/conf.d
+ HTTPD_CONF_NEW=/etc/apache2/conf-available
+ [ -d /etc/apache2 ]
+ [ -d /etc/apache2/conf.d -a ! -f /etc/apache2/conf.d/loganalyzer -a ! -h 
/etc/apache2/conf.d/loganalyzer ]
+ [ -d /etc/apache2/conf-available -a ! -f 
/etc/apache2/conf-available/loganalyzer -a ! -h 
/etc/apache2/conf-available/loganalyzer ]
+ ln -s /etc/loganalyzer/apache.conf 
/etc/apache2/conf-available/loganalyzer.conf
ln: failed to create symbolic link 
‘/etc/apache2/conf-available/loganalyzer.conf’: File exists
:( root@fernst:/home/fernst$ echo $?
1

The following patch allows the package to be configured again:

:) fernst@fernst:~$ diff -u /var/lib/dpkg/info/loganalyzer.postinst.bak 
/var/lib/dpkg/info/loganalyzer.postinst
--- /var/lib/dpkg/info/loganalyzer.postinst.bak 2014-09-07 08:43:33.000000000 
+0200
+++ /var/lib/dpkg/info/loganalyzer.postinst     2014-09-09 13:12:48.642837223 
+0200
@@ -48,7 +48,7 @@
             then
                 ln -s /etc/${pkgname}/apache.conf ${HTTPD_CONF_OLD}/${pkgname}
             fi
-            if [ -d ${HTTPD_CONF_NEW} -a ! -f ${HTTPD_CONF_NEW}/${pkgname} -a 
! -h ${HTTPD_CONF_NEW}/${pkgname} ];
+            if [ -d ${HTTPD_CONF_NEW} -a ! -f 
${HTTPD_CONF_NEW}/${pkgname}.conf -a ! -h ${HTTPD_CONF_NEW}/${pkgname}.conf ];
             then
                 ln -s /etc/${pkgname}/apache.conf 
${HTTPD_CONF_NEW}/${pkgname}.conf
                 if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then

HTH,
Flo

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'testing-proposed-updates'), (50, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages loganalyzer depends on:
ii  apache2                          2.4.10-1
ii  apache2-bin [httpd-cgi]          2.4.10-1
ii  apache2-mpm-prefork [httpd-cgi]  2.4.10-1
ii  debconf                          1.5.53
ii  libapache2-mod-php5              5.6.0+dfsg-1
ii  php5                             5.6.0+dfsg-1
ii  ttf-bitstream-vera               1.10-8

Versions of packages loganalyzer recommends:
ii  php5-mongo  1.4.5-2+b1

Versions of packages loganalyzer suggests:
ii  php5-gd  5.6.0+dfsg-1
ii  rsyslog  8.4.0-2

-- Configuration Files:
/etc/loganalyzer/config.php changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: loganalyzer
Source-Version: 3.6.6+dfsg-2

We believe that the bug you reported is fixed in the latest version of
loganalyzer, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 760...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Pocock <dan...@pocock.pro> (supplier of updated loganalyzer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 09 Sep 2014 19:56:41 +0200
Source: loganalyzer
Binary: loganalyzer
Architecture: source all
Version: 3.6.6+dfsg-2
Distribution: unstable
Urgency: high
Maintainer: Debian Monitoring Maintainers 
<pkg-monitoring-maintain...@lists.alioth.debian.org>
Changed-By: Daniel Pocock <dan...@pocock.pro>
Description: 
 loganalyzer - web interface to syslog and event data
Closes: 760944
Changes: 
 loganalyzer (3.6.6+dfsg-2) unstable; urgency=high
 .
   * Correctly detect existing Apache conf (Closes: #760944)
Checksums-Sha1: 
 8edbb221219106755359efa477a70b0a7021b2bd 2018 loganalyzer_3.6.6+dfsg-2.dsc
 1aca644b88abfd502cde7ed0dd7b0d07b95ecb26 13648 
loganalyzer_3.6.6+dfsg-2.debian.tar.gz
 1fe9423b5398b435c5e2c7a464e742a767e4092d 674834 
loganalyzer_3.6.6+dfsg-2_all.deb
Checksums-Sha256: 
 d2402b047ad987bb2b8249ff994bf691de6ad41854bbb46468194bc25bd789cc 2018 
loganalyzer_3.6.6+dfsg-2.dsc
 b6f551784fe13127e804839185e86ee803cac8bf22c07f5b56b024774bc5c65e 13648 
loganalyzer_3.6.6+dfsg-2.debian.tar.gz
 3d30e0c1f2955bbaa378f9a56b1b725c4ec098b9d159c1a294235f9456402623 674834 
loganalyzer_3.6.6+dfsg-2_all.deb
Files: 
 34c1c2ac8b89bbf7c70581ec7da13dbc 2018 net optional loganalyzer_3.6.6+dfsg-2.dsc
 9b085a0abe40c224ed39780e064bad73 13648 net optional 
loganalyzer_3.6.6+dfsg-2.debian.tar.gz
 cfa2bd5cac0f550de72fccbaca8db66f 674834 net optional 
loganalyzer_3.6.6+dfsg-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJUDz+gAAoJEGxlgOd711bEn3wP/0hR7bRGEjvBgjmAkslsj8e3
lSVqj2qAgqwV8ey5lMr+yh97hBdSpJZeLZiZGIDxTHztInm7iZKi0QtM+LVF0z26
YdO9JTVHHMzUDrh6Qi5JvJIRm1B4ZkugEvFsCjxez3zImHLKM+n4SWYSoob56ClZ
Td0A/H24evyFnhTEH9FKtuguLTHkoywpykw0JGEtVA/uePt1aIyk2P/7lUXYJHPP
23D1MBUcXVSknX++Dhvo5iueRN7nl0TSFFdOhFBPVrDooLPRtgHSyo26YrYGC3Be
qHC1LJiY6KvF+uBR7P//ZAfyc4nwqUuDAg7+oN3uuqiBx/1LhSXQYrU4RuAj1WR6
FUte3UXmnZei3W2bS/9elMXK6rK3lScdZqnSpl3aGGcBspDKfksTb9Ryv+fs/ZUC
0EwRDQyL40e0sRjChBKZ31VoirBZmIbedfFmahXQiag39MTxDtyLSJsn2IuNno5f
jOoMbRRtoOtQJIQNPgaOOhxI3MoYDKSMsWxbXdCCu99qRElD7Pf8OclSWjU8VYOS
XdFmdDKBLFeJqyza/yr2rExZD6O62l1KQ467HEz7hNm+mbYd5qB19Uk4FhA3PGOJ
TUlQw9pzNnAHIfTsguudWusDxnU6GhHDe7AYPewYedMllSEuAcnMO50+thgzmVyL
DMY6+vmC8MKiUPrNVmI4
=rs5p
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to