From 258e8dc4e289576238b8c3e613aad9046188bb83ea3545647b73244f303e53f6 Mon Sep 17 00:00:00 2001 From: "Michal Hrusecky (old before rename to _miska_)" Date: Sun, 3 Feb 2013 14:37:10 +0000 Subject: [PATCH 1/2] - updated to MariaDB 5.5.29 * Release notes: http://kb.askmonty.org/v/mariadb-5529-release-notes * Changelog: http://kb.askmonty.org/v/mariadb-5529-changelog * fixes following CVEs: CVE-2012-5611, CVE-2012-5627, CVE-2012-5615, CVE-2012-5612 OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=106 --- configuration-tweaks.tar.bz2 | 4 ++-- mariadb-5.5.28a.tar.bz2 | 3 --- mariadb-5.5.29.tar.bz2 | 3 +++ mariadb.changes | 11 +++++++++++ mariadb.spec | 31 +++++++++++++++++-------------- 5 files changed, 33 insertions(+), 19 deletions(-) delete mode 100644 mariadb-5.5.28a.tar.bz2 create mode 100644 mariadb-5.5.29.tar.bz2 diff --git a/configuration-tweaks.tar.bz2 b/configuration-tweaks.tar.bz2 index 1ceb6e3..1160790 100644 --- a/configuration-tweaks.tar.bz2 +++ b/configuration-tweaks.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f2509e8e7a2f38de99a0bcfd4d3fe8f6355187cd9ca7823f8d1aebfe996076f4 -size 218 +oid sha256:86e5ff42abb49bc5b0630e34081e57ce64d432fcd99d4c52a0eaf370633bdcfc +size 219 diff --git a/mariadb-5.5.28a.tar.bz2 b/mariadb-5.5.28a.tar.bz2 deleted file mode 100644 index c846a71..0000000 --- a/mariadb-5.5.28a.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9580383302161e61491a8f187323bd53e2e6891ff5e9e389c4e126ee2e844a45 -size 21287499 diff --git a/mariadb-5.5.29.tar.bz2 b/mariadb-5.5.29.tar.bz2 new file mode 100644 index 0000000..2d7c5fe --- /dev/null +++ b/mariadb-5.5.29.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d6df248b16736c2d3e9f163bb672390d59625f28520410bb746cf8a6d843dfc +size 21299322 diff --git a/mariadb.changes b/mariadb.changes index 355cd44..4e9dc3a 100644 --- a/mariadb.changes +++ b/mariadb.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Feb 3 15:29:02 CET 2013 - mhrusecky@suse.cz + +- updated to MariaDB 5.5.29 + * Release notes: + http://kb.askmonty.org/v/mariadb-5529-release-notes + * Changelog: + http://kb.askmonty.org/v/mariadb-5529-changelog + * fixes following CVEs: + CVE-2012-5611, CVE-2012-5627, CVE-2012-5615, CVE-2012-5612 + ------------------------------------------------------------------- Mon Jan 28 09:28:44 UTC 2013 - meissner@suse.com diff --git a/mariadb.spec b/mariadb.spec index 33a9dd3..5f1b60e 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -35,9 +35,9 @@ Name: mariadb Summary: Server part of MariaDB License: SUSE-GPL-2.0-with-FLOSS-exception Group: Productivity/Databases/Servers -Version: 5.5.28a -Release: 0 -%define srv_vers 5.5.28 +Version: 5.5.29 +Release: 1 +%define srv_vers 5.5.29 Url: http://www.mariab.org Source: mariadb-%{version}.tar.bz2 Source2: baselibs.conf @@ -83,11 +83,10 @@ Recommends: logrotate Requires: logrotate %endif # required by rcmysql -Requires: %{name}-client +Requires: %{name}-client perl-base Requires: %{name}-errormessages = %version -Requires: perl-base -Provides: mysql = %{srv_vers} Provides: mysql-Max = %{srv_vers} +Provides: mysql = %{srv_vers} %if 0%{?use_extra_provides} > 0 Provides: %{extra_provides} = %{version} Obsoletes: %{extra_provides} < %{version} @@ -111,12 +110,13 @@ This package only contains the server-side programs. # mysql-devel was last used in openSUSE 10.2 Provides: mysql-devel = %srv_vers-%release Obsoletes: mysql-devel < %srv_vers -Requires: glibc-devel Requires: libmysqlclient18 = %version Requires: libmysqlclient_r18 = %version +Requires: glibc-devel Requires: openssl-devel Requires: zlib-devel Summary: MariaDB development header files and libraries +License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/C and C++ %description -n libmysqlclient-devel @@ -124,6 +124,7 @@ This package contains the development header files and libraries necessary to develop client applications for MariaDB. %package -n libmysqld18 +License: SUSE-GPL-2.0-with-FLOSS-exception Summary: MariaDB embedded server development files Group: Development/Libraries/C and C++ Requires: %{name}-errormessages = %version @@ -133,12 +134,13 @@ This package contains the development header files and libraries for developing applications that embed the MariaDB. %package -n libmysqld-devel +License: SUSE-GPL-2.0-with-FLOSS-exception Summary: MariaDB embedded server development files -Group: Development/Libraries/C and C++ # the headers files are the shared Requires: libmysqlclient-devel = %version -Requires: libmysqld18 = %version Requires: tcpd-devel +Requires: libmysqld18 = %version +Group: Development/Libraries/C and C++ %description -n libmysqld-devel This package contains the development header files and libraries @@ -147,6 +149,7 @@ for developing applications that embed the MariaDB. %package -n libmysqlclient18 Summary: Shared Libraries for MariaDB +License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/Other %description -n libmysqlclient18 @@ -155,6 +158,7 @@ languages and applications need to dynamically load and use MariaDB. %package -n libmysqlclient_r18 Summary: Shared Libraries for MariaDB +License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/Other %description -n libmysqlclient_r18 @@ -187,8 +191,7 @@ This package provides the translated error messages for the standalone server daemon as well as the embedded server %package bench -Requires: %{name}-client -Requires: perl-DBD-mysql +Requires: %{name}-client perl-DBD-mysql Summary: Benchmarks for MariaDB Group: Productivity/Databases/Tools Provides: mysql-bench = %{srv_vers} @@ -212,8 +215,8 @@ the directory /usr/share/sql-bench after starting MariaDB. Summary: MariaDB with debug options turned on Group: Productivity/Databases/Servers Requires: %{name} = %{version} -Provides: %{name}-debug = %{srv_vers} Provides: mysql-debug = %{srv_vers} +Provides: %{name}-debug = %{srv_vers} %if 0%{?use_extra_provides} > 0 Provides: %{extra_provides}-debug-verion = %{version} Obsoletes: %{extra_provides}-debug-version < %{version} @@ -234,10 +237,10 @@ information on how to use the debug server. Summary: Testsuite for MariaDB Group: Productivity/Databases/Servers Requires: %{name} = %{version} -Requires: %{name}-bench = %{version} Requires: %{name}-client = %{version} -Requires: %{name}-tools = %{version} Requires: perl-DBD-mysql +Requires: %{name}-tools = %{version} +Requires: %{name}-bench = %{version} Provides: mysql-test = %{srv_vers} %if 0%{?use_extra_provides} > 0 Provides: %{extra_provides}-test = %{version} From 2f1557dce0c201f87f757bca42b7ae3163afc5b89a77087652d354cd86305403 Mon Sep 17 00:00:00 2001 From: "Michal Hrusecky (old before rename to _miska_)" Date: Mon, 4 Feb 2013 16:08:57 +0000 Subject: [PATCH 2/2] format spec file OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=107 --- configuration-tweaks.tar.bz2 | 4 ++-- mariadb.spec | 37 +++++++++++++----------------------- 2 files changed, 15 insertions(+), 26 deletions(-) diff --git a/configuration-tweaks.tar.bz2 b/configuration-tweaks.tar.bz2 index 1160790..c467e65 100644 --- a/configuration-tweaks.tar.bz2 +++ b/configuration-tweaks.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:86e5ff42abb49bc5b0630e34081e57ce64d432fcd99d4c52a0eaf370633bdcfc -size 219 +oid sha256:9d7787ba1d8fcb24323d602ecf38185504f9b0edfca9e00533045c88867a9c42 +size 220 diff --git a/mariadb.spec b/mariadb.spec index 5f1b60e..b2c838a 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -36,7 +36,7 @@ Summary: Server part of MariaDB License: SUSE-GPL-2.0-with-FLOSS-exception Group: Productivity/Databases/Servers Version: 5.5.29 -Release: 1 +Release: 0 %define srv_vers 5.5.29 Url: http://www.mariab.org Source: mariadb-%{version}.tar.bz2 @@ -83,10 +83,11 @@ Recommends: logrotate Requires: logrotate %endif # required by rcmysql -Requires: %{name}-client perl-base +Requires: %{name}-client Requires: %{name}-errormessages = %version -Provides: mysql-Max = %{srv_vers} +Requires: perl-base Provides: mysql = %{srv_vers} +Provides: mysql-Max = %{srv_vers} %if 0%{?use_extra_provides} > 0 Provides: %{extra_provides} = %{version} Obsoletes: %{extra_provides} < %{version} @@ -105,18 +106,16 @@ the Maria storage engine. This package only contains the server-side programs. %if 0%{?prefered} > 0 - %package -n libmysqlclient-devel # mysql-devel was last used in openSUSE 10.2 Provides: mysql-devel = %srv_vers-%release Obsoletes: mysql-devel < %srv_vers +Requires: glibc-devel Requires: libmysqlclient18 = %version Requires: libmysqlclient_r18 = %version -Requires: glibc-devel Requires: openssl-devel Requires: zlib-devel Summary: MariaDB development header files and libraries -License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/C and C++ %description -n libmysqlclient-devel @@ -124,7 +123,6 @@ This package contains the development header files and libraries necessary to develop client applications for MariaDB. %package -n libmysqld18 -License: SUSE-GPL-2.0-with-FLOSS-exception Summary: MariaDB embedded server development files Group: Development/Libraries/C and C++ Requires: %{name}-errormessages = %version @@ -134,13 +132,12 @@ This package contains the development header files and libraries for developing applications that embed the MariaDB. %package -n libmysqld-devel -License: SUSE-GPL-2.0-with-FLOSS-exception Summary: MariaDB embedded server development files +Group: Development/Libraries/C and C++ # the headers files are the shared Requires: libmysqlclient-devel = %version -Requires: tcpd-devel Requires: libmysqld18 = %version -Group: Development/Libraries/C and C++ +Requires: tcpd-devel %description -n libmysqld-devel This package contains the development header files and libraries @@ -149,7 +146,6 @@ for developing applications that embed the MariaDB. %package -n libmysqlclient18 Summary: Shared Libraries for MariaDB -License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/Other %description -n libmysqlclient18 @@ -158,7 +154,6 @@ languages and applications need to dynamically load and use MariaDB. %package -n libmysqlclient_r18 Summary: Shared Libraries for MariaDB -License: SUSE-GPL-2.0-with-FLOSS-exception Group: Development/Libraries/Other %description -n libmysqlclient_r18 @@ -191,7 +186,8 @@ This package provides the translated error messages for the standalone server daemon as well as the embedded server %package bench -Requires: %{name}-client perl-DBD-mysql +Requires: %{name}-client +Requires: perl-DBD-mysql Summary: Benchmarks for MariaDB Group: Productivity/Databases/Tools Provides: mysql-bench = %{srv_vers} @@ -215,8 +211,8 @@ the directory /usr/share/sql-bench after starting MariaDB. Summary: MariaDB with debug options turned on Group: Productivity/Databases/Servers Requires: %{name} = %{version} -Provides: mysql-debug = %{srv_vers} Provides: %{name}-debug = %{srv_vers} +Provides: mysql-debug = %{srv_vers} %if 0%{?use_extra_provides} > 0 Provides: %{extra_provides}-debug-verion = %{version} Obsoletes: %{extra_provides}-debug-version < %{version} @@ -237,10 +233,10 @@ information on how to use the debug server. Summary: Testsuite for MariaDB Group: Productivity/Databases/Servers Requires: %{name} = %{version} -Requires: %{name}-client = %{version} -Requires: perl-DBD-mysql -Requires: %{name}-tools = %{version} Requires: %{name}-bench = %{version} +Requires: %{name}-client = %{version} +Requires: %{name}-tools = %{version} +Requires: perl-DBD-mysql Provides: mysql-test = %{srv_vers} %if 0%{?use_extra_provides} > 0 Provides: %{extra_provides}-test = %{version} @@ -280,7 +276,6 @@ applications with MariaDB. %if 0%{?cluster} > 0 %if 0%{?cluster} > 1 - %package -n libndbclient6 Summary: Shared Libraries for cluster client Group: Development/Libraries/Other @@ -382,7 +377,6 @@ rm -f mysql-test/t/file_contents.test mysql-test/r/file_contents.result ####################################################################### # preun and posttran takes care of restart # ####################################################################### - %preun [ $1 = 1 ] || /usr/sbin/rcmysql stop @@ -433,14 +427,12 @@ fi %postun -n libmysqlclient_r18 -p /sbin/ldconfig %if 0%{cluster} > 1 - %post -n libndbclient6 -p /sbin/ldconfig %postun -n libndbclient6 -p /sbin/ldconfig %endif %if 0%{prefered} > 0 - %post -n libmysqld18 -p /sbin/ldconfig %postun -n libmysqld18 -p /sbin/ldconfig @@ -488,7 +480,6 @@ fi %config(noreplace) %attr(0640, root, mysql) /etc/mysqlaccess.conf %if 0%{prefered} > 0 - %files -n libmysqlclient-devel -f libmysqlclient-devel.files %defattr(-, root, root) /usr/include/mysql @@ -512,7 +503,6 @@ fi %{_libdir}/libmysqlclient.so.* %if 0%{cluster} > 1 - %files -n libndbclient6 %defattr(-, root, root) %{_libdir}/libndbclient.so.* @@ -548,7 +538,6 @@ fi %_bindir/mysqloptimize %if 0%{cluster} > 0 - %files ndb-storage -f mysql-ndb-storage.files %files ndb-management -f mysql-ndb-management.files