[apache2] 02/06: Also restore re-introduced *.load files
Stefan Fritsch
sf at moszumanska.debian.org
Thu Aug 11 20:07:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
sf pushed a commit to branch master
in repository apache2.
commit 473f1bb409c11b19d09e6b10439ba29f1c13b994
Author: Stefan Fritsch <sf at sfritsch.de>
Date: Wed Aug 10 16:32:27 2016 +0200
Also restore re-introduced *.load files
These may have gone missing due to dpkg thinking they still
belong to apache2.2-common.
dpkg really should offer an explicit API to make it forget about removed
obsolete conffiles.
---
debian/apache2.preinst.in | 15 +++++++++++++++
debian/changelog | 3 +++
debian/rules | 5 ++++-
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/debian/apache2.preinst.in b/debian/apache2.preinst.in
index 1139f9b..301eab7 100644
--- a/debian/apache2.preinst.in
+++ b/debian/apache2.preinst.in
@@ -16,6 +16,15 @@ set -e
FIXUP_TEMPFILE=
+# During the migration of conffiles from apache2.2-common to apache2,
+# some things may have gone wrong.
+# * Some conffiles may have been left with obsolete content. These
+# have an md5sum in this list.
+# * Some other conffiles may have been removed but dpkg still thinks that
+# they belong to apache2.2-common. A few of these have been re-introduced,
+# but dpkg being confused about their state causes dpkg to think the
+# admin has removed them and to not create the new content.
+# These have a 'restore' instead of a md5 in the list.
list_fixup_conffiles () {
cat <<- EOF
/etc/bash_completion.d/apache2 6a5f85e62655f6b5c8fa0f95c7c35c9c removed
@@ -25,6 +34,9 @@ list_fixup_conffiles () {
/etc/apache2/conf-available/localized-error-pages.conf 844ba27ddb794fc6967bfb56b950e6a8
/etc/apache2/conf-available/other-vhosts-access-log.conf 2cad303fc4221d6b0068a8b37597b9fb
/etc/apache2/conf-available/security.conf 0f644d9d04ad556f44f1e65674bc07dc
+ /etc/apache2/mods-available/cern_meta.load restore
+ /etc/apache2/mods-available/ident.load restore
+ /etc/apache2/mods-available/imagemap.load restore
EOF
}
@@ -52,6 +64,9 @@ replace_broken_conffiles () {
if [ -z "$REMOVED" ] ; then
extract_fixup_conffile "$FILE"
fi
+ elif [ ! -e "$FILE" ] && [ "$MD5" = "restore" ] ; then
+ echo "Restoring lost conffile ${FILE}."
+ extract_fixup_conffile "$FILE"
fi
done
rm -f "$FIXUP_TEMPFILE"
diff --git a/debian/changelog b/debian/changelog
index f88c4b5..d9d2f4f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ apache2 (2.4.23-3) UNRELEASED; urgency=low
* Fix conffiles that may have got the wrong content during upgrade from
wheezy to early jessie versions. Closes: #794933
+ * Also restore re-introduced *.load files for mod_ident, mod_imagemap, and
+ mod_cern_meta. These may have gone missing due to dpkg thinking they still
+ belong to apache2.2-common. Reported by Markus Waldeck.
* Make mod_proxy_html depend on mod_xml2enc.
-- Stefan Fritsch <sf at debian.org> Wed, 10 Aug 2016 11:25:02 +0200
diff --git a/debian/rules b/debian/rules
index f68de5b..709623d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,7 +51,10 @@ debian/fixup_conffiles.tgz: \
debian/config-dir/conf-available/charset.conf \
debian/config-dir/conf-available/localized-error-pages.conf \
debian/config-dir/conf-available/other-vhosts-access-log.conf \
- debian/config-dir/conf-available/security.conf
+ debian/config-dir/conf-available/security.conf \
+ debian/config-dir/mods-available/cern_meta.load \
+ debian/config-dir/mods-available/ident.load \
+ debian/config-dir/mods-available/imagemap.load
tar --transform 's,.*/,,' -cz -f $@ $^
debian/fixup_conffiles.b64: debian/fixup_conffiles.tgz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git
More information about the Pkg-apache-commits
mailing list