Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: autopoint fails if GREP_OPTIONS contains -n
https://bugzilla.redhat.com/show_bug.cgi?id=801374
Summary: autopoint fails if GREP_OPTIONS contains -n Product: Fedora Version: 16 Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: gettext AssignedTo: petersen@redhat.com ReportedBy: jcholast@redhat.com QAContact: extras-qa@fedoraproject.org CC: petersen@redhat.com, i18n-bugs@lists.fedoraproject.org Classification: Fedora Story Points: --- Type: --- Regression: --- Mount Type: --- Documentation: ---
Description of problem: autopoint fails if the GREP_OPTIONS environment variable contains the -n (prefix each line of output with line number) option.
This happens because autopoint assumes that grep outputs lines of the source file in an unmodified form, which is not always true.
Version-Release number of selected component (if applicable):
How reproducible: Always.
Steps to Reproduce: 1. cd to a directory with a configure.ac file which contains the AM_GNU_GETTEXT_VERSION macro 2. run "GREP_OPTIONS=-n autopoint --force"
Actual results: autopoint: *** Missing version: please specify in configure.ac through a line 'AM_GNU_GETTEXT_VERSION(x.yy.zz)' the gettext version the package is using autopoint: *** Stop. autoreconf: autopoint failed with exit status: 1
Expected results: autopoint succeeds as if the -n grep option was not set.
Additional info:
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #1 from Jens Petersen petersen@redhat.com 2012-03-13 04:31:34 EDT --- I see - thanks for the report.
So do you suggest that autopoint unsets (ignores) GREP_OPTIONS?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #2 from Jens Petersen petersen@redhat.com 2012-03-13 04:32:58 EDT --- Do you have to export GREP_OPTIONS ?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #3 from Jan Cholasta jcholast@redhat.com 2012-03-13 06:19:23 EDT --- The variable has to be set in the environment from which autopoint is started, so yes, probably.
For the record, I had the "export GREP_OPTIONS=-n" line in my .bash_profile when I noticed the bug.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #4 from Jens Petersen petersen@redhat.com 2012-03-14 23:20:37 EDT --- (In reply to comment #3)
For the record, I had the "export GREP_OPTIONS=-n" line in my .bash_profile when I noticed the bug.
That was my question: do you really need to export it?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #5 from Jan Cholasta jcholast@redhat.com 2012-03-15 03:46:45 EDT --- Yes, I want the line numbers in grep output (and no, it doesn't work without exporting the variable).
BTW, there are several gzip invocations in autopoint - gzip uses $GZIP for default options, it should probably be handled as well.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #6 from Jens Petersen petersen@redhat.com 2012-04-01 20:41:59 EDT --- I see.
Ok, probably we should ask gettext upstream about GREP_OPTIONS, but I suppose autopoint could be patched to unset it.
In the meantime perhaps you could make a ~/bin/autopoint wrapper script to handle it.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #7 from Jens Petersen petersen@redhat.com --- http://lists.gnu.org/archive/html/bug-gettext/2012-07/msg00005.html was my post - no follows yet to date.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=801374
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|petersen@redhat.com |dueno@redhat.com
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #8 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=801374
Daiki Ueno dueno@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|16 |rawhide
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #9 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
Daiki Ueno dueno@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |POST
--- Comment #11 from Daiki Ueno dueno@redhat.com --- http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=d70724a34ca4d4f26e58...
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #12 from Jens Petersen petersen@redhat.com --- I guess this is fixed in F21+?
https://bugzilla.redhat.com/show_bug.cgi?id=801374
Daiki Ueno dueno@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|19 |20
https://bugzilla.redhat.com/show_bug.cgi?id=801374
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|POST |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- gettext-0.18.3.2-5.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/FEDORA-2015-0184/gettext-0.18.3.2-5....
https://bugzilla.redhat.com/show_bug.cgi?id=801374
--- Comment #14 from Fedora Update System updates@fedoraproject.org --- gettext-0.18.3.2-5.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=801374
Daiki Ueno dueno@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA Last Closed| |2015-01-19 00:31:09
i18n-bugs@lists.fedoraproject.org