[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#745834: marked as done (dh-apache2 causes a postinst failure when a package depends on an apache2-bin provided module)



Your message dated Sun, 28 Sep 2014 21:19:46 +0000
with message-id <E1XYLsg-0005Io-Eb@franck.debian.org>
and subject line Bug#745834: fixed in apache2 2.4.10-3
has caused the Debian Bug report #745834,
regarding dh-apache2 causes a postinst failure when a package depends on an apache2-bin provided module
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 owner@bugs.debian.org
immediately.)


-- 
745834: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745834
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apache2
Version: 2.4.9-1
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu utopic

If I install apache2 at the same time as libapache2-mod-svn, then it is
possible that both packages are unpacked, but
libapache2-mod-svn is configured first.

In this case, /usr/share/apache2/apache2-maintscript-helper exists, so
the dh-apache2 -inserted snippet in libapache2-mod-svn tries to enable
the dav_svn module. This depends on the dav module, and the call to
"a2enmod -m -q dav_svn" subsequently fails, causing libapache2-mod-svn
to fail silently.

During debugging I found that the error message was:

ERROR: Module dav does not exist!
ERROR: Could not enable dependency dav for dav_svn, aborting

At this point, I see that /etc/apache2/mods-available/dav.load does not
exist (but /etc/apache2/mods-available/dav.load.dpkg-new does exist). It
seems that this is provided by the apache2 binary package, which has yet
to be configured. I presume that this causes a2enmod to fail to see it.

Steps to reproduce. As root on a fresh amd64 sid machine:

