[lua-torch-nn] 01/07: patch: add soname for THNN

Zhou Mo cdluminate-guest at moszumanska.debian.org
Wed Jun 22 07:54:14 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-nn.

commit 2ffc8d90c69db2623ff18071bdd392149e697b69
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Wed Jun 22 06:30:36 2016 +0000

    patch: add soname for THNN
---
 debian/patches/THNN-cmake-add-soversion | 13 +++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 14 insertions(+)

diff --git a/debian/patches/THNN-cmake-add-soversion b/debian/patches/THNN-cmake-add-soversion
new file mode 100644
index 0000000..87c191c
--- /dev/null
+++ b/debian/patches/THNN-cmake-add-soversion
@@ -0,0 +1,13 @@
+--- a/lib/THNN/CMakeLists.txt
++++ b/lib/THNN/CMakeLists.txt
+@@ -59,7 +59,9 @@
+ ### Torch packages supposes libraries prefix is "lib"
+ SET_TARGET_PROPERTIES(THNN PROPERTIES
+   PREFIX "lib"
+-  IMPORT_PREFIX "lib")
++  IMPORT_PREFIX "lib"
++  VERSION   0
++  SOVERSION 0)
+ TARGET_LINK_LIBRARIES(THNN TH)
+ 
+ INSTALL(TARGETS THNN LIBRARY DESTINATION ${THNN_INSTALL_LIB_SUBDIR})
diff --git a/debian/patches/series b/debian/patches/series
index 8c179d9..5022a13 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+THNN-cmake-add-soversion
 THNN-assume-torch-is-present
 cmake-only-generate-lua

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-nn.git



More information about the debian-science-commits mailing list