[med-svn] [Git][med-team/unifrac-tools][master] Create SONAME for libssu

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Jul 28 09:42:50 BST 2022



Andreas Tille pushed to branch master at Debian Med / unifrac-tools


Commits:
c505ea46 by Andreas Tille at 2022-07-28T10:42:27+02:00
Create SONAME for libssu

- - - - -


4 changed files:

- debian/libssu-dev.install
- debian/libssu0.install
- debian/patches/series
- + debian/patches/soname.patch


Changes:

=====================================
debian/libssu-dev.install
=====================================
@@ -1,3 +1,3 @@
 #! /usr/bin/dh-exec
 /usr/include/unifrac
-#sucpp/*.so	usr/lib/${DEB_HOST_MULTIARCH}/
+usr/lib/*.so	usr/lib/${DEB_HOST_MULTIARCH}/


=====================================
debian/libssu0.install
=====================================
@@ -1,2 +1,2 @@
 #! /usr/bin/dh-exec
-usr/lib/*.so	usr/lib/${DEB_HOST_MULTIARCH}/
+usr/lib/*.so.*	usr/lib/${DEB_HOST_MULTIARCH}/


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 remove_non-free_headers.patch
 enable_linking_to_shared_hdf5_lib.patch
 python3.patch
+soname.patch


=====================================
debian/patches/soname.patch
=====================================
@@ -0,0 +1,28 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 26 Jul 2022 16:46:09 +0200
+Description: Create SONAME for libssu
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -110,7 +110,11 @@ faithpd: faithpd.cpp tree.o biom.o unifr
+ 	$(CXX) $(CPPFLAGS) $(EXEFLAGS) faithpd.cpp -o faithpd tree.o biom.o $(UNIFRAC_FILES) unifrac.o cmd.o skbio_alt.o api.o -lhdf5_cpp -llz4 $(BLASLIB) -lpthread
+ 
+ libssu.so: tree.o biom.o unifrac.o cmd.o skbio_alt.o api.o $(UNIFRAC_FILES)
+-	$(CXX) $(LDDFLAGS) -o libssu.so tree.o biom.o $(UNIFRAC_FILES) unifrac.o cmd.o skbio_alt.o api.o -lc -lhdf5_cpp -llz4 $(BLASLIB) -L$(PREFIX)/lib
++	$(CXX) $(LDDFLAGS) -o libssu.so.0 tree.o biom.o $(UNIFRAC_FILES) unifrac.o cmd.o skbio_alt.o api.o -lc -lhdf5_cpp -llz4 -shlib -Wl,-soname,libssu.so.0 $(BLASLIB) -L$(PREFIX)/lib
++	ln -sf libssu.so.0 libssu.so
++	# FIXME: Should build static lib as well
++	# $(CXX) $(LDDFLAGS) -o libssu.a tree.o biom.o $(UNIFRAC_FILES) unifrac.o cmd.o skbio_alt.o api.o -lc -lhdf5_cpp -llz4 $(BLASLIB) -L$(PREFIX)/lib
++
+ 
+ api.o: api.cpp api.hpp unifrac.hpp skbio_alt.hpp biom.hpp tree.hpp
+ 	$(CXX) $(CPPFLAGS) api.cpp -c -o api.o -fPIC
+@@ -130,7 +134,7 @@ test: test_binaries
+ 	./test_api
+ 
+ install: libssu.so ssu faithpd
+-	cp libssu.so ${PREFIX}/lib/
++	cp -a libssu.so* ${PREFIX}/lib/
+ 	cp ssu faithpd ${PREFIX}/bin/
+ 	mkdir -p ${PREFIX}/include/unifrac
+ 	cp task_parameters.hpp ${PREFIX}/include/unifrac/



View it on GitLab: https://salsa.debian.org/med-team/unifrac-tools/-/commit/c505ea46196bbfbd18318c3f431ee3807cd18bcc

-- 
View it on GitLab: https://salsa.debian.org/med-team/unifrac-tools/-/commit/c505ea46196bbfbd18318c3f431ee3807cd18bcc
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220728/696d3545/attachment-0001.htm>


More information about the debian-med-commit mailing list