Skip to contentSkip to conversation

gnutls: avoid accidentally using libseccomp

PATCH Superseded Joe Slater 3 participants 3 messages Jan 24, 2017 – Jan 25, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH v2 1/1 gnutls: avoid accidentally using libseccomp

Specify whether to use libseccomp or not. Do not
just let configure check for it.

---
 meta/recipes-support/gnutls/gnutls.inc            |   12 ++++++++++++
 meta/recipes-support/gnutls/gnutls/arm_eabi.patch |    2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
meta/recipes-support/gnutls/gnutls.inc +12 -0
index 003dc55..14fcdca 100644
@@ -21,6 +21,17 @@ SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz"
 
 inherit autotools texinfo binconfig pkgconfig gettext lib_package gtk-doc
 
+# We cannot use PACKAGECONFIG for this since there is no controlling
+# configure option.
+#
+# To use seccomp, uncomment the two variables.  You must also
+# have CONFIG_SECCOMP enabled in the kernel.
+#
+#DEPENDS_append_class-target = " libseccomp"
+#lcl_LIBSECCOMP_class-target = "ac_cv_libseccomp=yes"
+
+lcl_LIBSECCOMP ?= "ac_cv_libseccomp=no"
+
 PACKAGECONFIG ??= "libidn zlib"
 
 PACKAGECONFIG[libidn] = "--with-idn,--without-idn,libidn"
@@ -38,6 +49,7 @@ EXTRA_OECONF = " \
     --enable-openssl-compatibility \
     --with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
     --without-libunistring-prefix \
+    ${lcl_LIBSECCOMP} \
 "
 
 LDFLAGS_append_libc-musl = " -largp"
meta/recipes-support/gnutls/gnutls/arm_eabi.patch +1 -1
index 8bf06f1..34c8985 100644
@@ -1,7 +1,7 @@
 Certain syscall's are not availabe for arm-eabi, so we eliminate
 reference to them.
 
-Upstream-status: pending
+Upstream-Status: Pending
 
 Signed-off-by: Joe Slater <[email protected]>
 
Signature · 1 line
1.7.9.5
#1 lore raw

✗ patchtest: failure for [v2,1/1] gnutls: avoid accidentally using libseccomp

== Series Details ==

Series: [v2,1/1] gnutls: avoid accidentally using libseccomp
Revision: 1
URL : https://patchwork.openembedded.org/series/4947/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 40463f9d80)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
#2 lore raw
In reply to Joe Slater

meta/recipes-support/gnutls/gnutls/arm_eabi.patch line 5

Quoted 9 lines · Joe Slater
meta/recipes-support/gnutls/gnutls/arm_eabi.patch +1 -1
@@ -1,7 +1,7 @@
 Certain syscall's are not availabe for arm-eabi, so we eliminate
 reference to them.
 
-Upstream-status: pending
+Upstream-Status: Pending
 

Looks like you squashed the fix into the wrong patch...

Ross