[1/1] Simple additional patch to allow compilation of python-3.6.1 under mipsel-buildroot-linux-musl.

Message ID 20170421103308.6557-1-mc5686@mclink.it
State Accepted
Headers show

Commit Message

Mauro Condarelli April 21, 2017, 10:33 a.m.
Signed-off-by: Mauro Condarelli <mc5686@mclink.it>
---
 .../0005-mips-musl-fix-sgidefs_h-not-found-error.patch       | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 package/libffi/0005-mips-musl-fix-sgidefs_h-not-found-error.patch

Comments

Thomas Petazzoni Oct. 22, 2017, 2:09 p.m. | #1
Hello,

On Fri, 21 Apr 2017 12:33:08 +0200, Mauro Condarelli wrote:
> Signed-off-by: Mauro Condarelli <mc5686@mclink.it>
> ---
>  .../0005-mips-musl-fix-sgidefs_h-not-found-error.patch       | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 package/libffi/0005-mips-musl-fix-sgidefs_h-not-found-error.patch

We finally got to this patch, and I pushed an improved version of it,
i.e with a better commit log and patch description.

See
https://git.buildroot.org/buildroot/commit/?id=4852f05907cd365825f37c283a415a77ba1fcba9.

Thanks!

Thomas

Patch

diff --git a/package/libffi/0005-mips-musl-fix-sgidefs_h-not-found-error.patch b/package/libffi/0005-mips-musl-fix-sgidefs_h-not-found-error.patch
new file mode 100644
index 000000000..b9490f30a
--- /dev/null
+++ b/package/libffi/0005-mips-musl-fix-sgidefs_h-not-found-error.patch
@@ -0,0 +1,12 @@ 
+diff -ru libffi-3.2.1_/src/mips/ffitarget.h libffi-3.2.1/src/mips/ffitarget.h
+--- libffi-3.2.1_/src/mips/ffitarget.h	2014-11-08 13:47:24.000000000 +0100
++++ libffi-3.2.1/src/mips/ffitarget.h	2017-04-21 10:53:23.447304581 +0200
+@@ -32,7 +32,7 @@
+ #error "Please do not include ffitarget.h directly into your source.  Use ffi.h instead."
+ #endif
+ 
+-#ifdef linux
++#ifdef __linux__
+ # include <asm/sgidefs.h>
+ #elif defined(__rtems__)
+ /*