1 diff -uraN mysql-dfsg-5.0-5.0.51a.orig/debian/patches/00list mysql-dfsg-5.0-5.0.51a/debian/patches/00list
2 --- mysql-dfsg-5.0-5.0.51a.orig/debian/patches/00list 2008-09-27 20:05:05.000000000 -0400
3 +++ mysql-dfsg-5.0-5.0.51a/debian/patches/00list 2008-09-27 20:11:25.996275481 -0400
5 57_fix_mysql_replication.dpatch
6 58_disable-ndb-backup-print.dpatch
7 59_fix_relay_logs_corruption.dpatch
8 +70_kopensolaris-gnu.dpatch
9 80_fix_user_setup_on_localhost.dpatch
11 89_ndb__staticlib.dpatch
12 diff -uraN mysql-dfsg-5.0-5.0.51a.orig/debian/patches/70_kopensolaris-gnu.dpatch mysql-dfsg-5.0-5.0.51a/debian/patches/70_kopensolaris-gnu.dpatch
13 --- mysql-dfsg-5.0-5.0.51a.orig/debian/patches/70_kopensolaris-gnu.dpatch 1969-12-31 19:00:00.000000000 -0500
14 +++ mysql-dfsg-5.0-5.0.51a/debian/patches/70_kopensolaris-gnu.dpatch 2008-09-27 20:11:09.467053651 -0400
16 +#! /bin/sh /usr/share/dpatch/dpatch-run
17 +## 70-kopensolaris-gnu.dpatch by <root@maltodextrin.csclub.uwaterloo.ca>
19 +## All lines beginning with `## DP:' are a description of the patch.
20 +## DP: No description.
23 +diff -urNad mysql-dfsg-5.0-5.0.51a~/aclocal.m4 mysql-dfsg-5.0-5.0.51a/aclocal.m4
24 +--- mysql-dfsg-5.0-5.0.51a~/aclocal.m4 2008-01-11 09:44:19.000000000 -0500
25 ++++ mysql-dfsg-5.0-5.0.51a/aclocal.m4 2008-09-25 04:14:28.325178522 -0400
26 +@@ -1397,7 +1397,7 @@
31 ++kfreebsd*-gnu | kopensolaris*-gnu)
35 +diff -urNad mysql-dfsg-5.0-5.0.51a~/configure mysql-dfsg-5.0-5.0.51a/configure
36 +--- mysql-dfsg-5.0-5.0.51a~/configure 2008-01-11 09:46:32.000000000 -0500
37 ++++ mysql-dfsg-5.0-5.0.51a/configure 2008-09-25 04:14:28.335064680 -0400
38 +@@ -9570,7 +9570,7 @@
43 ++kfreebsd*-gnu | kopensolaris*-gnu)
47 +@@ -13547,7 +13547,7 @@
52 ++kfreebsd*-gnu | kopensolaris*-gnu)
56 +@@ -16155,7 +16155,7 @@
61 ++kfreebsd*-gnu | kopensolaris*-gnu)
65 +@@ -18771,7 +18771,7 @@
70 ++kfreebsd*-gnu | kopensolaris*-gnu)
74 +diff -urNad mysql-dfsg-5.0-5.0.51a~/include/my_global.h mysql-dfsg-5.0-5.0.51a/include/my_global.h
75 +--- mysql-dfsg-5.0-5.0.51a~/include/my_global.h 2008-01-11 09:43:39.000000000 -0500
76 ++++ mysql-dfsg-5.0-5.0.51a/include/my_global.h 2008-09-25 04:15:11.644277322 -0400
80 + /* Fix problem with S_ISLNK() on Linux */
81 +-#if defined(TARGET_OS_LINUX) || defined(__GLIBC__)
82 ++#if defined(TARGET_OS_LINUX) || defined(__GLIBC__) || \
83 ++ defined(__OpenSolaris_kernel__)
85 + #define _GNU_SOURCE 1
88 + #include <sys/types.h>
92 ++#ifdef __OpenSolaris_kernel__
93 ++#include <sys/procset.h>
96 + /* The client defines this to avoid all thread code */
97 + #if defined(UNDEF_THREADS_HACK)
99 +diff -urNad mysql-dfsg-5.0-5.0.51a~/innobase/aclocal.m4 mysql-dfsg-5.0-5.0.51a/innobase/aclocal.m4
100 +--- mysql-dfsg-5.0-5.0.51a~/innobase/aclocal.m4 2008-01-11 09:47:08.000000000 -0500
101 ++++ mysql-dfsg-5.0-5.0.51a/innobase/aclocal.m4 2008-09-25 04:14:28.338504618 -0400
102 +@@ -1397,7 +1397,7 @@
107 ++kfreebsd*-gnu | kopensolaris*-gnu)
111 +diff -urNad mysql-dfsg-5.0-5.0.51a~/innobase/configure mysql-dfsg-5.0-5.0.51a/innobase/configure
112 +--- mysql-dfsg-5.0-5.0.51a~/innobase/configure 2008-01-11 09:47:30.000000000 -0500
113 ++++ mysql-dfsg-5.0-5.0.51a/innobase/configure 2008-09-25 04:14:28.343823842 -0400
114 +@@ -8216,7 +8216,7 @@
119 ++kfreebsd*-gnu | kopensolaris*-gnu)
123 +@@ -12193,7 +12193,7 @@
128 ++kfreebsd*-gnu | kopensolaris*-gnu)
132 +@@ -14801,7 +14801,7 @@
137 ++kfreebsd*-gnu | kopensolaris*-gnu)
141 +@@ -17417,7 +17417,7 @@
146 ++kfreebsd*-gnu | kopensolaris*-gnu)