diff options
author | dirk <dirk@FreeBSD.org> | 2002-11-13 10:38:20 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2002-11-13 10:38:20 +0000 |
commit | 10c836257ca59a8f77a9f635cad6c9e68c2161df (patch) | |
tree | 5600bd36e8d762fa953d2394b71fc897044c6541 /databases/mysql41-server | |
parent | a203068bfd4076371b8075eb863d360d993131ef (diff) | |
download | FreeBSD-ports-10c836257ca59a8f77a9f635cad6c9e68c2161df.zip FreeBSD-ports-10c836257ca59a8f77a9f635cad6c9e68c2161df.tar.gz |
-STABLE exits with signal 11 while connecting via TCP/IP if empty
prototypes are used. -CURRENT needs empty prototypes to build. Use
__FreeBSD_version to differentiate.
Set CXX to $CC on -STABLE again to get around stability problems
under heavy load.
Diffstat (limited to 'databases/mysql41-server')
-rw-r--r-- | databases/mysql41-server/Makefile | 5 | ||||
-rw-r--r-- | databases/mysql41-server/files/patch-sql_mysqld.cc | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile index 3f507e4..dab4c5e 100644 --- a/databases/mysql41-server/Makefile +++ b/databases/mysql41-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= ${MASTERPORTNAME} PORTVERSION= 3.23.53 -PORTREVISION?= 3 +PORTREVISION?= 4 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.kernelnotes.de/MySQL/Downloads/MySQL-3.23/ \ @@ -72,6 +72,9 @@ CXXFLAGS= ${CFLAGS} -felide-constructors -fno-rtti .if ${OSVERSION} >= 400002 CXXFLAGS+= -fno-exceptions .endif +.if ${OSVERSION} < 500000 +CONFIGURE_ENV+= CXX="${CC}" +.endif # MySQL-Server part .if !defined(CLIENT_ONLY) diff --git a/databases/mysql41-server/files/patch-sql_mysqld.cc b/databases/mysql41-server/files/patch-sql_mysqld.cc index e71985e..5155bd5 100644 --- a/databases/mysql41-server/files/patch-sql_mysqld.cc +++ b/databases/mysql41-server/files/patch-sql_mysqld.cc @@ -1,11 +1,12 @@ ---- sql/mysqld.cc.orig Wed Aug 14 00:08:13 2002 -+++ sql/mysqld.cc Sun Nov 10 10:23:55 2002 -@@ -92,7 +92,7 @@ +--- sql/mysqld.cc.orig Thu Oct 10 12:17:28 2002 ++++ sql/mysqld.cc Tue Nov 12 23:23:27 2002 +@@ -92,7 +92,8 @@ int allow_severity = LOG_INFO; int deny_severity = LOG_WARNING; -#ifdef __STDC__ -+#if defined(__STDC__) && !defined(__FreeBSD__) ++#include <osreldate.h> ++#if defined(__STDC__) && __FreeBSD_version < 500000 #define my_fromhost(A) fromhost(A) #define my_hosts_access(A) hosts_access(A) #define my_eval_client(A) eval_client(A) |