]> git.ipfire.org Git - thirdparty/libtool.git/commit
libtool: port to GNU grep 3.8
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Sep 2022 20:22:53 +0000 (13:22 -0700)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 03:56:10 +0000 (22:56 -0500)
commiteb2a21cf2e1c56fd9461de67ef0ecccd66f478b9
tree72b97b90a82ce7dcf3ab94a78afaa7c5adc3bbcb
parentad06c50b005203ea262afe41fee7bf6a3a67b38c
libtool: port to GNU grep 3.8

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.  Some unittests now fail, e.g. link-order.at:

--- /dev/null
+++ .../libtool/tests/testsuite.dir/at-groups/66/stderr
@@ -0,0 +1,4 @@
+/bin/grep: warning: stray \ before /
+/bin/grep: warning: stray \ before /
+/bin/grep: warning: stray \ before /
+/bin/grep: warning: stray \ before /

Url: https://savannah.gnu.org/patch/index.php?10282

* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Do not use \- in a BRE or ERE,
as this produces undefined results that GNU grep 3.8 warns about.
Use [-] instead.
* tests/link-order.at (Link order test): Similarly, do not use
\/ in an ERE; use / instead.
m4/libtool.m4
tests/link-order.at