Hi,

A couple of changes in gnulib on 2019-07-15 [1] need updates on the coreutils
side, the next you update the gnulib used by coreutils.


1) The 'pthread' module is now a convenience module that includes
functionality that coreutils does not need (such as thread-specific storage).
Suggested patch:

diff --git a/bootstrap.conf b/bootstrap.conf
index 4926152..018bc4e 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -196,7 +196,10 @@ gnulib_modules="
   priv-set
   progname
   propername
-  pthread
+  pthread-cond
+  pthread-mutex
+  pthread-thread
+  pthread_sigmask
   putenv
   quote
   quotearg


2) gnulib no longer defines GNULIB_defined_pthread_functions. This macro was
not documented and has been removed. Suggested patch:

diff --git a/src/sort.c b/src/sort.c
index d812aa9..360a1f1 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -82,11 +82,6 @@ struct rlimit { size_t rlim_cur; };
 # endif
 #endif
 
-#if GNULIB_defined_pthread_functions
-# undef pthread_sigmask
-# define pthread_sigmask(how, set, oset) sigprocmask (how, set, oset)
-#endif
-
 #if !defined OPEN_MAX && defined NR_OPEN
 # define OPEN_MAX NR_OPEN
 #endif


Rationale: pthread_sigmask is already handled by gnulib's <signal.h>
override.


[1] https://lists.gnu.org/archive/html/bug-gnulib/2019-07/msg00052.html


Reply via email to