]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
illunmos: fix configure scf_handle_bind check
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 16 Apr 2023 12:27:04 +0000 (14:27 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 16 Apr 2023 12:27:04 +0000 (14:27 +0200)
Migration to GCC 10 changes to 64bit load, see
https://github.com/omniosorg/omnios-extra/blob/master/build/valgrind/patches/libscf.patch

configure.ac

index a886d0deaad4e5bc42eadfbc7ff834997d22261b..a439ec85d9c01f59bdd501f7f75034b118dd3de3 100755 (executable)
@@ -4513,11 +4513,11 @@ if test "X$VGCONF_ARCH_PRI" = "Xamd64"; then
 else
   libscf=/usr/lib/libscf.so.1
 fi
-if ! $DIS_PATH -F scf_handle_bind $libscf  | grep -q 0x526570; then
+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  | sed -n 's/.*0x526570\(..\).*/\1/p' )
+hex=$( $DIS_PATH -F scf_handle_bind $libscf  | perl -pe '($_) = /0x(?:4d01)?526570(\d{2}),/' )
 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.])