commit:     25991da0dcacbe7cfbe454abe06925ee6c27efdb
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Sat Jan 18 18:23:32 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 18 18:47:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25991da0

sys-block/mbuffer: fix fails to compile

save and restore CFLAGS by using shell syntax

Fixes: 69fee45923a0a9b2734f3bb150a1f576499904b0
Closes: https://bugs.gentoo.org/948358
Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40196
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-block/mbuffer/files/mbuffer-20240107-O0-for-libc-name-find.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/sys-block/mbuffer/files/mbuffer-20240107-O0-for-libc-name-find.patch 
b/sys-block/mbuffer/files/mbuffer-20240107-O0-for-libc-name-find.patch
index b176c3dfe907..e2d452f966e2 100644
--- a/sys-block/mbuffer/files/mbuffer-20240107-O0-for-libc-name-find.patch
+++ b/sys-block/mbuffer/files/mbuffer-20240107-O0-for-libc-name-find.patch
@@ -23,7 +23,7 @@ index 95d6772..081625a 100644
  if test -z "$OBJDUMP"; then
        AC_MSG_WARN([unable to find objdump, which is needed to run tests])
  else
-+      m4_pushdef([ORIGINAL_CFLAGS], [$CFLAGS])
++      old_CFLAGS="${CFLAGS}"
 +      CFLAGS="-O0"
        AC_MSG_CHECKING([linking open() and write() to detect libc names])
        AC_LINK_IFELSE([
@@ -32,7 +32,7 @@ index 95d6772..081625a 100644
        ],
        [AC_MSG_FAILURE([failed to link open/write test])]
        )
-+      CFLAGS="${ORIGINAL_CFLAGS}"
++      CFLAGS="${old_CFLAGS}"
  fi
  
  

Reply via email to