summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2014-05-28 10:16:54 +0000
committermarkd <markd@pkgsrc.org>2014-05-28 10:16:54 +0000
commit115215eb9e4569e03df4d5c4428428817b18d93d (patch)
tree822441f2b8f1a43962151f2180e6550d755dab52
parent40836863388a77e08daebcc9895cf888f58e8156 (diff)
downloadpkgsrc-115215eb9e4569e03df4d5c4428428817b18d93d.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