]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 472963 - Broken regular expression in configure.ac
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 17 Aug 2023 20:05:47 +0000 (22:05 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 17 Aug 2023 20:05:47 +0000 (22:05 +0200)
Was extracting the last two decimal digits from a hex humber.

I switched to using grep and sed because the proposed solution
didn't work on Solaris 11.3.

NEWS
configure.ac

diff --git a/NEWS b/NEWS
index 055dc41945b8771abf773aada0f72c9bfdcb0847..56f4701e0032f4c6b74abf540445430f6564fcf8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -47,6 +47,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
 470978  s390x: Valgrind cannot start qemu-kvm when "sysctl vm.allocate_pgste=0"
 471807  Add support for lazy reading and downloading of DWARF debuginfo
 472219  Syscall param ppoll(ufds.events) points to uninitialised byte(s)
+472963  Broken regular expression in configure.ac
 
 To see details of a given bug, visit
   https://bugs.kde.org/show_bug.cgi?id=XXXXXX
index b4e9c114286336fd84dec9307d1749498fd0dd86..913e8e8c5d46f94a5ffa9979d88acf6dbc410e1d 100755 (executable)
@@ -4552,7 +4552,7 @@ if ! $DIS_PATH -F scf_handle_bind $libscf  | grep -q -E '0x(4d01)?526570'; then
   AC_MSG_WARN([Function `scf_handle_bind' does not contain repository cache protocol version.])
   AC_MSG_ERROR([Cannot determine version of the repository cache protocol.])
 fi
-hex=$( $DIS_PATH -F scf_handle_bind $libscf  | perl -pe '($_) = /0x(?:4d01)?526570(\d{2}),/' )
+hex=$( $DIS_PATH -F scf_handle_bind $libscf  | grep 526570 | sed 's/.*526570//;s/,.*//' )
 if test -z "$hex"; then
   AC_MSG_WARN([Version of the repository cache protocol is empty?!])
   AC_MSG_ERROR([Cannot determine version of the repository cache protocol.])