On Thu, 02 Jul 2015 at 13:22:34 +0200, Sebastian Ramacher wrote:
> Preparing to unpack .../autoconf-archive_20150224-1_all.deb ...
> dpkg-maintscript-helper: error: symlink pathname ends with a slash
> dpkg: error processing archive
> /var/cache/apt/archives/autoconf-archive_20150224-1_all.deb (--unpack):
> subprocess new pre-installation script returned error exit status 1
> dpkg-maintscript-helper: error: symlink pathname ends with a slash
> dpkg: error while cleaning up:
> subprocess new post-removal script returned error exit status 1
This is the same thing as https://bugs.debian.org/759528 from almost
a year ago, which was fixed in an NMU. The changes from that NMU were not
included ("acknowledged") in the 20150224-1 upload.
I'm not sure how both the maintainer and the sponsor avoided
this bug while testing the package, given that it should affect any
installation with a dpkg version >= stable? Please try not to re-introduce
RC bugs that were already fixed by an NMU.
The attached seems to work. I will NMU it if required.
S
diffstat for autoconf-archive-20150224 autoconf-archive-20150224
autoconf-archive.postinst | 4 ++--
autoconf-archive.postrm | 4 ++--
autoconf-archive.preinst | 4 ++--
changelog | 17 +++++++++++++++++
4 files changed, 23 insertions(+), 6 deletions(-)
diff -Nru autoconf-archive-20150224/debian/autoconf-archive.postinst autoconf-archive-20150224/debian/autoconf-archive.postinst
--- autoconf-archive-20150224/debian/autoconf-archive.postinst 2015-06-27 22:09:39.000000000 +0100
+++ autoconf-archive-20150224/debian/autoconf-archive.postinst 2015-07-03 08:52:43.000000000 +0100
@@ -6,8 +6,8 @@
# remove remnant of old installation under $OLDHTMLDOCDIR
# remove after squeeze + 2
dpkg-maintscript-helper symlink_to_dir \
- /usr/share/autoconf-archive/html/ \
- ../../autoconf-archive/html \
+ /usr/share/doc/autoconf-archive/html \
+ /usr/share/autoconf-archive/html \
20111221-2~ -- "$@"
diff -Nru autoconf-archive-20150224/debian/autoconf-archive.postrm autoconf-archive-20150224/debian/autoconf-archive.postrm
--- autoconf-archive-20150224/debian/autoconf-archive.postrm 2015-06-27 22:09:39.000000000 +0100
+++ autoconf-archive-20150224/debian/autoconf-archive.postrm 2015-07-03 08:52:43.000000000 +0100
@@ -6,8 +6,8 @@
# remove old squeeze symlink
# remove after squeeze + 2
dpkg-maintscript-helper symlink_to_dir \
- /usr/share/autoconf-archive/html/ \
- ../../autoconf-archive/html \
+ /usr/share/doc/autoconf-archive/html \
+ /usr/share/autoconf-archive/html \
20111221-2~ -- "$@"
# dh_installdeb will replace this with shell code automatically
diff -Nru autoconf-archive-20150224/debian/autoconf-archive.preinst autoconf-archive-20150224/debian/autoconf-archive.preinst
--- autoconf-archive-20150224/debian/autoconf-archive.preinst 2015-06-27 22:09:39.000000000 +0100
+++ autoconf-archive-20150224/debian/autoconf-archive.preinst 2015-07-03 08:52:43.000000000 +0100
@@ -6,8 +6,8 @@
# remove old squeeze symlink
# remove after squeeze + 2
dpkg-maintscript-helper symlink_to_dir \
- /usr/share/autoconf-archive/html/ \
- ../../autoconf-archive/html \
+ /usr/share/doc/autoconf-archive/html \
+ /usr/share/autoconf-archive/html \
20111221-2~ -- "$@"
# dh_installdeb will replace this with shell code automatically
diff -Nru autoconf-archive-20150224/debian/changelog autoconf-archive-20150224/debian/changelog
--- autoconf-archive-20150224/debian/changelog 2015-07-02 06:53:10.000000000 +0100
+++ autoconf-archive-20150224/debian/changelog 2015-07-03 09:06:35.000000000 +0100
@@ -1,3 +1,20 @@
+autoconf-archive (20150224-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Reapply the unacknowledged 20140228-1.1 NMU (Closes: #790851, #759528)
+
+ -- Simon McVittie <[email protected]> Fri, 03 Jul 2015 09:04:48 +0100
+
+autoconf-archive (20140228-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix call to dpkg-maintscript-helper in maintainer scripts (Closes:
+ #759528):
+ - Swap the pathname and the target to pass them in the correct order.
+ - Use absolute pathnames.
+
+ -- Aurelien Jarno <[email protected]> Sun, 31 Aug 2014 06:41:57 +0200
+
autoconf-archive (20150224-1) unstable; urgency=medium
* New upstream version (Closes: #787757):