From patchwork Tue Dec 31 00:44:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182653 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp6987587ild; Mon, 30 Dec 2019 16:45:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzcOGnoJBieWbdONLHbGwZNf6ynMibyttOv2UmlSEiQSv1eY+3wEJ6xn8HVp54Bat/1oB7u X-Received: by 2002:a63:5c59:: with SMTP id n25mr73826822pgm.415.1577753103682; Mon, 30 Dec 2019 16:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577753103; cv=none; d=google.com; s=arc-20160816; b=CjyyEGVuQM3aUMIj35UpIhtl6odZzEQ4th1N2IvRwibWG2DQzX5KEHZmreq5iZy5DT pvf4mVPrxXGSrCR3/T8WD4GhO532qgbJvUPrSXUsbW3flnRDzlhX5iNb21GtE7bbdQGe irluZuYwxDmuEh94yGJ9fQUG7QntMe8aOTkTK9ZSJwlEZgdfLUbhFVVupb/HluERx2Tf /PHYhbH53MbeKTyUtFPGNX+vr3cealXjA5Vxw4gFwrQBp+I7Gdo9d3HK2TdHZzLgoFfn QxTN9QZuftyj0vLGCe6TfWXsws3mLoXfRqcYPymPMu2RBdX8mVUkYxLpjAjPCJ0CG63K YZZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=4F2a+IB4c0J1vIbw8gw8IrB3FFadd/a2n5IzNOmKgSo=; b=d9smhdLTKQS0qtzOft1raq5s/nnoQqtIt9IQzQAU9eUeWSl9yV0Oya/52dbRDghzRg FyYAncF2yIE7hW7Aa3K9be98rtKJYLqu8Ew42hVl5KsESQKhjhEQLLCGGxgJ+HR3QUFn mEJg3zUChbLotA4EpNNOcBaVNpf4XN7IAYUYJiJJpyv8gAAUTeDcQ8mpQWlHTYyRbhxR nInyynAFRKGJbET8oyaDe9L+SaQKTiCFqcBw37eyBLJCc9ZY6C6B3v9IQuSFPYZnA410 +IeU5qisQdmMdqQCX42GU26ni0B6YmhdpA1fASCYl11c35kjQ/EPrnHSqrQB3VBWLdVJ /7Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=kPLypyEh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id k10si40802655pgi.505.2019.12.30.16.45.02; Mon, 30 Dec 2019 16:45:03 -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=@gmail.com header.s=20161025 header.b=kPLypyEh; 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=QUARANTINE dis=NONE) header.from=gmail.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 87B1B7F960; Tue, 31 Dec 2019 00:44:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mail.openembedded.org (Postfix) with ESMTP id F3E8C7F9AD for ; Tue, 31 Dec 2019 00:44:53 +0000 (UTC) Received: by mail-pj1-f53.google.com with SMTP id a6so501501pjh.2 for ; Mon, 30 Dec 2019 16:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pIZ4um5rPa6FoTGXnmSyC5dTd2WZNCUk+DXuLYb/RaI=; b=kPLypyEhQNJkUSUxPSPIcSNkftXA8YzzoqMv+KAQy/oaDFhYYuP3Y32B7yCplf0kVj dnIIpX7C0YprcXFkxiFPCQwwXf2xaub3YlMKf+yGkgxks6uQXKDMKmkHrvv82AcRbawq FGwzYsahF/kz721v8M7sCVIhyvfdzOg3ihHUQavQEq2Dlui3PsA7r9DDGafJAntcISc8 0bVsPNJmbMPkE6S/pi0yOFWvyAoG3aSdDj9ViWuQmVSbNTLZTP5+jS1zP+zla5af/DyT 1j5y7cqpFKK31DcRuUpp1rOS6Xxk0q1/F1hAf8b+uPkwf/s65WV73iVS3s/Cl4MDZZCr koNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pIZ4um5rPa6FoTGXnmSyC5dTd2WZNCUk+DXuLYb/RaI=; b=hlsXi0CkRtG2vO1BE/8sMteHQ6B3KCLs0NysCqagqic5IIer8VGc9QsLjnWmY2HeMr dq7dkLUmmhtaounuCxWzVaVogUARMOYRXTAOYnPjhmDIJgmeXtnqzux6+DCq7k1lJjyl eg4T4kkzIOzIbrtz/tkqdFR/utcA+5aOi3ASUkdKSDp/HemCIdJ/qr6mS3tnzaTmAlE4 XHGFXqTFWvWNGSiXivHoh9Eaho2RyoaonrkD24O2qN/aRcLhJs01Zi9uA0MOrF3IWdQW FYRdc5flrEEIecPwccjHhSbdQemVWnbi4LiZjcDMS+FIJWIPK5iMrx+l2fV66zNtBKUn 3nag== X-Gm-Message-State: APjAAAX1bQsNW1vNR6xDHa5KFWdQHbbCj4gy8U7dMjc5bxWvUVkbk0q7 mfbE0n9P5YooeyVusXZP/r4khpwhFmo= X-Received: by 2002:a17:90a:8043:: with SMTP id e3mr2661488pjw.24.1577753094392; Mon, 30 Dec 2019 16:44:54 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::fa4b]) by smtp.gmail.com with ESMTPSA id z130sm49806277pgz.6.2019.12.30.16.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 16:44:53 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 30 Dec 2019 16:44:48 -0800 Message-Id: <20191231004448.3140350-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH V2] util-linux: Use PCRE for hardlink 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Use PCRE, this enables using posix extended Regexps on cmdline Signed-off-by: Khem Raj --- v2: Document the pcre2 pkgconfig usage meta/recipes-core/util-linux/util-linux.inc | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.24.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 1fa82363b1..179cb3dac5 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc @@ -106,6 +106,11 @@ EXTRA_OECONF_append_class-target = " --enable-setpriv" EXTRA_OECONF_append_class-native = " --without-cap-ng --disable-setpriv" EXTRA_OECONF_append_class-nativesdk = " --without-cap-ng --disable-setpriv" +# enable pcre2 for native/nativesdk to match host distros +# this helps to keep same expectations when using the SDK or +# build host versions during development +# +PACKAGECONFIG ?= "pcre2" PACKAGECONFIG_class-target ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" # inherit manpages requires this to be present, however util-linux does not have # configuration options, and installs manpages always @@ -117,6 +122,8 @@ PACKAGECONFIG[systemd] = "--with-systemd --with-systemdsystemunitdir=${systemd_s PACKAGECONFIG[pylibmount] = "--with-python=3 --enable-pylibmount,--without-python --disable-pylibmount,python3" # Readline support PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" +# PCRE support in hardlink +PACKAGECONFIG[pcre2] = ",,libpcre2" EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'"