pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/mysql4-client Apply patches from Georg Schwa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64325ee231c5
branches:  trunk
changeset: 489165:64325ee231c5
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Fri Feb 18 00:48:05 2005 +0000

description:
Apply patches from Georg Schwarz to make this build on IRIX 5.

diffstat:

 databases/mysql4-client/Makefile.common  |   8 +++++++-
 databases/mysql4-client/distinfo         |   5 ++++-
 databases/mysql4-client/patches/patch-ba |  30 ++++++++++++++++++++++++++++++
 databases/mysql4-client/patches/patch-bb |  15 +++++++++++++++
 databases/mysql4-client/patches/patch-bc |  21 +++++++++++++++++++++
 5 files changed, 77 insertions(+), 2 deletions(-)

diffs (116 lines):

diff -r f0288033233a -r 64325ee231c5 databases/mysql4-client/Makefile.common
--- a/databases/mysql4-client/Makefile.common   Fri Feb 18 00:26:07 2005 +0000
+++ b/databases/mysql4-client/Makefile.common   Fri Feb 18 00:48:05 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.31 2005/02/16 02:21:36 xtraeme Exp $
+# $NetBSD: Makefile.common,v 1.32 2005/02/18 00:48:05 xtraeme Exp $
 
 DISTNAME=              mysql-4.1.10
 CATEGORIES=            databases
@@ -36,6 +36,12 @@
 CONFIGURE_ARGS+=       --without-libwrap
 CONFIGURE_ARGS+=       --with-named-curses-libs="-lcurses -ltermcap"
 
+.if !empty(LOWER_OPSYS:Mirix5*)
+CFLAGS+=               -DIRIX5 -DNEEDS_BSTRING_H
+# libgen is incorrectly detected
+CONFIGURE_ENV+=                ac_cv_lib_gen_p2open="no"
+.endif
+
 # We always use our own readline, either system- or pkgsrc-supplied.
 CONFIGURE_ARGS+=       --without-readline
 
diff -r f0288033233a -r 64325ee231c5 databases/mysql4-client/distinfo
--- a/databases/mysql4-client/distinfo  Fri Feb 18 00:26:07 2005 +0000
+++ b/databases/mysql4-client/distinfo  Fri Feb 18 00:48:05 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2005/02/16 02:21:36 xtraeme Exp $
+$NetBSD: distinfo,v 1.16 2005/02/18 00:48:05 xtraeme Exp $
 
 SHA1 (mysql-4.1.10.tar.gz) = 59590d2a067c40d248fa9ef8689ef51ac46ac261
 Size (mysql-4.1.10.tar.gz) = 22563415 bytes
@@ -8,3 +8,6 @@
 SHA1 (patch-aw) = cd03eb6c81a932186370e9ed248d0c7886b7286d
 SHA1 (patch-ax) = 9e9176468d6d335617862a4d77a358931d7c8c49
 SHA1 (patch-ay) = 9b1dfa213491d8daf82ff8d5ee293d1279c64ce8
+SHA1 (patch-ba) = bd34391e522ae12ee63ec6a734f7a31116b2918d
+SHA1 (patch-bb) = 242c97ab4658838a6001d9c288e01209abfcee77
+SHA1 (patch-bc) = 31c933a03e2b05aeaff1d89d3fa542aad663e96a
diff -r f0288033233a -r 64325ee231c5 databases/mysql4-client/patches/patch-ba
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql4-client/patches/patch-ba  Fri Feb 18 00:48:05 2005 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ba,v 1.1 2005/02/18 00:48:05 xtraeme Exp $
+
+--- client/mysql.cc.orig       2005-02-18 01:36:23.000000000 +0100
++++ client/mysql.cc    2005-02-18 01:38:00.000000000 +0100
+@@ -39,6 +39,9 @@
+ #include "my_readline.h"
+ #include <signal.h>
+ #include <violite.h>
++#ifdef NEEDS_BSTRING_H              // defines bzero()
++#include <bstring.h>
++#endif
+ 
+ #if defined(USE_LIBEDIT_INTERFACE) && defined(HAVE_LOCALE_H)
+ #include <locale.h>
+@@ -408,8 +411,13 @@
+   if (opt_sigint_ignore)
+     signal(SIGINT, SIG_IGN);
+   else
+-    signal(SIGINT, mysql_end);                        // Catch SIGINT to clean up
+-  signal(SIGQUIT, mysql_end);                 // Catch SIGQUIT to clean up
++#ifdef IRIX5
++#define _MYSQL_END_TYPE (void (*)(...))
++#else
++#define _MYSQL_END_TYPE
++#endif
++      signal(SIGINT, _MYSQL_END_TYPE mysql_end); // Catch SIGINT to clean up
++    signal(SIGQUIT, _MYSQL_END_TYPE mysql_end);  // Catch SIGQUIT to clean up
+ 
+   /*
+     Run in interactive mode like the ingres/postgres monitor
diff -r f0288033233a -r 64325ee231c5 databases/mysql4-client/patches/patch-bb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql4-client/patches/patch-bb  Fri Feb 18 00:48:05 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-bb,v 1.1 2005/02/18 00:48:05 xtraeme Exp $
+
+--- client/completion_hash.cc.orig     2005-02-18 01:38:24.000000000 +0100
++++ client/completion_hash.cc  2005-02-18 01:38:47.000000000 +0100
+@@ -23,6 +23,10 @@
+ 
+ #include <my_global.h>
+ #include <m_string.h>
++#ifdef NEEDS_BSTRING_H                         // defines bzero()
++#include <bstring.h>
++#endif
++
+ #undef SAFEMALLOC                             // Speed things up
+ #include <my_sys.h>
+ #include "completion_hash.h"
diff -r f0288033233a -r 64325ee231c5 databases/mysql4-client/patches/patch-bc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql4-client/patches/patch-bc  Fri Feb 18 00:48:05 2005 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-bc,v 1.1 2005/02/18 00:48:05 xtraeme Exp $
+
+--- client/mysqladmin.cc.orig  2005-02-18 01:39:09.000000000 +0100
++++ client/mysqladmin.cc       2005-02-18 01:40:21.000000000 +0100
+@@ -326,8 +326,14 @@
+   if (tty_password)
+     opt_password = get_tty_password(NullS);
+ 
+-  VOID(signal(SIGINT,endprog));                       /* Here if abort */
+-  VOID(signal(SIGTERM,endprog));              /* Here if abort */
++#ifdef IRIX5
++#define _MYSQL_END_TYPE (void (*)(...))
++#else
++#define _MYSQL_END_TYPE
++#endif
++
++  VOID(signal(SIGINT,_MYSQL_END_TYPE endprog)); /* Here if abort */
++  VOID(signal(SIGTERM,_MYSQL_END_TYPE endprog));/* Here if abort */
+ 
+   if (opt_compress)
+     mysql_options(&mysql,MYSQL_OPT_COMPRESS,NullS);



Home | Main Index | Thread Index | Old Index