summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd>2014-05-28 10:16:54 +0000
committermarkd <markd>2014-05-28 10:16:54 +0000
commit429a102414905c3304444c6f5fafcea7591edc3b (patch)
tree822441f2b8f1a43962151f2180e6550d755dab52
parenta8652a39d1fa10ef85d2a67383b1e15aa4ec2be6 (diff)
downloadpkgsrc-429a102414905c3304444c6f5fafcea7591edc3b.tar.gz
Dont find gethostbyname_r() on NetBSD. The API differs resulting in
segfaults on 6.1_STABLE.
-rw-r--r--databases/mysql51-client/Makefile4
-rw-r--r--databases/mysql51-client/Makefile.common6
2 files changed, 7 insertions, 3 deletions
diff --git a/databases/mysql51-client/Makefile b/databases/mysql51-client/Makefile
index e223e9e2f9c..3168e385b9b 100644
--- a/databases/mysql51-client/Makefile
+++ b/databases/mysql51-client/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2014/02/12 23:17:39 tron Exp $
+# $NetBSD: Makefile,v 1.17 2014/05/28 10:16:54 markd Exp $
PKGNAME= ${DISTNAME:S/-/-client-/}
-PKGREVISION= 1
+PKGREVISION= 2
SVR4_PKGNAME= mysqc
COMMENT= MySQL 5, a free SQL database (client)
diff --git a/databases/mysql51-client/Makefile.common b/databases/mysql51-client/Makefile.common
index 76a8f15616d..d110a0c6d84 100644
--- a/databases/mysql51-client/Makefile.common
+++ b/databases/mysql51-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.31 2014/04/14 00:02:49 rodent Exp $
+# $NetBSD: Makefile.common,v 1.32 2014/05/28 10:16:54 markd Exp $
#
# used by databases/mysql51-client/Makefile
# used by databases/mysql51-server/Makefile
@@ -78,6 +78,10 @@ GNU_ARCH.i386= i486
CFLAGS+= -march=i486
.endif
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ENV+= ac_cv_func_gethostbyname_r="no"
+.endif
+
CONFIGURE_ENV+= mysql_cv_compress="yes"
CPPFLAGS+= -Dunix