bugGNU gettext - Bugs: bug #47674, gettext test suite fails with grep...


You are not allowed to post comments on this tracker with your current authentication level.

bug #47674: gettext test suite fails with grep 2.24

Submitted by:  Dominique Leuenberger <dimstar>
Submitted on:  Tue 12 Apr 2016 11:16:59 AM UTC  
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Not a Bug
Privacy:  Public Assigned to:  Daiki Ueno <ueno>
Open/Closed:  Closed

Fri 13 May 2016 02:52:57 AM UTC, comment #2: 

According to the announcement, I assume this is no longer the case with grep 2.25:

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Wed 13 Apr 2016 01:38:59 AM UTC, comment #1: 

I'd expect it will be fixed once the next version of grep is released, with a fix in gnulib incorporated:

We would better wait it rather than adding a workaround relying on the non portable -a option.

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
Tue 12 Apr 2016 11:16:59 AM UTC, original submission:  

While running make check using 'grep 2.24', the test suite fails:

[  540s] ============================================================================
[  540s] Testsuite summary for gettext-tools 0.19.6
[  540s] ============================================================================
[  540s] # TOTAL: 408
[  540s] # PASS:  373
[  540s] # SKIP:  27
[  540s] # XFAIL: 0
[  540s] # FAIL:  8
[  540s] # XPASS: 0
[  540s] # ERROR: 0
[  540s] ============================================================================
[  540s] See tests/test-suite.log
[  540s] Please report to -email is unavailable-

The reason is the way grep handles auto-detection of binary files vs pure text files (in case of gettext, we pipe everything)

The easiest solution is to change "grep -v" to "grep -a -v", thus forcing 'text' mode

Dominique Leuenberger <dimstar>


Attached Files
file #36956:  gettext-runtime-grep-2.24_2.patch added by None (8KiB - text/x-patch - patch againt 0.19.7 (xgettext-glade-2 test))
file #36902:  gettext-runtime-grep-2.24.patch added by dimstar (8KiB - text/x-patch - Minimal patch to fix test suite with grep 2.24)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by dimstar (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-12 haible StatusInvalid => Not a Bug
    2016-11-27 haible CategoryNone => Build
        Assigned toNone => ueno
    2016-05-13 ueno StatusNone => Invalid
        Open/ClosedOpen => Closed
    2016-04-18 None Attached File- => Added gettext-runtime-grep-2.24_2.patch, #36956
    2016-04-12 dimstar Attached File- => Added gettext-runtime-grep-2.24.patch, #36902

    Back to the top

    Powered by Savane 3.5