Merge bk-internal:/home/bk/mysql-5.0-maint

into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
This commit is contained in:
unknown 2006-10-24 14:32:31 +02:00
commit 752e5f1ec7
7 changed files with 35 additions and 4 deletions

View File

@ -1195,7 +1195,7 @@ static void print_xml_tag(FILE * xml_file, const char* sbeg, const char* send,
const char* first_attribute_name, ...) const char* first_attribute_name, ...)
{ {
va_list arg_list; va_list arg_list;
char *attribute_name, *attribute_value; const char *attribute_name, *attribute_value;
fputs(sbeg, xml_file); fputs(sbeg, xml_file);
fputc('<', xml_file); fputc('<', xml_file);
@ -1318,7 +1318,7 @@ static void print_xml_row(FILE *xml_file, const char *row_name,
static void print_blob_as_hex(FILE *output_file, const char *str, ulong len) static void print_blob_as_hex(FILE *output_file, const char *str, ulong len)
{ {
/* sakaik got the idea to to provide blob's in hex notation. */ /* sakaik got the idea to to provide blob's in hex notation. */
char *ptr= str, *end= ptr + len; const char *ptr= str, *end= ptr + len;
for (; ptr < end ; ptr++) for (; ptr < end ; ptr++)
fprintf(output_file, "%02X", *((uchar *)ptr)); fprintf(output_file, "%02X", *((uchar *)ptr));
check_io(output_file); check_io(output_file);

View File

@ -1176,12 +1176,16 @@ EOF
cat > $filesed << EOF cat > $filesed << EOF
s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2, s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2,
s,\(: conf_to_src\),\1.linux, s,\(: conf_to_src\),\1.linux,
s,libyassl.la,.libs/libyassl.a,
s,libtaocrypt.la,.libs/libtaocrypt.a,
EOF EOF
;; ;;
libmysql_r/Makefile.in) libmysql_r/Makefile.in)
cat > $filesed << EOF cat > $filesed << EOF
s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2, s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2,
s,\(: conf_to_src\),\1.linux, s,\(: conf_to_src\),\1.linux,
s,libyassl.la,.libs/libyassl.a,
s,libtaocrypt.la,.libs/libtaocrypt.a,
EOF EOF
;; ;;
strings/Makefile.in) strings/Makefile.in)

View File

@ -18,8 +18,13 @@ rm -rf Makefile.in.bk
# Setup Metrowerks environment # Setup Metrowerks environment
. $path/mwenv . $path/mwenv
# Run autotools(use BUILD/autorun.sh) # Temporary hack to allow building from source dist
. BUILD/autorun.sh if [ ! "$USER"=pushbuild ]
then
# Run autotools(use BUILD/autorun.sh)
echo "Running autotools again(BUILD/autorun.sh)"
. BUILD/autorun.sh
fi
# configure # configure
./configure $base_configs $extra_configs ./configure $base_configs $extra_configs

View File

@ -65,5 +65,11 @@ then
export TERM=linux export TERM=linux
fi fi
# Temporary hack to allow building from source dist
if [ "$USER"=pushbuild ]
then
export ARFLAGS=$AR_FLAGS
fi
# Print all env. variables # Print all env. variables
export export

View File

@ -3,6 +3,13 @@
# stop on errors # stop on errors
set -e set -e
# If libtool passes "x" as the first argument to this script
# it's an indication that libtool is trying to unpack .la's
# so they can be added to a new library
# This step does not work on Netware and we avoid it by
# replacing the .la library with the path to the .a library
# in Makefile.in
args=" $*" args=" $*"
# NOTE: Option 'pipefail' is not standard sh # NOTE: Option 'pipefail' is not standard sh

View File

@ -26,6 +26,10 @@
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
#ifdef __NETWARE__ #ifdef __NETWARE__
/* yaSSL already uses BSD sockets */
#ifndef HAVE_YASSL
/* /*
The default OpenSSL implementation on NetWare uses WinSock. The default OpenSSL implementation on NetWare uses WinSock.
This code allows us to use the BSD sockets. This code allows us to use the BSD sockets.
@ -47,6 +51,7 @@ static int SSL_set_fd_bsd(SSL *s, int fd)
#define SSL_set_fd(A, B) SSL_set_fd_bsd((A), (B)) #define SSL_set_fd(A, B) SSL_set_fd_bsd((A), (B))
#endif /* HAVE_YASSL */
#endif /* __NETWARE__ */ #endif /* __NETWARE__ */

View File

@ -180,11 +180,15 @@ void netware_ssl_cleanup()
/* free memory from SSL_library_init() */ /* free memory from SSL_library_init() */
EVP_cleanup(); EVP_cleanup();
/* OpenSSL NetWare port specific functions */
#ifndef HAVE_YASSL
/* free global X509 method */ /* free global X509 method */
X509_STORE_method_cleanup(); X509_STORE_method_cleanup();
/* free the thread_hash error table */ /* free the thread_hash error table */
ERR_free_state_table(); ERR_free_state_table();
#endif
} }