Control: tag -1 + patch

On Tue, 15 Jan 2019 23:59:05 +0100, Andreas Beckmann wrote:

> an upgrade test with piuparts revealed that your package installs files
> over existing symlinks and possibly overwrites files owned by other
> packages. This usually means an old version of the package shipped a
> symlink but that was later replaced by a real (and non-empty)
> directory. This kind of overwriting another package's files cannot be
> detected by dpkg.

> It is recommended to use the dpkg-maintscript-helper commands
> 'dir_to_symlink' and 'symlink_to_dir' (available since dpkg 1.17.14)
> to perform the conversion, ideally using d/$PACKAGE.maintscript.
> See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.

Here's a patch using dpkg-maintscript-helper to handle the
symlink_to_dir transition.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: hons: molly's got a rider
diff -Nru libgsm-1.0.18/debian/changelog libgsm-1.0.18/debian/changelog
--- libgsm-1.0.18/debian/changelog	2019-01-01 00:28:12.000000000 +0100
+++ libgsm-1.0.18/debian/changelog	2019-03-17 16:34:15.000000000 +0100
@@ -1,3 +1,13 @@
+libgsm (1.0.18-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix "unhandled symlink to directory conversion:
+    /usr/share/doc/PACKAGE":
+    add libgsm1-dev.maintscript for the symlink_to_dir transition.
+    (Closes: #919438)
+
+ -- gregor herrmann <gre...@debian.org>  Sun, 17 Mar 2019 16:34:15 +0100
+
 libgsm (1.0.18-1) unstable; urgency=medium
 
   * New upstream version
diff -Nru libgsm-1.0.18/debian/libgsm1-dev.maintscript libgsm-1.0.18/debian/libgsm1-dev.maintscript
--- libgsm-1.0.18/debian/libgsm1-dev.maintscript	1970-01-01 01:00:00.000000000 +0100
+++ libgsm-1.0.18/debian/libgsm1-dev.maintscript	2019-03-17 16:34:15.000000000 +0100
@@ -0,0 +1 @@
+symlink_to_dir /usr/share/doc/libgsm1-dev libgsm1 1.0.18-1.1~

Attachment: signature.asc
Description: Digital Signature

Reply via email to