pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/openmotif Fix build on NetBSD systems:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b556bb62a7ff
branches:  trunk
changeset: 505918:b556bb62a7ff
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jan 09 13:13:52 2006 +0000

description:
Fix build on NetBSD systems:
If we have NetBSD 2.99.10 and higher, getpwuid_r and friends exist,
but _PTHREAD_THREAD_SAFE_FUNCTIONS might not be defined. Define it.
For NetBSD before 2.99.10, explicitly set XNO_MTSAFE_PWDAPI to enforce
locked access via normal functions.

diffstat:

 x11/openmotif/distinfo         |   6 +++---
 x11/openmotif/patches/patch-ac |  15 +++++++++++----
 x11/openmotif/patches/patch-ae |  16 ++++++++++++----
 3 files changed, 26 insertions(+), 11 deletions(-)

diffs (80 lines):

diff -r 308f9e3333fc -r b556bb62a7ff x11/openmotif/distinfo
--- a/x11/openmotif/distinfo    Mon Jan 09 12:49:56 2006 +0000
+++ b/x11/openmotif/distinfo    Mon Jan 09 13:13:52 2006 +0000
@@ -1,13 +1,13 @@
-$NetBSD: distinfo,v 1.22 2006/01/07 21:08:12 joerg Exp $
+$NetBSD: distinfo,v 1.23 2006/01/09 13:13:52 joerg Exp $
 
 SHA1 (openMotif-2.2.3.tar.gz) = c463653d9f8e24b35522c3ba6363ddf7a282eab4
 RMD160 (openMotif-2.2.3.tar.gz) = b99230d508da57bca72b6920d28fce4187bf5179
 Size (openMotif-2.2.3.tar.gz) = 5149785 bytes
 SHA1 (patch-aa) = 5c204036a831ca890b196c6f7d23be2fdb848980
 SHA1 (patch-ab) = 2243e335412b124e1ac57f57d25b5afdeacd987c
-SHA1 (patch-ac) = 77bfe5771dbcd942fcf5c73a1fa3e55154c9f03d
+SHA1 (patch-ac) = 1c14d22f888859b15365bcba7edba78a1114c6ac
 SHA1 (patch-ad) = 4903cbf3b9ac6e2dd2f8e327bb33f5743650787e
-SHA1 (patch-ae) = 47db1a43eda588f8502a33a46f1eaf7a72449812
+SHA1 (patch-ae) = 00ffe019ea7a6950ed673f5a7907196b22a45f4e
 SHA1 (patch-af) = 5ea54810105cfb2fc9d4a828e32208318e3c5d42
 SHA1 (patch-ag) = c7e461c35ef4bdbcc8917917a34ab546760cb5cc
 SHA1 (patch-ah) = d94132709d6b69d437a37616834bda8cc42592ba
diff -r 308f9e3333fc -r b556bb62a7ff x11/openmotif/patches/patch-ac
--- a/x11/openmotif/patches/patch-ac    Mon Jan 09 12:49:56 2006 +0000
+++ b/x11/openmotif/patches/patch-ac    Mon Jan 09 13:13:52 2006 +0000
@@ -1,13 +1,20 @@
-$NetBSD: patch-ac,v 1.5 2006/01/04 15:53:15 joerg Exp $
+$NetBSD: patch-ac,v 1.6 2006/01/09 13:13:53 joerg Exp $
 
 --- lib/Xm/Xmos.c.orig 2005-11-25 05:50:57.000000000 +0100
 +++ lib/Xm/Xmos.c
-@@ -91,6 +91,10 @@ extern int regex();
+@@ -91,6 +91,17 @@ extern int regex();
  
  #include <sys/stat.h>
  
-+#if defined(__NetBSD__) && __NetBSD_Version__ >= 299001000 && !defined(_POSIX_THREAD_SAFE_FUNCTIONS) /* NetBSD 2.99.10 */
-+#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#  if __NetBSD_Version__ >= 299001000 /* NetBSD 2.99.10 has getpw*_r*/
++#    if !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
++#      define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
++#    endif
++#  else
++#    define XNO_MTSAFE_PWDAPI
++#  endif
 +#endif
 +
  #define X_INCLUDE_PWD_H
diff -r 308f9e3333fc -r b556bb62a7ff x11/openmotif/patches/patch-ae
--- a/x11/openmotif/patches/patch-ae    Mon Jan 09 12:49:56 2006 +0000
+++ b/x11/openmotif/patches/patch-ae    Mon Jan 09 13:13:52 2006 +0000
@@ -1,16 +1,24 @@
-$NetBSD: patch-ae,v 1.3 2005/12/12 19:55:41 joerg Exp $
+$NetBSD: patch-ae,v 1.4 2006/01/09 13:13:53 joerg Exp $
 
 --- clients/uil/UilDB.c.orig   2005-11-25 10:43:27.000000000 +0100
 +++ clients/uil/UilDB.c
-@@ -79,8 +79,9 @@ static char rcsid[] = "$XConsortium: Uil
+@@ -79,8 +79,17 @@ static char rcsid[] = "$XConsortium: Uil
  #include <unistd.h>
  #endif
  
 -
 -
-+#if defined(__NetBSD__) && !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
-+#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#  if __NetBSD_Version__ >= 299001000 /* NetBSD 2.99.10 has getpw*_r*/
++#    if !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
++#      define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
++#    endif
++#  else
++#    define XNO_MTSAFE_PWDAPI
++#  endif
 +#endif
++
  
  #include "UilDefI.h"
  



Home | Main Index | Thread Index | Old Index