Package: cython
Version: 0.17.1-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu raring ubuntu-patch

cython from experimental fails to build in ubuntu 13.04 due to some headers
being placed in multiarched paths:
https://launchpad.net/ubuntu/+source/cython/0.17.1-1/+build/3991091

it probably also affects debian experimental since the python version is the
same as in ubuntu and cython was probably uploaded before the change.
But I did not test it.

Attached patch adds the multiarch path to the includes of a test.
(an alternative would be to used python3-config --includes)



-- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal-proposed'), (500, 'quantal'), (100, 'quantal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5.0-19-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru cython-0.17.1/debian/changelog cython-0.17.1/debian/changelog
diff -Nru cython-0.17.1/debian/patches/fix-ma-includes.patch cython-0.17.1/debian/patches/fix-ma-includes.patch
--- cython-0.17.1/debian/patches/fix-ma-includes.patch	1970-01-01 01:00:00.000000000 +0100
+++ cython-0.17.1/debian/patches/fix-ma-includes.patch	2012-11-17 21:29:45.000000000 +0100
@@ -0,0 +1,22 @@
+Description: python3 puts some stuff into multiarch paths
+ an alternative would be to use $(PYTHON)-config --includes
+Author: Julian Taylor <jtay...@ubuntu.com>
+--- a/Demos/embed/Makefile
++++ b/Demos/embed/Makefile
+@@ -3,6 +3,7 @@
+ PYVERSION=$(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
+ 
+ INCDIR=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_python_inc())")
++PLATINCDIR=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_python_inc(plat_specific=True))")
+ LIBDIR1=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
+ LIBDIR2=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_config_var('LIBPL'))")
+ PYLIB=$(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_config_var('LIBRARY')[3:-2])")
+@@ -17,7 +18,7 @@
+ 	$(LINKCC) -o $@ $^ -L$(LIBDIR1) -L$(LIBDIR2) -l$(PYLIB) $(LIBS) $(SYSLIBS) $(LINKFORSHARED)
+ 
+ embedded.o: embedded.c
+-	$(CC) -c $^ -I$(INCDIR)
++	$(CC) -c $^ -I$(INCDIR) -I$(PLATINCDIR)
+ 
+ CYTHON=../../cython.py
+ embedded.c: embedded.pyx
diff -Nru cython-0.17.1/debian/patches/series cython-0.17.1/debian/patches/series
--- cython-0.17.1/debian/patches/series	2012-09-30 01:03:06.000000000 +0200
+++ cython-0.17.1/debian/patches/series	2012-11-17 20:27:59.000000000 +0100
@@ -0,0 +1 @@
+fix-ma-includes.patch

Reply via email to