summaryrefslogtreecommitdiff
path: root/databases/mysql4-client
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-10-26 17:33:49 +0000
committerjoerg <joerg@pkgsrc.org>2005-10-26 17:33:49 +0000
commitc754323c1a58b33e90e2adbde34f6ffcb7597106 (patch)
tree11afee102304a703a8219f983755ad95e64e42fd /databases/mysql4-client
parent9a1c436524072134b231f68c6040a6e04d47249d (diff)
downloadpkgsrc-c754323c1a58b33e90e2adbde34f6ffcb7597106.tar.gz
Also commit patches for the DragonFly support.
Diffstat (limited to 'databases/mysql4-client')
-rw-r--r--databases/mysql4-client/patches/patch-aa13
-rw-r--r--databases/mysql4-client/patches/patch-ab13
-rw-r--r--databases/mysql4-client/patches/patch-ac13
-rw-r--r--databases/mysql4-client/patches/patch-ad24
4 files changed, 63 insertions, 0 deletions
diff --git a/databases/mysql4-client/patches/patch-aa b/databases/mysql4-client/patches/patch-aa
new file mode 100644
index 00000000000..7d495bab5f1
--- /dev/null
+++ b/databases/mysql4-client/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2005/10/26 17:33:49 joerg Exp $
+
+--- mysys/my_gethwaddr.c.orig 2005-10-14 10:21:10.000000000 +0000
++++ mysys/my_gethwaddr.c
+@@ -31,7 +31,7 @@ static my_bool memcpy_and_test(uchar *to
+ return res;
+ }
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+
+ #include <net/ethernet.h>
+ #include <sys/sysctl.h>
diff --git a/databases/mysql4-client/patches/patch-ab b/databases/mysql4-client/patches/patch-ab
new file mode 100644
index 00000000000..54f0371d946
--- /dev/null
+++ b/databases/mysql4-client/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/10/26 17:33:49 joerg Exp $
+
+--- sql/mysqld.cc.orig 2005-10-14 10:21:12.000000000 +0000
++++ sql/mysqld.cc
+@@ -182,7 +182,7 @@ static void getvolumeID(BYTE *volumeName
+ int initgroups(const char *,unsigned int);
+ #endif
+
+-#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H)
++#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(HAVE_IEEEFP_H)
+ #include <ieeefp.h>
+ #ifdef HAVE_FP_EXCEPT // Fix type conflict
+ typedef fp_except fp_except_t;
diff --git a/databases/mysql4-client/patches/patch-ac b/databases/mysql4-client/patches/patch-ac
new file mode 100644
index 00000000000..3d6fcd9062f
--- /dev/null
+++ b/databases/mysql4-client/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2005/10/26 17:33:49 joerg Exp $
+
+--- vio/vio.c.orig 2005-10-14 10:23:58.000000000 +0000
++++ vio/vio.c
+@@ -132,7 +132,7 @@ Vio *vio_new(my_socket sd, enum enum_vio
+ vio->sd);
+ #if !defined(__WIN__) && !defined(__EMX__) && !defined(OS2)
+ #if !defined(NO_FCNTL_NONBLOCK)
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ fcntl(sd, F_SETFL, vio->fcntl_mode); /* Yahoo! FreeBSD patch */
+ #endif
+ vio->fcntl_mode = fcntl(sd, F_GETFL);
diff --git a/databases/mysql4-client/patches/patch-ad b/databases/mysql4-client/patches/patch-ad
new file mode 100644
index 00000000000..4a016620ddd
--- /dev/null
+++ b/databases/mysql4-client/patches/patch-ad
@@ -0,0 +1,24 @@
+$NetBSD: patch-ad,v 1.1 2005/10/26 17:33:49 joerg Exp $
+
+--- configure.orig 2005-10-14 10:25:05.000000000 +0000
++++ configure
+@@ -21053,7 +21053,7 @@ then
+ FIND_PROC="$PS \$\$PID | grep -v grep | grep mysqld > /dev/null"
+ else
+ case $SYSTEM_TYPE in
+- *freebsd*)
++ *freebsd* | *dragonfly*)
+ FIND_PROC="$PS p \$\$PID | grep -v grep | grep mysqld > /dev/null"
+ ;;
+ *darwin*)
+@@ -25265,6 +25265,10 @@ case $SYSTEM_TYPE in
+ MAX_C_OPTIMIZE="-O"
+ fi
+ ;;
++ *dragonfly*)
++ CXXFLAGS="$CXXFLAGS -DMYSQLD_NET_RETRY_COUNT=1000000"
++ ;;
++
+ *freebsd*)
+ echo "Adding fix for interrupted reads"
+ OSVERSION=`sysctl -a | grep osreldate | awk '{ print $2 }'`