From patchwork Wed Feb 27 18:33:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 159285 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4757215jad; Wed, 27 Feb 2019 10:34:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IbIULCJmqoff4IA6DIWtIwa6xcgaOhC+dzJNrWz8Q/qaJhujtLVS87tviPZjyct2igA82Va X-Received: by 2002:a63:234c:: with SMTP id u12mr4398996pgm.282.1551292446402; Wed, 27 Feb 2019 10:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551292446; cv=none; d=google.com; s=arc-20160816; b=RWHouMCXtrF2ycw9dDpeiE8nDV4nQ3QESugko2rJrn94fYOgErPgK46w0fg4hz8R5E 6KXNOGGXmwH+xluNwLzEfxyNXpjsw2TgjyOdweXDdP8g1MrHKS+vrFkD4ryKI7ReZjp2 8r+6s1dlwOPwmyQf3jTwcjIoe8VAdRLnK8g1JxUvVctdkacMcoSnoQI4U1n/Q3rcIkzT x29uTHqjDS7e1W9k56zWEjSYyAHL5iQ94GOljKZsqQw7YOIY+ULspDS49pdq+WLRPcvT x/RCkx9ZF8j32tjUFXS7IKWgf58+lfL8mtIWaFOsqRyKYxtwInvcq1co6OGBsOWI5bvo Q+Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=kboFAU9eeDW3/72azWYAFN5Mq2ptC0KrXONAln93a14=; b=efZhaI89wjd3JnuijOwqk1ws7PSPRzKoqOBAK+WL2yy7FlZS00zERAG63CUMVUF6ZI bZOjPcWGNVYyPTsHenHJB6rc6YyPXeu4UXt8zFYSSWCAv2VWRj67i1ADePSnvIlV8mQF 0ZO5yJ+rpqJmE3+4IcTly3pIpxlx7oXbiP3uiggvgayvjvWJxv0xF9oTS+UCqGAWJxfI 0iYlaqpJhTgKP0AbbgGDLzp/gSc3r7/Va5eNaac0Dz1GOB/5ecwiFaukjCvGMDA1CxRl 6brbaS/jruAAoLxh+ub5GkrNYBqfiaR/QMnlFeKiFt0hlq8STrwNA3Z31jtGuzM8/ymg Wc/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=nmqqcuei; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id j191si14850503pge.254.2019.02.27.10.34.05; Wed, 27 Feb 2019 10:34:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=nmqqcuei; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2410E7CC48; Wed, 27 Feb 2019 18:34:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mail.openembedded.org (Postfix) with ESMTP id E60597CBEC for ; Wed, 27 Feb 2019 18:34:00 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id n19so6824137wmi.1 for ; Wed, 27 Feb 2019 10:34:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=SRsWXedVws204np9yBK78fqgQ1P0QbT+aqzyZSAEdcA=; b=nmqqcuei5zdZjz9iz63NxcyG9bRdGbR5azjCl28hfGpp/i0sjEo8cY78HMEX1E68Ng Bs+MYr3jPFSK5N0LzHBm+H6eG5r8ZaOt1tjc01zzzNSLAWaFJ3rkdW5jnTMUy6uJvN0b V5vJtKpVxLHqGlPSXkSdA1upBZxg/jBAXUBbi4ofLrnQlxWlQShsRgRywa9qZBLY4UGv Yp9ohObZ8BAux1IB+QW0FTFnCWTOVIH4pnWnZXlsudkHXkWTyIZHF5YIWADvjtq0ihBy /oSRoZvDjpAquKPeFEj1dCplhNWyBZyACL0QztHi73XpS6vY1E0l+SZnVzrti63NH5fD 6ECw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=SRsWXedVws204np9yBK78fqgQ1P0QbT+aqzyZSAEdcA=; b=IdTlcZzgzW8TryxV/6pm51hpk9ofk0cg1L9IihMz/RJZVVtl8wA26wlA5Wxp2dGQtw 8TLAuP0qQhtGpJJCX4yPjplT3RDVLfQrkK3k7F1qQUxM42Z/EAEADlpOCZq02grVozh4 DU7s3Y44SPyJsCEFcrj64UwcMpUv1ExA7ZiVOGwDtsX0xgILqEqxiScKDK62J80YhGyb I61SFxN9IGRTnH4SLpGDUjFIbdUnY9/xEhlqqCRNyuTCV1MRL/yge/TtUpAMC9bcr0EI vA3dnnLOABKRreyagrG16lwQHMJCn3cCBzDKoGvl5EiNhdVJ6a9DLQhsrbrjT1h7Ah5o G13Q== X-Gm-Message-State: APjAAAXmCKZaMA4qBKFmrz2a+UjmrsMXV6SGJODq3C3SFwWk9WrdJ3vo TwYzPUCaLoh8eGc0KN4BDIpNnThtB5M= X-Received: by 2002:a1c:6442:: with SMTP id y63mr431083wmb.31.1551292441089; Wed, 27 Feb 2019 10:34:01 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id w4sm26158366wrk.85.2019.02.27.10.33.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 10:34:00 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 27 Feb 2019 18:33:54 +0000 Message-Id: <20190227183355.19346-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/2] libpcre: recipe cleanup 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org The following options are the defaults, so remove them: --enable-newline-is-lf --with-match-size=2 --with-match-limit=10000000 We don't appear to need to pass -D_REENTRANT anymore (added with no explanation to oe-classic in 2006). Explicitly adding -lstdc++ doesn't appear to be required anymore (added for PowerPC in 2008). This recipe has always rebuilt the character tables but back in PCRE 4.4 (first added to OE) a copy of the tables wasn't distributed with the tarball so this was required. Since 2007 the tarball includes the tables for ASCII and regeneration is only required if we wish to use EBCDIC, which we do not. Drop the patch adding CC_FOR_BUILD support and remove --enable-rebuild-chartables Signed-off-by: Ross Burton --- .../libpcre/libpcre/pcre-cross.patch | 48 ---------------------- meta/recipes-support/libpcre/libpcre_8.43.bb | 17 +------- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 meta/recipes-support/libpcre/libpcre/pcre-cross.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/libpcre/libpcre/pcre-cross.patch b/meta/recipes-support/libpcre/libpcre/pcre-cross.patch deleted file mode 100644 index 83880f70983..00000000000 --- a/meta/recipes-support/libpcre/libpcre/pcre-cross.patch +++ /dev/null @@ -1,48 +0,0 @@ -Upstream-Status: Pending - ---- pcre-8.32.orig/Makefile.am -+++ pcre-8.32/Makefile.am -@@ -197,8 +197,18 @@ bin_SCRIPTS = pcre-config - -+CC_FOR_BUILD = @CC_FOR_BUILD@ -+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ -+CCLD_FOR_BUILD = @CCLD_FOR_BUILD@ -+LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ -+ - if WITH_REBUILD_CHARTABLES - - noinst_PROGRAMS += dftables - dftables_SOURCES = dftables.c -+dftables_LINK = $(CCLD_FOR_BUILD) -o $@ -+dftables_LDFLAGS = $(LDFLAGS_FOR_BUILD) -+ -+dftables.o: $(srcdir)/dftables.c -+ $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -o $@ $(srcdir)/dftables.c - - pcre_chartables.c: dftables$(EXEEXT) - ./dftables$(EXEEXT) $@ ---- pcre-8.32.orig/configure.ac -+++ pcre-8.32/configure.ac -@@ -72,6 +72,22 @@ then - fi - fi - -+if test x"$cross_compiling" = xyes; then -+ CC_FOR_BUILD="${CC_FOR_BUILD-gcc}" -+ CCLD_FOR_BUILD="${CCLD_FOR_BUILD-gcc}" -+ CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD}" -+ LDFLAGS_FOR_BUILD="${LDFLAGS_FOR_BUILD}" -+else -+ CC_FOR_BUILD="${CC_FOR_BUILD-\$(CC)}" -+ CCLD_FOR_BUILD="${CCLD_FOR_BUILD-\$(CCLD)}" -+ CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD-\$(CFLAGS)}" -+ LDFLAGS_FOR_BUILD="${LDFLAGS_FOR_BUILD-\$(LDFLAGS)}" -+fi -+AC_ARG_VAR(CC_FOR_BUILD, [build system C compiler]) -+AC_ARG_VAR(CCLD_FOR_BUILD, [build system C linker frontend]) -+AC_ARG_VAR(CFLAGS_FOR_BUILD, [build system C compiler arguments]) -+AC_ARG_VAR(LDFLAGS_FOR_BUILD, [build system C linker frontend arguments]) -+ - # AC_PROG_CXX will return "g++" even if no c++ compiler is installed. - # Check for that case, and just disable c++ code if g++ doesn't run. - AC_LANG_PUSH(C++) diff --git a/meta/recipes-support/libpcre/libpcre_8.43.bb b/meta/recipes-support/libpcre/libpcre_8.43.bb index d54b3941976..e28615a8ba7 100644 --- a/meta/recipes-support/libpcre/libpcre_8.43.bb +++ b/meta/recipes-support/libpcre/libpcre_8.43.bb @@ -8,7 +8,6 @@ SECTION = "devel" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENCE;md5=91bee59d1b327eb1599b4c673e2fb3d1" SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre-${PV}.tar.bz2 \ - file://pcre-cross.patch \ file://fix-pcre-name-collision.patch \ file://run-ptest \ file://Makefile \ @@ -36,21 +35,7 @@ BINCONFIG = "${bindir}/pcre-config" inherit autotools binconfig-disabled ptest -EXTRA_OECONF = "\ - --enable-newline-is-lf \ - --enable-rebuild-chartables \ - --enable-utf \ - --with-link-size=2 \ - --with-match-limit=10000000 \ -" - -# Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to -# set CFLAGS_FOR_BUILD, required for the libpcre build. -BUILD_CFLAGS =+ "-DLINK_SIZE=2 -I${B}" -CFLAGS += "-D_REENTRANT" -CXXFLAGS_append_powerpc = " -lstdc++" - -export CCLD_FOR_BUILD ="${BUILD_CCLD}" +EXTRA_OECONF = "--enable-utf" PACKAGES =+ "libpcrecpp libpcreposix pcregrep pcregrep-doc pcretest pcretest-doc" From patchwork Wed Feb 27 18:33:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 159286 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4757367jad; Wed, 27 Feb 2019 10:34:17 -0800 (PST) X-Google-Smtp-Source: AHgI3Iba/XlE5JprNePKA9YAcA5J3EpcoS6AhgW49PBMIXpJ+1sSvuezGIq+yq+5b0usZsm4odVT X-Received: by 2002:a62:7042:: with SMTP id l63mr3033998pfc.1.1551292457413; Wed, 27 Feb 2019 10:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551292457; cv=none; d=google.com; s=arc-20160816; b=pUIh2RYjZNu+vH829Ew1mQDjE0VZS2T/agWPlyeg3/Nvq6nWMV+vuq4o9kBXFko9sf bITjUN6ZPHJnTD58jI2BkAmoYmVxhlqpPSTZmf0DdniND4zeFMAezCWJH74K0sWRbPc9 HlQFsg2SCrO+fsfIHdzbLWBvJm5tvsvUf3GbG+HZRLbq/6HBc7RGpwSCsFgyV1MPvfd4 IjXBZubLaJOV99RcbIRZEAW/xcm0R6vx6mzmuTogzNYsVofmUFuWBD+tUC9qnPUctsFi O7f5ctd7DnfeOYe/IFQoZ/GEWFPZ72TrNhGVjS+LpuxjqfgiK4Q/zqJzPoDvS62Kh4rO VZqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=lrxUoI+MM+7tA966yfSRtegBh0S5YzSNyDGATNWEjcw=; b=J+4VQVlX3JXQsgxim1QT22lJtKS/edflGX9/ALrSGIXQjBhl+fNxuTRiBByORj6THR 7g68rW3S06GA36d+L9/XPfbixGl3E46ZB0/nqgB2394QJw1P0c60tlB64sVEttBO255l pfNPoOk8UdFQlahu+nwefbJKQr4GmqAFrWgiHvJL6vVUA3lax81XDpvqYyPOafRWbDfg Qi8G9e1MU7UUcmnfItcslAhe8idJn7wsb0uIm0qnd3TsH4X0sPp1HNAGvoWpi4VQm9OV 6ozJHlCjDvE12X7ca0fDogbAjyn3pPH9z+AU06wA6tQHcQ9I3MFr3SMkcEi5Er+PSDCo 3piw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jei8wNej; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id c136si9337014pfb.89.2019.02.27.10.34.17; Wed, 27 Feb 2019 10:34:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jei8wNej; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 651F57CC7D; Wed, 27 Feb 2019 18:34:14 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mail.openembedded.org (Postfix) with ESMTP id EB2807CB38 for ; Wed, 27 Feb 2019 18:34:01 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id n19so6824194wmi.1 for ; Wed, 27 Feb 2019 10:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=gtxDqRBj3hJEutEAjX24nXcu92GPVOq3rDegnAr4Os4=; b=jei8wNeje/33Zr9LrVUrwX61/JXDSoCn1bVAapa0R+U6yV3CSPflWGybpzjHLylWrk SnKX3XnH3rP0/sLMk5Zh4UOgFG1QYhDVbDx0pJ44T8NnEm5zhqyZvhg+/4ab0RKwpFSG GzO98s54RIiz6xjsuajneBLYzI2EoZtiXE1Z1pmBJopb46Pu8UBqDhq6Kl7tTiOdRGAs 7Z2bdtwA3vor2rmu5AT4x/EfvyeR3FYgQUB62t5V+8DRxy3aEHVcpvRKqNclhxNWDHkE 7vyMhJhhsJwn9XqNdGB525reNT9ZI0CwZcC7EEjcwwyQzRV5Q/qRb+UNBvjeYYqHkXIA nO/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=gtxDqRBj3hJEutEAjX24nXcu92GPVOq3rDegnAr4Os4=; b=MI0wWnu9OgyvFDQnSZEhK7d6UMueqQ3Z9nsQfEWs+fEhn/Q45klynLJbaucJNa/mob Iybv5hOUQLXoWMKReweVlhcv1PcUT9CpCEG1eGjg/4OlzeaWD9ScGadc6I3umBdno5Ib rsR+wiUGAq2FStNpY+bGsdNCuOwf4fXma0CFYWC9UWCijr+XuLTlE8cC6OKhetgh6Y1M cM5DnS2lmYBRU/OUOlFN8WPEJJ20R25cPEXLX9W1jDrkIGDYgSwxqdprXZ90bF47ppyA Sr3uT/RkGgLrsLhlznci6vuSVL6OAb0oGioNddYolIGgT6VspL1aaaGwjCNRbZT+mQAN vXEw== X-Gm-Message-State: APjAAAV99xpPIqeR/Jo8ZGf1sciR8U5pb7m9jMUI8oPat9Ccnyfva/4C OoywSpfI8kQ/ZJGZfHHuYp/aZuuykFM= X-Received: by 2002:a7b:c38d:: with SMTP id s13mr357013wmj.151.1551292442181; Wed, 27 Feb 2019 10:34:02 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id w4sm26158366wrk.85.2019.02.27.10.34.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 10:34:01 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 27 Feb 2019 18:33:55 +0000 Message-Id: <20190227183355.19346-2-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190227183355.19346-1-ross.burton@intel.com> References: <20190227183355.19346-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 2/2] libpcre: enable JIT 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org PCRE has an optional JIT for performance. Add a PACKAGECONFIG for this, enabled by default. Also add a patch so that auto-detection of JIT availablity, which is required to enable the JIT by default, works with out-of-tree builds. Signed-off-by: Ross Burton --- .../libpcre/libpcre/out-of-tree.patch | 26 ++++++++++++++++++++++ meta/recipes-support/libpcre/libpcre_8.43.bb | 4 +++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/libpcre/libpcre/out-of-tree.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/libpcre/libpcre/out-of-tree.patch b/meta/recipes-support/libpcre/libpcre/out-of-tree.patch new file mode 100644 index 00000000000..687dcc034da --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre/out-of-tree.patch @@ -0,0 +1,26 @@ +In out-of-tree builds the #include fails because $srcdir isn't in the include path. Set CPPFLAGS so that it is. + +Upstream-Status: Submitted [https://bugs.exim.org/show_bug.cgi?id=2379] +Signed-off-by: Ross Burton + +Index: configure.ac +=================================================================== +--- a/configure.ac (revision 1749) ++++ b/configure.ac (working copy) +@@ -159,6 +159,8 @@ + + if test "$enable_jit" = "auto"; then + AC_LANG(C) ++ SAVE_CPPFLAGS=$CPPFLAGS ++ CPPFLAGS=-I$srcdir + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #define SLJIT_CONFIG_AUTO 1 + #include "sljit/sljitConfigInternal.h" +@@ -165,6 +167,7 @@ + #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) + #error unsupported + #endif]])], enable_jit=yes, enable_jit=no) ++ CPPFLAGS=$SAVE_CPPFLAGS + fi + + # Handle --disable-pcregrep-jit (enabled by default) diff --git a/meta/recipes-support/libpcre/libpcre_8.43.bb b/meta/recipes-support/libpcre/libpcre_8.43.bb index e28615a8ba7..08314efb9e4 100644 --- a/meta/recipes-support/libpcre/libpcre_8.43.bb +++ b/meta/recipes-support/libpcre/libpcre_8.43.bb @@ -9,6 +9,7 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENCE;md5=91bee59d1b327eb1599b4c673e2fb3d1" SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre-${PV}.tar.bz2 \ file://fix-pcre-name-collision.patch \ + file://out-of-tree.patch \ file://run-ptest \ file://Makefile \ " @@ -23,13 +24,14 @@ S = "${WORKDIR}/pcre-${PV}" PROVIDES += "pcre" DEPENDS += "bzip2 zlib" -PACKAGECONFIG ??= "pcre8 unicode-properties" +PACKAGECONFIG ??= "pcre8 unicode-properties jit" PACKAGECONFIG[pcre8] = "--enable-pcre8,--disable-pcre8" PACKAGECONFIG[pcre16] = "--enable-pcre16,--disable-pcre16" PACKAGECONFIG[pcre32] = "--enable-pcre32,--disable-pcre32" PACKAGECONFIG[pcretest-readline] = "--enable-pcretest-libreadline,--disable-pcretest-libreadline,readline," PACKAGECONFIG[unicode-properties] = "--enable-unicode-properties,--disable-unicode-properties" +PACKAGECONFIG[jit] = "--enable-jit=auto,--disable-jit" BINCONFIG = "${bindir}/pcre-config"