# changelog

author: Jonathan Perkin <jperkin@sun.com>
changelog:
  - Install plugin libraries in appropriate packages.
  - Disable libdaemon_example and ftexample plugins.


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - This version does not contain the "Instance manager", "mysqlmanager":
    Remove it from the spec file so that packaging succeeds.


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - Fix some problems with the directives around "tcmalloc" (experimental),
    remove erroneous traces of the InnoDB plugin (that is 5.1 only).


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - The "semisync" plugin file name has lost its introductory "lib",
    adapt the file lists for the subpackages.
    This is a part missing from the fix for bug#48351.
  - Remove the "fix_privilege_tables" manual, it does not exist in 5.5
    (and likely, the whole script will go, too).


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - Change RPM file naming:
    - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
    - Release counts from 1, not 0.


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - Formatting changes:
    Have a consistent structure of separator lines and of indentation
    (8 leading blanks => tab).
  - Introduce the variable "src_dir".
  - Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
    over "CC" ("CXX").
  - Drop the old "with_static" argument analysis, this is not supported
    in 5.1 since ages.
  - Introduce variables to control the handlers individually, as well
    as other options.
  - Use the new "--with-plugin" notation for the table handlers.
  - Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
    was done back in 2002 already.
  - Make "--with-zlib-dir=bundled" the default, add an option to disable it.
  - Add missing manual pages to the file list.
  - Improve the runtime check for "libgcc.a", protect it against being tried
    with the Intel compiler "icc".


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - Set "Oracle and/or its affiliates" as the vendor and copyright owner,
    accept upgrading from packages showing MySQL or Sun as vendor.


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - Take the result of the debug plugin build and put it into the optimized tree,
    so that it becomes part of the final installation;
    include the files in the packlist. Part of the fixes for bug#49022.


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
    mask "rmdir" return code 1.
  - Remove "ha_example.*" files from the list, they aren't built.


author: Jonathan Perkin <jonathan.perkin@oracle.com>
changelog:
  - Large number of changes to build using CMake
  - Introduce distribution-specific RPMs
  - Drop debuginfo, build all binaries with debug/symbols
  - Remove __os_install_post, use native macro
  - Remove _unpackaged_files_terminate_build, make it an error to have
    unpackaged files
  - Remove cluster RPMs


author: Joerg Bruehe <joerg.bruehe@sun.com>
changelog:
  - Change the behaviour on installation and upgrade:
    On installation, do not autostart the server.
    *Iff* the server was stopped before the upgrade is started, this is taken as a
    sign the administrator is handling that manually, and so the new server will
    not be started automatically at the end of the upgrade.
    The start/stop scripts will still be installed, so the server will be started
    on the next machine boot.
    This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - With a recent spec file cleanup, names have changed: A "-community" part was dropped.
    Reflect that in the "Obsoletes" specifications.
  - Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
  - This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".


