summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-20 16:59:41 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-20 21:23:10 (GMT)
commit0fd8e8ddb404b226c9ebd27f4f36eced8827a3dc (patch)
tree4d65ed0bc0b657778752a8220504f2b937c9525d
parentd738fc6b441e0ba53dfd8fb76c93ca247f02ee67 (diff)
downloadbuildroot-0fd8e8ddb404b226c9ebd27f4f36eced8827a3dc.tar.gz
buildroot-0fd8e8ddb404b226c9ebd27f4f36eced8827a3dc.tar.bz2
python-pycrypto: do not include host headers
This commit adds a patch to python-pycrypto that removes /usr/include for the headers path, which is wrong when cross-compiling. Fixes: http://autobuild.buildroot.org/results/5bf/5bf5e31c485a4ee8c0b0a5721205f0fed9b5ae5d/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/python-pycrypto/python-pycrypto-0001-remove-incorrect-header-path.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/python-pycrypto/python-pycrypto-0001-remove-incorrect-header-path.patch b/package/python-pycrypto/python-pycrypto-0001-remove-incorrect-header-path.patch
new file mode 100644
index 0000000..9268d31
--- /dev/null
+++ b/package/python-pycrypto/python-pycrypto-0001-remove-incorrect-header-path.patch
@@ -0,0 +1,21 @@
+Do not use /usr/include for headers
+
+Using /usr/include is wrong when doing cross-compilation, so get rid
+of it, and rely on the compiler to use the appropriate default paths
+for headers.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/setup.py
+===================================================================
+--- a/setup.py
++++ b/setup.py
+@@ -370,7 +370,7 @@
+ 'ext_modules': plat_ext + [
+ # _fastmath (uses GNU mp library)
+ Extension("Crypto.PublicKey._fastmath",
+- include_dirs=['src/','/usr/include/'],
++ include_dirs=['src/'],
+ libraries=['gmp'],
+ sources=["src/_fastmath.c"]),
+