Package: pywebkitgtk
Version: 1.1.8-2
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu raring ubuntu-patch

Dear Maintainer,

This patch fixes python multi-arch include issues by using python-config to 
include both general and platform dependent include paths.

In Ubuntu, the attached patch was applied to achieve the following:

  * Fix python multi-arch includes issues.


Thanks for considering the patch.


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

Kernel: Linux 3.2.0-36-generic (SMP w/8 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 pywebkitgtk-1.1.8/debian/changelog pywebkitgtk-1.1.8/debian/changelog
diff -Nru pywebkitgtk-1.1.8/debian/control pywebkitgtk-1.1.8/debian/control
--- pywebkitgtk-1.1.8/debian/control	2011-12-05 08:24:44.000000000 -0600
+++ pywebkitgtk-1.1.8/debian/control	2013-01-21 13:04:23.000000000 -0600
@@ -2,7 +2,6 @@
 # 
 # Modifications should be made to debian/control.in instead.
 # This file is regenerated automatically in the clean target.
-
 Source: pywebkitgtk
 Section: python
 Priority: optional
diff -Nru pywebkitgtk-1.1.8/debian/patches/fix-python-multiarch-includes.patch pywebkitgtk-1.1.8/debian/patches/fix-python-multiarch-includes.patch
--- pywebkitgtk-1.1.8/debian/patches/fix-python-multiarch-includes.patch	1969-12-31 18:00:00.000000000 -0600
+++ pywebkitgtk-1.1.8/debian/patches/fix-python-multiarch-includes.patch	2013-01-21 13:04:20.000000000 -0600
@@ -0,0 +1,29 @@
+Description: Fix python multi-arch includes issues.
+ .
+ pywebkitgtk (1.1.8-2ubuntu4) raring; urgency=low
+ .
+   * Fix python multi-arch includes issues.
+Author: Chris J Arges <chris.j.ar...@canonical.com>
+
+--- pywebkitgtk-1.1.8.orig/configure
++++ pywebkitgtk-1.1.8/configure
+@@ -12243,7 +12243,7 @@ $as_echo "$am_cv_python_pyexecdir" >&6;
+ $as_echo_n "checking for headers required to compile python extensions... " >&6; }
+ py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+ py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
++PYTHON_INCLUDES="`$PYTHON-config --includes`"
+ if test "$py_prefix" != "$py_exec_prefix"; then
+   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+ fi
+--- pywebkitgtk-1.1.8.orig/m4/python.m4
++++ pywebkitgtk-1.1.8/m4/python.m4
+@@ -45,7 +45,7 @@ AC_MSG_CHECKING(for headers required to
+ dnl deduce PYTHON_INCLUDES
+ py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+ py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
++PYTHON_INCLUDES="`$PYTHON-config --includes`"
+ if test "$py_prefix" != "$py_exec_prefix"; then
+   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+ fi
diff -Nru pywebkitgtk-1.1.8/debian/patches/series pywebkitgtk-1.1.8/debian/patches/series
--- pywebkitgtk-1.1.8/debian/patches/series	2011-08-09 15:51:28.000000000 -0500
+++ pywebkitgtk-1.1.8/debian/patches/series	2013-01-21 13:03:32.000000000 -0600
@@ -1 +1,2 @@
 web_view_get_title.patch
+fix-python-multiarch-includes.patch

Reply via email to