Skip to contentSkip to conversation

python-pycrypto: do not include host headers

PATCH New Thomas Petazzoni 2 participants 2 messages Dec 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 ...pycrypto-0001-remove-incorrect-header-path.patch | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 package/python-pycrypto/python-pycrypto-0001-remove-incorrect-header-path.patch
package/python-pycrypto/python-pycrypto-0001-remove-incorrect-header-path.patch new file +21 -0
new file mode 100644
index 0000000..9268d31
@@ -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 <[email protected]>
+
+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"]),
+ 
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 python-pycrypto: do not include host headers

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard