gentoo/dev-python/pycairo/files/pycairo-1.10.0-70_dont-link-libpython.patch
Justin Lecher d239994c9c
dev-python/pycairo: Add python3.5 support and import latest debian patches
Add missing die
run epatch with multiple patches at once

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-10-19 18:29:11 +02:00

30 lines
1.0 KiB
Diff

Description: don't link libpython
This patch removes dependency to libpython
Author: Matthias Klose <doko@ubuntu.com>
Origin: http://launchpadlibrarian.net/166876566/py3cairo_1.10.0%2Bdfsg-3build2_1.10.0%2Bdfsg-3ubuntu1.diff.gz
Bug-Debian: http://bugs.debian.org/739607
Last-Update: 2014-02-20
--- py3cairo-1.10.0+dfsg.orig/waflib/Tools/python.py
+++ py3cairo-1.10.0+dfsg/waflib/Tools/python.py
@@ -155,8 +155,10 @@ def check_python_headers(conf):
if result:
break
if result:
- env['LIBPATH_PYEMBED']=path
- env.append_value('LIB_PYEMBED',[name])
+ # don't link libpython explicitly
+ #env['LIBPATH_PYEMBED']=path
+ #env.append_value('LIB_PYEMBED',[name])
+ pass
else:
conf.to_log("\n\n### LIB NOT FOUND\n")
if(sys.platform=='win32'or sys.platform.startswith('os2')or sys.platform=='darwin'or dct['Py_ENABLE_SHARED']):
@@ -278,4 +280,4 @@ feature('pyembed')(init_pyembed)
conf(get_python_variables)
conf(check_python_headers)
conf(check_python_version)
-conf(check_python_module)
\ No newline at end of file
+conf(check_python_module)