summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorrmind <rmind>2007-11-29 23:41:35 +0000
committerrmind <rmind>2007-11-29 23:41:35 +0000
commitb0b6a6549c5690b0a7848abc9a57d8b5fd70d575 (patch)
tree3adf4de7d72adbbf1e595e214bfdbc1375966d18 /databases
parent6840b701651b20bb048deb5189c65f836482a55c (diff)
downloadpkgsrc-b0b6a6549c5690b0a7848abc9a57d8b5fd70d575.tar.gz
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 (limited to 'databases')
-rw-r--r--databases/postgresql80-client/Makefile7
-rw-r--r--databases/postgresql81-client/Makefile7
-rw-r--r--databases/postgresql82-client/Makefile7
3 files changed, 12 insertions, 9 deletions
diff --git a/databases/postgresql80-client/Makefile b/databases/postgresql80-client/Makefile
index 2f61c24aec2..19c156743cb 100644
--- a/databases/postgresql80-client/Makefile
+++ b/databases/postgresql80-client/Makefile
@@ -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-lib-[0-9]*
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 --git a/databases/postgresql81-client/Makefile b/databases/postgresql81-client/Makefile
index 165d2d4250e..36df63e4b54 100644
--- a/databases/postgresql81-client/Makefile
+++ b/databases/postgresql81-client/Makefile
@@ -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-lib-[0-9]*
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 --git a/databases/postgresql82-client/Makefile b/databases/postgresql82-client/Makefile
index 25bea98e8d6..c8e97261855 100644
--- a/databases/postgresql82-client/Makefile
+++ b/databases/postgresql82-client/Makefile
@@ -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-lib-[0-9]*
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