Package: libpng12-dev
Version: 1.2.49-1
Severity: important
Tags: patch

Hi,

libpng12-dev may cause ldconfig to play ping-pong with
/usr/lib/<triplet>/libpng12.so.0 - that file is not shipped, but since
it is the SONAME of the library shipped as
/usr/lib/<triplet>/libpng12.so (and /usr/lib/<triplet>/libpng.so) 
ldconfig will create the symlink
/usr/lib/<triplet>/libpng12.so.0 -> libpng.so
While this points to the correct file and the link is not really
needed, this looks a bit strange.

I'm attaching a patch to switch the links to
/usr/lib/<triplet>/libpng12.so -> libpng12.so.0 -> /lib/<triplet>/libpng12.so.0
that will prevent ldconfig from creating the missing SONAME link.

I've also seen this link disappear during some experiments with MA:same
package installations, although that should not happen ...

Shipping the SONAME link in /usr/, too, will make the behavior
deterministic and independent from the time ldconfig is run.


Andreas
diff -Nru libpng-1.2.49/debian/changelog libpng-1.2.49/debian/changelog
--- libpng-1.2.49/debian/changelog	2012-08-28 09:26:22.000000000 +0200
+++ libpng-1.2.49/debian/changelog	2013-04-26 00:37:59.000000000 +0200
@@ -1,3 +1,12 @@
+libpng (1.2.49-3.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * libpng12-dev: Ship /usr/lib/${DEB_HOST_MULTIARCH}/libpng12.so.0 ->
+    /lib/${DEB_HOST_MULTIARCH}/libpng12.so.0 symlink, too, to prevent ldconfig
+    from playing ping-pong with the SONAME link.  (Closes: #xxxxxx)
+
+ -- Andreas Beckmann <a...@debian.org>  Fri, 26 Apr 2013 00:33:36 +0200
+
 libpng (1.2.49-3) unstable; urgency=low
 
   * Remove patches/02-681408-CVE-2012-3386-Makefile.in.patch.
diff -Nru libpng-1.2.49/debian/libpng12-dev.links.in libpng-1.2.49/debian/libpng12-dev.links.in
--- libpng-1.2.49/debian/libpng12-dev.links.in	2011-07-18 13:52:43.000000000 +0200
+++ libpng-1.2.49/debian/libpng12-dev.links.in	2013-04-26 00:32:55.000000000 +0200
@@ -1,3 +1,4 @@
 /usr/share/man/man1/libpng12-config.1.gz /usr/share/man/man1/libpng-config.1.gz
 /usr/include/libpng12 /usr/include/libpng
-/lib/${DEB_HOST_MULTIARCH}/libpng12.so.0 /usr/lib/${DEB_HOST_MULTIARCH}/libpng12.so
+/lib/${DEB_HOST_MULTIARCH}/libpng12.so.0 /usr/lib/${DEB_HOST_MULTIARCH}/libpng12.so.0
+/usr/lib/${DEB_HOST_MULTIARCH}/libpng12.so.0 /usr/lib/${DEB_HOST_MULTIARCH}/libpng12.so

Reply via email to