~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-security

« back to all changes in this revision

Viewing changes to support-files/mysql.5.5.43.spec

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-16 13:59:34 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20150716135934-plzpylrt211i3se4
Tags: 5.5.44-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.44 to fix security issues (LP: #1475294)
  - http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
  - CVE-2015-2582
  - CVE-2015-2620
  - CVE-2015-2643
  - CVE-2015-2648
  - CVE-2015-4737
  - CVE-2015-4752
  - CVE-2015-4757

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
2
 
#
3
 
# This program is free software; you can redistribute it and/or modify
4
 
# it under the terms of the GNU General Public License as published by
5
 
# the Free Software Foundation; version 2 of the License.
6
 
#
7
 
# This program is distributed in the hope that it will be useful,
8
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
# GNU General Public License for more details.
11
 
#
12
 
# You should have received a copy of the GNU General Public License
13
 
# along with this program; see the file COPYING. If not, write to the
14
 
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
15
 
# MA  02110-1301  USA.
16
 
 
17
 
##############################################################################
18
 
# Some common macro definitions
19
 
##############################################################################
20
 
 
21
 
# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
22
 
# change these, has to be exactly as is.
23
 
%global mysql_old_vendor        MySQL AB
24
 
%global mysql_vendor_2          Sun Microsystems, Inc.
25
 
%global mysql_vendor            Oracle and/or its affiliates
26
 
 
27
 
%global mysql_version   5.5.43
28
 
 
29
 
%global mysqld_user     mysql
30
 
%global mysqld_group    mysql
31
 
%global mysqldatadir    /var/lib/mysql
32
 
 
33
 
%global release         1 
34
 
 
35
 
 
36
 
#
37
 
# Macros we use which are not available in all supported versions of RPM
38
 
#
39
 
# - defined/undefined are missing on RHEL4
40
 
#
41
 
%if %{expand:%{?defined:0}%{!?defined:1}}
42
 
%define defined()       %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
43
 
%endif
44
 
%if %{expand:%{?undefined:0}%{!?undefined:1}}
45
 
%define undefined()     %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
46
 
%endif
47
 
 
48
 
# ----------------------------------------------------------------------------
49
 
# RPM build tools now automatically detect Perl module dependencies.  This
50
 
# detection causes problems as it is broken in some versions, and it also
51
 
# provides unwanted dependencies from mandatory scripts in our package.
52
 
# It might not be possible to disable this in all versions of RPM, but here we
53
 
# try anyway.  We keep the "AutoReqProv: no" for the "test" sub package, as
54
 
# disabling here might fail, and that package has the most problems.
55
 
# See:
56
 
#  http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
57
 
#  http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
58
 
# ----------------------------------------------------------------------------
59
 
%undefine __perl_provides
60
 
%undefine __perl_requires
61
 
 
62
 
##############################################################################
63
 
# Command line handling
64
 
##############################################################################
65
 
#
66
 
# To set options:
67
 
#
68
 
#   $ rpmbuild --define="option <x>" ...
69
 
#
70
 
 
71
 
# ----------------------------------------------------------------------------
72
 
# Commercial builds
73
 
# ----------------------------------------------------------------------------
74
 
%if %{undefined commercial}
75
 
%define commercial 0
76
 
%endif
77
 
 
78
 
# ----------------------------------------------------------------------------
79
 
# Source name
80
 
# ----------------------------------------------------------------------------
81
 
%if %{undefined src_base}
82
 
%define src_base mysql
83
 
%endif
84
 
%define src_dir %{src_base}-%{mysql_version}
85
 
 
86
 
# ----------------------------------------------------------------------------
87
 
# Feature set (storage engines, options).  Default to community (everything)
88
 
# ----------------------------------------------------------------------------
89
 
%if %{undefined feature_set}
90
 
%define feature_set community
91
 
%endif
92
 
 
93
 
# ----------------------------------------------------------------------------
94
 
# Server comment strings
95
 
# ----------------------------------------------------------------------------
96
 
%if %{undefined compilation_comment_debug}
97
 
%define compilation_comment_debug       MySQL Community Server - Debug (GPL)
98
 
%endif
99
 
%if %{undefined compilation_comment_release}
100
 
%define compilation_comment_release     MySQL Community Server (GPL)
101
 
%endif
102
 
 
103
 
# ----------------------------------------------------------------------------
104
 
# Product and server suffixes
105
 
# ----------------------------------------------------------------------------
106
 
%if %{undefined product_suffix}
107
 
  %if %{defined short_product_tag}
108
 
    %define product_suffix      -%{short_product_tag}
109
 
  %else
110
 
    %define product_suffix      %{nil}
111
 
  %endif
112
 
%endif
113
 
 
114
 
%if %{undefined server_suffix}
115
 
%define server_suffix   %{nil}
116
 
%endif
117
 
 
118
 
# ----------------------------------------------------------------------------
119
 
# Distribution support
120
 
# ----------------------------------------------------------------------------
121
 
%if %{undefined distro_specific}
122
 
%define distro_specific 0
123
 
%endif
124
 
%if %{distro_specific}
125
 
  %if %(test -f /etc/enterprise-release && echo 1 || echo 0)
126
 
    %define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
127
 
    %if "%oelver" == "4"
128
 
      %define distro_description        Oracle Enterprise Linux 4
129
 
      %define distro_releasetag         oel4
130
 
      %define distro_buildreq           gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel cmake libaio-devel
131
 
      %define distro_requires           chkconfig coreutils grep procps shadow-utils net-tools
132
 
    %else
133
 
      %if "%oelver" == "5"
134
 
        %define distro_description      Oracle Enterprise Linux 5
135
 
        %define distro_releasetag       oel5
136
 
        %define distro_buildreq         gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel cmake libaio-devel
137
 
        %define distro_requires         chkconfig coreutils grep procps shadow-utils net-tools
138
 
      %else
139
 
        %{error:Oracle Enterprise Linux %{oelver} is unsupported}
140
 
      %endif
141
 
    %endif
142
 
  %else
143
 
    %if %(test -f /etc/oracle-release && echo 1 || echo 0)
144
 
      %define elver %(rpm -qf --qf '%%{version}\\n' /etc/oracle-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
145
 
      %if "%elver" == "6" || "%elver" == "7"
146
 
        %define distro_description      Oracle Linux %elver
147
 
        %define distro_releasetag       el%elver
148
 
        %define distro_buildreq         gcc-c++ ncurses-devel perl readline-devel time zlib-devel cmake libaio-devel
149
 
        %define distro_requires         chkconfig coreutils grep procps shadow-utils net-tools
150
 
      %else
151
 
        %{error:Oracle Linux %{elver} is unsupported}
152
 
      %endif
153
 
    %else
154
 
      %if %(test -f /etc/redhat-release && echo 1 || echo 0)
155
 
        %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
156
 
        %if "%rhelver" == "4"
157
 
          %define distro_description      Red Hat Enterprise Linux 4
158
 
          %define distro_releasetag       rhel4
159
 
          %define distro_buildreq         gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel cmake libaio-devel
160
 
          %define distro_requires         chkconfig coreutils grep procps shadow-utils net-tools
161
 
        %else
162
 
          %if "%rhelver" == "5"
163
 
            %define distro_description    Red Hat Enterprise Linux 5
164
 
            %define distro_releasetag     rhel5
165
 
            %define distro_buildreq       gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel cmake libaio-devel
166
 
            %define distro_requires       chkconfig coreutils grep procps shadow-utils net-tools
167
 
          %else
168
 
            %if "%rhelver" == "6"
169
 
              %define distro_description    Red Hat Enterprise Linux 6
170
 
              %define distro_releasetag     rhel6
171
 
              %define distro_buildreq       gcc-c++ ncurses-devel perl readline-devel time zlib-devel cmake libaio-devel
172
 
              %define distro_requires       chkconfig coreutils grep procps shadow-utils net-tools
173
 
            %else
174
 
              %{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
175
 
            %endif
176
 
          %endif
177
 
        %endif
178
 
      %else
179
 
        %if %(test -f /etc/SuSE-release && echo 1 || echo 0)
180
 
          %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
181
 
          %if "%susever" == "10"
182
 
            %define distro_description    SUSE Linux Enterprise Server 10
183
 
            %define distro_releasetag     sles10
184
 
            %define distro_buildreq       gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel cmake libaio-devel
185
 
            %define distro_requires       aaa_base coreutils grep procps pwdutils
186
 
          %else
187
 
            %if "%susever" == "11"
188
 
              %define distro_description  SUSE Linux Enterprise Server 11
189
 
              %define distro_releasetag   sles11
190
 
              %define distro_buildreq     gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel cmake libaio-devel
191
 
              %define distro_requires     aaa_base coreutils grep procps pwdutils
192
 
            %else
193
 
              %{error:SuSE %{susever} is unsupported}
194
 
            %endif
195
 
          %endif
196
 
        %else
197
 
          %{error:Unsupported distribution}
198
 
        %endif
199
 
      %endif
200
 
    %endif
201
 
  %endif
202
 
%else
203
 
  %define generic_kernel %(uname -r | cut -d. -f1-2)
204
 
  %define distro_description            Generic Linux (kernel %{generic_kernel})
205
 
  %define distro_releasetag             linux%{generic_kernel}
206
 
  %define distro_buildreq               gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
207
 
  %define distro_requires               coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
208
 
%endif
209
 
 
210
 
# Avoid debuginfo RPMs, leaves binaries unstripped
211
 
%define debug_package   %{nil}
212
 
 
213
 
# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
214
 
# test for __debug_package
215
 
%define __strip         /bin/true
216
 
 
217
 
# ----------------------------------------------------------------------------
218
 
# Support optional "tcmalloc" library (experimental)
219
 
# ----------------------------------------------------------------------------
220
 
%if %{defined malloc_lib_target}
221
 
%define WITH_TCMALLOC 1
222
 
%else
223
 
%define WITH_TCMALLOC 0
224
 
%endif
225
 
 
226
 
##############################################################################
227
 
# Configuration based upon above user input, not to be set directly
228
 
##############################################################################
229
 
 
230
 
%if 0%{?commercial}
231
 
%define license_files_server    %{src_dir}/LICENSE.mysql
232
 
%define license_type            Commercial
233
 
%else
234
 
%define license_files_server    %{src_dir}/COPYING %{src_dir}/README
235
 
%define license_type            GPL
236
 
%endif
237
 
 
238
 
##############################################################################
239
 
# Main spec file section
240
 
##############################################################################
241
 
 
242
 
Name:           MySQL%{product_suffix}
243
 
Summary:        MySQL: a very fast and reliable SQL database server
244
 
Group:          Applications/Databases
245
 
Version:        5.5.43
246
 
Release:        %{release}%{?distro_releasetag:.%{distro_releasetag}}
247
 
Distribution:   %{distro_description}
248
 
License:        Copyright (c) 2000, 2015, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
249
 
Source:         http://www.mysql.com/Downloads/MySQL-5.5/%{src_dir}.tar.gz
250
 
URL:            http://www.mysql.com/
251
 
Packager:       MySQL Release Engineering <mysql-build@oss.oracle.com> 
252
 
Vendor:         %{mysql_vendor}
253
 
BuildRequires:  %{distro_buildreq}
254
 
%{?el7:Patch0:         mysql-5.5-libmysqlclient-symbols.patch}
255
 
 
256
 
# Regression tests may take a long time, override the default to skip them 
257
 
%{!?runselftest:%global runselftest 1}
258
 
 
259
 
# Think about what you use here since the first step is to
260
 
# run a rm -rf
261
 
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
262
 
 
263
 
# From the manual
264
 
%description
265
 
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
266
 
and robust SQL (Structured Query Language) database server. MySQL Server
267
 
is intended for mission-critical, heavy-load production systems as well
268
 
as for embedding into mass-deployed software. MySQL is a trademark of
269
 
%{mysql_vendor}
270
 
 
271
 
The MySQL software has Dual Licensing, which means you can use the MySQL
272
 
software free of charge under the GNU General Public License
273
 
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
274
 
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
275
 
the GPL. See the chapter "Licensing and Support" in the manual for
276
 
further info.
277
 
 
278
 
The MySQL web site (http://www.mysql.com/) provides the latest
279
 
news and information about the MySQL software. Also please see the
280
 
documentation and the manual for more information.
281
 
 
282
 
##############################################################################
283
 
# Sub package definition
284
 
##############################################################################
285
 
 
286
 
%package -n MySQL-server%{product_suffix}
287
 
Summary:        MySQL: a very fast and reliable SQL database server
288
 
Group:          Applications/Databases
289
 
Requires:       %{distro_requires}
290
 
%if 0%{?commercial}
291
 
Obsoletes:      MySQL-server
292
 
%else
293
 
Obsoletes:      MySQL-server-advanced
294
 
%endif
295
 
Obsoletes:      mysql-server < %{version}-%{release}
296
 
Obsoletes:      mysql-server-advanced
297
 
Obsoletes:      MySQL-server-classic MySQL-server-community MySQL-server-enterprise
298
 
Obsoletes:      MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
299
 
Provides:       mysql-server = %{version}-%{release}
300
 
Provides:       mysql-server%{?_isa} = %{version}-%{release}
301
 
 
302
 
%description -n MySQL-server%{product_suffix}
303
 
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
304
 
and robust SQL (Structured Query Language) database server. MySQL Server
305
 
is intended for mission-critical, heavy-load production systems as well
306
 
as for embedding into mass-deployed software. MySQL is a trademark of
307
 
%{mysql_vendor}
308
 
 
309
 
The MySQL software has Dual Licensing, which means you can use the MySQL
310
 
software free of charge under the GNU General Public License
311
 
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
312
 
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
313
 
the GPL. See the chapter "Licensing and Support" in the manual for
314
 
further info.
315
 
 
316
 
The MySQL web site (http://www.mysql.com/) provides the latest news and 
317
 
information about the MySQL software.  Also please see the documentation
318
 
and the manual for more information.
319
 
 
320
 
This package includes the MySQL server binary as well as related utilities
321
 
to run and administer a MySQL server.
322
 
 
323
 
If you want to access and work with the database, you have to install
324
 
package "MySQL-client%{product_suffix}" as well!
325
 
 
326
 
# ----------------------------------------------------------------------------
327
 
%package -n MySQL-client%{product_suffix}
328
 
Summary:        MySQL - Client
329
 
Group:          Applications/Databases
330
 
%if 0%{?commercial}
331
 
Obsoletes:      MySQL-client
332
 
%else
333
 
Obsoletes:      MySQL-client-advanced
334
 
%endif
335
 
Obsoletes:      mysql < %{version}-%{release}
336
 
Obsoletes:      mysql-advanced < %{version}-%{release}
337
 
Obsoletes:      MySQL-client-classic MySQL-client-community MySQL-client-enterprise
338
 
Obsoletes:      MySQL-client-advanced-gpl MySQL-client-enterprise-gpl
339
 
Provides:       mysql = %{version}-%{release} 
340
 
Provides:       mysql%{?_isa} = %{version}-%{release}
341
 
 
342
 
%description -n MySQL-client%{product_suffix}
343
 
This package contains the standard MySQL clients and administration tools.
344
 
 
345
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
346
 
 
347
 
# ----------------------------------------------------------------------------
348
 
%package -n MySQL-test%{product_suffix}
349
 
Summary:        MySQL - Test suite
350
 
Group:          Applications/Databases
351
 
%if 0%{?commercial}
352
 
Requires:       MySQL-client-advanced perl
353
 
Obsoletes:      MySQL-test
354
 
%else
355
 
Requires:       MySQL-client perl
356
 
Obsoletes:      MySQL-test-advanced
357
 
%endif
358
 
Obsoletes:      mysql-test < %{version}-%{release}
359
 
Obsoletes:      mysql-test-advanced
360
 
Obsoletes:      mysql-bench MySQL-bench
361
 
Obsoletes:      MySQL-test-classic MySQL-test-community MySQL-test-enterprise
362
 
Obsoletes:      MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
363
 
Provides:       mysql-test = %{version}-%{release}
364
 
Provides:       mysql-test%{?_isa} = %{version}-%{release}
365
 
AutoReqProv:    no
366
 
 
367
 
%description -n MySQL-test%{product_suffix}
368
 
This package contains the MySQL regression test suite.
369
 
 
370
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
371
 
 
372
 
# ----------------------------------------------------------------------------
373
 
%package -n MySQL-devel%{product_suffix}
374
 
Summary:        MySQL - Development header files and libraries
375
 
Group:          Applications/Databases
376
 
%if 0%{?commercial}
377
 
Obsoletes:      MySQL-devel
378
 
%else
379
 
Obsoletes:      MySQL-devel-advanced
380
 
%endif
381
 
Obsoletes:      mysql-devel < %{version}-%{release}
382
 
Obsoletes:      mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
383
 
Obsoletes:      MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
384
 
Obsoletes:      MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
385
 
Provides:       mysql-devel = %{version}-%{release}
386
 
Provides:       mysql-devel%{?_isa} = %{version}-%{release}
387
 
 
388
 
%description -n MySQL-devel%{product_suffix}
389
 
This package contains the development header files and libraries necessary
390
 
to develop MySQL client applications.
391
 
 
392
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
393
 
 
394
 
# ----------------------------------------------------------------------------
395
 
%package -n MySQL-shared%{product_suffix}
396
 
Summary:        MySQL - Shared libraries
397
 
Group:          Applications/Databases
398
 
%if 0%{?commercial}
399
 
Obsoletes:      MySQL-shared
400
 
%else
401
 
Obsoletes:      MySQL-shared-advanced
402
 
%endif
403
 
Obsoletes:      MySQL-shared-standard MySQL-shared-pro
404
 
Obsoletes:      MySQL-shared-pro-cert MySQL-shared-pro-gpl
405
 
Obsoletes:      MySQL-shared-pro-gpl-cert
406
 
Obsoletes:      MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise
407
 
Obsoletes:      MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl
408
 
 
409
 
%description -n MySQL-shared%{product_suffix}
410
 
This package contains the shared libraries (*.so*) which certain languages
411
 
and applications need to dynamically load and use MySQL.
412
 
 
413
 
# ----------------------------------------------------------------------------
414
 
%package -n MySQL-embedded%{product_suffix}
415
 
Summary:        MySQL - Embedded library
416
 
Group:          Applications/Databases
417
 
%if 0%{?commercial}
418
 
Requires:       MySQL-devel-advanced
419
 
Obsoletes:      MySQL-embedded
420
 
%else
421
 
Requires:       MySQL-devel
422
 
Obsoletes:      MySQL-embedded-advanced
423
 
%endif
424
 
Obsoletes:      mysql-embedded < %{version}-%{release}
425
 
Obsoletes:      mysql-embedded-advanced
426
 
Obsoletes:      MySQL-embedded-pro
427
 
Obsoletes:      MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise
428
 
Obsoletes:      MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl
429
 
Provides:       mysql-embedded = %{version}-%{release}
430
 
Provides:       mysql-emdedded%{?_isa} = %{version}-%{release}
431
 
 
432
 
%description -n MySQL-embedded%{product_suffix}
433
 
This package contains the MySQL server as an embedded library.
434
 
 
435
 
The embedded MySQL server library makes it possible to run a full-featured
436
 
MySQL server inside the client application. The main benefits are increased
437
 
speed and more simple management for embedded applications.
438
 
 
439
 
The API is identical for the embedded MySQL version and the
440
 
client/server version.
441
 
 
442
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
443
 
 
444
 
##############################################################################
445
 
%prep
446
 
%setup -T -a 0 -c -n %{src_dir}
447
 
pushd %{src_dir}
448
 
%{?el7:%patch0 -p1}
449
 
##############################################################################
450
 
%build
451
 
 
452
 
# Fail quickly and obviously if user tries to build as root
453
 
%if %runselftest
454
 
    if [ x"`id -u`" = x0 ]; then
455
 
        echo "The MySQL regression tests may fail if run as root."
456
 
        echo "If you really need to build the RPM as root, use"
457
 
        echo "--define='runselftest 0' to skip the regression tests."
458
 
        exit 1
459
 
    fi
460
 
%endif
461
 
 
462
 
# Be strict about variables, bail at earliest opportunity, etc.
463
 
set -eu
464
 
 
465
 
# Optional package files
466
 
touch optional-files-devel
467
 
 
468
 
#
469
 
# Set environment in order of preference, MYSQL_BUILD_* first, then variable
470
 
# name, finally a default.  RPM_OPT_FLAGS is assumed to be a part of the
471
 
# default RPM build environment.
472
 
#
473
 
# We set CXX=gcc by default to support so-called 'generic' binaries, where we
474
 
# do not have a dependancy on libgcc/libstdc++.  This only works while we do
475
 
# not require C++ features such as exceptions, and may need to be removed at
476
 
# a later date.
477
 
#
478
 
 
479
 
# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
480
 
# the compile in cmd-line-utils/readline - needs investigation, but for now
481
 
# we simply unset it and use those specified directly in cmake.
482
 
%if "%{_arch}" == "ia64"
483
 
RPM_OPT_FLAGS=
484
 
%endif
485
 
 
486
 
export PATH=${MYSQL_BUILD_PATH:-$PATH}
487
 
export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
488
 
export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
489
 
export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
490
 
export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
491
 
export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
492
 
export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
493
 
export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-}
494
 
 
495
 
# Build debug mysqld and libmysqld.a
496
 
mkdir debug
497
 
(
498
 
  cd debug
499
 
  # Attempt to remove any optimisation flags from the debug build
500
 
  CFLAGS=`echo " ${CFLAGS} " | \
501
 
            sed -e 's/ -O[0-9]* / /' \
502
 
                -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
503
 
                -e 's/ -unroll2 / /' \
504
 
                -e 's/ -ip / /' \
505
 
                -e 's/^ //' \
506
 
                -e 's/ $//'`
507
 
  CXXFLAGS=`echo " ${CXXFLAGS} " | \
508
 
              sed -e 's/ -O[0-9]* / /' \
509
 
                  -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
510
 
                  -e 's/ -unroll2 / /' \
511
 
                  -e 's/ -ip / /' \
512
 
                  -e 's/^ //' \
513
 
                  -e 's/ $//'`
514
 
  # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
515
 
  # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
516
 
  ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
517
 
           -DCMAKE_BUILD_TYPE=Debug \
518
 
           -DENABLE_DTRACE=OFF \
519
 
           -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
520
 
           -DFEATURE_SET="%{feature_set}" \
521
 
           -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
522
 
           -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
523
 
  echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
524
 
  make ${MAKE_JFLAG} VERBOSE=1
525
 
)
526
 
# Build full release
527
 
mkdir release
528
 
(
529
 
  cd release
530
 
  # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
531
 
  # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
532
 
  ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
533
 
           -DCMAKE_BUILD_TYPE=RelWithDebInfo \
534
 
           -DENABLE_DTRACE=OFF \
535
 
           -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
536
 
           -DFEATURE_SET="%{feature_set}" \
537
 
           -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
538
 
           -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
539
 
  echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
540
 
  make ${MAKE_JFLAG} VERBOSE=1
541
 
)
542
 
 
543
 
%if %runselftest
544
 
  MTR_BUILD_THREAD=auto
545
 
  export MTR_BUILD_THREAD
546
 
 
547
 
  (cd release && make test-bt-fast || true)
548
 
%endif
549
 
 
550
 
##############################################################################
551
 
%install
552
 
 
553
 
RBR=$RPM_BUILD_ROOT
554
 
MBD=$RPM_BUILD_DIR/%{src_dir}
555
 
 
556
 
# Ensure that needed directories exists
557
 
install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
558
 
install -d $RBR%{mysqldatadir}/mysql
559
 
install -d $RBR%{_datadir}/mysql-test
560
 
install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
561
 
install -d $RBR%{_includedir}
562
 
install -d $RBR%{_libdir}
563
 
install -d $RBR%{_mandir}
564
 
install -d $RBR%{_sbindir}
565
 
 
566
 
mkdir -p $RBR%{_sysconfdir}/my.cnf.d
567
 
 
568
 
# Install all binaries
569
 
(
570
 
  cd $MBD/release
571
 
  make DESTDIR=$RBR install
572
 
)
573
 
 
574
 
# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921).  Do
575
 
# this in a sub-shell to ensure we don't pollute the install environment
576
 
# with compiler bits.
577
 
(
578
 
  PATH=${MYSQL_BUILD_PATH:-$PATH}
579
 
  CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
580
 
  CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
581
 
  if "${CC}" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1; then
582
 
    libgcc=`${CC} ${CFLAGS} --print-libgcc-file`
583
 
    if [ -f ${libgcc} ]; then
584
 
      mkdir -p $RBR%{_libdir}/mysql
585
 
      install -m 644 ${libgcc} $RBR%{_libdir}/mysql/libmygcc.a
586
 
      echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
587
 
    fi
588
 
  fi
589
 
)
590
 
 
591
 
# FIXME: at some point we should stop doing this and just install everything
592
 
# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
593
 
# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
594
 
mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
595
 
 
596
 
# Install logrotate and autostart
597
 
install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
598
 
install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
599
 
 
600
 
# Create a symlink "rcmysql", pointing to the init.script. SuSE users
601
 
# will appreciate that, as all services usually offer this.
602
 
ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
603
 
 
604
 
# Touch the place where the my.cnf config file might be located
605
 
# Just to make sure it's in the file list and marked as a config file
606
 
touch $RBR%{_sysconfdir}/my.cnf
607
 
 
608
 
# Install SELinux files in datadir
609
 
install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \
610
 
  $RBR%{_datadir}/mysql/SELinux/RHEL4
611
 
 
612
 
%if %{WITH_TCMALLOC}
613
 
# Even though this is a shared library, put it under /usr/lib*/mysql, so it
614
 
# doesn't conflict with possible shared lib by the same name in /usr/lib*.  See
615
 
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
616
 
install -m 644 "%{malloc_lib_source}" \
617
 
  "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
618
 
%endif
619
 
 
620
 
# Remove man pages we explicitly do not want to package, avoids 'unpackaged
621
 
# files' warning.
622
 
# This has become obsolete:  rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
623
 
 
624
 
##############################################################################
625
 
#  Post processing actions, i.e. when installed
626
 
##############################################################################
627
 
 
628
 
%pre -n MySQL-server%{product_suffix}
629
 
# This is the code running at the beginning of a RPM upgrade action,
630
 
# before replacing the old files with the new ones.
631
 
 
632
 
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
633
 
 
634
 
# There are users who deviate from the default file system layout.
635
 
# Check local settings to support them.
636
 
if [ -x %{_bindir}/my_print_defaults ]
637
 
then
638
 
  mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
639
 
  PID_FILE_PATT=`%{_bindir}/my_print_defaults server mysqld | grep '^--pid-file=' | sed -n 's/--pid-file=//p'`
640
 
fi
641
 
if [ -z "$mysql_datadir" ]
642
 
then
643
 
  mysql_datadir=%{mysqldatadir}
644
 
fi
645
 
if [ -z "$PID_FILE_PATT" ]
646
 
then
647
 
  PID_FILE_PATT="$mysql_datadir/*.pid"
648
 
fi
649
 
 
650
 
# Check if we can safely upgrade.  An upgrade is only safe if it's from one
651
 
# of our RPMs in the same version family.
652
 
 
653
 
# Handle both ways of spelling the capability.
654
 
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
655
 
if [ $? -ne 0 -o -z "$installed" ]; then
656
 
  installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
657
 
fi
658
 
if [ $? -eq 0 -a -n "$installed" ]; then
659
 
  installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
660
 
  vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
661
 
  version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
662
 
  myoldvendor='%{mysql_old_vendor}'
663
 
  myvendor_2='%{mysql_vendor_2}'
664
 
  myvendor='%{mysql_vendor}'
665
 
  myversion='%{mysql_version}'
666
 
 
667
 
  old_family=`echo $version \
668
 
    | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
669
 
  new_family=`echo $myversion \
670
 
    | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
671
 
 
672
 
  [ -z "$vendor" ] && vendor='<unknown>'
673
 
  [ -z "$old_family" ] && old_family="<unrecognized version $version>"
674
 
  [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
675
 
 
676
 
  error_text=
677
 
  if [ "$vendor" != "$myoldvendor" \
678
 
    -a "$vendor" != "$myvendor_2" \
679
 
    -a "$vendor" != "$myvendor" ]; then
680
 
    error_text="$error_text
681
 
The current MySQL server package is provided by a different
682
 
vendor ($vendor) than $myoldvendor, $myvendor_2, or $myvendor.
683
 
Some files may be installed to different locations, including log
684
 
files and the service startup script in %{_sysconfdir}/init.d/.
685
 
"
686
 
  fi
687
 
 
688
 
  if [ "$old_family" != "$new_family" ]; then
689
 
    error_text="$error_text
690
 
Upgrading directly from MySQL $old_family to MySQL $new_family may not
691
 
be safe in all cases.  A manual dump and restore using mysqldump is
692
 
recommended.  It is important to review the MySQL manual's Upgrading
693
 
section for version-specific incompatibilities.
694
 
"
695
 
  fi
696
 
 
697
 
  if [ -n "$error_text" ]; then
698
 
    cat <<HERE >&2
699
 
 
700
 
******************************************************************
701
 
A MySQL server package ($installed) is installed.
702
 
$error_text
703
 
A manual upgrade is required.
704
 
 
705
 
- Ensure that you have a complete, working backup of your data and my.cnf
706
 
  files
707
 
- Shut down the MySQL server cleanly
708
 
- Remove the existing MySQL packages.  Usually this command will
709
 
  list the packages you should remove:
710
 
  rpm -qa | grep -i '^mysql-'
711
 
 
712
 
  You may choose to use 'rpm --nodeps -ev <package-name>' to remove
713
 
  the package which contains the mysqlclient shared library.  The
714
 
  library will be reinstalled by the MySQL-shared-compat package.
715
 
- Install the new MySQL packages supplied by $myvendor
716
 
- Ensure that the MySQL server is started
717
 
- Run the 'mysql_upgrade' program
718
 
 
719
 
This is a brief description of the upgrade process.  Important details
720
 
can be found in the MySQL manual, in the Upgrading section.
721
 
******************************************************************
722
 
HERE
723
 
    exit 1
724
 
  fi
725
 
fi
726
 
 
727
 
# We assume that if there is exactly one ".pid" file,
728
 
# it contains the valid PID of a running MySQL server.
729
 
NR_PID_FILES=`ls -1 $PID_FILE_PATT 2>/dev/null | wc -l`
730
 
case $NR_PID_FILES in
731
 
        0 ) SERVER_TO_START=''  ;;  # No "*.pid" file == no running server
732
 
        1 ) SERVER_TO_START='true' ;;
733
 
        * ) SERVER_TO_START=''      # Situation not clear
734
 
            SEVERAL_PID_FILES=true ;;
735
 
esac
736
 
# That logic may be debated: We might check whether it is non-empty,
737
 
# contains exactly one number (possibly a PID), and whether "ps" finds it.
738
 
# OTOH, if there is no such process, it means a crash without a cleanup -
739
 
# is that a reason not to start a new server after upgrade?
740
 
 
741
 
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
742
 
 
743
 
if [ -f $STATUS_FILE ]; then
744
 
        echo "Some previous upgrade was not finished:"
745
 
        ls -ld $STATUS_FILE
746
 
        echo "Please check its status, then do"
747
 
        echo "    rm $STATUS_FILE"
748
 
        echo "before repeating the MySQL upgrade."
749
 
        exit 1
750
 
elif [ -n "$SEVERAL_PID_FILES" ] ; then
751
 
        echo "You have more than one PID file:"
752
 
        ls -ld $PID_FILE_PATT
753
 
        echo "Please check which one (if any) corresponds to a running server"
754
 
        echo "and delete all others before repeating the MySQL upgrade."
755
 
        exit 1
756
 
fi
757
 
 
758
 
NEW_VERSION=%{mysql_version}-%{release}
759
 
 
760
 
# The "pre" section code is also run on a first installation,
761
 
# when there  is no data directory yet. Protect against error messages.
762
 
if [ -d $mysql_datadir ] ; then
763
 
        echo "MySQL RPM upgrade to version $NEW_VERSION"  > $STATUS_FILE
764
 
        echo "'pre' step running at `date`"          >> $STATUS_FILE
765
 
        echo                                         >> $STATUS_FILE
766
 
        fcount=`ls -ltr $mysql_datadir/*.err 2>/dev/null | wc -l`       
767
 
        if [ $fcount -gt 0 ] ; then
768
 
             echo "ERR file(s):"                          >> $STATUS_FILE
769
 
             ls -ltr $mysql_datadir/*.err                 >> $STATUS_FILE
770
 
             echo                                         >> $STATUS_FILE
771
 
             echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
772
 
             grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
773
 
                tail -1                              >> $STATUS_FILE
774
 
             echo                                         >> $STATUS_FILE
775
 
        fi
776
 
 
777
 
        if [ -n "$SERVER_TO_START" ] ; then
778
 
                # There is only one PID file, race possibility ignored
779
 
                echo "PID file:"                           >> $STATUS_FILE
780
 
                ls -l   $PID_FILE_PATT                     >> $STATUS_FILE
781
 
                cat     $PID_FILE_PATT                     >> $STATUS_FILE
782
 
                echo                                       >> $STATUS_FILE
783
 
                echo "Server process:"                     >> $STATUS_FILE
784
 
                ps -fp `cat $PID_FILE_PATT`                >> $STATUS_FILE
785
 
                echo                                       >> $STATUS_FILE
786
 
                echo "SERVER_TO_START=$SERVER_TO_START"    >> $STATUS_FILE
787
 
        else
788
 
                # Take a note we checked it ...
789
 
                echo "PID file:"                           >> $STATUS_FILE
790
 
                ls -l   $PID_FILE_PATT                     >> $STATUS_FILE 2>&1
791
 
        fi
792
 
fi
793
 
 
794
 
# Shut down a previously installed server first
795
 
# Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
796
 
# so a "stop" is attempted even if there is no PID file.
797
 
# (Maybe the "stop" doesn't work then, but we might fix that in itself.)
798
 
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
799
 
        %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
800
 
        echo "Giving mysqld 5 seconds to exit nicely"
801
 
        sleep 5
802
 
fi
803
 
 
804
 
%post -n MySQL-server%{product_suffix}
805
 
# This is the code running at the end of a RPM install or upgrade action,
806
 
# after the (new) files have been written.
807
 
 
808
 
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
809
 
 
810
 
# There are users who deviate from the default file system layout.
811
 
# Check local settings to support them.
812
 
if [ -x %{_bindir}/my_print_defaults ]
813
 
then
814
 
  mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
815
 
fi
816
 
if [ -z "$mysql_datadir" ]
817
 
then
818
 
  mysql_datadir=%{mysqldatadir}
819
 
fi
820
 
 
821
 
NEW_VERSION=%{mysql_version}-%{release}
822
 
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
823
 
 
824
 
# ----------------------------------------------------------------------
825
 
# Create data directory if needed, check whether upgrade or install
826
 
# ----------------------------------------------------------------------
827
 
if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
828
 
if [ -f $STATUS_FILE ] ; then
829
 
        SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
830
 
else
831
 
        SERVER_TO_START=''
832
 
fi
833
 
# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
834
 
if [ ! -d $mysql_datadir/mysql ] ; then
835
 
        mkdir $mysql_datadir/mysql $mysql_datadir/test
836
 
        echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
837
 
else
838
 
        # If the directory exists, we may assume it is an upgrade.
839
 
        echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
840
 
fi
841
 
 
842
 
# ----------------------------------------------------------------------
843
 
# Make MySQL start/shutdown automatically when the machine does it.
844
 
# ----------------------------------------------------------------------
845
 
# NOTE: This still needs to be debated. Should we check whether these links
846
 
# for the other run levels exist(ed) before the upgrade?
847
 
# use chkconfig on Enterprise Linux and newer SuSE releases
848
 
if [ -x /sbin/chkconfig ] ; then
849
 
        /sbin/chkconfig --add mysql
850
 
# use insserv for older SuSE Linux versions
851
 
elif [ -x /sbin/insserv ] ; then
852
 
        /sbin/insserv %{_sysconfdir}/init.d/mysql
853
 
fi
854
 
 
855
 
# ----------------------------------------------------------------------
856
 
# Create a MySQL user and group. Do not report any problems if it already
857
 
# exists.
858
 
# ----------------------------------------------------------------------
859
 
groupadd -r %{mysqld_group} 2> /dev/null || true
860
 
useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
861
 
  -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
862
 
# The user may already exist, make sure it has the proper group nevertheless
863
 
# (BUG#12823)
864
 
usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
865
 
 
866
 
# ----------------------------------------------------------------------
867
 
# Change permissions so that the user that will run the MySQL daemon
868
 
# owns all database files.
869
 
# ----------------------------------------------------------------------
870
 
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
871
 
 
872
 
# ----------------------------------------------------------------------
873
 
# Initiate databases if needed
874
 
# ----------------------------------------------------------------------
875
 
if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
876
 
        # Fix bug#45415: no "mysql_install_db" on an upgrade
877
 
        # Do this as a negative to err towards more "install" runs
878
 
        # rather than to miss one.
879
 
        %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
880
 
fi
881
 
 
882
 
# ----------------------------------------------------------------------
883
 
# Upgrade databases if needed would go here - but it cannot be automated yet
884
 
# ----------------------------------------------------------------------
885
 
 
886
 
# ----------------------------------------------------------------------
887
 
# Change permissions again to fix any new files.
888
 
# ----------------------------------------------------------------------
889
 
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
890
 
 
891
 
# ----------------------------------------------------------------------
892
 
# Fix permissions for the permission database so that only the user
893
 
# can read them.
894
 
# ----------------------------------------------------------------------
895
 
chmod -R og-rw $mysql_datadir/mysql
896
 
 
897
 
# ----------------------------------------------------------------------
898
 
# install SELinux files - but don't override existing ones
899
 
# ----------------------------------------------------------------------
900
 
SETARGETDIR=/etc/selinux/targeted/src/policy
901
 
SEDOMPROG=$SETARGETDIR/domains/program
902
 
SECONPROG=$SETARGETDIR/file_contexts/program
903
 
if [ -f /etc/redhat-release ] \
904
 
 && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
905
 
 || grep -q "CentOS release 4" /etc/redhat-release) ; then
906
 
  echo
907
 
  echo
908
 
  echo 'Notes regarding SELinux on this platform:'
909
 
  echo '========================================='
910
 
  echo
911
 
  echo 'The default policy might cause server startup to fail because it is'
912
 
  echo 'not allowed to access critical files.  In this case, please update'
913
 
  echo 'your installation.'
914
 
  echo
915
 
  echo 'The default policy might also cause inavailability of SSL related'
916
 
  echo 'features because the server is not allowed to access /dev/random'
917
 
  echo 'and /dev/urandom. If this is a problem, please do the following:'
918
 
  echo
919
 
  echo '  1) install selinux-policy-targeted-sources from your OS vendor'
920
 
  echo '  2) add the following two lines to '$SEDOMPROG/mysqld.te':'
921
 
  echo '       allow mysqld_t random_device_t:chr_file read;'
922
 
  echo '       allow mysqld_t urandom_device_t:chr_file read;'
923
 
  echo '  3) cd to '$SETARGETDIR' and issue the following command:'
924
 
  echo '       make load'
925
 
  echo
926
 
  echo
927
 
fi
928
 
 
929
 
if [ -x sbin/restorecon ] ; then
930
 
  sbin/restorecon -R var/lib/mysql
931
 
fi
932
 
 
933
 
# Was the server running before the upgrade? If so, restart the new one.
934
 
if [ "$SERVER_TO_START" = "true" ] ; then
935
 
        # Restart in the same way that mysqld will be started normally.
936
 
        if [ -x %{_sysconfdir}/init.d/mysql ] ; then
937
 
                %{_sysconfdir}/init.d/mysql start
938
 
                echo "Giving mysqld 5 seconds to start"
939
 
                sleep 5
940
 
        fi
941
 
fi
942
 
 
943
 
# Collect an upgrade history ...
944
 
echo "Upgrade/install finished at `date`"        >> $STATUS_FILE
945
 
echo                                             >> $STATUS_FILE
946
 
echo "====="                                     >> $STATUS_FILE
947
 
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
948
 
cat $STATUS_FILE >> $STATUS_HISTORY
949
 
mv -f  $STATUS_FILE ${STATUS_FILE}-LAST  # for "triggerpostun"
950
 
 
951
 
 
952
 
#echo "Thank you for installing the MySQL Community Server! For Production
953
 
#systems, we recommend MySQL Enterprise, which contains enterprise-ready
954
 
#software, intelligent advisory services, and full production support with
955
 
#scheduled service packs and more.  Visit www.mysql.com/enterprise for more
956
 
#information."
957
 
 
958
 
%preun -n MySQL-server%{product_suffix}
959
 
 
960
 
# Which '$1' does this refer to?  Fedora docs have info:
961
 
# " ... a count of the number of versions of the package that are installed.
962
 
#   Action                           Count
963
 
#   Install the first time           1
964
 
#   Upgrade                          2 or higher (depending on the number of versions installed)
965
 
#   Remove last version of package   0 "
966
 
#
967
 
#  http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
968
 
 
969
 
if [ $1 = 0 ] ; then
970
 
        # Stop MySQL before uninstalling it
971
 
        if [ -x %{_sysconfdir}/init.d/mysql ] ; then
972
 
                %{_sysconfdir}/init.d/mysql stop > /dev/null
973
 
                # Remove autostart of MySQL
974
 
                # use chkconfig on Enterprise Linux and newer SuSE releases
975
 
                if [ -x /sbin/chkconfig ] ; then
976
 
                        /sbin/chkconfig --del mysql
977
 
                # For older SuSE Linux versions
978
 
                elif [ -x /sbin/insserv ] ; then
979
 
                        /sbin/insserv -r %{_sysconfdir}/init.d/mysql
980
 
                fi
981
 
        fi
982
 
fi
983
 
 
984
 
# We do not remove the mysql user since it may still own a lot of
985
 
# database files.
986
 
 
987
 
%triggerpostun -n MySQL-server%{product_suffix} --MySQL-server-community
988
 
 
989
 
# Setup: We renamed this package, so any existing "server-community"
990
 
#   package will be removed when this "server" is installed.
991
 
# Problem: RPM will first run the "pre" and "post" sections of this script,
992
 
#   and only then the "preun" of that old community server.
993
 
#   But this "preun" includes stopping the server and uninstalling the service,
994
 
#   "chkconfig --del mysql" which removes the symlinks to the start script.
995
 
# Solution: *After* the community server got removed, restart this server
996
 
#   and re-install the service.
997
 
#
998
 
# For information about triggers in spec files, see the Fedora docs:
999
 
#   http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
1000
 
# For all details of this code, see the "pre" and "post" sections.
1001
 
 
1002
 
# There are users who deviate from the default file system layout.
1003
 
# Check local settings to support them.
1004
 
if [ -x %{_bindir}/my_print_defaults ]
1005
 
then
1006
 
  mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
1007
 
fi
1008
 
if [ -z "$mysql_datadir" ]
1009
 
then
1010
 
  mysql_datadir=%{mysqldatadir}
1011
 
fi
1012
 
 
1013
 
NEW_VERSION=%{mysql_version}-%{release}
1014
 
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST  # Note the difference!
1015
 
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
1016
 
 
1017
 
if [ -f $STATUS_FILE ] ; then
1018
 
        SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
1019
 
else
1020
 
        # This should never happen, but let's be prepared
1021
 
        SERVER_TO_START=''
1022
 
fi
1023
 
echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
1024
 
 
1025
 
if [ -x /sbin/chkconfig ] ; then
1026
 
        /sbin/chkconfig --add mysql
1027
 
# use insserv for older SuSE Linux versions
1028
 
elif [ -x /sbin/insserv ] ; then
1029
 
        /sbin/insserv %{_sysconfdir}/init.d/mysql
1030
 
fi
1031
 
 
1032
 
# Was the server running before the upgrade? If so, restart the new one.
1033
 
if [ "$SERVER_TO_START" = "true" ] ; then
1034
 
        # Restart in the same way that mysqld will be started normally.
1035
 
        if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1036
 
                %{_sysconfdir}/init.d/mysql start
1037
 
                echo "Giving mysqld 5 seconds to start"
1038
 
                sleep 5
1039
 
        fi
1040
 
fi
1041
 
 
1042
 
echo "Trigger 'postun --community' finished at `date`"        >> $STATUS_HISTORY
1043
 
echo                                             >> $STATUS_HISTORY
1044
 
echo "====="                                     >> $STATUS_HISTORY
1045
 
 
1046
 
 
1047
 
# ----------------------------------------------------------------------
1048
 
# Clean up the BuildRoot after build is done
1049
 
# ----------------------------------------------------------------------
1050
 
%clean
1051
 
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
1052
 
  && rm -rf $RPM_BUILD_ROOT;
1053
 
 
1054
 
##############################################################################
1055
 
#  Files section
1056
 
##############################################################################
1057
 
 
1058
 
%files -n MySQL-server%{product_suffix} -f release/support-files/plugins.files
1059
 
%defattr(-,root,root,0755)
1060
 
 
1061
 
%if %{defined license_files_server}
1062
 
%doc %{license_files_server}
1063
 
%endif
1064
 
%doc %{src_dir}/Docs/ChangeLog
1065
 
%doc %{src_dir}/Docs/INFO_SRC*
1066
 
%doc release/Docs/INFO_BIN*
1067
 
%doc release/support-files/my-*.cnf
1068
 
 
1069
 
%if 0%{?commercial}
1070
 
%doc %attr(644, root, root) %{_infodir}/mysql.info*
1071
 
%endif
1072
 
 
1073
 
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
1074
 
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
1075
 
%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
1076
 
%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
1077
 
%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
1078
 
%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
1079
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
1080
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
1081
 
%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
1082
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
1083
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
1084
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
1085
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
1086
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
1087
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
1088
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
1089
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
1090
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
1091
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
1092
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
1093
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
1094
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1095
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
1096
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
1097
 
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
1098
 
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
1099
 
%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
1100
 
%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
1101
 
 
1102
 
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1103
 
%dir %{_sysconfdir}/my.cnf.d
1104
 
 
1105
 
%attr(755, root, root) %{_bindir}/innochecksum
1106
 
%attr(755, root, root) %{_bindir}/my_print_defaults
1107
 
%attr(755, root, root) %{_bindir}/myisam_ftdump
1108
 
%attr(755, root, root) %{_bindir}/myisamchk
1109
 
%attr(755, root, root) %{_bindir}/myisamlog
1110
 
%attr(755, root, root) %{_bindir}/myisampack
1111
 
%attr(755, root, root) %{_bindir}/mysql_convert_table_format
1112
 
%attr(755, root, root) %{_bindir}/mysql_fix_extensions
1113
 
%attr(755, root, root) %{_bindir}/mysql_install_db
1114
 
%attr(755, root, root) %{_bindir}/mysql_plugin
1115
 
%attr(755, root, root) %{_bindir}/mysql_secure_installation
1116
 
%attr(755, root, root) %{_bindir}/mysql_setpermission
1117
 
%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
1118
 
%attr(755, root, root) %{_bindir}/mysql_upgrade
1119
 
%attr(755, root, root) %{_bindir}/mysql_zap
1120
 
%attr(755, root, root) %{_bindir}/mysqlbug
1121
 
%attr(755, root, root) %{_bindir}/mysqld_multi
1122
 
%attr(755, root, root) %{_bindir}/mysqld_safe
1123
 
%attr(755, root, root) %{_bindir}/mysqldumpslow
1124
 
%attr(755, root, root) %{_bindir}/mysqlhotcopy
1125
 
%attr(755, root, root) %{_bindir}/mysqltest
1126
 
%attr(755, root, root) %{_bindir}/perror
1127
 
%attr(755, root, root) %{_bindir}/replace
1128
 
%attr(755, root, root) %{_bindir}/resolve_stack_dump
1129
 
%attr(755, root, root) %{_bindir}/resolveip
1130
 
 
1131
 
%attr(755, root, root) %{_sbindir}/mysqld
1132
 
%attr(755, root, root) %{_sbindir}/mysqld-debug
1133
 
%attr(755, root, root) %{_sbindir}/rcmysql
1134
 
%attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1135
 
 
1136
 
%if %{WITH_TCMALLOC}
1137
 
%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1138
 
%endif
1139
 
 
1140
 
%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
1141
 
%attr(755, root, root) %{_sysconfdir}/init.d/mysql
1142
 
 
1143
 
%attr(755, root, root) %{_datadir}/mysql/
1144
 
 
1145
 
# ----------------------------------------------------------------------------
1146
 
%files -n MySQL-client%{product_suffix}
1147
 
 
1148
 
%defattr(-, root, root, 0755)
1149
 
%attr(755, root, root) %{_bindir}/msql2mysql
1150
 
%attr(755, root, root) %{_bindir}/mysql
1151
 
%attr(755, root, root) %{_bindir}/mysql_find_rows
1152
 
%attr(755, root, root) %{_bindir}/mysql_waitpid
1153
 
%attr(755, root, root) %{_bindir}/mysqlaccess
1154
 
# XXX: This should be moved to %{_sysconfdir}
1155
 
%attr(644, root, root) %{_bindir}/mysqlaccess.conf
1156
 
%attr(755, root, root) %{_bindir}/mysqladmin
1157
 
%attr(755, root, root) %{_bindir}/mysqlbinlog
1158
 
%attr(755, root, root) %{_bindir}/mysqlcheck
1159
 
%attr(755, root, root) %{_bindir}/mysqldump
1160
 
%attr(755, root, root) %{_bindir}/mysqlimport
1161
 
%attr(755, root, root) %{_bindir}/mysqlshow
1162
 
%attr(755, root, root) %{_bindir}/mysqlslap
1163
 
 
1164
 
%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
1165
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
1166
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
1167
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
1168
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
1169
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
1170
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
1171
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
1172
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
1173
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
1174
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
1175
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
1176
 
 
1177
 
# ----------------------------------------------------------------------------
1178
 
%files -n MySQL-devel%{product_suffix} -f optional-files-devel
1179
 
%defattr(-, root, root, 0755)
1180
 
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
1181
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
1182
 
%attr(755, root, root) %{_bindir}/mysql_config
1183
 
%dir %attr(755, root, root) %{_includedir}/mysql
1184
 
%dir %attr(755, root, root) %{_libdir}/mysql
1185
 
%{_includedir}/mysql/*
1186
 
%{_datadir}/aclocal/mysql.m4
1187
 
%{_libdir}/mysql/libmysqlclient.a
1188
 
%{_libdir}/mysql/libmysqlclient_r.a
1189
 
%{_libdir}/mysql/libmysqlservices.a
1190
 
 
1191
 
# ----------------------------------------------------------------------------
1192
 
%files -n MySQL-shared%{product_suffix}
1193
 
%defattr(-, root, root, 0755)
1194
 
# Shared libraries (omit for architectures that don't support them)
1195
 
%{_libdir}/libmysql*.so*
1196
 
 
1197
 
%post -n MySQL-shared%{product_suffix}
1198
 
/sbin/ldconfig
1199
 
 
1200
 
%postun -n MySQL-shared%{product_suffix}
1201
 
/sbin/ldconfig
1202
 
 
1203
 
# ----------------------------------------------------------------------------
1204
 
%files -n MySQL-test%{product_suffix}
1205
 
%defattr(-, root, root, 0755)
1206
 
%attr(-, root, root) %{_datadir}/mysql-test
1207
 
%attr(755, root, root) %{_bindir}/mysql_client_test
1208
 
%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
1209
 
%attr(755, root, root) %{_bindir}/mysqltest_embedded
1210
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
1211
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
1212
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
1213
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
1214
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
1215
 
 
1216
 
# ----------------------------------------------------------------------------
1217
 
%files -n MySQL-embedded%{product_suffix}
1218
 
%defattr(-, root, root, 0755)
1219
 
%attr(755, root, root) %{_bindir}/mysql_embedded
1220
 
%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
1221
 
%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
1222
 
 
1223
 
##############################################################################
1224
 
# The spec file changelog only includes changes made to the spec file
1225
 
# itself - note that they must be ordered by date (important when
1226
 
# merging BK trees)
1227
 
##############################################################################
1228
 
%changelog
1229
 
* Wed Jul 02 2014 Bjorn Munch <bjorn.munch@oracle.com>
1230
 
- Disable dtrace unconditionally, breaks after we install Oracle dtrace
1231
 
 
1232
 
* Wed Oct 30 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1233
 
- Removed non gpl file docs/mysql.info from community packages
1234
 
 
1235
 
* Mon Sep 09 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1236
 
- Updated logic to get the correct count of PID files 
1237
 
 
1238
 
* Fri Aug 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1239
 
- Added provides lowercase mysql tags  
1240
 
 
1241
 
* Wed Jun 26 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1242
 
- Cleaned up spec file to resolve rpm dependencies.
1243
 
 
1244
 
* Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1245
 
 
1246
 
- Add a macro "runselftest":
1247
 
  if set to 1 (default), the test suite will be run during the RPM build;
1248
 
  this can be oveeridden via the command line by adding
1249
 
      --define "runselftest 0"
1250
 
  Failures of the test suite will NOT make the RPM build fail!
1251
 
 
1252
 
* Mon Jun 11 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1253
 
 
1254
 
- Make sure newly added "SPECIFIC-ULN/" directory does not disturb packaging.
1255
 
 
1256
 
* Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1257
 
 
1258
 
- Fix duplicate mentioning of "mysql_plugin" and its manual page,
1259
 
  it is better to keep alphabetic order in the files list (merging!).
1260
 
 
1261
 
* Wed Sep 14 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1262
 
 
1263
 
- Let the RPM capabilities ("obsoletes" etc) ensure that an upgrade may replace
1264
 
  the RPMs of any configuration (of the current or the preceding release series)
1265
 
  by the new ones. This is done by not using the implicitly generated capabilities
1266
 
  (which include the configuration name) and relying on more generic ones which
1267
 
  just list the function ("server", "client", ...).
1268
 
  The implicit generation cannot be prevented, so all these capabilities must be
1269
 
  explicitly listed in "Obsoletes:"
1270
 
 
1271
 
* Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1272
 
 
1273
 
- Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6.  Due to
1274
 
  changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
1275
 
  this necessitated a move of the libmygcc.a installation to the install
1276
 
  phase, which is probably where it belonged in the first place.
1277
 
 
1278
 
* Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1279
 
 
1280
 
- "make_win_bin_dist" and its manual are dropped, cmake does it different.
1281
 
 
1282
 
* Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1283
 
 
1284
 
- Add mysql_plugin man page.
1285
 
 
1286
 
* Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1287
 
 
1288
 
- Add the manual page for "mysql_plugin" to the server package.
1289
 
 
1290
 
* Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1291
 
 
1292
 
- Null-upmerge the fix of bug#37165: This spec file is not affected.
1293
 
- Replace "/var/lib/mysql" by the spec file variable "%%{mysqldatadir}".
1294
 
 
1295
 
* Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1296
 
 
1297
 
- Source plugin library files list from cmake-generated file.
1298
 
 
1299
 
* Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1300
 
 
1301
 
- Added the mysql_plugin client - enables or disables plugins.
1302
 
 
1303
 
* Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1304
 
 
1305
 
- Fix bug#12561297: Added the MySQL embedded binary
1306
 
 
1307
 
* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1308
 
 
1309
 
- Fix bug#45415: "rpm upgrade recreates test database"
1310
 
  Let the creation of the "test" database happen only during a new installation,
1311
 
  not in an RPM upgrade.
1312
 
  This affects both the "mkdir" and the call of "mysql_install_db".
1313
 
 
1314
 
* Wed Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1315
 
 
1316
 
- Fix bug#56581: If an installation deviates from the default file locations
1317
 
  ("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
1318
 
  should still work, and use these locations.
1319
 
  The problem was that the fix for bug#27072 did not check for local settings.
1320
 
 
1321
 
* Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1322
 
 
1323
 
- Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1324
 
 
1325
 
* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1326
 
 
1327
 
- EXCEPTIONS-CLIENT has been deleted, remove it from here too
1328
 
- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1329
 
  a '-j' argument to make.
1330
 
 
1331
 
* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1332
 
 
1333
 
- Added test authentication (WL#1054) plugin binaries
1334
 
 
1335
 
* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1336
 
 
1337
 
- Added example external authentication (WL#1054) plugin binaries
1338
 
 
1339
 
* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1340
 
 
1341
 
- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1342
 
  Reflect that in the "Obsoletes" specifications.
1343
 
- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1344
 
- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1345
 
 
1346
 
* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1347
 
 
1348
 
- Change the behaviour on installation and upgrade:
1349
 
  On installation, do not autostart the server.
1350
 
  *Iff* the server was stopped before the upgrade is started, this is taken as a
1351
 
  sign the administrator is handling that manually, and so the new server will
1352
 
  not be started automatically at the end of the upgrade.
1353
 
  The start/stop scripts will still be installed, so the server will be started
1354
 
  on the next machine boot.
1355
 
  This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1356
 
 
1357
 
* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1358
 
 
1359
 
- Implement SELinux checks from distribution-specific spec file.
1360
 
 
1361
 
* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1362
 
 
1363
 
- Large number of changes to build using CMake
1364
 
- Introduce distribution-specific RPMs
1365
 
- Drop debuginfo, build all binaries with debug/symbols
1366
 
- Remove __os_install_post, use native macro
1367
 
- Remove _unpackaged_files_terminate_build, make it an error to have
1368
 
  unpackaged files
1369
 
- Remove cluster RPMs
1370
 
 
1371
 
* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1372
 
 
1373
 
- Add "--with-perfschema" to the configure options.
1374
 
 
1375
 
* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1376
 
 
1377
 
- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1378
 
  mask "rmdir" return code 1.
1379
 
- Remove "ha_example.*" files from the list, they aren't built.
1380
 
 
1381
 
* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1382
 
 
1383
 
- Fix a wrong path name in handling the debug plugins.
1384
 
 
1385
 
* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1386
 
 
1387
 
- Take the result of the debug plugin build and put it into the optimized tree,
1388
 
  so that it becomes part of the final installation;
1389
 
  include the files in the packlist. Part of the fixes for bug#49022.
1390
 
 
1391
 
* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1392
 
 
1393
 
- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1394
 
  accept upgrading from packages showing MySQL or Sun as vendor.
1395
 
 
1396
 
* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1397
 
 
1398
 
- Formatting changes:
1399
 
  Have a consistent structure of separator lines and of indentation
1400
 
  (8 leading blanks => tab).
1401
 
- Introduce the variable "src_dir".
1402
 
- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1403
 
  over "CC" ("CXX").
1404
 
- Drop the old "with_static" argument analysis, this is not supported
1405
 
  in 5.1 since ages.
1406
 
- Introduce variables to control the handlers individually, as well
1407
 
  as other options.
1408
 
- Use the new "--with-plugin" notation for the table handlers.
1409
 
- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1410
 
  was done back in 2002 already.
1411
 
- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1412
 
- Add missing manual pages to the file list.
1413
 
- Improve the runtime check for "libgcc.a", protect it against being tried
1414
 
  with the Intel compiler "icc".
1415
 
 
1416
 
* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1417
 
 
1418
 
- Change RPM file naming:
1419
 
  - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1420
 
  - Release counts from 1, not 0.
1421
 
 
1422
 
* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1423
 
 
1424
 
- The "semisync" plugin file name has lost its introductory "lib",
1425
 
  adapt the file lists for the subpackages.
1426
 
  This is a part missing from the fix for bug#48351.
1427
 
- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1428
 
  (and likely, the whole script will go, too).
1429
 
 
1430
 
* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1431
 
 
1432
 
- Fix some problems with the directives around "tcmalloc" (experimental),
1433
 
  remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1434
 
 
1435
 
* Tue Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
1436
 
 
1437
 
- Removed mysql_fix_privilege_tables
1438
 
 
1439
 
* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1440
 
 
1441
 
- "mysqlmanager" got removed from version 5.4, all references deleted.
1442
 
 
1443
 
* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1444
 
 
1445
 
- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1446
 
 
1447
 
* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1448
 
 
1449
 
- This version does not contain the "Instance manager", "mysqlmanager":
1450
 
  Remove it from the spec file so that packaging succeeds.
1451
 
 
1452
 
* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1453
 
 
1454
 
- Add conditionals for bundled zlib and innodb plugin
1455
 
 
1456
 
* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1457
 
 
1458
 
- Install plugin libraries in appropriate packages.
1459
 
- Disable libdaemon_example and ftexample plugins.
1460
 
 
1461
 
* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1462
 
 
1463
 
- Update variable used for mysql-test suite location to match source.
1464
 
 
1465
 
* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1466
 
 
1467
 
- Correct yesterday's fix, so that it also works for the last flag,
1468
 
  and fix a wrong quoting: un-quoted quote marks must not be escaped.
1469
 
 
1470
 
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1471
 
 
1472
 
- Removed "mysql_upgrade_shell"
1473
 
- Removed some copy/paste between debug and normal build
1474
 
 
1475
 
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1476
 
 
1477
 
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1478
 
  This should cover both gcc and icc flags.  Fixes bug#40546.
1479
 
 
1480
 
* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1481
 
 
1482
 
- Removed the "Federated" storage engine option, and enabled in all
1483
 
 
1484
 
* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1485
 
 
1486
 
- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1487
 
  Some generated files aren't needed in RPMs:
1488
 
  - the "sql-bench/" subdirectory
1489
 
  Some files were missing:
1490
 
  - /usr/share/aclocal/mysql.m4  ("devel" subpackage)
1491
 
  - Manual "mysqlbug" ("server" subpackage)
1492
 
  - Program "innochecksum" and its manual ("server" subpackage)
1493
 
  - Manual "mysql_find_rows" ("client" subpackage)
1494
 
  - Script "mysql_upgrade_shell" ("client" subpackage)
1495
 
  - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1496
 
  - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1497
 
 
1498
 
* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1499
 
 
1500
 
- Made the "Federated" storage engine an option
1501
 
- Made the "Cluster" storage engine and sub packages an option
1502
 
 
1503
 
* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1504
 
 
1505
 
- Add the man pages for "ndbd" and "ndb_mgmd".
1506
 
 
1507
 
* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1508
 
 
1509
 
- Require a manual upgrade if the alread-installed mysql-server is
1510
 
  from another vendor, or is of a different major version.
1511
 
 
1512
 
* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1513
 
 
1514
 
- "ndb_size.tmpl" is not needed any more,
1515
 
  "man1/mysql_install_db.1" lacked the trailing '*'.
1516
 
 
1517
 
* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1518
 
 
1519
 
- Removed man page for "mysql_create_system_tables"
1520
 
 
1521
 
* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1522
 
 
1523
 
- Add debug server.
1524
 
 
1525
 
* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1526
 
 
1527
 
- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1528
 
  features that previously only were built into Max.
1529
 
 
1530
 
* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1531
 
 
1532
 
- Add several man pages for NDB which are now created.
1533
 
 
1534
 
* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1535
 
 
1536
 
- Put back "libmygcc.a", found no real reason it was removed.
1537
 
 
1538
 
- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
1539
 
  correct "libgcc.a" path is returned for the 32/64 bit architecture.
1540
 
 
1541
 
* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1542
 
 
1543
 
- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1544
 
 
1545
 
* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1546
 
 
1547
 
- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1548
 
  in the server RPM.
1549
 
- The "mysqlmanager" man page got moved from section 1 to 8.
1550
 
 
1551
 
* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1552
 
 
1553
 
- Call "make install" using "benchdir_root=%%{_datadir}",
1554
 
  because that is affecting the regression test suite as well.
1555
 
 
1556
 
* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1557
 
 
1558
 
- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
1559
 
  replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
1560
 
  (bug#22081).
1561
 
 
1562
 
* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1563
 
 
1564
 
- Add "--with-partition" to all server builds.
1565
 
 
1566
 
- Use "--report-features" in one test run per server build.
1567
 
 
1568
 
* Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
1569
 
 
1570
 
- The "max" server is removed from packages, effective from 5.1.12-beta.
1571
 
  Delete all steps to build, package, or install it.
1572
 
 
1573
 
* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
1574
 
 
1575
 
- Fix a typing error in the "make" target for the Perl script to run the tests.
1576
 
 
1577
 
* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1578
 
 
1579
 
- Use the Perl script to run the tests, because it will automatically check
1580
 
  whether the server is configured with SSL.
1581
 
 
1582
 
* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1583
 
 
1584
 
- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1585
 
 
1586
 
- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1587
 
  there are some more aspects which need to be solved before this is possible.
1588
 
  For now, just ensure the binary "mysql_upgrade" is delivered and installed.
1589
 
 
1590
 
* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
1591
 
 
1592
 
- Close a gap of the previous version by explicitly using
1593
 
  a newly created temporary directory for the socket to be used
1594
 
  in the "mysql_upgrade" operation, overriding any local setting.
1595
 
 
1596
 
* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
1597
 
 
1598
 
- To run "mysql_upgrade", we need a running server;
1599
 
  start it in isolation and skip password checks.
1600
 
 
1601
 
* Sat May 20 2006 Kent Boortz <kent@mysql.com>
1602
 
 
1603
 
- Always compile for PIC, position independent code.
1604
 
 
1605
 
* Wed May 10 2006 Kent Boortz <kent@mysql.com>
1606
 
 
1607
 
- Use character set "all" when compiling with Cluster, to make Cluster
1608
 
  nodes independent on the character set directory, and the problem
1609
 
  that two RPM sub packages both wants to install this directory.
1610
 
 
1611
 
* Mon May 01 2006 Kent Boortz <kent@mysql.com>
1612
 
 
1613
 
- Use "./libtool --mode=execute" instead of searching for the
1614
 
  executable in current directory and ".libs".
1615
 
 
1616
 
* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1617
 
 
1618
 
- Install and run "mysql_upgrade"
1619
 
 
1620
 
* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1621
 
 
1622
 
- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1623
 
  project from the mysql-bench repository)
1624
 
 
1625
 
* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1626
 
 
1627
 
- Remove old mysqltestmanager and related programs
1628
 
* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1629
 
 
1630
 
- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1631
 
 
1632
 
* Tue Mar 07 2006 Kent Boortz <kent@mysql.com>
1633
 
 
1634
 
- Changed product name from "Community Edition" to "Community Server"
1635
 
 
1636
 
* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1637
 
 
1638
 
- Fast mutexes is now disabled by default, but should be
1639
 
  used in Linux builds.
1640
 
 
1641
 
* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1642
 
 
1643
 
- Reintroduced a max build
1644
 
- Limited testing of 'debug' and 'max' servers
1645
 
- Berkeley DB only in 'max'
1646
 
 
1647
 
* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1648
 
 
1649
 
- Use "-i" on "make test-force";
1650
 
  this is essential for later evaluation of this log file.
1651
 
 
1652
 
* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1653
 
 
1654
 
- Pass '-static' to libtool, link static with our own libraries, dynamic
1655
 
  with system libraries.  Link with the bundled zlib.
1656
 
 
1657
 
* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1658
 
 
1659
 
- Modified RPM spec to match new 5.1 debug+max combined community packaging.
1660
 
 
1661
 
* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1662
 
 
1663
 
- Added "client/mysqlslap"
1664
 
 
1665
 
* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1666
 
 
1667
 
- Added zlib to the list of (static) libraries installed
1668
 
- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
1669
 
- Compile MySQL with bundled zlib
1670
 
- Fixed %%packager name to "MySQL Production Engineering Team"
1671
 
 
1672
 
* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1673
 
 
1674
 
- Avoid using the "bundled" zlib on "shared" builds:
1675
 
  As it is not installed (on the build system), this gives dependency
1676
 
  problems with "libtool" causing the build to fail.
1677
 
  (Change was done on Nov 11, but left uncommented.)
1678
 
 
1679
 
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1680
 
 
1681
 
- Extend the file existence check for "init.d/mysql" on un-install
1682
 
  to also guard the call to "insserv"/"chkconfig".
1683
 
 
1684
 
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1685
 
 
1686
 
- added more man pages
1687
 
 
1688
 
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1689
 
 
1690
 
- Made yaSSL support an option (off by default)
1691
 
 
1692
 
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1693
 
 
1694
 
- Enabled yaSSL support
1695
 
 
1696
 
* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1697
 
 
1698
 
- Give mode arguments the same way in all places
1699
 
- Moved copy of mysqld.a to "standard" build, but
1700
 
  disabled it as we don't do embedded yet in 5.0
1701
 
 
1702
 
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1703
 
 
1704
 
- For 5.x, always compile with --with-big-tables
1705
 
- Copy the config.log file to location outside
1706
 
  the build tree
1707
 
 
1708
 
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1709
 
 
1710
 
- Removed unneeded/obsolete configure options
1711
 
- Added archive engine to standard server
1712
 
- Removed the embedded server from experimental server
1713
 
- Changed suffix "-Max" => "-max"
1714
 
- Changed comment string "Max" => "Experimental"
1715
 
 
1716
 
* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1717
 
 
1718
 
- added a usermod call to assign a potential existing mysql user to the
1719
 
  correct user group (BUG#12823)
1720
 
- Save the perror binary built during Max build so it supports the NDB
1721
 
  error codes (BUG#13740)
1722
 
- added a separate macro "mysqld_group" to be able to define the
1723
 
  user group of the mysql user seperately, if desired.
1724
 
 
1725
 
* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
1726
 
 
1727
 
- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
1728
 
  $RBR variable did not get expanded, thus leaving old build roots behind)
1729
 
 
1730
 
* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1731
 
 
1732
 
- Fixed the creation of the mysql user group account in the postinstall
1733
 
  section (BUG 12348)
1734
 
- Fixed enabling the Archive storage engine in the Max binary
1735
 
 
1736
 
* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1737
 
 
1738
 
- Fixed the Requires: tag for the server RPM (BUG 12233)
1739
 
 
1740
 
* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1741
 
 
1742
 
- create a "mysql" user group and assign the mysql user account to that group
1743
 
  in the server postinstall section. (BUG 10984)
1744
 
 
1745
 
* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1746
 
 
1747
 
- Do not build statically on i386 by default, only when adding either "--with
1748
 
  static" or "--define '_with_static 1'" to the RPM build options. Static
1749
 
  linking really only makes sense when linking against the specially patched
1750
 
  glibc 2.2.5.
1751
 
 
1752
 
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1753
 
 
1754
 
- added mysql_client_test to the "bench" subpackage (BUG 10676)
1755
 
- added the libndbclient static and shared libraries (BUG 10676)
1756
 
 
1757
 
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1758
 
 
1759
 
- use "mysqldatadir" variable instead of hard-coding the path multiple times
1760
 
- use the "mysqld_user" variable on all occasions a user name is referenced
1761
 
- removed (incomplete) Brazilian translations
1762
 
- removed redundant release tags from the subpackage descriptions
1763
 
 
1764
 
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1765
 
 
1766
 
- Added a "make clean" between separate calls to "BuildMySQL".
1767
 
 
1768
 
* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1769
 
 
1770
 
- Removed the mysql_tableinfo script made obsolete by the information schema
1771
 
 
1772
 
* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1773
 
 
1774
 
- Enabled the "blackhole" storage engine for the Max RPM
1775
 
 
1776
 
* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1777
 
 
1778
 
- removed the MySQL manual files (html/ps/texi) - they have been removed
1779
 
  from the MySQL sources and are now available seperately.
1780
 
 
1781
 
* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1782
 
 
1783
 
- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1784
 
  mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1785
 
 
1786
 
* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1787
 
 
1788
 
- Disabled RAID in the Max binaries once and for all (it has finally been
1789
 
  removed from the source tree)
1790
 
 
1791
 
* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1792
 
 
1793
 
- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1794
 
  password file
1795
 
 
1796
 
* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1797
 
 
1798
 
- Fixed the compilation comments and moved them into the separate build sections
1799
 
  for Max and Standard
1800
 
 
1801
 
* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1802
 
 
1803
 
- enabled the "Ndbcluster" storage engine for the max binary
1804
 
- added extra make install in ndb subdir after Max build to get ndb binaries
1805
 
- added packages for ndbcluster storage engine
1806
 
 
1807
 
* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1808
 
 
1809
 
- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1810
 
 
1811
 
* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1812
 
 
1813
 
- enabled the "Federated" storage engine for the max binary
1814
 
 
1815
 
* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1816
 
 
1817
 
- ISAM and merge storage engines were purged. As well as appropriate
1818
 
  tools and manpages (isamchk and isamlog)
1819
 
 
1820
 
* Fri Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1821
 
 
1822
 
- enabled the "Archive" storage engine for the max binary
1823
 
- enabled the "CSV" storage engine for the max binary
1824
 
- enabled the "Example" storage engine for the max binary
1825
 
 
1826
 
* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1827
 
 
1828
 
- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1829
 
 
1830
 
* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1831
 
 
1832
 
- do not link statically on IA64/AMD64 as these systems do not have
1833
 
  a patched glibc installed
1834
 
 
1835
 
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1836
 
 
1837
 
- Added libmygcc.a to the devel subpackage (required to link applications
1838
 
  against the the embedded server libmysqld.a) (BUG 4921)
1839
 
 
1840
 
* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1841
 
 
1842
 
- Added EXCEPTIONS-CLIENT to the "devel" package
1843
 
 
1844
 
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1845
 
 
1846
 
- disabled OpenSSL in the Max binaries again (the RPM packages were the
1847
 
  only exception to this anyway) (BUG 1043)
1848
 
 
1849
 
* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1850
 
 
1851
 
- fixed server postinstall (mysql_install_db was called with the wrong
1852
 
  parameter)
1853
 
 
1854
 
* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1855
 
 
1856
 
- added mysql_tzinfo_to_sql to the server subpackage
1857
 
- run "make clean" instead of "make distclean"
1858
 
 
1859
 
* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1860
 
 
1861
 
- added ncurses-devel to the build prerequisites (BUG 3377)
1862
 
 
1863
 
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1864
 
 
1865
 
- when using gcc, _always_ use CXX=gcc
1866
 
- replaced Copyright with License field (Copyright is obsolete)
1867
 
 
1868
 
* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1869
 
 
1870
 
- added myisam_ftdump to the Server package
1871
 
 
1872
 
* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1873
 
 
1874
 
- link the mysql client against libreadline instead of libedit (BUG 2289)
1875
 
 
1876
 
* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1877
 
 
1878
 
- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1879
 
 
1880
 
* Sat Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1881
 
 
1882
 
- fixed file permissions (BUG 1672)
1883
 
 
1884
 
* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1885
 
 
1886
 
- made testing for gcc3 a bit more robust
1887
 
 
1888
 
* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1889
 
 
1890
 
- added missing file mysql_create_system_tables to the server subpackage
1891
 
 
1892
 
* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1893
 
 
1894
 
- removed dependency on MySQL-client from the MySQL-devel subpackage
1895
 
  as it is not really required. (BUG 1610)
1896
 
 
1897
 
* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1898
 
 
1899
 
- Fixed BUG 1162 (removed macro names from the changelog)
1900
 
- Really fixed BUG 998 (disable the checking for installed but
1901
 
  unpackaged files)
1902
 
 
1903
 
* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1904
 
 
1905
 
- Fixed BUG 959 (libmysqld not being compiled properly)
1906
 
- Fixed BUG 998 (RPM build errors): added missing files to the
1907
 
  distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1908
 
  mysql_fix_privilege_tables.1), removed "-n" from install section.
1909
 
 
1910
 
* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1911
 
 
1912
 
- removed the GIF Icon (file was not included in the sources anyway)
1913
 
- removed unused variable shared_lib_version
1914
 
- do not run automake before building the standard binary
1915
 
  (should not be necessary)
1916
 
- add server suffix '-standard' to standard binary (to be in line
1917
 
  with the binary tarball distributions)
1918
 
- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1919
 
  _datadir, _includedir) throughout the spec file.
1920
 
- allow overriding CC and CXX (required when building with other compilers)
1921
 
 
1922
 
* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1923
 
 
1924
 
- re-enabled RAID again
1925
 
 
1926
 
* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1927
 
 
1928
 
- disabled MyISAM RAID (--with-raid) - it throws an assertion which
1929
 
  needs to be investigated first.
1930
 
 
1931
 
* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1932
 
 
1933
 
- added missing file mysql_secure_installation to server subpackage
1934
 
  (BUG 141)
1935
 
 
1936
 
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
1937
 
 
1938
 
- re-added missing pre- and post(un)install scripts to server subpackage
1939
 
- added config file /etc/my.cnf to the file list (just for completeness)
1940
 
- make sure to create the datadir with 755 permissions
1941
 
 
1942
 
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1943
 
 
1944
 
- removed unused CC and CXX variables
1945
 
- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
1946
 
 
1947
 
* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
1948
 
 
1949
 
- renamed package "MySQL" to "MySQL-server"
1950
 
- fixed Copyright tag
1951
 
- added mysql_waitpid to client subpackage (required for mysql-test-run)
1952
 
 
1953
 
* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
1954
 
 
1955
 
- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
1956
 
  Linux distributions now support this scheme as proposed by the LSB either
1957
 
  directly or via a compatibility symlink)
1958
 
- Use new "restart" init script action instead of starting and stopping
1959
 
  separately
1960
 
- Be more flexible in activating the automatic bootup - use insserv (on
1961
 
  older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
1962
 
  others) to create the respective symlinks
1963
 
 
1964
 
* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
1965
 
 
1966
 
- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
1967
 
  (mixing 3.23 and 4.0 packages)
1968
 
 
1969
 
* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
1970
 
 
1971
 
- Turn off OpenSSL in MySQL-Max for now until it works properly again
1972
 
- enable RAID for the Max binary instead
1973
 
- added compatibility link: safe_mysqld -> mysqld_safe to ease the
1974
 
  transition from 3.23
1975
 
 
1976
 
* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
1977
 
 
1978
 
- Reworked the build steps a little bit: the Max binary is supposed
1979
 
  to include OpenSSL, which cannot be linked statically, thus trying
1980
 
  to statically link against a special glibc is futile anyway
1981
 
- because of this, it is not required to make yet another build run
1982
 
  just to compile the shared libs (saves a lot of time)
1983
 
- updated package description of the Max subpackage
1984
 
- clean up the BuildRoot directory afterwards
1985
 
 
1986
 
* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
1987
 
 
1988
 
- Updated Packager information
1989
 
- Fixed the build options: the regular package is supposed to
1990
 
  include InnoDB and linked statically, while the Max package
1991
 
  should include BDB and SSL support
1992
 
 
1993
 
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
1994
 
 
1995
 
- Use more RPM macros (e.g. infodir, mandir) to make the spec
1996
 
  file more portable
1997
 
- reorganized the installation of documentation files: let RPM
1998
 
  take care of this
1999
 
- reorganized the file list: actually install man pages along
2000
 
  with the binaries of the respective subpackage
2001
 
- do not include libmysqld.a in the devel subpackage as well, if we
2002
 
  have a special "embedded" subpackage
2003
 
- reworked the package descriptions
2004
 
 
2005
 
* Mon Oct  8 2001 Monty
2006
 
 
2007
 
- Added embedded server as a separate RPM
2008
 
 
2009
 
* Fri Apr 13 2001 Monty
2010
 
 
2011
 
- Added mysqld-max to the distribution
2012
 
 
2013
 
* Tue Jan 2  2001  Monty
2014
 
 
2015
 
- Added mysql-test to the bench package
2016
 
 
2017
 
* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
2018
 
 
2019
 
- Added separate libmysql_r directory; now both a threaded
2020
 
  and non-threaded library is shipped.
2021
 
 
2022
 
* Tue Sep 28 1999 David Axmark <davida@mysql.com>
2023
 
 
2024
 
- Added the support-files/my-example.cnf to the docs directory.
2025
 
 
2026
 
- Removed devel dependency on base since it is about client
2027
 
  development.
2028
 
 
2029
 
* Wed Sep 8 1999 David Axmark <davida@mysql.com>
2030
 
 
2031
 
- Cleaned up some for 3.23.
2032
 
 
2033
 
* Thu Jul 1 1999 David Axmark <davida@mysql.com>
2034
 
 
2035
 
- Added support for shared libraries in a separate sub
2036
 
  package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
2037
 
 
2038
 
- The --enable-assembler switch is now automatically disables on
2039
 
  platforms there assembler code is unavailable. This should allow
2040
 
  building this RPM on non i386 systems.
2041
 
 
2042
 
* Mon Feb 22 1999 David Axmark <david@detron.se>
2043
 
 
2044
 
- Removed unportable cc switches from the spec file. The defaults can
2045
 
  now be overridden with environment variables. This feature is used
2046
 
  to compile the official RPM with optimal (but compiler version
2047
 
  specific) switches.
2048
 
 
2049
 
- Removed the repetitive description parts for the sub rpms. Maybe add
2050
 
  again if RPM gets a multiline macro capability.
2051
 
 
2052
 
- Added support for a pt_BR translation. Translation contributed by
2053
 
  Jorge Godoy <jorge@bestway.com.br>.
2054
 
 
2055
 
* Wed Nov 4 1998 David Axmark <david@detron.se>
2056
 
 
2057
 
- A lot of changes in all the rpm and install scripts. This may even
2058
 
  be a working RPM :-)
2059
 
 
2060
 
* Sun Aug 16 1998 David Axmark <david@detron.se>
2061
 
 
2062
 
- A developers changelog for MySQL is available in the source RPM. And
2063
 
  there is a history of major user visible changed in the Reference
2064
 
  Manual.  Only RPM specific changes will be documented here.