summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-04-17 00:54:05 +0100
committerSam James <sam@gentoo.org>2024-04-17 00:54:19 +0100
commitc9dbd4fa234c88d579afd19236b3bc999ed36b53 (patch)
tree88cabe822e117731dc50836817412962781b2c94 /net-misc/cadaver/files/cadaver-0.24-autoconf-2.72.patch
parentnet-misc/cadaver: drop version change hunk from neon-0.33 patch (diff)
downloadgentoo-c9dbd4fa234c88d579afd19236b3bc999ed36b53.tar.gz
gentoo-c9dbd4fa234c88d579afd19236b3bc999ed36b53.tar.bz2
gentoo-c9dbd4fa234c88d579afd19236b3bc999ed36b53.zip
net-misc/cadaver: fix quoting w/ autoconf-2.72, respect CFLAGS during link
See https://github.com/gentoo/gentoo/pull/36274#issuecomment-2058032256. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/cadaver/files/cadaver-0.24-autoconf-2.72.patch')
-rw-r--r--net-misc/cadaver/files/cadaver-0.24-autoconf-2.72.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/net-misc/cadaver/files/cadaver-0.24-autoconf-2.72.patch b/net-misc/cadaver/files/cadaver-0.24-autoconf-2.72.patch
new file mode 100644
index 000000000000..addf7f0345a9
--- /dev/null
+++ b/net-misc/cadaver/files/cadaver-0.24-autoconf-2.72.patch
@@ -0,0 +1,63 @@
+https://github.com/notroj/cadaver/pull/42
+
+From 4f2ab67be45132ffdd9765d47b8457ca986b6fe3 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 17 Apr 2024 00:48:11 +0100
+Subject: [PATCH] m4: fix quoting in readline.m4
+
+Without this, with autoconf-2.72 at least, we get:
+```
+$ ./configure
+[...]
+checking for pkg-config... /usr/sbin/pkg-config
+checking pkg-config is at least version 0.9.0... yes
+checking for tputs in -lcurses... ./configure: 5319: ac_fn_c_try_link: not found
+no
+checking for tputs in -lncurses... no
+[...]
+```
+---
+ m4/readline.m4 | 25 +++++++++++--------------
+ 1 file changed, 11 insertions(+), 14 deletions(-)
+
+diff --git a/m4/readline.m4 b/m4/readline.m4
+index c0ab8af..9d650b9 100644
+--- a/m4/readline.m4
++++ b/m4/readline.m4
+@@ -9,24 +9,21 @@ AC_ARG_ENABLE(readline,
+ [use_readline=$enableval],
+ [use_readline=yes]) dnl Defaults to ON (if found)
+
+-if test "$use_readline" = "yes"; then
+- AC_CHECK_LIB(curses, tputs, LIBS="$LIBS -lcurses",
+- AC_CHECK_LIB(ncurses, tputs))
+- AC_CHECK_LIB(readline, readline)
++AS_IF([test "$use_readline" = "yes"], [
++ AC_CHECK_LIB([curses], [tputs], [LIBS="$LIBS -lcurses"],
++ [AC_CHECK_LIB(ncurses, tputs)])
++ AC_CHECK_LIB([readline], [readline])
+
+- AC_SEARCH_LIBS(add_history, history,
+- AC_DEFINE(HAVE_ADD_HISTORY, 1, [Define if you have the add_history function])
++ AC_SEARCH_LIBS([add_history], [history],
++ AC_DEFINE([HAVE_ADD_HISTORY], [1], [Define if you have the add_history function])
+ )
+
+- AC_CHECK_HEADERS(history.h readline/history.h readline.h readline/readline.h)
++ AC_CHECK_HEADERS([history.h readline/history.h readline.h readline/readline.h])
+
+ # Check for rl_completion_matches as in readline 4.2
+- AC_CHECK_FUNCS(rl_completion_matches)
+-
++ AC_CHECK_FUNCS([rl_completion_matches])
++
+ msg_readline="enabled"
+-else
++], [
+ msg_readline="disabled"
+-fi
+-
+-])
+-
++])])
+