diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
commit | e68d405c5d712af4387159df07e226217bdda049 (patch) | |
tree | 009ab0f3d427f0813e62930d71802cb054c07e30 /net-fs/libnfs/files | |
parent | 401101f9c8077911929d3f2b60a37098460a5d89 (diff) |
gentoo resync : 06.04.2022
Diffstat (limited to 'net-fs/libnfs/files')
-rw-r--r-- | net-fs/libnfs/files/libnfs-5.0.1-pthread-configure.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net-fs/libnfs/files/libnfs-5.0.1-pthread-configure.patch b/net-fs/libnfs/files/libnfs-5.0.1-pthread-configure.patch new file mode 100644 index 000000000000..91c3781389b4 --- /dev/null +++ b/net-fs/libnfs/files/libnfs-5.0.1-pthread-configure.patch @@ -0,0 +1,34 @@ +https://github.com/sahlberg/libnfs/pull/380 + +From af37ac6d766755185dc023b940cfe78a176170a0 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 3 Apr 2022 04:22:04 +0100 +Subject: [PATCH] autotools: fix syntax error in configure when pthreads + disabled + +Avoids this warning/syntax error in configure when pthreads aren't +enabled (default): +``` +checking for special C compiler options needed for large files... no +checking for _FILE_OFFSET_BITS value needed for large files... no +./configure: 14227: test: =: unexpected operator +checking whether SO_BINDTODEVICE is available... yes +checking whether getpwnam() is available... yes +``` + +The LHS of the test will be blank, so use an 'x' to give a dummy +value, like we do elsewhere. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -88,7 +88,7 @@ if test x"$libnfs_cv_HAVE_PTHREAD" = x"yes"; then + AC_DEFINE(HAVE_MULTITHREADING,1,[Whether we have multithreading support]) + fi + fi +-AM_CONDITIONAL([HAVE_PTHREAD], [test $libnfs_cv_HAVE_PTHREAD = yes]) ++AM_CONDITIONAL([HAVE_PTHREAD], [test x$libnfs_cv_HAVE_PTHREAD = xyes]) + + AC_MSG_CHECKING(whether SO_BINDTODEVICE is available) + AC_TRY_COMPILE([#include <net/if.h>], [ + |