[libfann] 09/133: Added patch to link pyfann dynamically

Christian Kastner chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:07:44 UTC 2014


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

chrisk-guest pushed a commit to branch master
in repository libfann.

commit b197d933864576e8e9c25885eb9d2c91fe35adf9
Author: Christian Kastner <debian at kvr.at>
Date:   Mon Jun 7 13:41:54 2010 +0200

    Added patch to link pyfann dynamically
---
 debian/changelog                                   |  2 ++
 ...-pyfann-dynamically-instead-of-statically.patch | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 33 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f1a2c6e..0f2213a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ libfann2 (2.1.0~beta~dfsg-1) UNRELEASED; urgency=low
     - Repackaged upstream version to remove non-DFSG-compliant files
   * debian/source/format:
     - Convert to format 3.0 (quilt)
+  * debian/patches:
+    - Added 0001-Link-python-pyfann-dynamically-instead-of-statically.patch
 
  -- Christian Kastner <debian at kvr.at>  Mon, 07 Jun 2010 13:22:16 +0200
 
diff --git a/debian/patches/0001-Link-python-pyfann-dynamically-instead-of-statically.patch b/debian/patches/0001-Link-python-pyfann-dynamically-instead-of-statically.patch
new file mode 100644
index 0000000..b9a290a
--- /dev/null
+++ b/debian/patches/0001-Link-python-pyfann-dynamically-instead-of-statically.patch
@@ -0,0 +1,30 @@
+From: Christian Kastner <debian at kvr.at>
+Date: Fri, 4 Jun 2010 23:27:24 +0200
+Subject: [PATCH] Link python-pyfann dynamically instead of statically
+
+Upstream links the pyfann extension against libfann's static library. This
+causes all sorts of troubles on some platforms, most notably amd64, where the
+extension FTBFS because the static library isn't compiled with -fPIC. The
+ebian-specific solution presented here is to link to the shared library and
+let package python-pyfann Depend: on it.
+
+Forwarded: no
+Last-Update: 2010-06-04
+---
+ python/setup.py |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/python/setup.py b/python/setup.py
+index 67cef7e..6b2a3dc 100755
+--- a/python/setup.py
++++ b/python/setup.py
+@@ -42,7 +42,7 @@ setup(
+     py_modules=['pyfann.libfann'],
+     ext_modules=[Extension('pyfann._libfann',['pyfann/pyfann_wrap.cxx'], 
+                             include_dirs=['../src/include'], 
+-                            extra_objects=['../src/doublefann.o'],
++                            extra_objects=['../src/.libs/doublefann.o'],
+                             define_macros=[("SWIG_COMPILE",None)]
+                             ),
+                 ]
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..326884d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Link-python-pyfann-dynamically-instead-of-statically.patch

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



More information about the debian-science-commits mailing list