Skip to content

Commit 447c189

Browse files
author
monty@work.mysql.com
committed
merge with 3.23.42
2 parents 102cabf + 759cf54 commit 447c189

File tree

250 files changed

+49828
-42127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+49828
-42127
lines changed

BUILD/compile-solaris-sparc-fortre

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#! /bin/sh
2+
3+
gmake -k clean || true
4+
/bin/rm -f */.deps/*.P config.cache
5+
6+
aclocal && autoheader && aclocal && automake && autoconf
7+
(cd bdb/dist && sh s_all)
8+
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
9+
if [ -d gemini ]
10+
then
11+
(cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
12+
fi
13+
14+
PATH=/opt/SUNWspro/bin/:$PATH
15+
CC=cc CFLAGS="-Xa -fast -xO4 -native -xstrconst -mt -D_FORTREC_" \
16+
CXX=CC CXXFLAGS="-noex -xO4 -mt" \
17+
./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client
18+
19+
gmake -j 4

BUILD/compile-solaris-sparc-purify

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ aclocal && autoheader && aclocal && automake && autoconf
66
(cd bdb/dist && sh s_all)
77
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
88

9-
CFLAGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -DHAVE_purify -DEXTRA_DEBUG -O2" CXX=gcc CXXLD=g++ CXXFLAGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -DHAVE_purify -DEXTRA_DEBUG -O2" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-debug=full --with-berkeley-db --with-innodb
9+
CFLAGS="-g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -DHAVE_purify -DEXTRA_DEBUG -O2" CXX=gcc CXXLD=g++ CXXFLAGS="-g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -DHAVE_purify -DEXTRA_DEBUG -O2" ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-berkeley-db --with-innodb
1010

1111
gmake -j 4
1212

13-
cd sql ; rm mysqld ; make CXXLD="purify -best-effort g++" mysqld
13+
cd sql ; rm mysqld ;
14+
make CXXLD="purify -best-effort g++" mysqld ; mv mysqld mysqld-purify
15+
make CXXLD="quantify -best-effort g++" mysqld ; mv mysqld mysqld-quantify
16+
make CXXLD="purecov -best-effort g++" mysqld ; mv mysqld mysqld-purecov
17+

Build-tools/Do-compile

+28-16
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use Getopt::Long;
44
$opt_distribution=$opt_user=$opt_result=$opt_config_options=$opt_config_env="";
55
$opt_dbd_options=$opt_perl_options=$opt_suffix="";
66
$opt_tmp=$version_suffix="";
7-
$opt_help=$opt_Information=$opt_no_delete=$opt_debug=$opt_stage=$opt_rsh_mail=$opt_no_test=$opt_no_perl=$opt_with_low_memory=$opt_fast_benchmark=$opt_static_client=$opt_static_server=$opt_static_perl=$opt_sur=$opt_with_small_disk=$opt_local_perl=$opt_tcpip=$opt_build_thread=$opt_no_mysqltest=$opt_use_old_distribution=$opt_enable_shared=$opt_no_crash_me=$opt_no_strip=0;
7+
$opt_help=$opt_Information=$opt_no_delete=$opt_delete=$opt_debug=$opt_stage=$opt_rsh_mail=$opt_no_test=$opt_no_perl=$opt_with_low_memory=$opt_fast_benchmark=$opt_static_client=$opt_static_server=$opt_static_perl=$opt_sur=$opt_with_small_disk=$opt_local_perl=$opt_tcpip=$opt_build_thread=$opt_no_mysqltest=$opt_use_old_distribution=$opt_enable_shared=$opt_no_crash_me=$opt_no_strip=0;
88
$opt_innodb=$opt_bdb=0;
99

10-
GetOptions("Information","help","distribution=s","user=s","result=s","no-delete","no-test","no-mysqltest","perl-files=s","debug","config-options=s","config-env=s","stage=i","rsh-mail","with-low-memory","fast-benchmark","tmp=s","static-client","static-server","static-perl","no-perl","local-perl","perl-options=s","sur","with-small-disk","dbd-options=s","tcpip","suffix=s","build-thread=i","innodb","bdb","use-old-distribution","enable-shared","no-crash-me","no-strip") || usage();
10+
GetOptions("Information","help","distribution=s","user=s","result=s","no-delete","delete","no-test","no-mysqltest","perl-files=s","debug","config-options=s","config-env=s","stage=i","rsh-mail","with-low-memory","fast-benchmark","tmp=s","static-client","static-server","static-perl","no-perl","local-perl","perl-options=s","sur","with-small-disk","dbd-options=s","tcpip","suffix=s","build-thread=i","innodb","bdb","use-old-distribution","enable-shared","no-crash-me","no-strip") || usage();
1111

1212
usage() if ($opt_help || $opt_Information);
1313
usage() if (!$opt_distribution);
@@ -68,25 +68,27 @@ delete $ENV{'MY_BASEDIR_VERSION'};
6868
$ENV{'MYSQL_TCP_PORT'}= $mysql_tcp_port= 3334 + $opt_build_thread;
6969
$ENV{'MYSQL_UNIX_PORT'}=$mysql_unix_port="$opt_tmp/mysql$opt_suffix.build";
7070
$ENV{"PERL5LIB"}="$pwd/$host/perl5:$pwd/$host/perl5/site_perl";
71+
$slave_port=$mysql_tcp_port+16;
72+
73+
if (-x "$host/bin/mysqladmin")
74+
{
75+
log_system("$host/bin/mysqladmin --no-defaults -u root -S $mysql_unix_port -s shutdown");
76+
log_system("$host/bin/mysqladmin --no-defaults -u root -P $mysql_tcp_port -h $host -s shutdown");
77+
log_system("$host/bin/mysqladmin --no-defaults -u root -P $slave_port -h $host -s shutdown");
78+
log_system("$host/bin/mysqladmin --no-defaults -u root -P 9306 -h $host -s shutdown");
79+
log_system("$host/bin/mysqladmin --no-defaults -u root -P 9307 -h $host -s shutdown");
80+
}
7181

7282
if ($opt_stage == 0)
7383
{
7484
print "$host: Removing old distribution\n" if ($opt_debug);
75-
if (-x "$host/bin/mysqladmin")
76-
{
77-
log_system("$host/bin/mysqladmin --no-defaults -u root -S $mysql_unix_port -s shutdown");
78-
log_system("$host/bin/mysqladmin --no-defaults -u root -P $mysql_tcp_port -h $host -s shutdown");
79-
log_system("$host/bin/mysqladmin --no-defaults -u root -P 9306 -h $host -s shutdown");
80-
log_system("$host/bin/mysqladmin --no-defaults -u root -P 9307 -h $host -s shutdown");
81-
}
8285
if (!$opt_use_old_distribution)
8386
{
8487
system("mkdir $host") if (! -d $host);
8588
system("touch $host/mysql-fix-for-glob");
8689
rm_all(<$host/mysql-*>);
8790
system("mkdir $host/bin") if (! -d "$host/bin");
8891
}
89-
system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir);
9092
rm_all("$host/test");
9193
system("mkdir $host/test") if (! -d "$host/test");
9294
system("mkdir Logs") if (! -d "Logs");
@@ -109,6 +111,7 @@ safe_cd($ver);
109111
if ($opt_stage <= 1)
110112
{
111113
$opt_config_options.=" --with-low-memory" if ($opt_with_low_memory);
114+
# Fix files if this is in another timezone than work.mysql.com
112115
unlink("config.cache");
113116
log_system("$make clean") if ($opt_use_old_distribution);
114117
if ($opt_static_server)
@@ -140,7 +143,7 @@ if ($opt_stage <= 1)
140143

141144
if ($opt_stage <= 2)
142145
{
143-
unlink($opt_distribution) if (!$opt_no_delete && !$opt_use_old_distribution);
146+
unlink($opt_distribution) if (!$opt_delete && !$opt_use_old_distribution);
144147
safe_system("$make");
145148
}
146149

@@ -157,7 +160,14 @@ if ($opt_stage <= 3)
157160
$flags.="--no-strip" if ($opt_no_strip);
158161
check_system("scripts/make_binary_distribution --tmp=$opt_tmp --suffix=$opt_suffix $flags",".tar.gz created");
159162
safe_system("mv mysql*.tar.gz $pwd/$host");
160-
safe_system("cp client/mysqladmin $pwd/$host/bin");
163+
if (-f "client/.libs/mysqladmin")
164+
{
165+
safe_system("cp client/.libs/mysqladmin $pwd/$host/bin");
166+
}
167+
else
168+
{
169+
safe_system("cp client/mysqladmin $pwd/$host/bin");
170+
}
161171
safe_system("$make clean") if ($opt_with_small_disk);
162172
}
163173

@@ -184,13 +194,14 @@ $ENV{"LD_LIBRARY_PATH"}= "$testdir/lib:" . $ENV{"LD_LIBRARY_PATH"};
184194

185195
if ($opt_stage <= 5 && !$opt_no_test && !$opt_no_mysqltest)
186196
{
187-
my ($slave_port);
188-
$slave_port=$mysql_tcp_port+16;
197+
system("mkdir $bench_tmpdir") if (! -d $bench_tmpdir);
189198
safe_cd("${test_dir}/mysql-test");
190199
check_system("./mysql-test-run --tmpdir=$bench_tmpdir --master_port=$mysql_tcp_port --slave_port=$slave_port --sleep=10", "tests were successful");
191200
}
192201

193-
if ($opt_stage <= 6 && !$opt_no_test)
202+
# Start the server if we are going to run any of the benchmarks
203+
204+
if (!$opt_no_test)
194205
{
195206
my $extra;
196207
safe_cd($test_dir);
@@ -207,10 +218,11 @@ if ($opt_stage <= 6 && !$opt_no_test)
207218
{
208219
$extra.=" --innodb_data_file_path=ibdata1:100M";
209220
}
210-
safe_system("./bin/mysqld --no-defaults --basedir . --datadir ./data --skip-locking $extra >> $log 2>&1 &");
221+
safe_system("./bin/mysqld --no-defaults --basedir . --datadir ./data --skip-l\ocking $extra >> $log 2>&1 &");
211222
sleep(2);
212223
}
213224

225+
214226
if ($opt_stage <= 7 && $opt_perl_files && !$opt_no_perl && !$opt_no_test)
215227
{
216228
safe_cd($test_dir);

Docs/Makefile.am

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# and BSD makes
88

99
# If you know how to fix any of this more elegantly please mail
10-
# david@mysql.com
10+
# docs@mysql.com
1111

1212
TEXI2HTML_FLAGS = -iso -number
1313
DVIPS = dvips
@@ -93,6 +93,10 @@ nusphere.pdf: manual.texi
9393
rm -f manual-tmp.*
9494
touch $@
9595

96+
# Target to produce DocBook XML
97+
mysql.xml: manual.texi include.texi
98+
$(MAKEINFO) --force --no-ifinfo --docbook manual.texi
99+
96100
# The texi2dvi gives a lot of harmless errors. Just ignore them unless
97101
# you want to help with the typesetting part.
98102
# This is the European papersize version

0 commit comments

Comments
 (0)