summaryrefslogtreecommitdiffstats
path: root/libraries/libbsd/patches/0001-build-Use-yes-instead-of-true-for-AC_CHECK_FUNCS-cac.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libbsd/patches/0001-build-Use-yes-instead-of-true-for-AC_CHECK_FUNCS-cac.patch')
-rw-r--r--libraries/libbsd/patches/0001-build-Use-yes-instead-of-true-for-AC_CHECK_FUNCS-cac.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/libraries/libbsd/patches/0001-build-Use-yes-instead-of-true-for-AC_CHECK_FUNCS-cac.patch b/libraries/libbsd/patches/0001-build-Use-yes-instead-of-true-for-AC_CHECK_FUNCS-cac.patch
new file mode 100644
index 0000000000..f73d8efe6a
--- /dev/null
+++ b/libraries/libbsd/patches/0001-build-Use-yes-instead-of-true-for-AC_CHECK_FUNCS-cac.patch
@@ -0,0 +1,32 @@
+From 5cfa39e5cde6b64ccf3d1335cee4d4744d4ce242 Mon Sep 17 00:00:00 2001
+From: Guillem Jover <guillem@hadrons.org>
+Date: Wed, 23 Nov 2022 23:42:49 +0100
+Subject: [PATCH] =?UTF-8?q?build:=20Use=20=C2=AByes=C2=BB=20instead=20of?=
+ =?UTF-8?q?=20=C2=ABtrue=C2=BB=20for=20AC=5FCHECK=5FFUNCS=20cache=20value?=
+Origin: upstream, commit:5cfa39e5cde6b64ccf3d1335cee4d4744d4ce242
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This autoconf macro sets the ac_cv_func_ cached variable to «yes» not
+«true» so we were checking for an impossible condition.
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 17d113c..842f5d6 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -246,7 +246,7 @@ AC_LINK_IFELSE(
+ AC_CHECK_FUNCS([clearenv dirfd fopencookie __fpurge \
+ getauxval getentropy getexecname getline \
+ pstat_getproc sysconf])
+-AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = "xtrue"])
++AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = "xyes"])
+
+ AC_SUBST([MD5_LIBS])
+ AC_SUBST([LIBBSD_LIBS])
+--
+2.39.2
+