2
# This file was modified by Oracle in 2011 and later.
3
# Details of the modifications are described in the "changelog" section.
5
# Modifications copyright (c) 2011, 2012, Oracle and/or its
6
# affiliates. All rights reserved.
8
# This program is free software; you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; version 2 of the License.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program; see the file COPYING. If not, write to the
19
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
22
##############################################################################
23
# Some common macro definitions
24
##############################################################################
26
# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
27
# change these, has to be exactly as is.
28
# %define mysql_old_vendor MySQL AB # Applies to traditional MySQL RPMs only.
29
# %define mysql_vendor_2 Sun Microsystems, Inc.
30
%define mysql_vendor Oracle and/or its affiliates
32
%define mysql_version @VERSION@
34
%define mysqldatadir /var/lib/mysql
38
##############################################################################
39
# Command line handling
40
##############################################################################
44
# $ rpmbuild --define="option <x>" ...
47
# ----------------------------------------------------------------------------
49
# ----------------------------------------------------------------------------
50
%if %{undefined commercial}
54
# ----------------------------------------------------------------------------
56
# ----------------------------------------------------------------------------
57
%if %{undefined src_base}
58
%define src_base mysql
60
%define src_dir %{src_base}-%{mysql_version}
62
# ----------------------------------------------------------------------------
63
# Feature set (storage engines, options). Default to community (everything)
64
# ----------------------------------------------------------------------------
65
%if %{undefined feature_set}
66
%define feature_set community
69
# ----------------------------------------------------------------------------
70
# Server comment strings
71
# ----------------------------------------------------------------------------
72
%if %{undefined compilation_comment_debug}
73
%define compilation_comment_debug MySQL Community Server - Debug (GPL)
75
%if %{undefined compilation_comment_release}
76
%define compilation_comment_release MySQL Community Server (GPL)
79
# ----------------------------------------------------------------------------
80
# Product and server suffixes
81
# ----------------------------------------------------------------------------
82
%if %{undefined product_suffix}
83
%if %{defined short_product_tag}
84
%define product_suffix -%{short_product_tag}
86
%define product_suffix %{nil}
90
%if %{undefined server_suffix}
91
%define server_suffix %{nil}
94
# ----------------------------------------------------------------------------
95
# Distribution support
96
# ----------------------------------------------------------------------------
97
%if %{undefined distro_specific}
98
%define distro_specific 0
100
%if %{distro_specific}
101
%if %(test -f /etc/oracle-release && echo 1 || echo 0)
102
%define elver %(rpm -qf --qf '%%{version}\\n' /etc/oracle-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
104
%define distro_description Oracle Linux 6
105
%define distro_releasetag el6
106
%define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
107
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
109
%{error:Oracle Linux %{elver} is unsupported}
112
%if %(test -f /etc/redhat-release && echo 1 || echo 0)
113
%define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
114
%if "%rhelver" == "5"
115
%define distro_description Red Hat Enterprise Linux 5
116
%define distro_releasetag rhel5
117
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
118
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
120
%if "%rhelver" == "6"
121
%define distro_description Red Hat Enterprise Linux 6
122
%define distro_releasetag rhel6
123
%define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
124
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
126
%{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
130
%if %(test -f /etc/SuSE-release && echo 1 || echo 0)
131
%define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
132
%if "%susever" == "10"
133
%define distro_description SUSE Linux Enterprise Server 10
134
%define distro_releasetag sles10
135
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel
136
%define distro_requires aaa_base coreutils grep procps pwdutils
138
%if "%susever" == "11"
139
%define distro_description SUSE Linux Enterprise Server 11
140
%define distro_releasetag sles11
141
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel
142
%define distro_requires aaa_base coreutils grep procps pwdutils
144
%{error:SuSE %{susever} is unsupported}
148
%{error:Unsupported distribution}
153
%define generic_kernel %(uname -r | cut -d. -f1-2)
154
%define distro_description Generic Linux (kernel %{generic_kernel})
155
%define distro_releasetag linux%{generic_kernel}
156
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
157
%define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
160
# Avoid debuginfo RPMs, leaves binaries unstripped
161
%define debug_package %{nil}
163
# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
164
# test for __debug_package
165
%define __strip /bin/true
167
# ----------------------------------------------------------------------------
168
# Support optional "tcmalloc" library (experimental)
169
# ----------------------------------------------------------------------------
170
%if %{defined malloc_lib_target}
171
%define WITH_TCMALLOC 1
173
%define WITH_TCMALLOC 0
176
##############################################################################
177
# Configuration based upon above user input, not to be set directly
178
##############################################################################
181
%define license_files_server %{src_dir}/LICENSE.mysql
182
%define license_type Commercial
184
%define license_files_server %{src_dir}/COPYING %{src_dir}/README
185
%define license_type GPL
188
##############################################################################
189
# Main spec file section
190
##############################################################################
192
Name: mysql%{product_suffix}
193
Summary: MySQL client programs and shared libraries
194
Group: Applications/Databases
195
Version: @MYSQL_RPM_VERSION@
196
Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
197
# exceptions allow client libraries to be linked with most open source SW,
199
License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
200
URL: http://www.mysql.com/
201
Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
202
Vendor: %{mysql_vendor}
204
# Regression tests may take a long time, override the default to skip them
205
%{!?runselftest:%global runselftest 1}
207
# Upstream has a mirror redirector for downloads, so the URL is hard to
208
# represent statically. You can get the tarball by following a link from
209
# http://dev.mysql.com/downloads/mysql/
210
Source0: %{src_dir}.tar.gz
211
# The upstream tarball includes non-free documentation that only the
212
# copyright holder (MySQL -> Sun -> Oracle) may ship.
213
# To remove the non-free documentation, run this script after downloading
214
# the tarball into the current directory:
215
# ./generate-tarball.sh $VERSION
216
# Then, source name changes:
217
# Source0: mysql-%{version}-nodocs.tar.gz
221
Source1: generate-tarball.sh
224
Source4: scriptstub.c
226
# The below is only needed for packages built outside MySQL -> Sun -> Oracle:
227
Source6: README.mysql-docs
228
Source9: mysql-embedded-check.c
229
# Working around perl dependency checking bug in rpm FTTB. Remove later.
230
Source999: filter-requires-mysql.sh
232
# Patch1: mysql-ssl-multilib.patch Not needed by MySQL (yaSSL), will not work in 5.5 (cmake)
233
Patch2: mysql-5.5-errno.patch
234
Patch4: mysql-5.5-testing.patch
235
Patch5: mysql-install-test.patch
236
Patch6: mysql-5.5-stack-guard.patch
237
# Patch7: mysql-disable-test.patch Already fixed in current 5.1
238
# Patch8: mysql-setschedparam.patch Will not work in 5.5 (cmake)
239
# Patch9: mysql-no-docs.patch Will not work in 5.5 (cmake)
240
Patch10: mysql-strmov.patch
242
# Patch12: mysql-cve-2008-7247.patch Already fixed in 5.5
243
Patch13: mysql-expired-certs.patch
244
# Will not be used by MySQL
245
# Patch14: mysql-missing-string-code.patch Undecided, will not work in 5.5 (cmake)
246
# Patch15: mysql-lowercase-bug.patch Fixed in MySQL 5.1.54 and 5.5.9
247
Patch16: mysql-chain-certs.patch
248
Patch17: mysql-5.5-libdir.patch
249
Patch18: mysql-5.5-fix-tests.patch
250
Patch19: mysql-5.5-mtr1.patch
252
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
253
BuildRequires: %{distro_buildreq}
255
# make test requires time and ps
256
BuildRequires: procps
257
# Socket and Time::HiRes are needed to run regression tests
258
BuildRequires: perl(Socket), perl(Time::HiRes)
260
Requires: %{distro_requires}
262
Requires: mysql-libs%{product_suffix} = %{version}-%{release}
265
# If %%{product_suffix} is non-empty, the auto-generated capability is insufficient:
266
# We want all dependency handling to use the generic name only.
267
# Similar in other sub-packages
270
# MySQL (with caps) is upstream's spelling of their own RPMs for mysql
272
# mysql-cluster used to be built from this SRPM, but no more
273
Obsoletes: mysql-cluster < 5.1.44
274
# We need cross-product "Obsoletes:" to allow cross-product upgrades:
275
Obsoletes: mysql mysql-advanced
277
# Working around perl dependency checking bug in rpm FTTB. Remove later.
278
%global __perl_requires %{SOURCE999}
280
%description -n mysql%{product_suffix}
281
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
282
client/server implementation consisting of a server daemon (mysqld)
283
and many different client programs and libraries. The base package
284
contains the standard MySQL client programs and generic MySQL files.
286
The MySQL software has Dual Licensing, which means you can use the MySQL
287
software free of charge under the GNU General Public License
288
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
289
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
290
the GPL. See the chapter "Licensing and Support" in the manual for
293
%package -n mysql-libs%{product_suffix}
295
Summary: The shared libraries required for MySQL clients
296
Group: Applications/Databases
297
Requires: /sbin/ldconfig
299
Obsoletes: mysql-libs mysql-libs-advanced
301
%description -n mysql-libs%{product_suffix}
302
The mysql-libs package provides the essential shared libraries for any
303
MySQL client program or interface. You will need to install this package
304
to use any other MySQL package or any clients that need to connect to a
307
%package -n mysql-server%{product_suffix}
309
Summary: The MySQL server and related files
310
Group: Applications/Databases
311
Requires: mysql%{product_suffix} = %{version}-%{release}
313
Requires(pre): /usr/sbin/useradd
314
Requires(post): chkconfig
315
Requires(preun): chkconfig
316
# This is for /sbin/service
317
Requires(preun): initscripts
318
Requires(postun): initscripts
319
# mysqlhotcopy needs DBI/DBD support
320
Requires: perl-DBI, perl-DBD-MySQL
321
Provides: mysql-server
322
Conflicts: MySQL-server
323
Obsoletes: mysql-server mysql-server-advanced
325
%description -n mysql-server%{product_suffix}
326
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
327
client/server implementation consisting of a server daemon (mysqld)
328
and many different client programs and libraries. This package contains
329
the MySQL server and some accompanying files and directories.
331
%package -n mysql-devel%{product_suffix}
333
Summary: Files for development of MySQL applications
334
Group: Applications/Databases
335
Requires: mysql%{product_suffix} = %{version}-%{release}
336
Requires: openssl-devel
337
Provides: mysql-devel
338
Conflicts: MySQL-devel
339
Obsoletes: mysql-devel mysql-devel-advanced
341
%description -n mysql-devel%{product_suffix}
342
MySQL is a multi-user, multi-threaded SQL database server. This
343
package contains the libraries and header files that are needed for
344
developing MySQL client applications.
346
%package -n mysql-embedded%{product_suffix}
348
Summary: MySQL as an embeddable library
349
Group: Applications/Databases
350
Provides: mysql-embedded
351
Obsoletes: mysql-embedded mysql-embedded-advanced
353
%description -n mysql-embedded%{product_suffix}
354
MySQL is a multi-user, multi-threaded SQL database server. This
355
package contains a version of the MySQL server that can be embedded
356
into a client application instead of running as a separate process,
357
as well as a command line client with such an embedded server.
359
%package -n mysql-embedded-devel%{product_suffix}
361
Summary: Development files for MySQL as an embeddable library
362
Group: Applications/Databases
363
Requires: mysql-embedded%{product_suffix} = %{version}-%{release}
364
Requires: mysql-devel%{product_suffix} = %{version}-%{release}
365
Provides: mysql-embedded-devel
366
Obsoletes: mysql-embedded-devel mysql-embedded-devel-advanced
368
%description -n mysql-embedded-devel%{product_suffix}
369
MySQL is a multi-user, multi-threaded SQL database server. This
370
package contains files needed for developing and testing with
371
the embedded version of the MySQL server.
373
%package -n mysql-test%{product_suffix}
375
Summary: The test suite distributed with MySQL
376
Group: Applications/Databases
377
Requires: mysql%{product_suffix} = %{version}-%{release}
378
Requires: mysql-server%{product_suffix} = %{version}-%{release}
380
Conflicts: MySQL-test
381
Obsoletes: mysql-test mysql-test-advanced
383
%description -n mysql-test%{product_suffix}
384
MySQL is a multi-user, multi-threaded SQL database server. This
385
package contains the regression test suite distributed with
389
%setup -T -a 0 -c -n %{src_dir}
391
cd %{src_dir} # read about "%setup -n"
394
# %patch4 -p1 TODO / FIXME: if wanted, needs to be adapted to new mysql-test-run setup
407
# workaround for upstream bug #56342
408
rm -f mysql-test/t/ssl_8k_key-master.opt
412
# Fail quickly and obviously if user tries to build as root
414
if [ x"`id -u`" = x0 ]; then
415
echo "The MySQL regression tests may fail if run as root."
416
echo "If you really need to build the RPM as root, use"
417
echo "--define='runselftest 0' to skip the regression tests."
422
# Be strict about variables, bail at earliest opportunity, etc.
425
# Optional package files
426
touch optional-files-devel
429
# Set environment in order of preference, MYSQL_BUILD_* first, then variable
430
# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
431
# default RPM build environment.
433
# We set CXX=gcc by default to support so-called 'generic' binaries, where we
434
# do not have a dependancy on libgcc/libstdc++. This only works while we do
435
# not require C++ features such as exceptions, and may need to be removed at
439
# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
440
# the compile in cmd-line-utils/readline - needs investigation, but for now
441
# we simply unset it and use those specified directly in cmake.
442
%if "%{_arch}" == "ia64"
446
# This goes in sync with Patch19. "rm" is faster than "patch" for this.
447
rm -rf %{src_dir}/mysql-test/lib/v1
449
export PATH=${MYSQL_BUILD_PATH:-$PATH}
450
export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
451
export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
452
export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
453
# Following "%ifarch" developed by RedHat, MySQL/Oracle does not support/maintain Linux/Sparc:
454
# gcc seems to have some bugs on sparc as of 4.4.1, back off optimization
455
# submitted as bz #529298
456
%ifarch sparc sparcv9 sparc64
457
CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
459
export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
460
export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
461
export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
462
export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-%{?_smp_mflags}}
464
# Build debug mysqld and libmysqld.a
468
# Attempt to remove any optimisation flags from the debug build
469
CFLAGS=`echo " ${CFLAGS} " | \
470
sed -e 's/ -O[0-9]* / /' \
471
-e 's/ -unroll2 / /' \
475
CXXFLAGS=`echo " ${CXXFLAGS} " | \
476
sed -e 's/ -O[0-9]* / /' \
477
-e 's/ -unroll2 / /' \
481
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
482
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
483
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
484
-DCMAKE_BUILD_TYPE=Debug \
485
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
486
-DFEATURE_SET="%{feature_set}" \
487
-DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
488
-DMYSQL_SERVER_SUFFIX="%{server_suffix}"
489
echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
490
make ${MAKE_JFLAG} VERBOSE=1
496
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
497
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
498
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
499
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
500
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
501
-DFEATURE_SET="%{feature_set}" \
502
-DCOMPILATION_COMMENT="%{compilation_comment_release}" \
503
-DMYSQL_SERVER_SUFFIX="%{server_suffix}"
504
echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
505
make ${MAKE_JFLAG} VERBOSE=1
508
# TODO / FIXME: Do we need "scriptstub"?
509
gcc $CFLAGS $LDFLAGS -o scriptstub "-DLIBDIR=\"%{_libdir}/mysql\"" %{SOURCE4}
511
# TODO / FIXME: "libmysqld.so" should have been produced above - WORK in PROGRESS
512
# regular build will make libmysqld.a but not libmysqld.so :-(
517
rm rpl_utility.cc.o sql_binlog.cc.o # Try-and-Error: These modules cause unresolved references
518
gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \
520
-lpthread -lcrypt -laio -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc
521
# this is to check that we built a complete library
523
ln -s libmysqld.so.0.0.1 libmysqld.so.0
524
gcc -I../../include -I../../../%{src_dir}/include $CFLAGS mysql-embedded-check.c libmysqld.so.0
525
LD_LIBRARY_PATH=. ldd ./a.out
529
# TODO / FIXME: autotools only?
532
# TODO / FIXME: Test suite is run elsewhere in release builds -
533
# do we need this for users who want to build from source?
534
# Also, check whether MTR_BUILD_THREAD=auto would solve all issues
536
# hack to let 32- and 64-bit tests run concurrently on same build machine
538
ppc64 | s390x | x86_64 | sparc64 )
545
export MTR_BUILD_THREAD
547
# if you want to change which tests are run, look at mysql-5.5-testing.patch too.
548
(cd release && make test-bt-fast )
553
MBD=$RPM_BUILD_DIR/%{src_dir}
554
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
556
# Ensure that needed directories exists
557
# TODO / FIXME: needed ? install -d $RBR%{mysqldatadir}/mysql
558
# TODO / FIXME: needed ? install -d $RBR%{_datadir}/mysql-test
559
# TODO / FIXME: needed ? install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
560
# TODO / FIXME: needed ? install -d $RBR%{_includedir}
561
# TODO / FIXME: needed ? install -d $RBR%{_libdir}
562
# TODO / FIXME: needed ? install -d $RBR%{_mandir}
563
# TODO / FIXME: needed ? install -d $RBR%{_sbindir}
565
# Install all binaries
568
make DESTDIR=$RBR install
571
# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). Do
572
# this in a sub-shell to ensure we don't pollute the install environment
573
# with compiler bits.
575
PATH=${MYSQL_BUILD_PATH:-$PATH}
576
CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
577
CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
578
if "${CC}" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1; then
579
libgcc=`${CC} ${CFLAGS} --print-libgcc-file`
580
if [ -f ${libgcc} ]; then
581
mkdir -p $RBR%{_libdir}/mysql
582
install -m 644 ${libgcc} $RBR%{_libdir}/mysql/libmygcc.a
583
echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
588
# multilib header hacks
589
# we only apply this to known Red Hat multilib arches, per bug #181335
591
i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
592
mv $RPM_BUILD_ROOT/usr/include/mysql/my_config.h $RPM_BUILD_ROOT/usr/include/mysql/my_config_`uname -i`.h
593
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/include/mysql/
599
mkdir -p $RPM_BUILD_ROOT/var/log
600
touch $RPM_BUILD_ROOT/var/log/mysqld.log
602
# List the installed tree for RPM package maintenance purposes.
603
find $RPM_BUILD_ROOT -print | sed "s|^$RPM_BUILD_ROOT||" | sort > ROOTFILES
605
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
606
mkdir -p $RPM_BUILD_ROOT/var/run/mysqld
607
install -m 0755 -d $RPM_BUILD_ROOT/var/lib/mysql
608
install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysqld
609
install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/my.cnf
610
# obsolete: mv $RPM_BUILD_ROOT/usr/sql-bench $RPM_BUILD_ROOT%{_datadir}/sql-bench # 'sql-bench' is dropped
611
# obsolete: mv $RPM_BUILD_ROOT/usr/mysql-test $RPM_BUILD_ROOT%{_datadir}/mysql-test # 'mysql-test' is there already
612
# 5.1.32 forgets to install the mysql-test README file
613
# obsolete: install -m 0644 mysql-test/README $RPM_BUILD_ROOT%{_datadir}/mysql-test/README # 'README' is there already
615
mv ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysqlbug
616
install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug
617
mv ${RPM_BUILD_ROOT}%{_bindir}/mysql_config ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysql_config
618
install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysql_config
620
rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.a
621
install -m 0755 release/libmysqld/work/libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0.0.1
622
ln -s libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0
623
ln -s libmysqld.so.0 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so
625
rm -f ${RPM_BUILD_ROOT}%{_bindir}/comp_err
626
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/comp_err.1*
627
rm -f ${RPM_BUILD_ROOT}%{_bindir}/make_win_binary_distribution
628
rm -f ${RPM_BUILD_ROOT}%{_bindir}/make_win_src_distribution
629
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/make_win_bin_dist.1*
630
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/make_win_src_distribution.1*
631
rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqlclient*.la
632
rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/*.a
633
rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/plugin/*.la
634
rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/plugin/*.a
635
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/binary-configure
636
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/make_binary_distribution
637
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/make_sharedlib_distribution
638
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mi_test_all*
639
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ndb-config-2-node.ini
640
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql.server
641
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysqld_multi.server
642
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/MySQL-shared-compat.spec
643
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/*.plist
644
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/preinstall
645
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/postinstall
646
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-*.spec
647
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-log-rotate
648
rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ChangeLog
649
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-stress-test.pl.1*
650
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-test-run.pl.1*
652
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
653
echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
655
# The below *only* applies to builds not done by MySQL / Sun / Oracle:
656
# copy additional docs into build tree so %%doc will find them
657
# cp %{SOURCE6} README.mysql-docs
660
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
662
%pre -n mysql-server%{product_suffix}
664
# Check if we can safely upgrade. An upgrade is only safe if it's from one
665
# of our RPMs in the same version family.
667
# Handle both ways of spelling the capability.
668
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
669
if [ $? -ne 0 -o -z "$installed" ]; then
670
installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
672
if [ $? -eq 0 -a -n "$installed" ]; then
673
installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
674
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
675
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
676
myvendor='%{mysql_vendor}'
677
myversion='%{mysql_version}'
679
old_family=`echo $version \
680
| sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
681
new_family=`echo $myversion \
682
| sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
684
[ -z "$vendor" ] && vendor='<unknown>'
685
[ -z "$old_family" ] && old_family="<unrecognized version $version>"
686
[ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
689
if [ "$vendor" != "$myvendor" ]; then
690
error_text="$error_text
691
The current MySQL server package is provided by a different
692
vendor ($vendor) than $myvendor.
693
Some files may be installed to different locations, including log
694
files and the service startup script in %{_sysconfdir}/init.d/.
698
if [ "$old_family" != "$new_family" ]; then
699
error_text="$error_text
700
Upgrading directly from MySQL $old_family to MySQL $new_family may not
701
be safe in all cases. A manual dump and restore using mysqldump is
702
recommended. It is important to review the MySQL manual's Upgrading
703
section for version-specific incompatibilities.
707
if [ -n "$error_text" ]; then
710
******************************************************************
711
A MySQL server package ($installed) is installed.
713
A manual upgrade is required.
715
- Ensure that you have a complete, working backup of your data and my.cnf
717
- Shut down the MySQL server cleanly
718
- Remove the existing MySQL packages. Usually this command will
719
list the packages you should remove:
720
rpm -qa | grep -i '^mysql-'
722
You may choose to use 'rpm --nodeps -ev <package-name>' to remove
723
the package which contains the mysqlclient shared library. The
724
library will be reinstalled by the MySQL-shared-compat package.
725
- Install the new MySQL packages supplied by $myvendor
726
- Ensure that the MySQL server is started
727
- Run the 'mysql_upgrade' program
729
This is a brief description of the upgrade process. Important details
730
can be found in the MySQL manual, in the Upgrading section.
731
******************************************************************
737
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
738
/usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
739
-c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
741
%post -n mysql-libs%{product_suffix}
744
%post -n mysql-server%{product_suffix}
746
/sbin/chkconfig --add mysqld
748
/bin/chmod 0755 /var/lib/mysql
749
/bin/touch /var/log/mysqld.log
751
%preun -n mysql-server%{product_suffix}
753
/sbin/service mysqld stop >/dev/null 2>&1
754
/sbin/chkconfig --del mysqld
757
%postun -n mysql-libs%{product_suffix}
762
%postun -n mysql-server%{product_suffix}
763
if [ $1 -ge 1 ]; then
764
/sbin/service mysqld condrestart >/dev/null 2>&1 || :
768
%files -n mysql%{product_suffix}
769
%defattr(-,root,root)
770
%doc %{license_files_server}
772
# The below file *only* applies to builds not done by MySQL / Sun / Oracle:
773
# %doc README.mysql-docs
775
%{_bindir}/msql2mysql
777
%{_bindir}/mysql_config
778
%{_bindir}/mysql_find_rows
779
%{_bindir}/mysql_waitpid
780
%{_bindir}/mysqlaccess
781
%{_bindir}/mysqlaccess.conf
782
%{_bindir}/mysqladmin
783
%{_bindir}/mysqlbinlog
784
%{_bindir}/mysqlcheck
786
%{_bindir}/mysqlimport
789
%{_bindir}/my_print_defaults
791
%{_mandir}/man1/mysql.1*
792
%{_mandir}/man1/mysql_config.1*
793
%{_mandir}/man1/mysql_find_rows.1*
794
%{_mandir}/man1/mysql_waitpid.1*
795
%{_mandir}/man1/mysqlaccess.1*
796
%{_mandir}/man1/mysqladmin.1*
797
%{_mandir}/man1/mysqldump.1*
798
%{_mandir}/man1/mysqlshow.1*
799
%{_mandir}/man1/mysqlslap.1*
800
%{_mandir}/man1/my_print_defaults.1*
802
%{_libdir}/mysql/mysqlbug
803
%{_libdir}/mysql/mysql_config
805
%files -n mysql-libs%{product_suffix}
806
%defattr(-,root,root)
807
%doc %{license_files_server}
808
# although the default my.cnf contains only server settings, we put it in the
809
# libs package because it can be used for client settings too.
810
%config(noreplace) /etc/my.cnf
811
%dir %{_libdir}/mysql
812
%{_libdir}/mysql/libmysqlclient*.so.*
815
%dir %{_datadir}/mysql
816
%{_datadir}/mysql/english
817
%lang(cs) %{_datadir}/mysql/czech
818
%lang(da) %{_datadir}/mysql/danish
819
%lang(nl) %{_datadir}/mysql/dutch
820
%lang(et) %{_datadir}/mysql/estonian
821
%lang(fr) %{_datadir}/mysql/french
822
%lang(de) %{_datadir}/mysql/german
823
%lang(el) %{_datadir}/mysql/greek
824
%lang(hu) %{_datadir}/mysql/hungarian
825
%lang(it) %{_datadir}/mysql/italian
826
%lang(ja) %{_datadir}/mysql/japanese
827
%lang(ko) %{_datadir}/mysql/korean
828
%lang(no) %{_datadir}/mysql/norwegian
829
%lang(no) %{_datadir}/mysql/norwegian-ny
830
%lang(pl) %{_datadir}/mysql/polish
831
%lang(pt) %{_datadir}/mysql/portuguese
832
%lang(ro) %{_datadir}/mysql/romanian
833
%lang(ru) %{_datadir}/mysql/russian
834
%lang(sr) %{_datadir}/mysql/serbian
835
%lang(sk) %{_datadir}/mysql/slovak
836
%lang(es) %{_datadir}/mysql/spanish
837
%lang(sv) %{_datadir}/mysql/swedish
838
%lang(uk) %{_datadir}/mysql/ukrainian
839
%{_datadir}/mysql/charsets
841
%files -n mysql-server%{product_suffix} -f release/support-files/plugins.files
842
%defattr(-,root,root)
843
%doc release/support-files/*.cnf
844
%doc %{_datadir}/info/mysql.info*
845
%doc %{src_dir}/Docs/ChangeLog
846
%doc %{src_dir}/Docs/INFO_SRC*
847
%doc release/Docs/INFO_BIN*
850
%{_bindir}/myisam_ftdump
852
%{_bindir}/myisampack
853
%{_bindir}/mysql_convert_table_format
854
%{_bindir}/mysql_fix_extensions
855
%{_bindir}/mysql_install_db
856
%{_bindir}/mysql_plugin
857
%{_bindir}/mysql_secure_installation
860
%{_bindir}/mysql_setpermission
862
%{_bindir}/mysql_tzinfo_to_sql
863
%{_bindir}/mysql_upgrade
866
%{_bindir}/mysqldumpslow
867
%{_bindir}/mysqld_multi
868
%{_bindir}/mysqld_safe
869
%{_bindir}/mysqlhotcopy
871
%{_bindir}/innochecksum
874
%{_bindir}/resolve_stack_dump
878
/usr/libexec/mysqld-debug
879
%{_libdir}/mysql/plugin/daemon_example.ini
882
%{_libdir}/mysql/%{malloc_lib_target}
885
# obsolete by "-f release/support-files/plugins.files" above
886
# %{_libdir}/mysql/plugin
888
%{_mandir}/man1/msql2mysql.1*
889
%{_mandir}/man1/myisamchk.1*
890
%{_mandir}/man1/myisamlog.1*
891
%{_mandir}/man1/myisampack.1*
892
%{_mandir}/man1/mysql_convert_table_format.1*
893
%{_mandir}/man1/myisam_ftdump.1*
894
%{_mandir}/man1/mysql.server.1*
895
%{_mandir}/man1/mysql_fix_extensions.1*
896
%{_mandir}/man1/mysql_install_db.1*
897
%{_mandir}/man1/mysql_plugin.1*
898
%{_mandir}/man1/mysql_secure_installation.1*
899
%{_mandir}/man1/mysql_upgrade.1*
900
%{_mandir}/man1/mysql_zap.1*
901
%{_mandir}/man1/mysqlbug.1*
902
%{_mandir}/man1/mysqldumpslow.1*
903
%{_mandir}/man1/mysqlbinlog.1*
904
%{_mandir}/man1/mysqlcheck.1*
905
%{_mandir}/man1/mysqld_multi.1*
906
%{_mandir}/man1/mysqld_safe.1*
907
%{_mandir}/man1/mysqlhotcopy.1*
908
%{_mandir}/man1/mysqlimport.1*
909
%{_mandir}/man1/mysqlman.1*
912
%{_mandir}/man1/mysql_setpermission.1*
914
%{_mandir}/man1/mysqltest.1*
915
%{_mandir}/man1/innochecksum.1*
916
%{_mandir}/man1/perror.1*
917
%{_mandir}/man1/replace.1*
918
%{_mandir}/man1/resolve_stack_dump.1*
919
%{_mandir}/man1/resolveip.1*
920
%{_mandir}/man1/mysql_tzinfo_to_sql.1*
921
%{_mandir}/man8/mysqld.8*
923
%{_datadir}/mysql/errmsg-utf8.txt
924
%{_datadir}/mysql/fill_help_tables.sql
925
%{_datadir}/mysql/magic
926
%{_datadir}/mysql/mysql_system_tables.sql
927
%{_datadir}/mysql/mysql_system_tables_data.sql
928
%{_datadir}/mysql/mysql_test_data_timezone.sql
929
%{_datadir}/mysql/my-*.cnf
930
%{_datadir}/mysql/config.*.ini
932
/etc/rc.d/init.d/mysqld
933
%attr(0755,mysql,mysql) %dir /var/run/mysqld
934
%attr(0755,mysql,mysql) %dir /var/lib/mysql
935
%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log
937
# TODO / FIXME: Do we need "libmygcc.a"? If yes, append "-f optional-files-devel"
938
# and fix the "rm -f" list in the "install" section.
939
%files -n mysql-devel%{product_suffix}
940
%defattr(-,root,root)
942
/usr/share/aclocal/mysql.m4
943
%{_libdir}/mysql/libmysqlclient*.so
945
%files -n mysql-embedded%{product_suffix}
946
%defattr(-,root,root)
947
%doc %{license_files_server}
948
%{_libdir}/mysql/libmysqld.so.*
949
%{_bindir}/mysql_embedded
951
%files -n mysql-embedded-devel%{product_suffix}
952
%defattr(-,root,root)
953
%{_libdir}/mysql/libmysqld.so
954
%{_bindir}/mysql_client_test_embedded
955
%{_bindir}/mysqltest_embedded
956
%{_mandir}/man1/mysql_client_test_embedded.1*
957
%{_mandir}/man1/mysqltest_embedded.1*
959
%files -n mysql-test%{product_suffix}
960
%defattr(-,root,root)
961
%{_bindir}/mysql_client_test
962
%attr(-,mysql,mysql) %{_datadir}/mysql-test
964
%{_mandir}/man1/mysql_client_test.1*
967
* Tue Sep 18 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
968
- Restrict the vendor check to Oracle: There is no history here
969
which we have to allow for.
971
* Thu Jul 26 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
972
- Add the vendor and release series checks from the traditional MySQL RPM
973
spec file, to protect against errors happening during upgrades.
974
- Do some code alignment with the traditional MySQL RPM spec file,
975
to make synchronous maintenance (and possibly even integration?) easier.
977
* Mon Feb 13 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
978
- Add "Provides:" lines for the generic names of the subpackages,
979
independent of "product_suffix".
981
* Tue Feb 7 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
982
- Make "mysql_setpermission" and its man page appear in GPL builds only.
984
* Thu Nov 24 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
985
- Add two patches (#18 + #19) regarding the test suite;
986
version 1 of "mysql-test-run.pl" had to go because the auto-detection
987
of Perl dependencies does not handle differences between run directory
988
and delivery location.
990
* Thu Nov 3 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
991
- Adapt from MySQL 5.1 to 5.5, tested using 5.5.17:
992
- Done by the MySQL Build Team at Oracle:
993
set as packager, set copyright owner and related info;
994
- handle command line options, allowing different configurations, platforms, ...
995
- configurations will show up in the file name as "product_suffix",
996
- use "-n" for all subpackage specifications,
997
- license may be GPL or commercial, mention that in the description,
998
the license output and the included license files will vary,
999
- commercial is "nosource",
1000
- improve "requires" listings for different platforms,
1001
- explicitly use "product_suffix" in the "requires" entries;
1002
- adapt to 5.5 changes in features and function:
1003
- remove "mysql-bench" package (files are outdated, not maintained),
1005
- the set of plugins will vary by configuration, to control the "server"
1006
package contents use "-f release/support-files/plugins.files" in the
1008
- remove "mysqlmanager", "mysql_fix_privilege_tables",
1009
- add "mysql_embedded", "mysql-plugin", "mysqlaccess.conf", "magic",
1010
- "errmsg.txt" is now in UTF8: "errmsg-utf8.txt",
1011
- adapt patches to changed code where needed, rename these to include "5.5",
1012
- stop using patches which are not applicable to 5.5;
1013
- 5.5 uses a different way of building:
1014
- autotools are replaced by cmake,
1015
- both a "release" and a "debug" server are built in separate subtrees
1016
("out of source"!), this also affects path names in further handling,
1017
- the debug server is added to the "server" subpackage,
1018
- add "mysql-5.5-libdir.patch" to handle file placement at user site.
1020
* Mon Dec 20 2010 Tom Lane <tgl@redhat.com> 5.1.52-1.1
1021
- Update to MySQL 5.1.52, for various fixes described at
1022
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html
1023
including numerous small security issues
1025
- Sync with current Fedora package; this includes:
1026
- Duplicate COPYING and EXCEPTIONS-CLIENT in -libs and -embedded subpackages,
1027
to ensure they are available when any subset of mysql RPMs are installed,
1028
per revised packaging guidelines
1029
- Allow init script's STARTTIMEOUT/STOPTIMEOUT to be overridden from sysconfig
1031
* Thu Jul 15 2010 Tom Lane <tgl@redhat.com> 5.1.47-4
1032
- Add backported patch for CVE-2010-2008 (upstream bug 53804)
1034
- Add BuildRequires perl(Time::HiRes) ... seems to no longer be installed
1035
by just pulling in perl.
1037
* Mon Jun 28 2010 Tom Lane <tgl@redhat.com> 5.1.47-3
1038
- Add -p "$mypidfile" to initscript's status call to improve corner cases.
1039
(Note: can't be fixed in Fedora until 595597 is fixed there.)
1042
* Mon Jun 7 2010 Tom Lane <tgl@redhat.com> 5.1.47-2
1043
- Add back "partition" storage engine
1045
- Fix broken "federated" storage engine plugin
1047
- Read all certificates in SSL certificate files, to support chained certs
1050
* Mon May 24 2010 Tom Lane <tgl@redhat.com> 5.1.47-1
1051
- Update to MySQL 5.1.47, for various fixes described at
1052
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-47.html
1053
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-46.html
1054
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-45.html
1055
including fixes for CVE-2010-1621, CVE-2010-1626,
1056
CVE-2010-1848, CVE-2010-1849, CVE-2010-1850
1058
- Create mysql group explicitly in pre-server script, to ensure correct GID
1060
* Mon Mar 8 2010 Tom Lane <tgl@redhat.com> 5.1.44-2
1061
- Update to MySQL 5.1.44, for various fixes described at
1062
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-44.html
1064
- Remove mysql.info, which is not freely redistributable
1066
- Revert broken upstream fix for their bug 45058
1068
- Bring init script into some modicum of compliance with Fedora/LSB standards
1072
* Mon Feb 15 2010 Tom Lane <tgl@redhat.com> 5.1.43-2
1073
- Update to MySQL 5.1.43, for various fixes described at
1074
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html
1076
- Remove mysql-cluster, which is no longer supported by upstream in this
1077
source distribution. If we want it we'll need a separate SRPM for it.
1080
* Fri Jan 29 2010 Tom Lane <tgl@redhat.com> 5.1.42-7
1081
- Add backported patch for CVE-2008-7247 (upstream bug 39277)
1083
- Use non-expired certificates for SSL testing (upstream bug 50702)
1085
* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 5.1.42-6
1086
- Emit explicit error message if user tries to build RPM as root
1089
* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.42-5
1090
- Correct Source0: tag and comment to reflect how to get the tarball
1092
* Fri Jan 8 2010 Tom Lane <tgl@redhat.com> 5.1.42-4
1093
- Sync with current Fedora build, including:
1094
- Update to MySQL 5.1.42, for various fixes described at
1095
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-42.html
1096
- Disable symbolic links by default in /etc/my.cnf
1098
- Remove static libraries (.a files) from package, per packaging guidelines
1099
- Change %%define to %%global, per packaging guidelines
1100
- Disable building the innodb plugin; it tickles assorted gcc bugs and
1101
doesn't seem entirely ready for prime time anyway.
1103
- Start mysqld_safe with --basedir=/usr, to avoid unwanted SELinux messages
1105
- Stop waiting during "service mysqld start" if mysqld_safe exits
1108
* Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 5.1.41-1
1109
- Update to MySQL 5.1.41, for various fixes described at
1110
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html
1111
including fixes for CVE-2009-4019
1113
- Don't set old_passwords=1; we aren't being bug-compatible with 3.23 anymore
1116
* Tue Nov 10 2009 Tom Lane <tgl@redhat.com> 5.1.40-1
1117
- Update to MySQL 5.1.40, for various fixes described at
1118
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-40.html
1119
- Do not force the --log-error setting in mysqld init script
1122
* Sat Oct 17 2009 Tom Lane <tgl@redhat.com> 5.1.39-4
1123
- Replace kluge fix for ndbd sparc crash with a real fix (mysql bug 48132)
1125
* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 5.1.39-3
1126
- Work around two different compiler bugs on sparc, one by backing off
1127
optimization from -O2 to -O1, and the other with a klugy patch
1128
Related: #529298, #529299
1129
- Clean up bogosity in multilib stub header support: ia64 should not be
1130
listed (it's not multilib), sparc and sparc64 should be
1132
* Wed Sep 23 2009 Tom Lane <tgl@redhat.com> 5.1.39-2
1133
- Work around upstream bug 46895 by disabling outfile_loaddata test
1135
* Tue Sep 22 2009 Tom Lane <tgl@redhat.com> 5.1.39-1
1136
- Update to MySQL 5.1.39, for various fixes described at
1137
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-39.html
1139
* Mon Aug 31 2009 Tom Lane <tgl@redhat.com> 5.1.37-5
1140
- Work around unportable assumptions about stpcpy(); re-enable main.mysql test
1141
- Clean up some obsolete parameters to the configure script
1143
* Sat Aug 29 2009 Tom Lane <tgl@redhat.com> 5.1.37-4
1144
- Remove one misguided patch; turns out I was chasing a glibc bug
1145
- Temporarily disable "main.mysql" test; there's something broken there too,
1146
but we need to get mysql built in rawhide for dependency reasons
1148
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.1.37-3
1149
- rebuilt with new openssl
1151
* Fri Aug 14 2009 Tom Lane <tgl@redhat.com> 5.1.37-2
1152
- Add a couple of patches to improve the probability of the regression tests
1153
completing in koji builds
1155
* Sun Aug 2 2009 Tom Lane <tgl@redhat.com> 5.1.37-1
1156
- Update to MySQL 5.1.37, for various fixes described at
1157
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-37.html
1159
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.36-2
1160
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1162
* Fri Jul 10 2009 Tom Lane <tgl@redhat.com> 5.1.36-1
1163
- Update to MySQL 5.1.36, for various fixes described at
1164
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-36.html
1166
* Sat Jun 6 2009 Tom Lane <tgl@redhat.com> 5.1.35-1
1167
- Update to MySQL 5.1.35, for various fixes described at
1168
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-35.html
1169
- Ensure that /var/lib/mysql is created with the right SELinux context
1172
* Fri May 15 2009 Tom Lane <tgl@redhat.com> 5.1.34-1
1173
- Update to MySQL 5.1.34, for various fixes described at
1174
http://dev.mysql.com/doc/refman/5.1/en/news-5-1-34.html
1175
- Increase startup timeout per bug #472222
1177
* Wed Apr 15 2009 Tom Lane <tgl@redhat.com> 5.1.33-2
1178
- Increase stack size of ndbd threads for safety's sake.
1181
* Tue Apr 7 2009 Tom Lane <tgl@redhat.com> 5.1.33-1
1182
- Update to MySQL 5.1.33.
1183
- Disable use of pthread_setschedparam; doesn't work the way code expects.
1186
* Wed Mar 4 2009 Tom Lane <tgl@redhat.com> 5.1.32-1
1187
- Update to MySQL 5.1.32.
1189
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.31-2
1190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1192
* Fri Feb 13 2009 Tom Lane <tgl@redhat.com> 5.1.31-1
1193
- Update to MySQL 5.1.31.
1195
* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-2
1196
- hm, apparently --with-innodb and --with-ndbcluster are still needed
1197
even though no longer documented ...
1199
* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-1
1200
- Update to MySQL 5.1.30. Note that this includes an ABI break for
1201
libmysqlclient (it's now got .so major version 16).
1202
- This also updates mysql for new openssl build
1204
* Wed Oct 1 2008 Tom Lane <tgl@redhat.com> 5.0.67-2
1205
- Build the "embedded server" library, and package it in a new sub-RPM
1206
mysql-embedded, along with mysql-embedded-devel for devel support files.
1209
* Sat Aug 23 2008 Tom Lane <tgl@redhat.com> 5.0.67-1
1210
- Update to mysql version 5.0.67
1211
- Move mysql_config's man page to base package, again (apparently I synced
1212
that change the wrong way while importing specfile changes for ndbcluster)
1214
* Sun Jul 27 2008 Tom Lane <tgl@redhat.com> 5.0.51a-2
1215
- Enable ndbcluster support
1217
- Suppress odd crash messages during package build, caused by trying to
1218
build dbug manual (which we don't install anyway) with dbug disabled
1220
- Improve mysql.init to pass configured datadir to mysql_install_db,
1221
and to force user=mysql for both mysql_install_db and mysqld_safe.
1224
* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.51a-1
1225
- Update to mysql version 5.0.51a
1227
* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.45-11
1228
- Fix mysql-stack-guard patch to work correctly on IA64
1229
- Fix mysql.init to wait correctly when socket is not in default place
1232
* Mon Mar 03 2008 Dennis Gilmore <dennis@ausil.us> 5.0.45-10
1233
- add sparc64 to 64 bit arches for test suite checking
1234
- add sparc, sparcv9 and sparc64 to multilib handling
1236
* Thu Feb 28 2008 Tom Lane <tgl@redhat.com> 5.0.45-9
1237
- Fix the stack overflow problem encountered in January. It seems the real
1238
issue is that the buildfarm machines were moved to RHEL5, which uses 64K not
1239
4K pages on PPC, and because RHEL5 takes the guard area out of the requested
1240
thread stack size we no longer had enough headroom.
1243
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.45-8
1244
- Autorebuild for GCC 4.3
1246
* Tue Jan 8 2008 Tom Lane <tgl@redhat.com> 5.0.45-7
1247
- Unbelievable ... upstream still thinks that it's a good idea to have a
1248
regression test that is guaranteed to begin failing come January 1.
1249
- ... and it seems we need to raise STACK_MIN_SIZE again too.
1251
* Thu Dec 13 2007 Tom Lane <tgl@redhat.com> 5.0.45-6
1252
- Back-port upstream fixes for CVE-2007-5925, CVE-2007-5969, CVE-2007-6303.
1255
* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 5.0.45-5
1256
- Rebuild for new openssl
1258
* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 5.0.45-4
1259
- Seems we need explicit BuildRequires on gawk and procps now
1260
- Rebuild to fix Fedora toolchain issues
1262
* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 5.0.45-3
1263
- Recent perl changes in rawhide mean we need a more specific BuildRequires
1265
* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 5.0.45-2
1266
- Update License tag to match code.
1267
- Work around recent Fedora change that makes "open" a macro name.
1269
* Sun Jul 22 2007 Tom Lane <tgl@redhat.com> 5.0.45-1
1270
- Update to MySQL 5.0.45
1272
- Move mysql_config's man page to base package
1274
- move my_print_defaults to base RPM, for consistency with Stacks packaging
1275
- mysql user is no longer deleted at RPM uninstall
1278
* Thu Mar 29 2007 Tom Lane <tgl@redhat.com> 5.0.37-2
1279
- Use a less hacky method of getting default values in initscript
1280
Related: #233771, #194596
1281
- Improve packaging of mysql-libs per suggestions from Remi Collet
1283
- Update default /etc/my.cnf ([mysql.server] has been bogus for a long time)
1285
* Mon Mar 12 2007 Tom Lane <tgl@redhat.com> 5.0.37-1
1286
- Update to MySQL 5.0.37
1288
- Put client library into a separate mysql-libs RPM to reduce dependencies
1291
* Fri Feb 9 2007 Tom Lane <tgl@redhat.com> 5.0.33-1
1292
- Update to MySQL 5.0.33
1293
- Install band-aid fix for "view" regression test designed to fail after 2006
1294
- Don't chmod -R the entire database directory tree on every startup
1296
- Fix unsafe use of install-info
1298
- Cope with new automake in F7
1301
* Thu Nov 9 2006 Tom Lane <tgl@redhat.com> 5.0.27-1
1302
- Update to MySQL 5.0.27 (see CVE-2006-4031, CVE-2006-4226, CVE-2006-4227)
1303
Resolves: #202247, #202675, #203427, #203428, #203432, #203434, #208641
1304
- Fix init script to return status 1 on server start timeout
1306
- Move mysqldumpslow from base package to mysql-server
1308
- Adjust link options for BDB module
1311
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.0.22-2.1
1314
* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 5.0.22-2
1315
- Work around brew's tendency not to clean up failed builds completely,
1316
by adding code in mysql-testing.patch to kill leftover mysql daemons.
1318
* Thu Jun 8 2006 Tom Lane <tgl@redhat.com> 5.0.22-1
1319
- Update to MySQL 5.0.22 (fixes CVE-2006-2753)
1320
- Install temporary workaround for gcc bug on s390x (bz #193912)
1322
* Tue May 2 2006 Tom Lane <tgl@redhat.com> 5.0.21-2
1323
- Fix bogus perl Requires for mysql-test
1325
* Mon May 1 2006 Tom Lane <tgl@redhat.com> 5.0.21-1
1326
- Update to MySQL 5.0.21
1328
* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 5.0.18-4
1329
- Modify multilib header hack to not break non-RH arches, per bug #181335
1330
- Remove logrotate script, per bug #180639.
1331
- Add a new mysql-test RPM to carry the regression test files;
1332
hack up test scripts as needed to make them run in /usr/share/mysql-test.
1334
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-2.1
1335
- bump again for double-long bug on ppc(64)
1337
* Thu Feb 9 2006 Tom Lane <tgl@redhat.com> 5.0.18-2
1338
- err-log option has been renamed to log-error, fix my.cnf and initscript
1340
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-1.1
1341
- rebuilt for new gcc4.1 snapshot and glibc changes
1343
* Thu Jan 5 2006 Tom Lane <tgl@redhat.com> 5.0.18-1
1344
- Update to MySQL 5.0.18
1346
* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-4
1347
- fix my_config.h for ppc platforms
1349
* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-3
1350
- my_config.h needs to guard against 64-bit platforms that also define the
1353
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 5.0.16-2
1354
- oops, looks like we want uname -i not uname -m
1356
* Mon Dec 12 2005 Tom Lane <tgl@redhat.com> 5.0.16-1
1357
- Update to MySQL 5.0.16
1358
- Add EXCEPTIONS-CLIENT license info to the shipped documentation
1359
- Make my_config.h architecture-independent for multilib installs;
1360
put the original my_config.h into my_config_$ARCH.h
1361
- Add -fwrapv to CFLAGS so that gcc 4.1 doesn't break it
1363
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
1366
* Mon Nov 14 2005 Tom Lane <tgl@redhat.com> 5.0.15-3
1367
- Make stop script wait for daemon process to disappear (bz#172426)
1369
* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 5.0.15-2
1370
- Rebuild due to openssl library update.
1372
* Thu Nov 3 2005 Tom Lane <tgl@redhat.com> 5.0.15-1
1373
- Update to MySQL 5.0.15 (scratch build for now)
1375
* Wed Oct 5 2005 Tom Lane <tgl@redhat.com> 4.1.14-1
1376
- Update to MySQL 4.1.14
1378
* Tue Aug 23 2005 Tom Lane <tgl@redhat.com> 4.1.12-3
1379
- Use politically correct patch name.
1381
* Tue Jul 12 2005 Tom Lane <tgl@redhat.com> 4.1.12-2
1382
- Fix buffer overflow newly exposed in isam code; it's the same issue
1383
previously found in myisam, and not very exciting, but I'm tired of
1384
seeing build warnings.
1386
* Mon Jul 11 2005 Tom Lane <tgl@redhat.com> 4.1.12-1
1387
- Update to MySQL 4.1.12 (includes a fix for bz#158688, bz#158689)
1388
- Extend mysql-test-ssl.patch to solve rpl_openssl test failure (bz#155850)
1389
- Update mysql-lock-ssl.patch to match the upstream committed version
1390
- Add --with-isam to re-enable the old ISAM table type, per bz#159262
1391
- Add dependency on openssl-devel per bz#159569
1392
- Remove manual.txt, as upstream decided not to ship it anymore;
1393
it was redundant with the mysql.info file anyway.
1395
* Mon May 9 2005 Tom Lane <tgl@redhat.com> 4.1.11-4
1396
- Include proper locking for OpenSSL in the server, per bz#155850
1398
* Mon Apr 25 2005 Tom Lane <tgl@redhat.com> 4.1.11-3
1399
- Enable openssl tests during build, per bz#155850
1400
- Might as well turn on --disable-dependency-tracking
1402
* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 4.1.11-2
1403
- Avoid dependency on <asm/atomic.h>, cause it won't build anymore on ia64.
1404
This is probably a cleaner solution for bz#143537, too.
1406
* Thu Apr 7 2005 Tom Lane <tgl@redhat.com> 4.1.11-1
1407
- Update to MySQL 4.1.11 to fix bz#152911 as well as other issues
1408
- Move perl-DBI, perl-DBD-MySQL dependencies to server package (bz#154123)
1409
- Override configure thread library test to suppress HAVE_LINUXTHREADS check
1410
- Fix BDB failure on s390x (bz#143537)
1411
- At last we can enable "make test" on all arches
1413
* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 4.1.10a-1
1414
- Update to MySQL 4.1.10a to fix security vulnerabilities (bz#150868,
1415
for CAN-2005-0711, and bz#150871 for CAN-2005-0709, CAN-2005-0710).
1417
* Sun Mar 6 2005 Tom Lane <tgl@redhat.com> 4.1.10-3
1418
- Fix package Requires: interdependencies.
1420
* Sat Mar 5 2005 Tom Lane <tgl@redhat.com> 4.1.10-2
1421
- Need -fno-strict-aliasing in at least one place, probably more.
1422
- Work around some C spec violations in mysql.
1424
* Fri Feb 18 2005 Tom Lane <tgl@redhat.com> 4.1.10-1
1425
- Update to MySQL 4.1.10.
1427
* Sat Jan 15 2005 Tom Lane <tgl@redhat.com> 4.1.9-1
1428
- Update to MySQL 4.1.9.
1430
* Wed Jan 12 2005 Tom Lane <tgl@redhat.com> 4.1.7-10
1431
- Don't assume /etc/my.cnf will specify pid-file (bz#143724)
1433
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 4.1.7-9
1434
- Rebuilt for new readline.
1436
* Tue Dec 21 2004 Tom Lane <tgl@redhat.com> 4.1.7-8
1437
- Run make test on all archs except s390x (which seems to have a bdb issue)
1439
* Mon Dec 13 2004 Tom Lane <tgl@redhat.com> 4.1.7-7
1440
- Suppress someone's silly idea that libtool overhead can be skipped
1442
* Sun Dec 12 2004 Tom Lane <tgl@redhat.com> 4.1.7-6
1443
- Fix init script to not need a valid username for startup check (bz#142328)
1444
- Fix init script to honor settings appearing in /etc/my.cnf (bz#76051)
1445
- Enable SSL (bz#142032)
1447
* Thu Dec 2 2004 Tom Lane <tgl@redhat.com> 4.1.7-5
1448
- Add a restorecon to keep the mysql.log file in the right context (bz#143887)
1450
* Tue Nov 23 2004 Tom Lane <tgl@redhat.com> 4.1.7-4
1451
- Turn off old_passwords in default /etc/my.cnf file, for better compatibility
1452
with mysql 3.x clients (per suggestion from Joe Orton).
1454
* Fri Oct 29 2004 Tom Lane <tgl@redhat.com> 4.1.7-3
1455
- Handle ldconfig more cleanly (put a file in /etc/ld.so.conf.d/).
1457
* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 4.1.7-2
1458
- rebuild in devel branch
1460
* Wed Oct 27 2004 Tom Lane <tgl@redhat.com> 4.1.7-1
1461
- Update to MySQL 4.1.x.
1463
* Tue Oct 12 2004 Tom Lane <tgl@redhat.com> 3.23.58-13
1464
- fix security issues CAN-2004-0835, CAN-2004-0836, CAN-2004-0837
1465
(bugs #135372, 135375, 135387)
1466
- fix privilege escalation on GRANT ALL ON `Foo\_Bar` (CAN-2004-0957)
1468
* Wed Oct 06 2004 Tom Lane <tgl@redhat.com> 3.23.58-12
1469
- fix multilib problem with mysqlbug and mysql_config
1470
- adjust chkconfig priority per bug #128852
1471
- remove bogus quoting per bug #129409 (MySQL 4.0 has done likewise)
1472
- add sleep to mysql.init restart(); may or may not fix bug #133993
1474
* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 3.23.58-11
1475
- fix low-priority security issues CAN-2004-0388, CAN-2004-0381, CAN-2004-0457
1476
(bugs #119442, 125991, 130347, 130348)
1477
- fix bug with dropping databases under recent kernels (bug #124352)
1479
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 3.23.58-10
1482
* Sat Apr 17 2004 Warren Togami <wtogami@redhat.com> 3.23.58-9
1483
- remove redundant INSTALL-SOURCE, manual.*
1484
- compress manual.txt.bz2
1487
* Tue Mar 16 2004 Tom Lane <tgl@redhat.com> 3.23.58-8
1488
- repair logfile attributes in %%files, per bug #102190
1489
- repair quoting problem in mysqlhotcopy, per bug #112693
1490
- repair missing flush in mysql_setpermission, per bug #113960
1491
- repair broken error message printf, per bug #115165
1492
- delete mysql user during uninstall, per bug #117017
1495
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
1498
* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
1499
- fix chown syntax in mysql.init
1502
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
1505
* Tue Nov 18 2003 Kim Ho <kho@redhat.com> 3.23.58-5
1506
- update mysql.init to use anonymous user (UNKNOWN_MYSQL_USER) for
1507
pinging mysql server (#108779)
1509
* Mon Oct 27 2003 Kim Ho <kho@redhat.com> 3.23.58-4
1510
- update mysql.init to wait (max 10 seconds) for mysql server to
1513
* Mon Oct 27 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-3
1514
- re-enable Berkeley DB support (#106832)
1515
- re-enable ia64 testing
1517
* Fri Sep 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-2
1520
* Mon Sep 15 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-1
1521
- upgrade to 3.23.58 for security fix
1523
* Tue Aug 26 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-2
1526
* Wed Jul 02 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-1
1527
- revert to prior version of MySQL due to license incompatibilities
1528
with packages that link against the client. The MySQL folks are
1529
looking into the issue.
1531
* Wed Jun 18 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-4
1532
- restrict test on ia64 (temporary)
1534
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 4.0.13-3
1537
* Thu May 29 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-2
1538
- fix filter-requires-mysql.sh with less restrictive for mysql-bench
1540
* Wed May 28 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-1
1541
- update for MySQL 4.0
1542
- back-level shared libraries available in mysqlclient10 package
1544
* Fri May 09 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-2
1545
- add sql-bench package (#90110)
1547
* Wed Mar 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-1
1548
- upgrade to 3.23.56 for security fixes
1549
- remove patch for double-free (included in 3.23.56)
1551
* Tue Feb 18 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.54a-11
1552
- enable thread safe client
1553
- add patch for double free fix
1555
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
1558
* Mon Jan 13 2003 Karsten Hopp <karsten@redhat.de> 3.23.54a-9
1559
- disable checks on s390x
1561
* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 3.23.54a-8
1562
- use internal dep generator.
1564
* Wed Jan 1 2003 Bill Nottingham <notting@redhat.com> 3.23.54a-7
1565
- fix mysql_config on hammer
1567
* Sun Dec 22 2002 Tim Powers <timp@redhat.com> 3.23.54a-6
1568
- don't use rpms internal dep generator
1570
* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 3.23.54a-5
1571
- Push it into the build system
1573
* Mon Dec 16 2002 Joe Orton <jorton@redhat.com> 3.23.54a-4
1574
- upgrade to 3.23.54a for safe_mysqld fix
1576
* Thu Dec 12 2002 Joe Orton <jorton@redhat.com> 3.23.54-3
1577
- upgrade to 3.23.54 for latest security fixes
1579
* Tue Nov 19 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-5
1580
- Always include <errno.h> for errno
1581
- Remove unpackaged files
1583
* Tue Nov 12 2002 Florian La Roche <Florian.LaRoche@redhat.de>
1584
- do not prereq userdel, not used at all
1586
* Mon Sep 9 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-4
1588
- Add patch for x86-64
1590
* Wed Sep 4 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-3
1591
- rebuilt with gcc-3.2-7
1593
* Thu Aug 29 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-2
1594
- Add --enable-local-infile to configure - a new option
1595
which doesn't default to the old behaviour (#72885)
1597
* Fri Aug 23 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-1
1598
- 3.23.52. Fixes a minor security problem, various bugfixes.
1600
* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 3.23.51-5
1601
- rebuilt with gcc-3.2 (we hope)
1603
* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-4
1606
* Thu Jul 18 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-3
1607
- Fix #63543 and #63542
1609
* Thu Jul 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-2
1610
- Turn off bdb on PPC(#68591)
1611
- Turn off the assembly optimizations, for safety.
1613
* Wed Jun 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-1
1614
- Work around annoying auto* thinking this is a crosscompile
1617
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
1620
* Mon Jun 10 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-2
1621
- Add dependency on perl-DBI and perl-DBD-MySQL (#66349)
1623
* Thu May 30 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-1
1626
* Thu May 23 2002 Tim Powers <timp@redhat.com>
1629
* Mon May 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-4
1631
- Don't set CXX to gcc, it doesn't work anymore
1634
* Mon Apr 8 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-3
1635
- Add the various .cnf examples as doc files to mysql-server (#60349)
1636
- Don't include manual.ps, it's just 200 bytes with a URL inside (#60349)
1637
- Don't include random files in /usr/share/mysql (#60349)
1640
* Thu Feb 21 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-2
1643
* Sun Feb 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-1
1646
* Thu Feb 14 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-2
1647
- work around perl dependency bug.
1649
* Mon Feb 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-1
1652
* Thu Jan 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-4
1653
- Use kill, not mysqladmin, to flush logs and shut down. Thus,
1654
an admin password can be set with no problems.
1655
- Remove reload from init script
1657
* Wed Jan 16 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-3
1658
- remove db3-devel from buildrequires,
1659
MySQL has had its own bundled copy since the mid thirties
1661
* Sun Jan 6 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-1
1663
- Don't build for alpha, toolchain immature.
1665
* Mon Dec 3 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.46-1
1667
- use -fno-rtti and -fno-exceptions, and set CXX to increase stability.
1668
Recommended by mysql developers.
1670
* Sun Nov 25 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.45-1
1673
* Wed Nov 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-2
1674
- centralize definition of datadir in the initscript (#55873)
1676
* Fri Nov 2 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-1
1679
* Thu Oct 4 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.43-1
1682
* Mon Sep 10 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.42-1
1686
* Tue Aug 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.41-1
1687
- 3.23.41 bugfix release
1688
- disable innodb, to avoid the broken updates
1689
- Use "mysqladmin flush_logs" instead of kill -HUP in logrotate
1692
* Sat Jul 21 2001 Trond Eivind Glomsrd <teg@redhat.com>
1693
- 3.23.40, bugfix release
1694
- Add zlib-devel to buildrequires:
1696
* Fri Jul 20 2001 Trond Eivind Glomsrd <teg@redhat.com>
1697
- BuildRequires-tweaking
1699
* Thu Jun 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
1700
- Reenable test, but don't run them for s390, s390x or ia64
1701
- Make /etc/my.cnf config(noplace). Same for /etc/logrotate.d/mysqld
1703
* Thu Jun 14 2001 Trond Eivind Glomsrd <teg@redhat.com>
1706
- enable assembly again
1707
- disable tests for now...
1709
* Tue May 15 2001 Trond Eivind Glomsrd <teg@redhat.com>
1711
- Don't use BDB on Alpha - no fast mutexes
1713
* Tue Apr 24 2001 Trond Eivind Glomsrd <teg@redhat.com>
1715
- Add _GNU_SOURCE to the compile flags
1717
* Wed Mar 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
1718
- Make it obsolete our 6.2 PowerTools packages
1719
- 3.23.36 bugfix release - fixes some security issues
1720
which didn't apply to our standard configuration
1721
- Make "make test" part of the build process, except on IA64
1724
* Tue Mar 20 2001 Trond Eivind Glomsrd <teg@redhat.com>
1725
- 3.23.35 bugfix release
1726
- Don't delete the mysql user on uninstall
1728
* Tue Mar 13 2001 Trond Eivind Glomsrd <teg@redhat.com>
1729
- 3.23.34a bugfix release
1731
* Wed Feb 7 2001 Trond Eivind Glomsrd <teg@redhat.com>
1732
- added readline-devel to BuildRequires:
1734
* Tue Feb 6 2001 Trond Eivind Glomsrd <teg@redhat.com>
1735
- small i18n-fixes to initscript (action needs $)
1737
* Tue Jan 30 2001 Trond Eivind Glomsrd <teg@redhat.com>
1738
- make it shut down and rotate logs without using mysqladmin
1741
* Mon Jan 29 2001 Trond Eivind Glomsrd <teg@redhat.com>
1742
- conflict with "MySQL"
1744
* Tue Jan 23 2001 Trond Eivind Glomsrd <teg@redhat.com>
1745
- improve gettextizing
1747
* Mon Jan 22 2001 Trond Eivind Glomsrd <teg@redhat.com>
1749
- fix logrotate script (#24589)
1751
* Wed Jan 17 2001 Trond Eivind Glomsrd <teg@redhat.com>
1753
- move the items in Requires(post): to Requires: in preparation
1754
for an errata for 7.0 when 3.23.31 is released
1757
* Tue Jan 16 2001 Trond Eivind Glomsrd <teg@redhat.com>
1758
- add the log file to the rpm database, and make it 0640
1760
- as above in logrotate script
1761
- changes to the init sequence - put most of the data
1762
in /etc/my.cnf instead of hardcoding in the init script
1763
- use /var/run/mysqld/mysqld.pid instead of
1765
- use standard safe_mysqld
1768
* Mon Jan 08 2001 Trond Eivind Glomsrd <teg@redhat.com>
1770
- do an explicit chmod on /var/lib/mysql in post, to avoid
1771
any problems with broken permissons. There is a report
1772
of rm not changing this on its own (#22989)
1774
* Mon Jan 01 2001 Trond Eivind Glomsrd <teg@redhat.com>
1776
- changed from 85 to 78 in startup, so it starts before
1777
apache (which can use modules requiring mysql)
1779
* Wed Dec 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1782
* Tue Dec 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
1783
- add requirement for new libstdc++, build for errata
1785
* Mon Dec 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1788
* Mon Nov 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1790
- remove old patches, as they are now upstreamed
1792
* Thu Nov 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
1793
- Add a requirement for a new glibc (#20735)
1796
* Wed Nov 1 2000 Trond Eivind Glomsrd <teg@redhat.com>
1797
- disable more assembly
1799
* Wed Nov 1 2000 Jakub Jelinek <jakub@redhat.com>
1800
- fix mysql on SPARC (#20124)
1802
* Tue Oct 31 2000 Trond Eivind Glomsrd <teg@redhat.com>
1805
* Wed Oct 25 2000 Trond Eivind Glomsrd <teg@redhat.com>
1806
- add patch for fixing bogus aliasing in mysql from Jakub,
1807
which should fix #18905 and #18620
1809
* Mon Oct 23 2000 Trond Eivind Glomsrd <teg@redhat.com>
1810
- check for negative niceness values, and negate it
1812
- redefine optflags on IA32 FTTB
1814
* Wed Oct 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1815
- 3.23.26, which among other fixes now uses mkstemp()
1816
instead of tempnam().
1817
- revert changes made yesterday, the problem is now
1820
* Tue Oct 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
1821
- use the compat C++ compiler FTTB. Argh.
1822
- add requirement of ncurses4 (see above)
1824
* Sun Oct 01 2000 Trond Eivind Glomsrd <teg@redhat.com>
1826
- fix shutdown problem (#17956)
1828
* Tue Sep 26 2000 Trond Eivind Glomsrd <teg@redhat.com>
1829
- Don't try to include no-longer-existing PUBLIC file
1832
* Thu Sep 12 2000 Trond Eivind Glomsrd <teg@redhat.com>
1833
- rename config file to /etc/my.cnf, which is what
1834
mysqld wants... doh. (#17432)
1835
- include a changed safe_mysqld, so the pid file option
1837
- make mysql dir world readable to they can access the
1838
mysql socket. (#17432)
1841
* Wed Sep 06 2000 Trond Eivind Glomsrd <teg@redhat.com>
1844
* Sun Aug 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1845
- Add "|| :" to condrestart to avoid non-zero exit code
1847
* Thu Aug 24 2000 Trond Eivind Glomsrd <teg@redhat.com>
1848
- it's mysql.com, not mysql.org and use correct path to
1851
* Wed Aug 16 2000 Trond Eivind Glomsrd <teg@redhat.com>
1852
- source file from /etc/rc.d, not /etc/rd.d. Doh.
1854
* Sun Aug 13 2000 Trond Eivind Glomsrd <teg@redhat.com>
1855
- don't run ldconfig -n, it doesn't update ld.so.cache
1857
- include some missing binaries
1858
- use safe_mysqld to start the server (request from
1861
* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
1864
* Mon Aug 01 2000 Trond Eivind Glomsrd <teg@redhat.com>
1865
- 3.23.22. Disable the old patches, they're now in.
1867
* Thu Jul 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1868
- bugfixes in the initscript
1869
- move the .so link to the devel package
1871
* Wed Jul 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
1872
- rebuild due to glibc changes
1874
* Tue Jul 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1875
- disable compiler patch
1876
- don't include info directory file
1878
* Mon Jul 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
1879
- move back to /etc/rc.d/init.d
1881
* Fri Jul 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
1882
- more cleanups in initscript
1884
* Thu Jul 13 2000 Trond Eivind Glomsrd <teg@redhat.com>
1885
- add a patch to work around compiler bug
1886
(from monty@mysql.com)
1888
* Wed Jul 12 2000 Trond Eivind Glomsrd <teg@redhat.com>
1889
- don't build the SQL daemon statically (glibc problems)
1890
- fix the logrotate script - only flush log if mysql
1892
- change the reloading procedure
1893
- remove icon - glint is obsolete a long time ago
1895
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
1898
* Mon Jul 10 2000 Trond Eivind Glomsrd <teg@redhat.com>
1899
- try the new compiler again
1900
- build the SQL daemon statically
1901
- add compile time support for complex charsets
1903
- more cleanups in initscript
1905
* Sun Jul 09 2000 Trond Eivind Glomsrd <teg@redhat.com>
1906
- use old C++ compiler
1909
* Sat Jul 08 2000 Trond Eivind Glomsrd <teg@redhat.com>
1910
- move .so files to devel package
1912
- exclude sparc for now
1914
* Wed Jul 05 2000 Trond Eivind Glomsrd <teg@redhat.com>
1916
- remove file from /etc/sysconfig
1917
- Fix initscript a bit - initialization of databases doesn't
1919
- specify the correct licenses
1920
- include a /etc/my.conf (empty, FTTB)
1921
- add conditional restart to spec file
1923
* Tue Jul 2 2000 Jakub Jelinek <jakub@redhat.com>
1924
- Rebuild with new C++
1926
* Fri Jun 30 2000 Trond Eivind Glomsrd <teg@redhat.com>
1928
- use %%configure, %%makeinstall, %%{_tmppath}, %%{_mandir},
1929
%%{_infodir}, /etc/init.d
1930
- remove the bench package
1931
- change some of the descriptions a little bit
1932
- fix the init script
1933
- some compile fixes
1934
- specify mysql user
1935
- use mysql uid 27 (postgresql is 26)
1936
- don't build on ia64
1938
* Sat Feb 26 2000 Jos Vos <jos@xos.nl>
1939
- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0
1940
- Upgrade from version 3.22.27 to 3.22.32.
1941
- Do "make install" instead of "make install-strip", because "install -s"
1942
now appears to fail on various scripts. Afterwards, strip manually.
1943
- Reorganize subpackages, according to common Red Hat packages: the client
1944
program and shared library become the base package and the server and
1945
some accompanying files are now in a separate server package. The
1946
server package implicitly requires the base package (shared library),
1947
but we have added a manual require tag anyway (because of the shared
1948
config file, and more).
1949
- Rename the mysql-benchmark subpackage to mysql-bench.
1951
* Mon Jan 31 2000 Jos Vos <jos@xos.nl>
1952
- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1
1953
- Add post(un)install scripts for updating ld.so.conf (client subpackage).
1955
* Sun Nov 21 1999 Jos Vos <jos@xos.nl>
1956
- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0
1958
- Some ideas borrowed from Red Hat Powertools 6.1, although this spec
1959
file is a full rewrite from scratch.