[Debian-ha-maintainers] Bug#698375: gfs2-utils: fails to upgrade from squeeze: insserv: script gfs2-utils: service gfs2 already provided!

Salvatore Bonaccorso carnil at debian.org
Thu Jan 17 21:37:24 UTC 2013


Control: tags -1 + confirmed

Hi Andreas

Note: I'm not the maintainer but responding here as I noticed that
(did the previous NMU on gfs2-utils). I shortly looked at it and tried
the attached approach. However the problem in this case remain as
gfs2-utils.postinst is:

----cut---------cut---------cut---------cut---------cut---------cut-----
#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/gfs2-utils" ]; then
        update-rc.d gfs2-utils start 65 S . start 2 0 6 . >/dev/null || exit $?
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/init.d/gfs2-tools 3.1.3-1.2~ gfs2-tools -- "$@"
# End automatically added section
----cut---------cut---------cut---------cut---------cut---------cut-----

Even if I interchange this seems still to "do the wrong thing".

I have not (yet) further investigated how to possibly solve this.

Regards,
Salvatore
-------------- next part --------------
diff -Nru gfs2-utils-3.1.3/debian/changelog gfs2-utils-3.1.3/debian/changelog
--- gfs2-utils-3.1.3/debian/changelog	2013-01-11 19:18:10.000000000 +0100
+++ gfs2-utils-3.1.3/debian/changelog	2013-01-17 21:11:10.000000000 +0100
@@ -1,3 +1,15 @@
+gfs2-utils (3.1.3-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove old conffile /etc/init.d/gfs2-tools from gfs2-tools package.
+    Add a Pre-Depends on dpkg to use dpkg-maintscript-helper. Add
+    ${misc:Pre-Depends} to Pre-Depends control file field.
+    Add debian/gfs2-utils.maintscript containing the rm_conffile command to
+    remove /etc/init.d/gfs2-tools init script from superseeded gfs2-tools
+    package. (Closes: #698375)
+
+ -- Salvatore Bonaccorso <carnil at debian.org>  Thu, 17 Jan 2013 21:11:01 +0100
+
 gfs2-utils (3.1.3-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru gfs2-utils-3.1.3/debian/control gfs2-utils-3.1.3/debian/control
--- gfs2-utils-3.1.3/debian/control	2013-01-11 19:18:10.000000000 +0100
+++ gfs2-utils-3.1.3/debian/control	2013-01-17 21:11:10.000000000 +0100
@@ -10,6 +10,7 @@
 
 Package: gfs2-utils
 Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${misc:Depends}, ${shlibs:Depends}, gfs2-cluster (= ${binary:Version}), psmisc, cman
 Replaces: gfs2-tools (<= 3.0.17)
 Conflicts: gfs2-tools (<= 3.0.17)
diff -Nru gfs2-utils-3.1.3/debian/gfs2-utils.maintscript gfs2-utils-3.1.3/debian/gfs2-utils.maintscript
--- gfs2-utils-3.1.3/debian/gfs2-utils.maintscript	1970-01-01 01:00:00.000000000 +0100
+++ gfs2-utils-3.1.3/debian/gfs2-utils.maintscript	2013-01-17 21:11:10.000000000 +0100
@@ -0,0 +1 @@
+rm_conffile /etc/init.d/gfs2-tools 3.1.3-1.2~ gfs2-tools


More information about the Debian-ha-maintainers mailing list