GNU bug report logs - #24243
fix for pcre-jitstack failure on Mac OS X

Previous Next

Package: grep;

Reported by: Jack Howarth <howarth.mailing.lists <at> gmail.com>

Date: Tue, 16 Aug 2016 15:15:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 24243 in the body.
You can then email your comments to 24243 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-grep <at> gnu.org:
bug#24243; Package grep. (Tue, 16 Aug 2016 15:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jack Howarth <howarth.mailing.lists <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Tue, 16 Aug 2016 15:15:02 GMT) Full text and rfc822 format available.

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

From: Jack Howarth <howarth.mailing.lists <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: fix for pcre-jitstack failure on Mac OS X
Date: Tue, 16 Aug 2016 11:14:48 -0400
The pcre-jitstack test case fails on Mac OS X due to the system base64
expecting either '-D or --decode' rather than '-d or --decode'. The
trivial fix is to use the common '--decode' option rather than '-d'...

diff -uNr grep-2.25/tests/pcre-jitstack grep-2.25-patched/tests/pcre-jitstack
--- grep-2.25/tests/pcre-jitstack       2016-01-01 17:45:41.000000000 -0500
+++ grep-2.25-patched/tests/pcre-jitstack       2016-08-16
10:53:58.000000000 -0400
@@ -17,7 +17,7 @@

 fail=0

-base64 -d >pcrejit.txt.gz <<'EOF'
+base64 --decode >pcrejit.txt.gz <<'EOF'
 H4sIAAAAAAACA+2bUU4DMQxE/7mMz5T7XwKE+IBKVLue58yk0B9EtX6xJxN7t4VaH69a6+tHrW+/
 r4e3n75KARWShSOFTtiumE3FPVyo79ATIJ0Ry0No/yXe99UIUqTGKKUzYHFJHJoaCONQDCnDSCDS
 IPAvGCVeXNsZ7lpbWFfdaZtgPos5LeK2C1TBKzD09V3HFlCOsbFT/hNbz4HzJaRjnjdam9FXw/o6




Added tag(s) patch. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 16 Aug 2016 22:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-grep <at> gnu.org:
bug#24243; Package grep. (Wed, 17 Aug 2016 04:41:01 GMT) Full text and rfc822 format available.

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

From: Jim Meyering <jim <at> meyering.net>
To: Jack Howarth <howarth.mailing.lists <at> gmail.com>
Cc: 24243 <at> debbugs.gnu.org
Subject: Re: bug#24243: fix for pcre-jitstack failure on Mac OS X
Date: Tue, 16 Aug 2016 21:39:39 -0700
[Message part 1 (text/plain, inline)]
On Tue, Aug 16, 2016 at 8:14 AM, Jack Howarth
<howarth.mailing.lists <at> gmail.com> wrote:
> The pcre-jitstack test case fails on Mac OS X due to the system base64
> expecting either '-D or --decode' rather than '-d or --decode'. The
> trivial fix is to use the common '--decode' option rather than '-d'...
>
> diff -uNr grep-2.25/tests/pcre-jitstack grep-2.25-patched/tests/pcre-jitstack
> --- grep-2.25/tests/pcre-jitstack       2016-01-01 17:45:41.000000000 -0500
> +++ grep-2.25-patched/tests/pcre-jitstack       2016-08-16
> 10:53:58.000000000 -0400
> @@ -17,7 +17,7 @@
>
>  fail=0
>
> -base64 -d >pcrejit.txt.gz <<'EOF'
> +base64 --decode >pcrejit.txt.gz <<'EOF'

Thank you for the report and the patch.
However, there are plenty of systems for which base64 --decode would
not work either, so I've done this, which should work on a superset:

    tests: avoid unnecessary "skip" without base64 -d support

    * tests/pcre-jitstack: Try harder to find a base64 decoder:
    Try 'base64 -d', 'base64 -D', 'openssl base64 -d' and perl's
    MIME::Base64 decode_base64.  The old code would skip at least on
    OS X, for which base64 expects -D or --decode.
    Reported by Jack Howarth in http://bugs.gnu.org/24243.
[grep-test-vs-base64-d.diff (text/plain, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#24243; Package grep. (Wed, 17 Aug 2016 20:18:01 GMT) Full text and rfc822 format available.

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

From: Jim Meyering <jim <at> meyering.net>
To: Jack Howarth <howarth.mailing.lists <at> gmail.com>
Cc: 24243 <at> debbugs.gnu.org
Subject: Re: bug#24243: fix for pcre-jitstack failure on Mac OS X
Date: Wed, 17 Aug 2016 13:16:56 -0700
On Tue, Aug 16, 2016 at 9:39 PM, Jim Meyering <jim <at> meyering.net> wrote:
> On Tue, Aug 16, 2016 at 8:14 AM, Jack Howarth
> <howarth.mailing.lists <at> gmail.com> wrote:
>> The pcre-jitstack test case fails on Mac OS X due to the system base64
>> expecting either '-D or --decode' rather than '-d or --decode'. The
>> trivial fix is to use the common '--decode' option rather than '-d'...
>>
>> diff -uNr grep-2.25/tests/pcre-jitstack grep-2.25-patched/tests/pcre-jitstack
>> --- grep-2.25/tests/pcre-jitstack       2016-01-01 17:45:41.000000000 -0500
>> +++ grep-2.25-patched/tests/pcre-jitstack       2016-08-16
>> 10:53:58.000000000 -0400
>> @@ -17,7 +17,7 @@
>>
>>  fail=0
>>
>> -base64 -d >pcrejit.txt.gz <<'EOF'
>> +base64 --decode >pcrejit.txt.gz <<'EOF'
>
> Thank you for the report and the patch.
> However, there are plenty of systems for which base64 --decode would
> not work either, so I've done this, which should work on a superset:
>
>     tests: avoid unnecessary "skip" without base64 -d support
>
>     * tests/pcre-jitstack: Try harder to find a base64 decoder:
>     Try 'base64 -d', 'base64 -D', 'openssl base64 -d' and perl's
>     MIME::Base64 decode_base64.  The old code would skip at least on
>     OS X, for which base64 expects -D or --decode.
>     Reported by Jack Howarth in http://bugs.gnu.org/24243.

Pushed.
Before pushing, I adjusted the commit log to reflect that this avoids
a false failure, not a skip.
Also adjusted the patch slightly and included a little more clean-up
in the vicinity.

I also pushed a separate fix to avoid a new "make syntax-check" failure.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 17 Aug 2016 20:55:01 GMT) Full text and rfc822 format available.

Notification sent to Jack Howarth <howarth.mailing.lists <at> gmail.com>:
bug acknowledged by developer. (Wed, 17 Aug 2016 20:55:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>,
 Jack Howarth <howarth.mailing.lists <at> gmail.com>
Cc: 24243-done <at> debbugs.gnu.org
Subject: Re: bug#24243: fix for pcre-jitstack failure on Mac OS X
Date: Wed, 17 Aug 2016 13:54:37 -0700
Thanks for doing all that, Jim. I'm closing the bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Sep 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 246 days ago.

Previous Next


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