tag 657718 patch pending
thanks

Chimrod <sebast...@chimrod.com> (28/01/2012):
> Package: liblua5.1-oocairo0
> Version: 1.4-1
> Severity: grave
> Justification: renders package unusable
> 
> Installation make a broken link :
> 
> $ ls -la /usr/lib/x86_64-linux-gnu/lua/5.1/oocairo.so
> lrwxrwxrwx 1 root root 22 nov.  24 11:39 /usr/lib/x86_64-linux-
> gnu/lua/5.1/oocairo.so -> ../../../liboocairo.so

Probably a side effect of the multiarchification, since libtool
generates an absolute symlink, which dh_link converts to a relative one.
I've implemented auto-lookup and auto-fixup in my NMU, patch attached.
As said in the changelog, it could probably be written in a better
fashion, but it's bug squashing time.

Binary debdiff:
| debdiff liblua5.1-oocairo0_1.4-1{,.1}_*deb
| [The following lists of changes regard files as different if they have
| different names, permissions or owners.]
| 
| Files in second .deb but not in first
| -------------------------------------
| lrwxrwxrwx  root/root   /usr/lib/x86_64-linux-gnu/lua/5.1/oocairo.so -> 
../../liboocairo.so
| 
| Files in first .deb but not in second
| -------------------------------------
| lrwxrwxrwx  root/root   /usr/lib/x86_64-linux-gnu/lua/5.1/oocairo.so -> 
../../../liboocairo.so
| 
| Control files: lines which differ (wdiff format)
| ------------------------------------------------
| Version: [-1.4-1-] {+1.4-1.1+}

Thanks to IRILL for sponsoring this BSP in Paris.

Mraw,
KiBi.
diff -Nru oocairo-1.4/debian/changelog oocairo-1.4/debian/changelog
--- oocairo-1.4/debian/changelog	2011-11-24 10:38:09.000000000 +0000
+++ oocairo-1.4/debian/changelog	2012-02-19 03:30:43.000000000 +0000
@@ -1,3 +1,16 @@
+oocairo (1.4-1.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Fix the dangling oocairo.so symlink, which is probably the case since
+    the conversion to multiarch (move from /usr/lib to /usr/lib/<triplet>)
+    by computing the relative link between oocairo.so and its target, hunted
+    down thanks to its basename (Closes: #657718). The implementation could
+    certainly be improved, though.
+  * Set urgency to “high” for the RC bug fix.
+  * Thanks to IRILL for sponsoring this BSP in Paris.
+
+ -- Cyril Brulebois <k...@debian.org>  Sun, 19 Feb 2012 04:30:42 +0100
+
 oocairo (1.4-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru oocairo-1.4/debian/rules oocairo-1.4/debian/rules
--- oocairo-1.4/debian/rules	2011-11-24 10:36:06.000000000 +0000
+++ oocairo-1.4/debian/rules	2012-02-19 03:27:33.000000000 +0000
@@ -18,4 +18,11 @@
 
 override_dh_install:
 	cp -a debian/tmp/usr/lib/*.so* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+	# Turn the absolute symlink into a relative one (which dh_link
+	# would do later anyway) to cope with the previous cp command:
+	src=`find debian/tmp -name oocairo.so` && \
+	  dst=`find debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) -name $$(basename $$(readlink $$src))` && \
+	  src_dir=`dirname $$src` && \
+	  rel_link=`perl -MFile::Spec -e "print File::Spec->abs2rel(\"$$dst\",\"$$src_dir\")"` && \
+	  ln -sf $$rel_link $$src
 	dh_install

Attachment: signature.asc
Description: Digital signature

Reply via email to