Skip to content

Commit 77a70a0

Browse files
author
monty@narttu.mysql.fi
committed
merge with 4.0.15
2 parents 6cad897 + 5e04e23 commit 77a70a0

File tree

194 files changed

+3893
-3199
lines changed

Some content is hidden

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

194 files changed

+3893
-3199
lines changed

.bzrignore

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,16 @@ libmysql/conf_to_src
305305
libmysql/my_static.h
306306
libmysql/mysys_priv.h
307307
libmysql/net.c
308+
libmysql/vio_priv.h
308309
libmysql_r/*.c
309310
libmysql_r/acconfig.h
310311
libmysql_r/conf_to_src
311312
libmysql_r/my_static.h
312313
libmysql_r/mysys_priv.h
314+
libmysql_r/vio_priv.h
313315
libmysqld/backup_dir
316+
libmysqld/client.c
317+
libmysqld/client_settings.h
314318
libmysqld/convert.cc
315319
libmysqld/derror.cc
316320
libmysqld/errmsg.c
@@ -355,6 +359,7 @@ libmysqld/item_sum.cc
355359
libmysqld/item_timefunc.cc
356360
libmysqld/item_uniq.cc
357361
libmysqld/key.cc
362+
libmysqld/libmysql.c
358363
libmysqld/lock.cc
359364
libmysqld/log.cc
360365
libmysqld/log_event.cc
@@ -366,6 +371,7 @@ libmysqld/net_serv.cc
366371
libmysqld/opt_ft.cc
367372
libmysqld/opt_range.cc
368373
libmysqld/opt_sum.cc
374+
libmysqld/pack.c
369375
libmysqld/password.c
370376
libmysqld/procedure.cc
371377
libmysqld/protocol.cc
@@ -622,7 +628,3 @@ vio/test-ssl
622628
vio/test-sslclient
623629
vio/test-sslserver
624630
vio/viotest-ssl
625-
libmysqld/client.c
626-
libmysqld/client_settings.h
627-
libmysqld/libmysql.c
628-
libmysqld/pack.c

BitKeeper/etc/logging_ok

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ bk@admin.bk
2020
bk@mysql.r18.ru
2121
carsten@tsort.bitbybit.dk
2222
davida@isil.mysql.com
23+
dlenev@build.mysql.com
2324
dlenev@mysql.com
2425
gluh@gluh.(none)
2526
gluh@gluh.mysql.r18.ru

Build-tools/Bootstrap

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# written by Lenz Grimmer <lenz@mysql.com>
1111
#
1212

13+
use Cwd;
1314
use Getopt::Long;
1415
Getopt::Long::Configure ("bundling");
1516

@@ -26,18 +27,19 @@ else
2627

2728
# Some predefined settings
2829
$build_command= "BUILD/compile-pentium-max";
29-
chomp ($LOGFILE= `pwd`);
30-
$LOGFILE.= "/Bootstrap.log";
31-
chomp ($opt_directory= `pwd`);
32-
$opt_docdir= $opt_directory . "/mysqldoc";
30+
$PWD= cwd();
31+
$LOGFILE= $PWD . "/Bootstrap.log";
32+
$opt_docdir= $PWD . "/mysqldoc";
3333
$opt_build_command= undef;
3434
$opt_changelog= undef;
3535
$opt_delete= undef;
36+
$opt_directory= $PWD;
3637
$opt_dry_run= undef;
3738
$opt_export_only= undef;
3839
$opt_help= $opt_verbose= 0;
3940
$opt_log= undef;
4041
$opt_mail= "";
42+
$opt_pull= undef;
4143
$opt_revision= undef;
4244
$opt_suffix= "";
4345
$opt_test= undef;
@@ -58,6 +60,7 @@ GetOptions(
5860
"help|h",
5961
"log|l:s",
6062
"mail|m=s",
63+
"pull|p",
6164
"revision|r=s",
6265
"skip-check|s",
6366
"skip-manual",
@@ -80,8 +83,7 @@ if (defined $opt_log)
8083
}
8184
else
8285
{
83-
chomp ($LOGFILE= `pwd`);
84-
$LOGFILE.= "/" . $opt_log;
86+
$LOGFILE= $PWD . "/" . $opt_log;
8587
}
8688
}
8789
}
@@ -103,13 +105,30 @@ defined($REPO=$ARGV[0]) || print_help("Please enter the BK repository to be used
103105
system ("bk help > /dev/null") == 0 or &abort("Cannot execute BitKeeper binary!");
104106
system ("bk root $REPO > /dev/null 2>&1") == 0 or &abort("$REPO does not seem to be a valid BK repository!");
105107

106-
if (($opt_directory ne ".") && (!-d $opt_directory && !$opt_dry_run))
108+
if (($opt_directory ne $PWD) && (!-d $opt_directory && !$opt_dry_run))
107109
{
108110
&abort("Could not find target directory \"$opt_directory\"!");
109111
}
110112

111113
&logger("Logging to $LOGFILE") if (defined $opt_log);
112114

115+
#
116+
# Pull recent changes first
117+
#
118+
if ($opt_pull)
119+
{
120+
&logger("Updating BK tree $REPO to latest ChangeSet first");
121+
$command= "cd $REPO; bk pull; cd ..";
122+
&run_command($command, "Could not update $REPO!");
123+
124+
unless ($opt_skip_manual)
125+
{
126+
&logger("Updating manual tree in $opt_docdir");
127+
$command= "cd $opt_docdir; bk pull; cd ..";
128+
&run_command($command, "Could not update $opt_docdir!");
129+
}
130+
}
131+
113132
#
114133
# Use a temporary name until we know the version number
115134
#
@@ -253,7 +272,7 @@ if (defined $opt_changelog)
253272
#
254273
# Add the latest manual from the mysqldoc tree
255274
#
256-
if (!$opt_skip_manual)
275+
unless ($opt_skip_manual)
257276
{
258277
$msg= "Adding manual.texi";
259278
&logger($msg);
@@ -310,7 +329,7 @@ $command= "make dist";
310329
if ($opt_win_dist)
311330
{
312331
&logger ("Creating Windows source package");
313-
$command= "./scripts/make_win_src_distibution";
332+
$command= "./scripts/make_win_src_distribution --tar --zip";
314333
&run_command($command, "make_win_src_distribution failed!");
315334
}
316335

@@ -378,6 +397,7 @@ Options:
378397
include a log file snippet, if logging is enabled)
379398
Note that the \@-Sign needs to be quoted!
380399
Example: --mail=user\\\@domain.com
400+
-p, --pull Update the source BK trees before building
381401
-r, --revision=<rev> Export the tree as of revision <rev>
382402
(default is up to the latest revision)
383403
-s, --skip-check Skip checking the distribution with "make distcheck"

Build-tools/Do-compile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Getopt::Long;
88
$opt_distribution=$opt_user=$opt_config_env="";
99
$opt_dbd_options=$opt_perl_options=$opt_config_options=$opt_make_options=$opt_suffix="";
1010
$opt_tmp=$opt_version_suffix="";
11-
$opt_help=$opt_delete=$opt_debug=$opt_stage=$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_use_old_distribution=$opt_enable_shared=$opt_no_crash_me=$opt_no_strip=$opt_with_debug=$opt_no_benchmark=$opt_no_mysqltest=0;
11+
$opt_help=$opt_delete=$opt_debug=$opt_stage=$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_use_old_distribution=$opt_enable_shared=$opt_no_crash_me=$opt_no_strip=$opt_with_debug=$opt_no_benchmark=$opt_no_mysqltest=$opt_without_embedded=0;
1212
$opt_innodb=$opt_bdb=$opt_raid=$opt_libwrap=0;
1313

1414
GetOptions(
@@ -51,6 +51,7 @@ GetOptions(
5151
"with-low-memory",
5252
"with-other-libc=s",
5353
"with-small-disk",
54+
"without-embedded",
5455
) || usage();
5556

5657
usage() if ($opt_help);
@@ -230,6 +231,7 @@ if ($opt_stage <= 1)
230231
$opt_config_options.= " --with-low-memory" if ($opt_with_low_memory);
231232
$opt_config_options.= " --with-mysqld-ldflags=-all-static" if ($opt_static_server);
232233
$opt_config_options.= " --with-raid" if ($opt_raid);
234+
$opt_config_options.= " --with-embedded-server" unless ($opt_without_embedded);
233235

234236
# Only enable InnoDB when requested (required to be able to
235237
# build the "Classic" packages that do not include InnoDB)
@@ -551,6 +553,9 @@ non-standard location overriding default.
551553
--with-small-disk
552554
Clean up the build environment before testing the binary distribution
553555
(to save disk space)
556+
557+
--without-embedded
558+
Don't compile the embedded server.
554559
EOF
555560
exit 1;
556561
}

0 commit comments

Comments
 (0)