[SCM] an open source computer algebra system branch, debian, updated. 739ca9b41523ed0d986a71769a1361361f2277ee

Bernhard R. Link brlink at debian.org
Tue Feb 28 09:42:18 UTC 2012


The following commit has been merged in the debian branch:
commit 1380fbb26091eaac020b6e2fb160b53f913c9507
Author: Bernhard R. Link <brlink at debian.org>
Date:   Mon Feb 27 11:19:42 2012 +0100

    replace library copy with hardlink
    
    singular has a libsingular.so in the binary directory.
    The Debian package has the main library in /usr/lib.
    For neither a symlink is feasible (singular follow symlinks and might
    thus get confused with symlinks, and I do not want to risk ldconfig
    getting confused by symlinks), so use a hardlink.

diff --git a/debian/rules b/debian/rules
index fdc5ecd..6d45be2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -117,6 +117,10 @@ binary-arch: install
 	dh_installman
 	dh_link
 	dh_strip
+	# replace in-tree .so with hardlink:
+	rm debian/libsingular-$(VERSION)/usr/lib/singular-$(VERSION)/libsingular.so
+	ln debian/libsingular-$(VERSION)/usr/lib/libsingular-$(VERSION).so \
+		debian/libsingular-$(VERSION)/usr/lib/singular-$(VERSION)/libsingular.so
 	dh_makeshlibs
 	dh_shlibdeps
 	dh_compress

-- 
an open source computer algebra system



More information about the debian-science-commits mailing list