[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4401/8267] gnutls: account for ARM_EABI



commit 34fd5043b2a971eee067e8032ce2050b985e100d
Author: Joe Slater <jslater windriver com>
Date:   Wed Jan 25 13:52:59 2017 -0800

    gnutls: account for ARM_EABI
    
    Do not reference unavailable system calls when
    building for ARM_EABI.
    
    (From OE-Core rev: 67f0094af624866f02e7fb0173c335a7e8942921)
    
    Signed-off-by: Joe Slater <jslater windriver com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/recipes-support/gnutls/gnutls/arm_eabi.patch |   19 +++++++++++++++++++
 meta/recipes-support/gnutls/gnutls_3.5.7.bb       |    1 +
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/meta/recipes-support/gnutls/gnutls/arm_eabi.patch 
b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch
new file mode 100644
index 0000000..34c8985
--- /dev/null
+++ b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch
@@ -0,0 +1,19 @@
+Certain syscall's are not availabe for arm-eabi, so we eliminate
+reference to them.
+
+Upstream-Status: Pending
+
+Signed-off-by: Joe Slater <jslater windriver com>
+
+--- a/tests/seccomp.c
++++ b/tests/seccomp.c
+@@ -49,7 +49,9 @@ int disable_system_calls(void)
+       }
+ 
+       ADD_SYSCALL(nanosleep, 0);
++#if ! defined(__ARM_EABI__)
+       ADD_SYSCALL(time, 0);
++#endif
+       ADD_SYSCALL(getpid, 0);
+       ADD_SYSCALL(gettimeofday, 0);
+ #if defined(HAVE_CLOCK_GETTIME)
diff --git a/meta/recipes-support/gnutls/gnutls_3.5.7.bb b/meta/recipes-support/gnutls/gnutls_3.5.7.bb
index cf77a20..9508a8e 100644
--- a/meta/recipes-support/gnutls/gnutls_3.5.7.bb
+++ b/meta/recipes-support/gnutls/gnutls_3.5.7.bb
@@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \
             file://0001-configure.ac-fix-sed-command.patch \
             file://use-pkg-config-to-locate-zlib.patch \
             file://0001-Do-not-add-cli-args.h-to-cli-args.stamp-Makefile-tar.patch \
+            file://arm_eabi.patch \
            "
 SRC_URI[md5sum] = "08ad2c539bc1d91283f610539deef34e"
 SRC_URI[sha256sum] = "60cbfc119e6268cfa38d712621daa473298a0c5b129c0842caec4c1ed4d7861a"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]