Control: tag -1 + patch

On Sat, 20 Oct 2012 10:56:06 +0200, Andreas Beckmann wrote:

> that NMU makes /usr/share/doc/libphone-ui-dev a dangling symlink. The
> correct target would probably be libphone-ui-20110825.

Or libphone-ui-common:

debian/rules:

override_dh_installdocs:
    dh_installdocs --link-doc=libphone-ui-common

The packages in debian/control depend either on libphone-ui-common,
or on libphone-ui-20110825 which also has a symlink to
libphone-ui-common and depends on libphone-ui-common.

Not sure if the "indirect symlink" or the "indirect dependency" is
less ugly; but from the perceived end result according to d/rules,
I'd go for libphone-ui-common.
 

(Untested) patch attached for review.

Cheers,
gregor


-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Various Artists: Katie
diff -Nru libphone-ui-0.0.1+git20110825/debian/changelog libphone-ui-0.0.1+git20110825/debian/changelog
--- libphone-ui-0.0.1+git20110825/debian/changelog	2012-10-14 14:26:07.000000000 +0200
+++ libphone-ui-0.0.1+git20110825/debian/changelog	2012-10-24 17:38:53.000000000 +0200
@@ -1,3 +1,14 @@
+libphone-ui (1:0.0.1+git20110825-2.2) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "missing copyright file after upgrade from squeeze":
+    change docdir in libphone-ui-dev.postinst from non-existant
+    libphone-ui to libphone-ui-common (same as in debian/rules for new
+    installs).
+    (Closes: #690150)
+
+ -- gregor herrmann <gre...@debian.org>  Wed, 24 Oct 2012 17:32:51 +0200
+
 libphone-ui (1:0.0.1+git20110825-2.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru libphone-ui-0.0.1+git20110825/debian/libphone-ui-dev.postinst libphone-ui-0.0.1+git20110825/debian/libphone-ui-dev.postinst
--- libphone-ui-0.0.1+git20110825/debian/libphone-ui-dev.postinst	2012-10-14 14:24:05.000000000 +0200
+++ libphone-ui-0.0.1+git20110825/debian/libphone-ui-dev.postinst	2012-10-24 17:37:39.000000000 +0200
@@ -5,7 +5,7 @@
 docdir="/usr/share/doc/libphone-ui-dev"
 if [ -d $docdir ] && [ ! -L $docdir ]; then
     if rmdir $docdir 2>/dev/null; then
-        ln -sf libphone-ui $docdir
+        ln -sf libphone-ui-common $docdir
     fi
 fi
 

Attachment: signature.asc
Description: Digital signature

Reply via email to