GNU bug report logs - #66753
grep 3.8 now needs pcre2 as input, not pcre

Previous Next

Package: guix;

Reported by: Matt Beshara <m <at> mfa.pw>

Date: Wed, 25 Oct 2023 22:43:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66753 in the body.
You can then email your comments to 66753 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#66753; Package guix. (Wed, 25 Oct 2023 22:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matt Beshara <m <at> mfa.pw>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 25 Oct 2023 22:43:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matt Beshara <m <at> mfa.pw>
To: bug-guix <at> gnu.org
Subject: grep 3.8 now needs pcre2 as input, not pcre
Date: Thu, 26 Oct 2023 09:21:24 +1100
Hi Guix people,
I have been working on creating a package definition for 
pulseaudio-equalizer¹ and when built with the current definition 
of the grep package, it prints this error message when running:

grep: Perl matching not supported in a --disable-perl-regexp build
grep: write error: Broken pipe

Searching for that error message, I came across this:
https://trac.macports.org/ticket/65800

So it seems that, for version 3.8, the pcre input package for grep 
should be changed to pcre2.  I have made this change in a new 
definition which inherits grep and told my pulseaudio-equalizer 
package to use that as a propagated input, and that causes the 
error to go away.  For the sake of completeness, here’s the 
definition I used:

(define grep-fixed
 (package
   (inherit grep)
   (inputs (list pcre2))))

Best wishes,
Matt

1. https://github.com/pulseaudio-equalizer-ladspa/equalizer




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Mon, 22 Jan 2024 04:35:02 GMT) Full text and rfc822 format available.

Notification sent to Matt Beshara <m <at> mfa.pw>:
bug acknowledged by developer. (Mon, 22 Jan 2024 04:35:02 GMT) Full text and rfc822 format available.

Message #10 received at 66753-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Matt Beshara <m <at> mfa.pw>
Cc: 66753-done <at> debbugs.gnu.org
Subject: Re: bug#66753: grep 3.8 now needs pcre2 as input, not pcre
Date: Sun, 21 Jan 2024 23:34:30 -0500
Hi,

Matt Beshara <m <at> mfa.pw> writes:

> Hi Guix people,
> I have been working on creating a package definition for
> pulseaudio-equalizer¹ and when built with the current definition of
> the grep package, it prints this error message when running:
>
> grep: Perl matching not supported in a --disable-perl-regexp build
> grep: write error: Broken pipe
>
> Searching for that error message, I came across this:
> https://trac.macports.org/ticket/65800
>
> So it seems that, for version 3.8, the pcre input package for grep
> should be changed to pcre2.  I have made this change in a new
> definition which inherits grep and told my pulseaudio-equalizer
> package to use that as a propagated input, and that causes the error
> to go away.  For the sake of completeness, here’s the definition I
> used:
>
> (define grep-fixed
>  (package
>    (inherit grep)
>    (inputs (list pcre2))))
>
> Best wishes,
> Matt

This appears to have been fixed independently by spacecadet in commit
5b0cea02358044f0cc695bacc3f44db1e220239b ("gnu: grep: Fix PCRE matches
(grep -P).").

Closing!

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 19 Feb 2024 12:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.