GNU bug report logs - #57604
[ef]grep usage -> POSIXLY_CORRECT?

Previous Next

Package: grep;

Reported by: Karl Berry <karl <at> freefriends.org>

Date: Mon, 5 Sep 2022 22:08:02 UTC

Severity: normal

Merged with 58502, 60257, 66582

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Santiago Ruano Rincón <santiagorr <at> riseup.net>
Cc: Lucas Nussbaum <lucas <at> debian.org>, Jochen Sprickerhof <jspricke <at> debian.org>, 57604 <at> debbugs.gnu.org, Paul Gevers <elbrus <at> debian.org>, 1019724 <at> bugs.debian.org, debian-release <at> lists.debian.org
Subject: bug#57604: Bug#1019724: warning: stray \ before - causes autopkgtest failure
Date: Mon, 19 Sep 2022 13:43:22 -0700
On 9/19/22 05:32, Santiago Ruano Rincón wrote:

> as you can read below, there are 4235 packages including the
> warning in their build logs. Funnily, grep is also in the list :-)

Grep is on the list because Debian indirectly requires ucf to build 
Grep, and ucf issues the warning about stray \ because ucf mistakenly 
uses a Perlism in a grep regular expression 
<https://bugs.debian.org/1019326>. This particular warning doesn't break 
anything; it merely alerts installers of a screwup that happens to work 
but relies on undefined results.

We're thinking about adding a configure-time option to Grep to disable 
warnings about egrep/fgrep, to address the original Grep bug report 
<https://bugs.gnu.org/57604>. I'm not so sure about disabling warnings 
about bad escapes, as these warnings are so often a win and so rarely a 
loss, as is the case with ucf. Of course there is a tradeoff here 
between (a) having to wade through a bunch of annoying warnings, and (b) 
fixing packages so that they don't rely on undefined results.

Since the main issue here seems to be libtool-related test failures, how 
about patching libtool and letting the affected packages use the patched 
libtool? You can find a patch here:

https://savannah.gnu.org/patch/index.php?10282
https://savannah.gnu.org/patch/download.php?file_id=53720

The libtool test failures are false alarms, so another option would be 
to ignore the failures until libtool gets fixed.


For more on this thorny topic, please see:

https://www.gnu.org/software/grep/manual/html_node/Problematic-Expressions.html

The stray \ issue is the 19th bullet.




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

Previous Next


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