Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 141EB71A05 for ; Tue, 24 Jan 2017 23:56:26 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v0ONuQ2B006782 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 24 Jan 2017 15:56:26 -0800 (PST) Received: from ala-jslater-lx3.wrs.com (147.11.152.42) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.294.0; Tue, 24 Jan 2017 15:56:25 -0800 From: Joe Slater To: Date: Tue, 24 Jan 2017 15:56:25 -0800 Message-ID: <1485302185-20648-1-git-send-email-jslater@windriver.com> X-Mailer: git-send-email 1.7.3.4 MIME-Version: 1.0 Subject: [PATCH v2 1/1] gnutls: avoid accidentally using libseccomp X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 23:56:27 -0000 Content-Type: text/plain Specify whether to use libseccomp or not. Do not just let configure check for it. Signed-off-by: Joe Slater --- meta/recipes-support/gnutls/gnutls.inc | 12 ++++++++++++ meta/recipes-support/gnutls/gnutls/arm_eabi.patch | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support/gnutls/gnutls.inc b/meta/recipes-support/gnutls/gnutls.inc index 003dc55..14fcdca 100644 --- a/meta/recipes-support/gnutls/gnutls.inc +++ b/meta/recipes-support/gnutls/gnutls.inc @@ -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" diff --git a/meta/recipes-support/gnutls/gnutls/arm_eabi.patch b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch index 8bf06f1..34c8985 100644 --- a/meta/recipes-support/gnutls/gnutls/arm_eabi.patch +++ b/meta/recipes-support/gnutls/gnutls/arm_eabi.patch @@ -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 -- 1.7.9.5