Control: reassign -1 libjson0-dev

Am 26.10.2015 um 11:35 schrieb Michael Biebl:
> Am 26.10.2015 um 10:47 schrieb Andreas Beckmann:
>> On 2015-10-25 23:29, Michael Biebl wrote:
>>> btw, I don't see why this particular bug i RC? Unowned files by itself
>>> are not a reason for RC bugs.
>>
>> The problem I see is leaving around broken SONAME symlinks in
>> /usr/lib/<triplet> upon removal of one of these -dev packages.
>> These could break things.
> 
> I don't see how. Well that aside, besides fixing ldconfig or updating
> the rdeps of libjson0-dev, we might have a 3rd alternative:
> 
> Use the upstream, builtin --enable-oldname-compat support in json-c.
> This will create a proper libjson.so lib with the correct soname. So
> ldconfig won't run into this issue.
> 
> The current, Debian-only solution of using just symlinks is simply broken.

Attached is a patch which uses the builtin compat library, which makes
the compat packages work properly.
I'm also re-assigning this bug to libjson0-dev, since that's the package
which is really broken. libjson-c-dev is fine.

Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/debian/libjson0.install b/debian/libjson0.install
index 99e4ed8..7d31dc1 100644
--- a/debian/libjson0.install
+++ b/debian/libjson0.install
@@ -1 +1 @@
-lib/*/libjson.so.0
+usr/lib/*/libjson.so.0
diff --git a/debian/rules b/debian/rules
index 34dde57..380be6c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,16 +25,6 @@ override_dh_auto_install:
 	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libjson-c.so; \
 	ln -s /lib/$(DEB_HOST_MULTIARCH)/$$(basename $$T) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libjson-c.so
 
-	# add thin symlink compatibility layer for json.so
-	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libjson.*
-	mkdir -p debian/tmp/lib/$(DEB_HOST_MULTIARCH)
-	ln -s /usr/lib/$(DEB_HOST_MULTIARCH)/libjson-c.so debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libjson.so
-	ln -s /usr/lib/$(DEB_HOST_MULTIARCH)/libjson-c.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libjson.a
-	ln -s /lib/$(DEB_HOST_MULTIARCH)/libjson-c.so.2 debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libjson.so.0
-
-	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/json.pc
-	ln -s json-c.pc debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/json.pc
-
 override_dh_strip:
 	dh_strip --dbg-package=libjson-c2-dbg
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to