author: Jonathan Perkin <jonathan.perkin@oracle.com>
changelog:
  - EXCEPTIONS-CLIENT has been deleted, remove it from here too
  - Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
    a '-j' argument to make.


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - Fix bug#56581: If an installation deviates from the default file locations
    ("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
    should still work, and use these locations.
    The problem was that the fix for bug#27072 did not check for local settings.


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - Fix bug#45415: "rpm upgrade recreates test database"
    Let the creation of the "test" database happen only during a new installation,
    not in an RPM upgrade.
    This affects both the "mkdir" and the call of "mysql_install_db".


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - Null-upmerge the fix of bug#37165: This spec file is not affected.
  - Replace "/var/lib/mysql" by the spec file variable "%{mysqldatadir}".


author: Jonathan Perkin <jonathan.perkin@oracle.com>
changelog:
  - Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6.  Due to
    changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
    this necessitated a move of the libmygcc.a installation to the install
    phase, which is probably where it belonged in the first place.


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - Let the RPM capabilities ("obsoletes" etc) ensure that an upgrade may replace
    the RPMs of any configuration (of the current or the preceding release series)
    by the new ones. This is done by not using the implicitly generated capabilities
    (which include the configuration name) and relying on more generic ones which
    just list the function ("server", "client", ...).
    The implicit generation cannot be prevented, so all these capabilities must be
    explicitly listed in "Obsoletes:"


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - Fix duplicate mentioning of "mysql_plugin" and its manual page,
    it is better to keep alphabetic order in the files list (merging!).


author: Joerg Bruehe <joerg.bruehe@oracle.com>
changelog:
  - Add a macro "runselftest":
    if set to 1 (default), the test suite will be run during the RPM build;
    this can be oveeridden via the command line by adding
        --define "runselftest 0"
    Failures of the test suite will NOT make the RPM build fail!


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - Allow "rpmlint", but suppress "post-build-checks" (fail on SuSE 12 + 13).
  - Improve handling of undefined "%{dist}".
  - Fix wrong changelog dates, to get rid of warnings about "bogus date".
  - Escape percent signs in changelog, to get rid of "rpmlint" warnings.


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - Add a meta-package "mysql-wsrep" that requires both "server" and "client".
  - Fix the fall-back definition of "dist", it must start with a period.


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - Integrate the separate "libs-compat" spec file with the general "mysql-wsrep",
    so that "libs-compat" becomes just another subpackage.
  - Change history of the separate "libs-compat" spec file, all by this author in 2015:
  - Thu Sep 10:
  - - Remove code to deal with RHEL 5, there will not be any support for that
      obsolete platform.
  - - For MySQl 5.5 / 5.6 / 5.7, there is no need for "libs-compat" on RHEL 7
      because both are SO version 18; turn description into comment.
  - Tue Sep 08:
  - - Finish the code for RHEL 7, using MySQL 5.5.45 as published by Oracle.
  - - Severe bug: Path for "charsets" files did not match the patch, fix it.
  - - This is in the 5.5 branch, fix the spec file version.
  - Thu Sep 03 2015 Joerg Bruehe <joerg.bruehe@fromdual.com>
  - - Change the name from "mysql-libs-compat" to "mysql-wsrep-libs-compat".
  - - Change the compatibility version for RHEL 6 from MySQL 5.1.72 to 5.1.73.
  - - Start adding settings for RHEL 7, to replace the pre-installed "mariadb-libs 5.5.37".
  - Tue Apr 28:
  - - Improve the dependency / conflicts settings.
  - - Drop the name component "community", 3rd party builds don't use it.
  - Tue Mar 10:
  - - Sometimes, "libmysqlclient.so" needs the files in "/usr/share/mysql/charsets/",
      so the package should better contain them, but have the path name contain the
      version number to make it independent of other packages.
  - Mon Feb 09:
  - - "g++: command not found" on RedHat 5 + 6, added "BuildRequires: gcc-c++".
  - - "time" is a RedHat-only package, not needed to build on SuSE.
  - Fri Feb 06:
  - - Add code to identify RedHat 5 during build, "rhel" is not predefined there.
  - - Start adding "conflicts" directives to get rid of other MySQL library RPMs.
  - - Try with "CXX=g++".
  - Thu Feb 05:
  - - This spec file handles the "compat" RPM for the "libmysqlclient.so" only.
      It is created as a subset of the overall MySQL 5.6.23 spec file
      (file "packaging/rpm-oel/mysql.spec.in" in the source tree),
      see that file's "changelog" section for its history.
  - - Add "CC=gcc CXX=gcc" as used in 5.0 and 5.1 builds (missing in that 5.6.23 spec file)


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - The mechanism "%files ... -f LIST_FILE" doesn't work, so the plugin files
    must be listed directly in the section "%files -n mysql-wsrep-server".


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - Fixed the issue with "-f plugins.files", switched back to that approach.
    The base cause was a wrong use of "%setup" for this multi-source build.
  - Let the meta package of client and server be the main package, not a subpackage.
  - Use the "%files ... -f LIST_FILE" mechanism for "%{_datadir}", it is the
    best way to get rid of files that go into "libs-compat" only.


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - Combine "plugins.files" and "datadir.files" into one, it seems rpmbuild 4.4
    (used on SLES 11) cannot handle two "-f" directives for one "%files" section.


author: Joerg Bruehe <joerg.bruehe@fromdual.com>
changelog:
  - "libmysqlclient.so" is not always recognized to satisfy the "requires"
    of pre-installed applications (notably "postfix" on RedHat-like distros).
    Force setting the current ABI version via a linker script.
  - Let the meta RPM "require" "shared" or "libs-compat", so that it will
    "obsolete" any pre-installed packages (expecially the client library).


