diff options
author | dirk <dirk@FreeBSD.org> | 2000-10-19 09:17:57 +0000 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2000-10-19 09:17:57 +0000 |
commit | a908968439c3efd8714b365151c4c9ee797cbf1d (patch) | |
tree | db45bcab5f925441b0cd8f1f19a89bd2cda9c29c /databases/mysql40-server/files | |
parent | c4de28d852b1eee102cf648822fc67014c916cf7 (diff) | |
download | FreeBSD-ports-a908968439c3efd8714b365151c4c9ee797cbf1d.zip FreeBSD-ports-a908968439c3efd8714b365151c4c9ee797cbf1d.tar.gz |
Upgrade to MySQL-3.23.24 after repository copy from mysql322-client
and mysql322-server.
- mit-pthread support was dropped.
- libmysqlclient.so.9 was renamed to libmysqlclient.so.6 (like the
one coming with MySQL-3.22.x) so ports depending on MySQL having
a chance of using 3.23.x if installed.
mysql322-(client|server) and mysql323-(client|server) can't be
installed at the same time, of course.
Diffstat (limited to 'databases/mysql40-server/files')
-rw-r--r-- | databases/mysql40-server/files/patch-Makefile.in | 17 | ||||
-rw-r--r-- | databases/mysql40-server/files/patch-ab | 35 | ||||
-rw-r--r-- | databases/mysql40-server/files/patch-af | 39 | ||||
-rw-r--r-- | databases/mysql40-server/files/patch-configure | 55 |
4 files changed, 75 insertions, 71 deletions
diff --git a/databases/mysql40-server/files/patch-Makefile.in b/databases/mysql40-server/files/patch-Makefile.in index 0019073..7a7ba50 100644 --- a/databases/mysql40-server/files/patch-Makefile.in +++ b/databases/mysql40-server/files/patch-Makefile.in @@ -1,15 +1,16 @@ ---- Makefile.in.orig Sat Jan 1 17:59:38 2000 -+++ Makefile.in Mon Jan 3 17:19:23 2000 -@@ -144,7 +144,11 @@ +--- Makefile.in.orig Fri Sep 8 10:00:29 2000 ++++ Makefile.in Sat Sep 23 21:26:18 2000 +@@ -172,8 +172,12 @@ # These are built from source in the Docs directory - EXTRA_DIST = INSTALL-SOURCE-GENERIC README PUBLIC INSTALL-SOURCE MIRRORS + EXTRA_DIST = INSTALL-SOURCE README COPYING COPYING.LIB MIRRORS + +-SUBDIRS = include @docs_dirs@ @readline_dir@ @thread_dirs@ @sql_client_dirs@ @sql_server_dirs@ scripts tests man @bench_dirs@ support-files --SUBDIRS = include @docs_dirs@ @readline_dir@ client @sql_server_dirs@ scripts tests man @bench_dirs@ support-files +.if defined(CLIENT_ONLY) -+SUBDIRS = include @readline_dir@ client tests man ++SUBDIRS = include @readline_dir@ @sql_client_dirs@ tests man +.else -+SUBDIRS = include @docs_dirs@ @sql_server_dirs@ scripts @bench_dirs@ support-files ++SUBDIRS = include @thread_dirs@ @docs_dirs@ @sql_server_dirs@ scripts @bench_dirs@ support-files +.endif - # Relink after clean + CLEANFILES = linked_client_sources linked_server_sources linked_libmysql_sources linked_libmysql_r_sources diff --git a/databases/mysql40-server/files/patch-ab b/databases/mysql40-server/files/patch-ab index 1fd66bb..dfeb77a 100644 --- a/databases/mysql40-server/files/patch-ab +++ b/databases/mysql40-server/files/patch-ab @@ -1,24 +1,15 @@ ---- scripts/mysql_install_db.sh.orig Wed Jan 12 21:06:30 2000 -+++ scripts/mysql_install_db.sh Sun Mar 26 23:20:27 2000 -@@ -15,8 +15,6 @@ - force=0 - IN_RPM=0 - --# Are we doing an rpm install? --if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi - if test "$1" = "--force"; then force=1; shift; fi - - # Get mysqld/safe_mysqld options from /etc/my.cnf or ~/.my.cnf -@@ -60,8 +58,6 @@ - fi - fi - --# On IRIX hostname is in /usr/bsd so add this to the path --PATH=$PATH:/usr/bsd - hostname=`hostname` # Install this too in the user table - - # Check if hostname is valid -@@ -255,12 +251,6 @@ +--- scripts/mysql_install_db.sh.orig Fri Sep 8 09:50:24 2000 ++++ scripts/mysql_install_db.sh Sat Sep 23 21:13:37 2000 +@@ -21,8 +21,6 @@ + case "$1" in + -*) eqvalue="`echo $1 |sed 's/[-_a-zA-Z0-9]*=//'`" + case "$1" in +- -IN-RPM) IN_RPM=1 +- ;; + --force) force=1 + ;; + --no-defaults) defaults="$1"; CONFIG_FILES=/nonexistent +@@ -304,12 +302,6 @@ END_OF_DATA then echo "" @@ -30,4 +21,4 @@ - fi echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !" echo "This is done with:" - echo "$bindir/mysqladmin -u root password 'new-password'" + echo "$bindir/mysqladmin -u root -p password 'new-password'" diff --git a/databases/mysql40-server/files/patch-af b/databases/mysql40-server/files/patch-af index 2593da4..05b7034 100644 --- a/databases/mysql40-server/files/patch-af +++ b/databases/mysql40-server/files/patch-af @@ -1,43 +1,36 @@ ---- scripts/safe_mysqld.sh.orig Fri May 14 11:11:46 1999 -+++ scripts/safe_mysqld.sh Tue Jun 8 11:14:02 1999 -@@ -12,33 +12,9 @@ - - trap '' 1 2 3 15 # we shouldn't let anyone kill us +--- scripts/safe_mysqld.sh.orig Fri Sep 8 09:50:24 2000 ++++ scripts/safe_mysqld.sh Sat Sep 23 21:16:08 2000 +@@ -36,26 +36,9 @@ + done + } +-MY_PWD=`pwd` -# Check if we are starting this relative (for the binary release) --if test -d ./data/mysql -a -f ./share/mysql/english/errmsg.sys -a \ +-if test -d $MY_PWD/data/mysql -a -f ./share/mysql/english/errmsg.sys -a \ - -x ./bin/mysqld -then -- MY_BASEDIR_VERSION=`pwd` # Where bin, share and data are -- DATADIR=$MY_BASEDIR_VERSION/data # Where the databases are +- MY_BASEDIR_VERSION=$MY_PWD # Where bin, share and data are - ledir=$MY_BASEDIR_VERSION/bin # Where mysqld is +- DATADIR=$MY_BASEDIR_VERSION/data -# Check if this is a 'moved install directory' -elif test -f ./var/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \ - -x ./libexec/mysqld -then -- MY_BASEDIR_VERSION=`pwd` # Where libexec, share and var are -- DATADIR=$MY_BASEDIR_VERSION/var # Where the databases are +- MY_BASEDIR_VERSION=$MY_PWD # Where libexec, share and var are - ledir=$MY_BASEDIR_VERSION/libexec # Where mysqld is +- DATADIR=$MY_BASEDIR_VERSION/var -else - MY_BASEDIR_VERSION=@prefix@ - DATADIR=@localstatedir@ - ledir=@libexecdir@ -- if test ! -x $ledir/mysqld -- then -- echo "The file $ledir/mysqld doesn't exist or is not executable" -- echo "Please do a cd to the mysql installation directory and restart" -- echo "this script from there as follows:" -- echo "./bin/safe_mysqld". -- exit 1; -- fi -fi +MY_BASEDIR_VERSION=@prefix@ +DATADIR=@localstatedir@ +ledir=@libexecdir@ pid_file=$DATADIR/`@HOSTNAME@`.pid - log=$DATADIR/`@HOSTNAME@`.log -@@ -114,33 +90,6 @@ + MYSQL_UNIX_PORT=@MYSQL_UNIX_ADDR@ +@@ -154,33 +137,6 @@ if test ! -f $pid_file # This is removed if normal shutdown then break; @@ -49,12 +42,12 @@ - # but should work for the rest of the servers. - # The only thing is ps x => redhat 5 gives warnings when using ps -x. - # kill -9 is used or the process won't react on the kill. -- numofproces=`ps x | grep -v "grep" | grep -c $ledir/mysqld` +- numofproces=`ps xa | grep -v "grep" | grep -c $ledir/mysqld` - echo -e "\nNumber of processes running now: $numofproces" | tee -a $err_log - I=1 - while test "$I" -le "$numofproces" - do -- PROC=`ps x | grep $ledir/mysqld | grep -v "grep" | tail -1` +- PROC=`ps xa | grep $ledir/mysqld | grep -v "grep" | tail -1` - for T in $PROC - do - break @@ -69,5 +62,5 @@ - I=`expr $I + 1` - done fi - echo "mysqld restarted on " `date` | tee -a $err_log + echo "`date +'%y%m%d %H:%M:%S mysqld restarted'`" | tee -a $err_log done diff --git a/databases/mysql40-server/files/patch-configure b/databases/mysql40-server/files/patch-configure index 133bd42..21bf437 100644 --- a/databases/mysql40-server/files/patch-configure +++ b/databases/mysql40-server/files/patch-configure @@ -1,6 +1,15 @@ ---- configure.orig Sun Feb 13 03:46:09 2000 -+++ configure Wed May 3 12:20:25 2000 -@@ -2743,7 +2743,7 @@ +--- configure.orig Fri Sep 8 09:50:33 2000 ++++ configure Sat Sep 23 23:33:39 2000 +@@ -1057,7 +1057,7 @@ + PROTOCOL_VERSION=10 + DOT_FRM_VERSION=6 + # See the libtool docs for information on how to do shared lib versions. +-SHARED_LIB_VERSION=9:0:0 ++SHARED_LIB_VERSION=6:0:0 + + # Set all version vars based on $VERSION. How do we do this more elegant ? + # Remember that regexps needs to quote [ and ] since this is run through m4 +@@ -2908,7 +2908,7 @@ ;; esac fi @@ -9,9 +18,9 @@ if test -n "$HOSTNAME"; then echo "$ac_t""$HOSTNAME" 1>&6 else -@@ -2871,30 +2871,7 @@ +@@ -3036,29 +3036,7 @@ echo $ac_n "checking "how to check if pid exists"""... $ac_c" 1>&6 - echo "configure:2873: checking "how to check if pid exists"" >&5 + echo "configure:3038: checking "how to check if pid exists"" >&5 PS=$ac_cv_path_PS -# Linux style -if $PS p $$ 2> /dev/null | grep $0 > /dev/null @@ -36,12 +45,11 @@ -else - { echo "configure: error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual." 1>&2; exit 1; } -fi -- +FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null" + echo "$ac_t"""$FIND_PROC"" 1>&6 - # Check if a pid is valid -@@ -4646,8 +4623,6 @@ +@@ -5354,8 +5332,6 @@ #define $ac_tr_lib 1 EOF @@ -50,7 +58,7 @@ else echo "$ac_t""no" 1>&6 fi -@@ -4881,28 +4856,6 @@ +@@ -5578,28 +5554,6 @@ fi @@ -79,7 +87,7 @@ # Check whether --with-debug or --without-debug was given. if test "${with_debug+set}" = set; then withval="$with_debug" -@@ -5615,10 +5568,6 @@ +@@ -6280,10 +6234,6 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross @@ -89,8 +97,19 @@ -fi mysql_cv_btype_last_arg_accept=none cat > conftest.$ac_ext <<EOF - #line 5625 "configure" -@@ -7655,10 +7604,6 @@ + #line 6290 "configure" +@@ -8290,10 +8240,6 @@ + ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' + cross_compiling=$ac_cv_prog_cxx_cross + +-if test "$ac_cv_prog_gxx" = "yes" +-then +- CXXFLAGS="$CXXFLAGS -Werror" +-fi + cat > conftest.$ac_ext <<EOF + #line 8299 "configure" + #include "confdefs.h" +@@ -8358,10 +8304,6 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross @@ -99,9 +118,9 @@ - CXXFLAGS="$CXXFLAGS -Werror" -fi cat > conftest.$ac_ext <<EOF - #line 7664 "configure" + #line 8367 "configure" #include "confdefs.h" -@@ -7721,10 +7666,6 @@ +@@ -8425,10 +8367,6 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross @@ -110,9 +129,9 @@ - CXXFLAGS="$CXXFLAGS -Werror" -fi cat > conftest.$ac_ext <<EOF - #line 7730 "configure" + #line 8434 "configure" #include "confdefs.h" -@@ -8005,7 +7946,7 @@ +@@ -8712,7 +8650,7 @@ #include <pthread.h> int main() { pthread_attr_t thr_attr; @@ -120,8 +139,8 @@ +XXXpthread_attr_setscope(&thr_attr,0); ; return 0; } EOF - if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then -@@ -8210,7 +8151,7 @@ + if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +@@ -9670,7 +9608,7 @@ echo "" echo "Configuring MIT Pthreads" # We will never install so installation paths are not needed. |