[lua-torch-torch7] 02/10: patches: fix missing upstream soversion
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Wed Jun 22 05:44:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository lua-torch-torch7.
commit 64370c56c38361d86bab741124c5e73daf2af6a8
Author: Zhou Mo <cdluminate at gmail.com>
Date: Wed Jun 22 05:38:09 2016 +0000
patches: fix missing upstream soversion
---
debian/patches/TH-cmake-add-version | 15 +++++++++++++++
debian/patches/luaT-cmake-add-version | 15 +++++++++++++++
debian/patches/series | 2 ++
3 files changed, 32 insertions(+)
diff --git a/debian/patches/TH-cmake-add-version b/debian/patches/TH-cmake-add-version
new file mode 100644
index 0000000..225d456
--- /dev/null
+++ b/debian/patches/TH-cmake-add-version
@@ -0,0 +1,15 @@
+add versioning for libTH.so
+Foward: not yet
+--- a/lib/TH/CMakeLists.txt
++++ b/lib/TH/CMakeLists.txt
+@@ -137,6 +137,10 @@
+ ADD_LIBRARY(TH_static STATIC ${src})
+ endif()
+
++SET_TARGET_PROPERTIES(TH PROPERTIES
++ VERSION 0
++ SOVERSION 0)
++
+ CHECK_C_SOURCE_RUNS("
+ #include <stdatomic.h>
+ int main()
diff --git a/debian/patches/luaT-cmake-add-version b/debian/patches/luaT-cmake-add-version
new file mode 100644
index 0000000..10b19e6
--- /dev/null
+++ b/debian/patches/luaT-cmake-add-version
@@ -0,0 +1,15 @@
+add cmake versioning for libluaT.so
+Fowrad: not yet
+--- a/lib/luaT/CMakeLists.txt
++++ b/lib/luaT/CMakeLists.txt
+@@ -13,6 +13,10 @@
+ ADD_LIBRARY(luaT_static STATIC luaT.h luaT.c)
+ endif()
+
++SET_TARGET_PROPERTIES(luaT PROPERTIES
++ VERSION 0
++ SOVERSION 0)
++
+ IF(APPLE)
+ SET_TARGET_PROPERTIES(luaT PROPERTIES
+ LINK_FLAGS "-undefined dynamic_lookup")
diff --git a/debian/patches/series b/debian/patches/series
index e918ec3..11996da 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
# You must remove unused comment lines for the released package.
fix-spelling-error
+TH-cmake-add-version
+luaT-cmake-add-version
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-torch7.git
More information about the debian-science-commits
mailing list