apt-get clean
apt-get install -y --download-only libapache2-mod-svn apache2
mkdir 1 2
mv /var/cache/apt/archives/*.deb 1/
mv 1/apache2_2.4.9-1_amd64.deb 1/libapache2-mod-svn_1.8.8-2_amd64.deb 2/
dpkg -i 1/*
dpkg --unpack 2/*
dpkg --configure libapache2-mod-svn

This fails with:

Setting up libapache2-mod-svn (1.8.8-2) ...
dpkg: error processing package libapache2-mod-svn (--configure):
 subprocess installed post-installation script returned error exit
status 1
Errors were encountered while processing:
 libapache2-mod-svn

I'm not sure how best to approach this problem. Given that I am
installing the packages together, I do expect dav_svn to be enabled
when it is done, so simply not doing so in this case wouldn't really
work. Having a2enmod special-case .dpkg-new files seems bad to me too.
We can't depend on apache2 since the module providing package should be
able to be installed independently. The only thing I can think of is to
notice that apache2 isn't configured, and note what needs to be done
later somehow, but this wouldn't be as trivial as I would like it.

In Ubuntu, this is causing our subversion dep8 test to fail, since it
installs libapache2-mod-svn and apache2 together. I presume this will
affect Debian also. I suppose a workaround for now is to have the test
install apache2 first.

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: apache2
Source-Version: 2.4.10-3

We believe that the bug you reported is fixed in the latest version of
apache2, 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 745834@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefan Fritsch <sf@debian.org> (supplier of updated apache2 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 ftpmaster@ftp-master.debian.org)


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

Format: 1.8
Date: Sun, 28 Sep 2014 22:37:02 +0200
Source: apache2
Binary: apache2 apache2-data apache2-bin apache2-mpm-worker apache2-mpm-prefork apache2-mpm-event apache2-mpm-itk apache2.2-bin apache2.2-common libapache2-mod-proxy-html libapache2-mod-macro apache2-utils apache2-suexec apache2-suexec-pristine apache2-suexec-custom apache2-doc apache2-dev apache2-dbg
Architecture: source amd64 all
Version: 2.4.10-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Stefan Fritsch <sf@debian.org>
Description:
 apache2    - Apache HTTP Server
 apache2-bin - Apache HTTP Server (modules and other binary files)
 apache2-data - Apache HTTP Server (common files)
 apache2-dbg - Apache debugging symbols
 apache2-dev - Apache HTTP Server (development headers)
 apache2-doc - Apache HTTP Server (on-site documentation)
 apache2-mpm-event - transitional event MPM package for apache2
 apache2-mpm-itk - transitional itk MPM package for apache2
 apache2-mpm-prefork - transitional prefork MPM package for apache2
 apache2-mpm-worker - transitional worker MPM package for apache2
 apache2-suexec - transitional package for apache2-suexec-pristine
 apache2-suexec-custom - Apache HTTP Server configurable suexec program for mod_suexec
 apache2-suexec-pristine - Apache HTTP Server standard suexec program for mod_suexec
 apache2-utils - Apache HTTP Server (utility programs for web servers)
 apache2.2-bin - Transitional package for apache2-bin
 apache2.2-common - Transitional package for apache2
 libapache2-mod-macro - Transitional package for apache2-bin
 libapache2-mod-proxy-html - Transitional package for apache2-bin
Closes: 719930 745812 745834 746359 762645 762908
Changes:
 apache2 (2.4.10-3) unstable; urgency=medium
 .
   * CVE-2014-3581: Fix a DoS in mod_cache.
   * If apache2 is not configured yet, defer actions executed via
     apache2-maintscript-helper. This fixes installation failures if a
     module package is configured first. Closes: #745834
   * Don't use a2query in preinst, as it may not be available yet.
     Closes: #745812
   * Include mod_authnz_fcgi. Closes: #762908
   * Add some comments about SSLHonorCipherOrder in ssl.conf. Closes: #746359
   * Remove misleading sentence in apache2-bin's description. Closes: #762645
   * Remove trailing space in apache2/suexec/www-data. Closes: #719930
   * Add NEWS entry for the logrotate change in 2.4.10-2.
   * Bump Standards-version (no changes).
   * Fix lintian warning: Tweak licence short names in copyright file.
Checksums-Sha1:
 017788af8b177a653cb7257675107e086c6ff38f 3218 apache2_2.4.10-3.dsc
 2c044ef76a3502220f4bf10defa4acb19aca717f 509068 apache2_2.4.10-3.debian.tar.xz
 82d74dfec4a491f62c21b0b5b2558ed1061712e9 1508 libapache2-mod-proxy-html_2.4.10-3_amd64.deb
 1aee7870b5a39693cea24a65d6ebaf35e35a9c6c 1496 libapache2-mod-macro_2.4.10-3_amd64.deb
 22c63f6a0e4e6d25e62c22401d0b943d7379e1e6 203022 apache2_2.4.10-3_amd64.deb
 9bfb2464e3d5d3a4483c9f84767f191566ae0cdc 162474 apache2-data_2.4.10-3_all.deb
 3db1b08ba28ba2664ac6fdac897fb1135417ad5a 1029310 apache2-bin_2.4.10-3_amd64.deb
 b36eb55ed2d7414d97d22454902e1162cb1cf8cc 1508 apache2-mpm-worker_2.4.10-3_amd64.deb
 9e869408ed8a9e97056886c49af25b248557b0ad 1514 apache2-mpm-prefork_2.4.10-3_amd64.deb
 0e4b621c7139e1acb5ff111dbf1f8ba107b0546f 1512 apache2-mpm-event_2.4.10-3_amd64.deb
 4df8d2686dc6543270a986fed5e53ec3f588b9d2 1508 apache2-mpm-itk_2.4.10-3_amd64.deb
 47a95f1ebc6e850ebf3909f0ec926dd1248f3a4c 1522 apache2.2-bin_2.4.10-3_amd64.deb
 34059a39784acd2163c54fa2a2f9e0493274fd94 121974 apache2.2-common_2.4.10-3_amd64.deb
 99e2215922bd31f6b1b1176c836bc6693f302fa2 192732 apache2-utils_2.4.10-3_amd64.deb
 23c24831c46a0af353d08dc748bd6788e9144794 1482 apache2-suexec_2.4.10-3_amd64.deb
 468b3868e4b1f9a6bed01d4bca739f00da224253 127648 apache2-suexec-pristine_2.4.10-3_amd64.deb
 41e967741677b12f5c17b9c9ab9e746c2f3a2051 129180 apache2-suexec-custom_2.4.10-3_amd64.deb
 30a7aecb68d410010340abd2524018a85c603da5 2723850 apache2-doc_2.4.10-3_all.deb
 1805be5c544164e3f0938cd733acc3ef29785e44 278756 apache2-dev_2.4.10-3_amd64.deb
 04969e9fc2e200a839750e4aad84a0ec1d01863d 1703984 apache2-dbg_2.4.10-3_amd64.deb
Checksums-Sha256:
 7d330641bab4cc25ce17bc7ed463fbed66aeb45565188d67121fd1391c05a2a5 3218 apache2_2.4.10-3.dsc
 d8e9b2c7b1914631c6067ec87a057d7593f4a2a246c117ad529102ee76c348ce 509068 apache2_2.4.10-3.debian.tar.xz
 83acbff69294490e1ca091f6de65158f68c26d8ec4c651e6ee8bd1a7239d196c 1508 libapache2-mod-proxy-html_2.4.10-3_amd64.deb
 ac977d692e98576961a615b5d045371e7e9e448f1c4a46da457e0a282c708300 1496 libapache2-mod-macro_2.4.10-3_amd64.deb
 cc10e39fb2917748010abce223e143e1e11b36998d765315e46d71b37b1d1489 203022 apache2_2.4.10-3_amd64.deb
 c6d9165e98f62f9da71957f93db97b60d723d956711c8b9dcae610533c5ad76f 162474 apache2-data_2.4.10-3_all.deb
 0e83cafee5fe8de09c99844a6810d562afc1f8dedb050454f124a98109e28d2d 1029310 apache2-bin_2.4.10-3_amd64.deb
 5b32fe644b9b4d3daf2fa4ce362b980bfb506dd127c0595b79f1b7387d4bae59 1508 apache2-mpm-worker_2.4.10-3_amd64.deb
 103e987ab6ab099b5e498f0e3467dc1ffa2925ef6970ba4068aeb640ba147631 1514 apache2-mpm-prefork_2.4.10-3_amd64.deb
 66afee860f93d3de4038b0e081f54f5883683728194a1e086df89d9d9a50dd22 1512 apache2-mpm-event_2.4.10-3_amd64.deb
 7bea136372f9428da40cf64bf0b0ec09eab601c666c2c1818dd0f523655a7be4 1508 apache2-mpm-itk_2.4.10-3_amd64.deb
 fb3a449c8dec412b7346d524a4065e9ddd39d59d74d74d64ff3031b906fd851d 1522 apache2.2-bin_2.4.10-3_amd64.deb
 f5a81b9c5cd8e634bd705d61f1e4094d9269903ee0c0eba93ff03b083a3e4eb9 121974 apache2.2-common_2.4.10-3_amd64.deb
 e6c5fea1bb98f03e81833d25d44d3413fd6288d6bff39d759fd7cb7b2f8bba18 192732 apache2-utils_2.4.10-3_amd64.deb
 fc2bcfa901837dac00bee64ee3c130aa9dd066d309492a1bce425213bcb4bfcb 1482 apache2-suexec_2.4.10-3_amd64.deb
 78819c70d90288b0487abe8c2a4917894a575349a6a1b46fb9b5541e85582ac0 127648 apache2-suexec-pristine_2.4.10-3_amd64.deb
 64cfd228b38f2e125e8f0e46a3843fe4213d3440e494ac395e942f2a5f9d9014 129180 apache2-suexec-custom_2.4.10-3_amd64.deb
 b4d52a0928978ff28595ac9c2dbc31ab9494ff5cefd09edb7db708e39a150e1d 2723850 apache2-doc_2.4.10-3_all.deb
 369142a2861c7d2b34ce0524a281ab4766c9f89d584bce306ac4e4ee62cba864 278756 apache2-dev_2.4.10-3_amd64.deb
 931fc1beb04265a22b93852b85d7b02bb99a4c3b14c6981e507ab9b3c23ee5e0 1703984 apache2-dbg_2.4.10-3_amd64.deb
Files:
 ba091d954ced4a73d42b46ce3fd48a21 1508 oldlibs extra libapache2-mod-proxy-html_2.4.10-3_amd64.deb
 9d62763d6607e168af15fd36322b7c93 1496 oldlibs extra libapache2-mod-macro_2.4.10-3_amd64.deb
 0dd34f9570e73d52a5d7837a94f9de10 203022 httpd optional apache2_2.4.10-3_amd64.deb
 c0866cab083d09949b3a5d17a10d4480 162474 httpd optional apache2-data_2.4.10-3_all.deb
 ecde9a8a9c00cf3f69d584924022b051 1029310 httpd optional apache2-bin_2.4.10-3_amd64.deb
 261c4a035a5c90655a4ad1a90743f483 1508 oldlibs extra apache2-mpm-worker_2.4.10-3_amd64.deb
 4316f85e15c54e74fab7e3cf5c324679 1514 oldlibs extra apache2-mpm-prefork_2.4.10-3_amd64.deb
 f07703bb33ad59e3ba25ee5732937b8f 1512 oldlibs extra apache2-mpm-event_2.4.10-3_amd64.deb
 12a72d2a396ca8f472757655a612fa47 1508 oldlibs extra apache2-mpm-itk_2.4.10-3_amd64.deb
 5bce52ce9c581061ac23898a847c51fc 1522 oldlibs extra apache2.2-bin_2.4.10-3_amd64.deb
 cdb4637da1f948febbfb1d0e834d6e92 121974 oldlibs extra apache2.2-common_2.4.10-3_amd64.deb
 8bcd57c06086d9c04eb35dac7aaaf3bf 192732 httpd optional apache2-utils_2.4.10-3_amd64.deb
 3502b5676d74a16bb856931fee52ba53 1482 oldlibs extra apache2-suexec_2.4.10-3_amd64.deb
 9a77c30ef83c947946cf33ad88c3c3cf 127648 httpd optional apache2-suexec-pristine_2.4.10-3_amd64.deb
 3c4aa8fd03d0aedf697edb837dce85cc 129180 httpd extra apache2-suexec-custom_2.4.10-3_amd64.deb
 b35080029f873616ee95287820f5ec5a 2723850 doc optional apache2-doc_2.4.10-3_all.deb
 f4f614e444f7d73a017e2f11da18646b 278756 httpd optional apache2-dev_2.4.10-3_amd64.deb
 cceb5258de3edc76d5c8c56e199c6919 1703984 debug extra apache2-dbg_2.4.10-3_amd64.deb
 10ea6675185d37eefd6455571fe23f72 3218 httpd optional apache2_2.4.10-3.dsc
 453b6519c00ae87bec3bfa1efda376d6 509068 httpd optional apache2_2.4.10-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVCh2TsaHXzVBzv3gAQib7A/9FifTZVeOOuOJtzTIZAFq9zd1O8tY4uLR
ym1XaMvkg7SzOttEch9OARpLiEzXcG76FziSlFMONZnB2KRW9hVNyfETzfrF6DJw
Nbgc4FyGIGzgjh/XDc3q5N1oJl2Ms+15t81E5yxGFy5Qj0bPX2fBckL21TIhTA59
wZixWrzLcRLujJJYP9YftBp0Jv8Qq03N1g+iGI0wlBGeBLTYv6ta5wJAWFDcsLB4
4Fkm4htxvXBgcVkUsI1XlgwikMRgNlcHwlkup7gmGi6wEgQDVsUCe9T42b/tBN7X
FH8Lk68o7P3GsBt/VwbsOTGQIF5p2HbYfcx+YW2STIKH22yj0PPEl6jZFxxG2XQ4
m1zXW9r2NepZMRHRQBNden9gOIgYw8cKi0XWBYmVTUJaHG7ERD7F19GXhZBOr4Z9
TjCvTrr9Pe0uwZtG/ZZtqfFygxMtku95kGlyo/urgYi1sYeUTMn/ZPMsrJ5DjL+t
npj5kcprLqLyH6459mODAS4oAeDMzWVATy5Xost1AkPf49v4Dur6M+vZ766JtpIz
fMLnLLCv0LA7eXSL7h7LdXfeRYowwHC5f42iXsXPWwpjJdB+4s/9MaRENhvCv/IU
bdSBzz/dIelZsrLWFpT38VRYXnPFVhzW2mSRGRNomzNI3S0E97uGyFzzjjhBu5xf
eHcPTeuR+jQ=
=ADyh
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: