GNU Libtool - Patches: patch #10282, port libtool to grep 3.8 and to...
You are not allowed to post comments on this tracker with your current authentication level.
patch #10282: port libtool to grep 3.8 and to POSIX
Submitter: | Paul Eggert <eggert> | ||
Submitted: | Mon 19 Sep 2022 08:27:13 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Tue 20 Sep 2022 06:44:00 AM UTC, comment #3: |
Paul Eggert <eggert> |
Tue 20 Sep 2022 03:39:44 AM UTC, comment #2: Thanks for the report and patch.
|
Alex Ameen <growpotkin>![]() |
Mon 19 Sep 2022 08:32:27 PM UTC, comment #1: This patch partly duplicates patch #10275, but it is more complete as it fixes more instances of the problem. Sorry I did not notice this earlier. I do not know how to merge the patch requests. |
Paul Eggert <eggert> |
Mon 19 Sep 2022 08:27:13 PM UTC, original submission:
GNU grep 3.8 warns about some regular expressions that POSIX says have undefined effect, e.g., '\-'. Unfortunately Libtool uses regular expressions of this form.
|
Paul Eggert <eggert> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-09-19 | eggert | Attached File | - | ![]() |
Added 0001-libtool-port-to-GNU-grep-3.8.patch, #53720 |
Attached File | - | ![]() |
Added 0002-libtool-port-better-to-POSIX-grep.patch, #53721 |
Powered by Savane 3.12.
Corresponding source code
comment #2:
Yes, it works.
Yes, that's right.
Without the patch, a test is generated that runs a shell command like this:
This usage of grep is not portable, since POSIX says that the regular expression \] has undefined effect (unlike \[ which is well defined to match an opening square bracket). A failure of the test does not mean that grep is broken; it means libtool is broken. To fix libtool, we should remove the incorrect test.