From unknown Mon Aug 18 14:20:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63016 <63016@debbugs.gnu.org> To: bug#63016 <63016@debbugs.gnu.org> Subject: Status: make it easier to build with development versions of PCRE2 Reply-To: bug#63016 <63016@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:20:38 +0000 retitle 63016 make it easier to build with development versions of PCRE2 reassign 63016 grep submitter 63016 Carlo Marcelo Arenas Bel=C3=B3n severity 63016 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 22 12:07:06 2023 Received: (at submit) by debbugs.gnu.org; 22 Apr 2023 16:07:06 +0000 Received: from localhost ([127.0.0.1]:43851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqFlS-0007cV-1k for submit@debbugs.gnu.org; Sat, 22 Apr 2023 12:07:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:33322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqFlO-0007cD-GD for submit@debbugs.gnu.org; Sat, 22 Apr 2023 12:07:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqFlO-00079D-AT for bug-grep@gnu.org; Sat, 22 Apr 2023 12:07:02 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqFlM-0005SZ-46 for bug-grep@gnu.org; Sat, 22 Apr 2023 12:07:01 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-63b4e5fdb1eso3937886b3a.1 for ; Sat, 22 Apr 2023 09:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682179617; x=1684771617; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=CJslZKjm9rhmMVikzyS4F+tDxaz1cJiQoVC90U0BBU4=; b=OJrCOZTm7Ezo2VdDxWQ9tNTMMKV6Ut2ekawI24H2Hx68pVM+oL7dMpgCmRgrNi/kJy Yei0iZSlvJdlWu8rX5z0CGGNIerTgY7XCSZYL9O5rf3EcSsUOkNKjNC0Y9wRqP6bmrYz GQx92rBNzqvcJNKQZUC8FBZhXiy6RJsyeAA3dILjWVJgyQLBW6h7RgQlFGUfJuWuh19R 74k9ATznA/hP6eDOn7iyos1UnwwPQuFO++I/jtybrDY4hhkT/y0eJtOVXC6dCi9rBUlJ rAes86cDrL/7w5KdBp4ZwOF0J/nRVnEhG+NauqMuOhtg4c9arq737Bjo0ZenggHd4Efw UUHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682179617; x=1684771617; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CJslZKjm9rhmMVikzyS4F+tDxaz1cJiQoVC90U0BBU4=; b=P3znAjaEp+sa4FKLeHqU1Ap8lwhxf8j7nN1KJ4fKdFellqnr37vb4/LayRvfPSQfMA APEmYa2tPsf0N2g28VFBRvUAe/9qnhTMgkFGEHTcSyaSpFnBobAdVh6j/fUeta+ZDVky RthLaZiTGZmMUu9iMaomk0HbOSrSNL/w0hI9OdPmMFqdEOkYyB5H7bFuA6yKxKGMP2vk ZLtEhFAfuMrVX/e9SR2A7i/GzQ+xdrDce2ZJJYFjgxLJ6f5KVkc+yj+XqbbWWf+0AFiz 17GRtwlCetvNCBEMOcLVOILxgrfWUz1anZ2GtpWVmbk46AX6Mfrl2khQdLlkSY85hP99 ONIQ== X-Gm-Message-State: AAQBX9e3TqV9csOIk6ME2LTCR3rsJ2ZFE+uS+MvodzBSvky6S26ZkURF 7OXMnaQOZCXgkDXBKcgNldgFz9eEWfg= X-Google-Smtp-Source: AKy350aYUu7hIEKBWVGqsV/8YNymeUxBpLyiDTf/VERVreTs2IXJgNPWCOQuZHFsg89WBVK9UOC8mw== X-Received: by 2002:a05:6a21:170d:b0:ef:1d4e:cf3e with SMTP id nv13-20020a056a21170d00b000ef1d4ecf3emr9767904pzb.50.1682179617136; Sat, 22 Apr 2023 09:06:57 -0700 (PDT) Received: from Carlos-MacBook-Pro-2.local (192-184-219-167.fiber.dynamic.sonic.net. [192.184.219.167]) by smtp.gmail.com with ESMTPSA id i64-20020a62c143000000b0063d328a690fsm4652553pfg.25.2023.04.22.09.06.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 09:06:56 -0700 (PDT) Date: Sat, 22 Apr 2023 09:06:55 -0700 From: Carlo Marcelo Arenas =?utf-8?B?QmVsw7Nu?= To: bug-grep@gnu.org Subject: make it easier to build with development versions of PCRE2 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="r5l2to4nkxlghcy5" Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=carenas@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --r5l2to4nkxlghcy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Building against a different version of PCRE2 that the one that is provided with the system is complicated by the fact that unlike what is advertised, if a pkg-config module for libpcre2-8 is found, it will override the values that were provided with PCRE_CFLAGS and PCRE_LIBS. Carlo --r5l2to4nkxlghcy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-build-prevent-pkg-config-from-overriding-user-provid.patch" >From b0a2cffcf81d628f22b317ed5c2148f6355958dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Sat, 22 Apr 2023 02:03:48 -0700 Subject: [PATCH] build: prevent pkg-config from overriding PCRE_* settings The use of PCRE_CFLAGS and PCRE_LIBS, as documented in the output of `--help`, is meant to override those settings from pkg-config. * NEWS: mention this * m4/pcre.m4: avoid overriding user provided settings --- NEWS | 5 ++++- m4/pcre.m4 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f16c576..c3ef942 100644 --- a/NEWS +++ b/NEWS @@ -19,10 +19,13 @@ GNU grep NEWS -*- outline -*- grep --version now prints a line describing the version of PCRE2 it uses. For example, it prints this when built with the very latest from git: - grep -P uses PCRE2 10.43-DEV 2023-01-15 + grep -P uses PCRE2 10.43-DEV 2023-04-14 or this with what's currently available in Fedora 37: grep -P uses PCRE2 10.40 2022-04-14 + previous versions of grep wouldn't respect the user provided settings for + PCRE_CFLAGS and PCRE_LIBS when building if a libpcre2-8 pkg-config module + found in the system. * Noteworthy changes in release 3.10 (2023-03-22) [stable] diff --git a/m4/pcre.m4 b/m4/pcre.m4 index a8ee55e..f4c71c7 100644 --- a/m4/pcre.m4 +++ b/m4/pcre.m4 @@ -21,7 +21,10 @@ AC_DEFUN([gl_FUNC_PCRE], use_pcre=no if test $test_pcre != no; then - PKG_CHECK_MODULES([PCRE], [libpcre2-8], [], [: ${PCRE_LIBS=-lpcre2-8}]) + + if test -z "$PCRE_CFLAGS" && test -z "$PCRE_LIBS"; then + PKG_CHECK_MODULES([PCRE], [libpcre2-8], [], [: ${PCRE_LIBS=-lpcre2-8}]) + fi AC_CACHE_CHECK([for pcre2_compile], [pcre_cv_have_pcre2_compile], [pcre_saved_CFLAGS=$CFLAGS -- 2.39.2 (Apple Git-143) --r5l2to4nkxlghcy5-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 29 02:43:01 2023 Received: (at 63016-done) by debbugs.gnu.org; 29 Apr 2023 06:43:01 +0000 Received: from localhost ([127.0.0.1]:35038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pseIP-0001FM-BO for submit@debbugs.gnu.org; Sat, 29 Apr 2023 02:43:01 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:55798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pseIN-0001F5-6z for 63016-done@debbugs.gnu.org; Sat, 29 Apr 2023 02:43:00 -0400 Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2a8bbea12d7so5125701fa.3 for <63016-done@debbugs.gnu.org>; Fri, 28 Apr 2023 23:42:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682750573; x=1685342573; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AWgFfE6pXQRx3qebNLS9Rze1d4QCi3Mj67F0R+GQsIY=; b=JB61JuGnUKadFATzlSs6Bb2SMgQmb99LEqTDklj9+9UivpgbyWHePQgifqiKczR3u8 QXP3+mJPLwyNm9YrXqFLxTXYHI+Xd1oUORHGPoRkIzS63KHwEVxNVidH523FYAtIxBYr EgTG+1yfA+NMsY40xRzKDT+6Fieq2JPadQ72VUv2ZH5qL+C95VPjXf3JcF8EmABx2T8k nfWqzk50nW6CJSMFViStQM16qcdI6y/yg/Yj8E/WnctWGWg2DvP33LDstLGKsPtGXAta BclyQXDynUGLJX5IlX0N2UOQg/JBIW/UuNnXVt3ECnoZqF/viulFBPbw7VBX0I5wAjvd tdDA== X-Gm-Message-State: AC+VfDyE7kiLvbN4nWxN7HwKLe6C/YGqHQRO1cbpsPATQRll7exVhcbD L2aZHzzhsvZxVdiG8WALFZmcm3IyGrGSN8UUfIE= X-Google-Smtp-Source: ACHHUZ5w64UKhCqhi5u+qGOe5cb5K5WIAYkvI4XmvVmBpDDF2CF1UBx8ooYs1dLlHEH6bGRqfF/+PY8Dn99YfCkgCHA= X-Received: by 2002:a2e:860b:0:b0:2a8:bb99:250d with SMTP id a11-20020a2e860b000000b002a8bb99250dmr2136366lji.6.1682750573034; Fri, 28 Apr 2023 23:42:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jim Meyering Date: Sat, 29 Apr 2023 08:42:40 +0200 Message-ID: Subject: Re: bug#63016: make it easier to build with development versions of PCRE2 To: =?UTF-8?Q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 63016-done Cc: 63016-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Sat, Apr 22, 2023 at 6:08=E2=80=AFPM Carlo Marcelo Arenas Bel=C3=B3n wrote: > Building against a different version of PCRE2 that the one that is provid= ed > with the system is complicated by the fact that unlike what is advertised= , > if a pkg-config module for libpcre2-8 is found, it will override the valu= es > that were provided with PCRE_CFLAGS and PCRE_LIBS. Thank you. Pushed. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 29 21:51:26 2023 Received: (at 63016) by debbugs.gnu.org; 30 Apr 2023 01:51:27 +0000 Received: from localhost ([127.0.0.1]:36887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pswDm-0006FV-Ia for submit@debbugs.gnu.org; Sat, 29 Apr 2023 21:51:26 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:48888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pswDi-0006EZ-0h for 63016@debbugs.gnu.org; Sat, 29 Apr 2023 21:51:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 93EBB3C09FA01; Sat, 29 Apr 2023 18:51:15 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4BNZMkPcEE1d; Sat, 29 Apr 2023 18:51:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 497233C09FA04; Sat, 29 Apr 2023 18:51:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 497233C09FA04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1682819475; bh=mXgM24DOzsNhDA8AFDZHDHv3XxWdp2gZ6gfGuSA5vlk=; h=Message-ID:Date:MIME-Version:To:From; b=HgljU0E/Nxrd6LdJC3PVTMK9gO6O5foimamCzYtPIVg4na6SoHYSZ1tXnmBJRFNPp CyzJiBWhUKEVBzZuhwZVsHXqfQqQQjBt4O6vDhhcx/Y8IAdDNOPCfmUkkuo4GrG+Jo gFyA2Em6T70uLHFUYS7dOcBU/1AQww157xgoCH4OT4T36aYOV3okneg0lUINxtZETe mNXrFQnchjV6cgbiq/uS65rQPd4m1fhNWn0n2TkIfi1zB+gZdParngXqevK+4GckTd XFTvEkpiEpf8oBx57r4okOvue8/hKYIJiWxCj9Rr8BmKt5WiSE/He1yFGPy9rMtCy+ IMd9bCsf6tEcQ== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id aoF0myFkLvkK; Sat, 29 Apr 2023 18:51:15 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 1A1303C09FA01; Sat, 29 Apr 2023 18:51:15 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------u647BVuPQKPgKhsiUZs7yd0L" Message-ID: Date: Sat, 29 Apr 2023 18:51:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: bug#63016: make it easier to build with development versions of PCRE2 Content-Language: en-US To: 63016@debbugs.gnu.org, jim@meyering.net, carenas@gmail.com References: From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 63016 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) This is a multi-part message in MIME format. --------------u647BVuPQKPgKhsiUZs7yd0L Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2023-04-28 23:42, Jim Meyering wrote: > On Sat, Apr 22, 2023 at 6:08=E2=80=AFPM Carlo Marcelo Arenas Bel=C3=B3n > wrote: >> Building against a different version of PCRE2 that the one that is pro= vided >> with the system is complicated by the fact that unlike what is adverti= sed, >> if a pkg-config module for libpcre2-8 is found, it will override the v= alues >> that were provided with PCRE_CFLAGS and PCRE_LIBS. >=20 > Thank you. Pushed. I installed the attached minor fixup for that, to handle "./configure=20 PCRE_CFLAGS=3D PCRE_LIBS=3D". --------------u647BVuPQKPgKhsiUZs7yd0L Content-Type: text/x-patch; charset=UTF-8; name="0001-build-support-explicit-PCRE_CFLAGS-PCRE_LIBS.patch" Content-Disposition: attachment; filename="0001-build-support-explicit-PCRE_CFLAGS-PCRE_LIBS.patch" Content-Transfer-Encoding: base64 RnJvbSBjMzI1OTgwM2ZlMjU1ZmI1NWYyY2ZjZGY0Y2Y1YmQ5NGFlM2JlZmRkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBTYXQsIDI5IEFwciAyMDIzIDE4OjMwOjQ3IC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gPT9VVEYtOD9xP2J1aWxkOj0yMHN1cHBvcnQ9MjBleHBsaWNpdD0yMD1FMj04MD05OFBD UkU9NUZDPz0KID0/VVRGLTg/cT9GTEFHUz0zRD0yMFBDUkU9NUZMSUJTPTNEPUUyPTgwPTk5 Pz0KTUlNRS1WZXJzaW9uOiAxLjAKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0 PVVURi04CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXQKCiogbTQvcGNyZS5tNCAo Z2xfRlVOQ19QQ1JFKTogQ2hlY2sgd2hldGhlciBQQ1JFX0NGTEFHUyBhbmQKUENSRV9MSUJT IGFyZSBzZXQsIG5vdCB3aGV0aGVyIHRoZXkgYXJlIHNldCB0byBhIG5vbmVtcHR5IHZhbHVl LgotLS0KIG00L3BjcmUubTQgfCAyICstCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24o KyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9tNC9wY3JlLm00IGIvbTQvcGNyZS5t NAppbmRleCBmNGM3MWM3Li40MDAwNzgyIDEwMDY0NAotLS0gYS9tNC9wY3JlLm00CisrKyBi L200L3BjcmUubTQKQEAgLTIyLDcgKzIyLDcgQEAgQUNfREVGVU4oW2dsX0ZVTkNfUENSRV0s CiAKICAgaWYgdGVzdCAkdGVzdF9wY3JlICE9IG5vOyB0aGVuCiAKLSAgICBpZiB0ZXN0IC16 ICIkUENSRV9DRkxBR1MiICYmIHRlc3QgLXogIiRQQ1JFX0xJQlMiOyB0aGVuCisgICAgaWYg dGVzdCAteiAiJHtQQ1JFX0NGTEFHUytzZXR9IiAmJiB0ZXN0IC16ICIke1BDUkVfTElCUytz ZXR9IjsgdGhlbgogICAgICAgUEtHX0NIRUNLX01PRFVMRVMoW1BDUkVdLCBbbGlicGNyZTIt OF0sIFtdLCBbOiAke1BDUkVfTElCUz0tbHBjcmUyLTh9XSkKICAgICBmaQogCi0tIAoyLjM5 LjIKCg== --------------u647BVuPQKPgKhsiUZs7yd0L-- From unknown Mon Aug 18 14:20:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 28 May 2023 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator