pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/libX11 libX11: report the thread safety constructo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5839eae7c65c
branches:  trunk
changeset: 381935:5839eae7c65c
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Fri Jul 15 23:23:35 2022 +0000

description:
libX11: report the thread safety constructor build state (NFC)

1.8 added a feature (--enable-thread-safety-constructor) which is
enabled by default and can cause issues like hangs with X11 clients
that aren't coded properly. (This affects more than one DE in pkgsrc.)
When the feature was added, it didn't include any output from configure
itself that reports what the state of the option is set to.

No change to package defaults or resulting binaries, this is just for
informational purposes for anyone else dealing with this, should they
want to disable the setting, or just recognize what state the build
used.

diffstat:

 x11/libX11/distinfo         |   6 +++---
 x11/libX11/patches/patch-aa |  19 +++++++++++++++----
 x11/libX11/patches/patch-ac |  16 ++++++++++++----
 3 files changed, 30 insertions(+), 11 deletions(-)

diffs (97 lines):

diff -r 9d37d99ea711 -r 5839eae7c65c x11/libX11/distinfo
--- a/x11/libX11/distinfo       Fri Jul 15 21:21:38 2022 +0000
+++ b/x11/libX11/distinfo       Fri Jul 15 23:23:35 2022 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.45 2022/07/03 09:44:13 wiz Exp $
+$NetBSD: distinfo,v 1.46 2022/07/15 23:23:35 gutteridge Exp $
 
 BLAKE2s (libX11-1.8.1.tar.xz) = 8831709e8031c28605a474ec1c19a2addfde87e84ce191e7ab49100ef65c930e
 SHA512 (libX11-1.8.1.tar.xz) = 2e36d2c47519e0cb2697f588c0ccdf73fbe75c2163f0855c78f7052dc9e920bca081f9d5e39c707a14067f101faef74fc758c8862eeba675b1535b43119d533a
 Size (libX11-1.8.1.tar.xz) = 1818460 bytes
 SHA1 (patch-Makefile.in) = 54faa0431bdb8a1e4fed5459bff03a316eb174c8
-SHA1 (patch-aa) = 4f502264e7200fd2f9409d8684c53de3bc6f0649
-SHA1 (patch-ac) = 84bad85defd7cdac82fe4448d723c80469507f73
+SHA1 (patch-aa) = ef0a21e981fae2a00385f484ba9cd3bee744d526
+SHA1 (patch-ac) = 0e2ba47dd7dc27d67bd00337ff40e2da089fd1ee
 SHA1 (patch-src_xkb_XKBBind.c) = 3ad94bd3265c3c4a85bcf3e2da0782c16fd461d1
diff -r 9d37d99ea711 -r 5839eae7c65c x11/libX11/patches/patch-aa
--- a/x11/libX11/patches/patch-aa       Fri Jul 15 21:21:38 2022 +0000
+++ b/x11/libX11/patches/patch-aa       Fri Jul 15 23:23:35 2022 +0000
@@ -1,12 +1,15 @@
-$NetBSD: patch-aa,v 1.12 2015/03/10 07:16:26 wiz Exp $
+$NetBSD: patch-aa,v 1.13 2022/07/15 23:23:35 gutteridge Exp $
 
 Include pthread.h as thread stubs might be macros like on NetBSD.
 
 Define conditional for cross-compiling support.
 
---- configure.ac.orig  2013-09-09 01:37:20.000000000 +0000
+Indicate whether the thread safety constructor is enabled. (This can cause
+issues with X clients that aren't coded correctly.)
+
+--- configure.ac.orig  2022-06-09 01:06:45.000000000 +0000
 +++ configure.ac
-@@ -276,7 +276,7 @@ xyes)
+@@ -222,7 +222,7 @@ xyes)
        ;;
  esac
  
@@ -15,7 +18,7 @@
  AM_CONDITIONAL(THRSTUBS, test x$thrstubs = xyes)
  
  # XXX incomplete, please fill this in
-@@ -285,12 +285,12 @@ if test x$xthreads = xyes ; then
+@@ -231,12 +231,12 @@ if test x$xthreads = xyes ; then
      linux*|gnu*|k*bsd*-gnu)
          XTHREADLIB=-lpthread ;;
      netbsd*)
@@ -31,3 +34,11 @@
          XTHREADLIB="-pthread" ;;
      solaris*)
        XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
+@@ -437,6 +437,7 @@ echo " Loadable i18n module support:
+ echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
+ echo " Threading support:                       "$xthreads
+ echo " Use Threads safe API:                    "$mtsafeapi
++echo " Use thread safety constructor:           "$USE_THREAD_SAFETY_CONSTRUCTOR
+ echo " Threads stubs in libX11:                 "$thrstubs
+ echo " XCMS:                                    "$XCMS
+ echo " Internationalization support:            "$XLOCALE
diff -r 9d37d99ea711 -r 5839eae7c65c x11/libX11/patches/patch-ac
--- a/x11/libX11/patches/patch-ac       Fri Jul 15 21:21:38 2022 +0000
+++ b/x11/libX11/patches/patch-ac       Fri Jul 15 23:23:35 2022 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-ac,v 1.14 2021/06/06 21:05:08 wiz Exp $
+$NetBSD: patch-ac,v 1.15 2022/07/15 23:23:35 gutteridge Exp $
 
 See patch-aa.
 
---- configure.orig     2021-06-06 16:49:01.000000000 +0000
+--- configure.orig     2022-06-09 01:06:54.000000000 +0000
 +++ configure
-@@ -22009,42 +22009,16 @@ printf "%s\n" "#define XUSE_MTSAFE_API 1
+@@ -22170,42 +22170,16 @@ printf "%s\n" "#define XUSE_MTSAFE_API 1
        ;;
  esac
  
@@ -54,7 +54,7 @@
  then :
    thrstubs="no"
  else $as_nop
-@@ -22066,12 +22040,12 @@ if test x$xthreads = xyes ; then
+@@ -22227,12 +22201,12 @@ if test x$xthreads = xyes ; then
      linux*|gnu*|k*bsd*-gnu)
          XTHREADLIB=-lpthread ;;
      netbsd*)
@@ -70,3 +70,11 @@
          XTHREADLIB="-pthread" ;;
      solaris*)
        XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
+@@ -25521,6 +25497,7 @@ echo " Loadable i18n module support:
+ echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
+ echo " Threading support:                       "$xthreads
+ echo " Use Threads safe API:                    "$mtsafeapi
++echo " Use thread safety constructor:           "$USE_THREAD_SAFETY_CONSTRUCTOR
+ echo " Threads stubs in libX11:                 "$thrstubs
+ echo " XCMS:                                    "$XCMS
+ echo " Internationalization support:            "$XLOCALE



Home | Main Index | Thread Index | Old Index