GNU bug report logs - #34085
autoscan reports a warning

Previous Next

Package: guix;

Reported by: Joshua Branson <jbranso <at> dismail.de>

Date: Tue, 15 Jan 2019 15:45:02 UTC

Severity: normal

Done: Sarah Morgensen <iskarian <at> mgsn.dev>

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 34085 in the body.
You can then email your comments to 34085 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#34085; Package guix. (Tue, 15 Jan 2019 15:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joshua Branson <jbranso <at> dismail.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 15 Jan 2019 15:45:02 GMT) Full text and rfc822 format available.

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

From: Joshua Branson <jbranso <at> dismail.de>
To: bug-guix <at> gnu.org
Subject: autoscan reports a warning
Date: Tue, 15 Jan 2019 10:43:49 -0500
Hello,

I'm not certain if this is the right list to report this to, but I just
installed autoscan version 2.21, and it gave me this warning:

#BEGIN_SRC sh
  autoscan
#END_SRC

Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /home/joshua/.guix-profile/bin/autoscan line 361.


Should I report this upstream instead?

Thanks

--
Joshua Branson
Sent from Emacs and Gnus




Information forwarded to bug-guix <at> gnu.org:
bug#34085; Package guix. (Wed, 16 Jan 2019 10:56:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: 34085 <at> debbugs.gnu.org
Subject: Re: bug#34085: autoscan reports a warning
Date: Wed, 16 Jan 2019 11:55:35 +0100
Hi,

Joshua Branson <jbranso <at> dismail.de> skribis:

> I'm not certain if this is the right list to report this to, but I just
> installed autoscan version 2.21, and it gave me this warning:

Guix doesn’t have an ‘autoscan’ package, does it?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#34085; Package guix. (Wed, 16 Jan 2019 16:30:01 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Joshua Branson <jbranso <at> dismail.de>
Cc: 34085 <at> debbugs.gnu.org
Subject: Re: bug#34085: autoscan reports a warning
Date: Wed, 16 Jan 2019 17:29:16 +0100
[Message part 1 (text/plain, inline)]
Hi,

On Tue, 15 Jan 2019 10:43:49 -0500
Joshua Branson <jbranso <at> dismail.de> wrote:

> I'm not certain if this is the right list to report this to, but I just
> installed autoscan version 2.21, and it gave me this warning:
> 
> #BEGIN_SRC sh
>   autoscan
> #END_SRC
> 
> Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${ <-- HERE [^\}]*}/ at /home/joshua/.guix-profile/bin/autoscan line 361.
> 
> 
> Should I report this upstream instead?

I think so, yes.

autoscan is part of autoconf 2.21, so the bug report should go to the autoconf package.

The regexp in question is

      s/\${[^\}]*}//g;

Perl is complaining because perl regexp use curly braces to specify a range of valid repeats.
Maybe the easiest way to understand it is that the following equivalences hold in regexps:

? is equivalent to {0,1}
+ is equivalent to {1,}
* is equivalent to {0,}

The above (at the end of the regexp "\${[^\}]*}") probably means a literal curly
brace--but they don't escape it - hence the warning.

It's only a warning because no valid repeat range can start with a closing curly
brace.
So perl can still figure out what you meant.

But it's obviously not recommended to use unescaped closing curly braces to
match a literal closing curly brace regardless.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#34085; Package guix. (Thu, 17 Jan 2019 15:05:03 GMT) Full text and rfc822 format available.

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

From: Joshua Branson <jbranso <at> dismail.de>
To: bug-guix <at> gnu.org
Subject: Re: bug#34085: autoscan reports a warning
Date: Thu, 17 Jan 2019 10:04:38 -0500
Danny Milosavljevic <dannym <at> scratchpost.org> writes:

> Hi,
>
> On Tue, 15 Jan 2019 10:43:49 -0500
> Joshua Branson <jbranso <at> dismail.de> wrote:
>
>> I'm not certain if this is the right list to report this to, but I just
>> installed autoscan version 2.21, and it gave me this warning:
>> 
>> #BEGIN_SRC sh
>>   autoscan
>> #END_SRC
>> 
>> Unescaped left brace in regex is deprecated here (and will be fatal
>> in Perl 5.30), passed through in regex; marked by <-- HERE in m/\${
>> <-- HERE [^\}]*}/ at /home/joshua/.guix-profile/bin/autoscan line
>> 361.
>> 
>> 
>> Should I report this upstream instead?
>
> I think so, yes.
>
> autoscan is part of autoconf 2.21, so the bug report should go to the autoconf package.
>
> The regexp in question is
>
>       s/\${[^\}]*}//g;
>
> Perl is complaining because perl regexp use curly braces to specify a range of valid repeats.
> Maybe the easiest way to understand it is that the following equivalences hold in regexps:
>
> ? is equivalent to {0,1}
> + is equivalent to {1,}
> * is equivalent to {0,}
>
> The above (at the end of the regexp "\${[^\}]*}") probably means a literal curly
> brace--but they don't escape it - hence the warning.
>
> It's only a warning because no valid repeat range can start with a closing curly
> brace.
> So perl can still figure out what you meant.
>
> But it's obviously not recommended to use unescaped closing curly braces to
> match a literal closing curly brace regardless.
>


Ok, I'll report this upstream.  Thanks for flushing out the main issue!

-- 
Joshua Branson
Sent from Emacs and Gnus




bug closed, send any further explanations to 34085 <at> debbugs.gnu.org and Joshua Branson <jbranso <at> dismail.de> Request was from Sarah Morgensen <iskarian <at> mgsn.dev> to control <at> debbugs.gnu.org. (Sat, 25 Sep 2021 22:15:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 24 Oct 2021 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 185 days ago.

Previous Next


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