pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases Configure PostgreSQL client with --enable-th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/53f9e5f08fe6
branches:  trunk
changeset: 535906:53f9e5f08fe6
user:      rmind <rmind%pkgsrc.org@localhost>
date:      Thu Nov 29 23:41:35 2007 +0000

description:
Configure PostgreSQL client with --enable-thread-safety on NetBSD 4.0 and
newer versions.  This gives a performance improvement on client-side,
especially on NetBSD -current.

Reviewed by <agc>.

diffstat:

 databases/postgresql80-client/Makefile |  7 ++++---
 databases/postgresql81-client/Makefile |  7 ++++---
 databases/postgresql82-client/Makefile |  7 ++++---
 3 files changed, 12 insertions(+), 9 deletions(-)

diffs (69 lines):

diff -r 96702f38380f -r 53f9e5f08fe6 databases/postgresql80-client/Makefile
--- a/databases/postgresql80-client/Makefile    Thu Nov 29 23:35:37 2007 +0000
+++ b/databases/postgresql80-client/Makefile    Thu Nov 29 23:41:35 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/01/08 20:30:42 adam Exp $
+# $NetBSD: Makefile,v 1.19 2007/11/29 23:41:35 rmind Exp $
 
 PKGNAME=       postgresql80-client-${BASE_VERS}
 COMMENT=       PostgreSQL database client programs
@@ -15,10 +15,11 @@
 CONFLICTS+=    postgresql80-docs-[0-9]*
 
 # 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
-# NetBSD (missing strerror_r) or DragonFly.
+# NetBSD earler than 4.0 or DragonFly.
 # 2. configure with --enable-thread-safety fails on OpenBSD.
 #
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
+.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
+    ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
 PGSQL_THREAD_SAFETY?=  no
 .endif
 PGSQL_THREAD_SAFETY?=  yes
diff -r 96702f38380f -r 53f9e5f08fe6 databases/postgresql81-client/Makefile
--- a/databases/postgresql81-client/Makefile    Thu Nov 29 23:35:37 2007 +0000
+++ b/databases/postgresql81-client/Makefile    Thu Nov 29 23:41:35 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/01/08 18:55:38 adam Exp $
+# $NetBSD: Makefile,v 1.7 2007/11/29 23:41:35 rmind Exp $
 
 PKGNAME=       postgresql81-client-${BASE_VERS}
 COMMENT=       PostgreSQL database client programs
@@ -17,10 +17,11 @@
 CONFLICTS+=    postgresql81-docs-[0-9]*
 
 # 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
-# NetBSD (missing strerror_r) or DragonFly.
+# NetBSD earler than 4.0 or DragonFly.
 # 2. configure with --enable-thread-safety fails on OpenBSD.
 #
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
+.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
+    ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
 PGSQL_THREAD_SAFETY?=  no
 .endif
 PGSQL_THREAD_SAFETY?=  yes
diff -r 96702f38380f -r 53f9e5f08fe6 databases/postgresql82-client/Makefile
--- a/databases/postgresql82-client/Makefile    Thu Nov 29 23:35:37 2007 +0000
+++ b/databases/postgresql82-client/Makefile    Thu Nov 29 23:41:35 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/12/09 15:34:59 adam Exp $
+# $NetBSD: Makefile,v 1.2 2007/11/29 23:41:35 rmind Exp $
 
 PKGNAME=       postgresql82-client-${BASE_VERS}
 COMMENT=       PostgreSQL database client programs
@@ -17,10 +17,11 @@
 CONFLICTS+=    postgresql82-docs-[0-9]*
 
 # 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
-# NetBSD (missing strerror_r) or DragonFly.
+# NetBSD earler than 4.0 or DragonFly.
 # 2. configure with --enable-thread-safety fails on OpenBSD.
 #
-.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
+.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
+    ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
 PGSQL_THREAD_SAFETY?=  no
 .endif
 PGSQL_THREAD_SAFETY?=  yes



Home | Main Index | Thread Index | Old Index