[caffe] 01/01: patch: fix ftbfs by linking against the correct lib

Zhou Mo cdluminate-guest at moszumanska.debian.org
Thu Jan 12 04:40:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

cdluminate-guest pushed a commit to branch master
in repository caffe.

commit 44607a5c0591482df9ef71f9cfb3b58c4cce823a
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Thu Jan 12 04:36:47 2017 +0000

    patch: fix ftbfs by linking against the correct lib
---
 debian/changelog                                   |  7 +++++++
 debian/patches/cmake-link-correct-python-lib.patch | 16 ++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8d831ac..f65e7a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+caffe (1.0.0~rc3+20161127-g24d2f67-5) UNRELEASED; urgency=medium
+
+  * Add patch: cmake-link-correct-python-lib.patch to fix FTBFS.
+    (Closes: #850989).
+
+ -- Zhou Mo <cdluminate at gmail.com>  Thu, 12 Jan 2017 04:34:17 +0000
+
 caffe (1.0.0~rc3+20161127-g24d2f67-4) unstable; urgency=medium
 
   * Avoid autopkgtest failure by fixing stderr redirection.
diff --git a/debian/patches/cmake-link-correct-python-lib.patch b/debian/patches/cmake-link-correct-python-lib.patch
new file mode 100644
index 0000000..b55a76d
--- /dev/null
+++ b/debian/patches/cmake-link-correct-python-lib.patch
@@ -0,0 +1,16 @@
+Description: fix BTBFS bug #850989
+Forward: keep it here.
+diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
+index ae9ce8e..87d0858 100644
+--- a/cmake/Dependencies.cmake
++++ b/cmake/Dependencies.cmake
+@@ -137,7 +137,8 @@ if(BUILD_python)
+       endif()
+     endwhile()
+     if(NOT Boost_PYTHON_FOUND)
+-      find_package(Boost 1.46 COMPONENTS python)
++      find_package(Boost 1.46 COMPONENTS python-py35)
++      set(Boost_PYTHON_FOUND ${Boost_PYTHON-PY35_FOUND})
+     endif()
+   else()
+     # disable Python 3 search
diff --git a/debian/patches/series b/debian/patches/series
index a1ab709..4478dbb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ cmake-fix-python-module-installdir
 cmake-avoid-argument-missing
 fix-more-float-comparison-precision-issue
 fix-more-float-comparison-precision-issue2
+cmake-link-correct-python-lib.patch

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



More information about the debian-science-commits mailing list