tags 672120 + patch
quit

Tollef Fog Heen wrote:

> Could you please move liblzma.so.5 to /lib?  It's used by systemd which
> lives on /.

Thanks again for reporting.  How about this patch?

-- >8 --
Subject: debian/liblzma: Move run-time library to /lib

liblzma is used by systemd which runs before /usr is mounted.

For now, let's make this change in the Debian packaging instead of the
upstream rules to avoid having to worry about details like what
happens to the .la file.

Requested-by: Tollef Fog Heen <tfh...@debian.org>
---
 debian/changelog        |    7 +++++++
 debian/liblzma2.install |    2 +-
 debian/rules            |    2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f0f95530..d6f64af6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xz-utils (5.0.0-2.1) unstable; urgency=low
+
+  * liblzma: Install run-time library to /lib so it can be used
+    before /usr is mounted.  Closes: #672120.
+
+ -- Jonathan Nieder <jrnie...@gmail.com>  Sun, 13 May 2012 18:35:21 -0500
+
 xz-utils (5.0.0-2) unstable; urgency=low
 
   * Upload to unstable.
diff --git a/debian/liblzma2.install b/debian/liblzma2.install
index 39a3e84f..e0b115e2 100644
--- a/debian/liblzma2.install
+++ b/debian/liblzma2.install
@@ -1 +1 @@
-usr/lib/liblzma.so.*
+usr/lib/liblzma.so.* lib/
diff --git a/debian/rules b/debian/rules
index 7fbe76f5..5e8e1b9a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,6 +39,8 @@ override_dh_auto_test:
 
 override_dh_auto_install:
        dh_auto_install --builddirectory debian/normal-build
+       set -e; dso=$$(basename $$(readlink debian/tmp/usr/lib/liblzma.so)); \
+       ln -s -f /lib/$$dso debian/tmp/usr/lib/liblzma.so
        dh_auto_install --builddirectory debian/xzdec-build
 
 override_dh_installchangelogs:
-- 
1.7.10.2




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to