diff --git a/compilec-fix.patch b/compilec-fix.patch deleted file mode 100644 index 6337019d7274e6803d68a5c442fd8a1e4f3d032c..0000000000000000000000000000000000000000 --- a/compilec-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ruNa percona-xtrabackup-percona-xtrabackup-2.3.6/cmake/build_configurations/compiler_options.cmake percona-xtrabackup-percona-xtrabackup-2.3.6_patched/cmake/build_configurations/compiler_options.cmake ---- percona-xtrabackup-percona-xtrabackup-2.3.6/cmake/build_configurations/compiler_options.cmake 2016-11-25 17:05:53.000000000 +0800 -+++ percona-xtrabackup-percona-xtrabackup-2.3.6_patched/cmake/build_configurations/compiler_options.cmake 2021-07-16 21:10:47.260642064 +0800 -@@ -25,7 +25,7 @@ - - # Default GCC flags - IF(CMAKE_COMPILER_IS_GNUCC) -- SET(COMMON_C_FLAGS "-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing") -+ SET(COMMON_C_FLAGS "-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -Wno-implicit-fallthrough -Wno-stringop-truncation -Wno-stringop-overflow") - # Disable inline optimizations for valgrind testing to avoid false positives - IF(WITH_VALGRIND) - SET(COMMON_C_FLAGS "-fno-inline ${COMMON_C_FLAGS}") diff --git a/gcc-10-cflags-fix.patch b/gcc-10-cflags-fix.patch deleted file mode 100644 index 641390d68cc196cd2f066322b55d30a9943855d3..0000000000000000000000000000000000000000 --- a/gcc-10-cflags-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ruNa percona-xtrabackup-percona-xtrabackup-2.3.6/cmake/build_configurations/compiler_options.cmake percona-xtrabackup-percona-xtrabackup-2.3.6_patched/cmake/build_configurations/compiler_options.cmake ---- percona-xtrabackup-percona-xtrabackup-2.3.6/cmake/build_configurations/compiler_options.cmake 2021-08-02 10:04:35.684407534 +0800 -+++ percona-xtrabackup-percona-xtrabackup-2.3.6_patched/cmake/build_configurations/compiler_options.cmake 2021-08-02 10:05:25.068932898 +0800 -@@ -25,7 +25,7 @@ - - # Default GCC flags - IF(CMAKE_COMPILER_IS_GNUCC) -- SET(COMMON_C_FLAGS "-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -Wno-implicit-fallthrough -Wno-stringop-truncation -Wno-stringop-overflow") -+ SET(COMMON_C_FLAGS "-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -Wno-implicit-fallthrough -Wno-stringop-truncation -Wno-stringop-overflow -fcommon") - # Disable inline optimizations for valgrind testing to avoid false positives - IF(WITH_VALGRIND) - SET(COMMON_C_FLAGS "-fno-inline ${COMMON_C_FLAGS}") diff --git a/gcc-7-flags-fix.patch b/gcc-7-flags-fix.patch deleted file mode 100644 index 4fe57da0678715bcad6013b883eda975ef1f8abd..0000000000000000000000000000000000000000 --- a/gcc-7-flags-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/cmake/build_configurations/compiler_options.cmake 2021-07-16 04:05:53.000000000 -0500 -+++ b/cmake/build_configurations/compiler_options.cmake 2021-07-16 12:20:04.708833670 -0500 -@@ -34,7 +34,7 @@ - SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 ${COMMON_C_FLAGS}") - ENDIF() - IF(CMAKE_COMPILER_IS_GNUCXX) -- SET(COMMON_CXX_FLAGS "-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing") -+ SET(COMMON_CXX_FLAGS "-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -fpermissive") - # Disable inline optimizations for valgrind testing to avoid false positives - IF(WITH_VALGRIND) - SET(COMMON_CXX_FLAGS "-fno-inline ${COMMON_CXX_FLAGS}") diff --git a/percona-xtrabackup-2.3.6.tar.gz b/percona-xtrabackup-2.3.6.tar.gz deleted file mode 100644 index ae4809c7888d7604f77fe8b0f06772193ad76092..0000000000000000000000000000000000000000 Binary files a/percona-xtrabackup-2.3.6.tar.gz and /dev/null differ diff --git a/percona-xtrabackup-2.4.27.tar.gz b/percona-xtrabackup-2.4.27.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3e2a157e2e0d519f197635bc9994f2da28fc1446 Binary files /dev/null and b/percona-xtrabackup-2.4.27.tar.gz differ diff --git a/percona-xtrabackup.spec b/percona-xtrabackup.spec index cc34c815b4d9dd2c5aed92f1cb646a4ca26e66f7..fcc0e614b8d959b98ef3af9b3891f5aa481aca4e 100644 --- a/percona-xtrabackup.spec +++ b/percona-xtrabackup.spec @@ -1,105 +1,163 @@ -Name: percona-xtrabackup -Summary: Online backup for InnoDB/XtraDB in MySQL, Percona Server and MariaDB -Version: 2.3.6 -Release: 2 -License: GPLv2 -URL: http://www.percona.com/software/percona-xtrabackup/ -Source: percona-xtrabackup-%{version}.tar.gz -Patch1: gcc-7-flags-fix.patch -Patch2: compilec-fix.patch -Patch3: gcc-10-cflags-fix.patch - -Provides: %{name} - -BuildRequires: automake -BuildRequires: cmake >= 2.6.3 -BuildRequires: patch -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: libtool - -BuildRequires: perl-generators -BuildRequires: procps -BuildRequires: python-sphinx - -BuildRequires: vim-common -BuildRequires: bison -BuildRequires: ncurses-devel -BuildRequires: openssl-devel -BuildRequires: libaio-devel -BuildRequires: libgcrypt-devel -BuildRequires: libcurl-devel -BuildRequires: libev-devel -Requires: perl(DBD::mysql) -Requires: libcurl -Requires: libev +%define xb_version_major 2 +%define xb_version_minor 4 +%define xb_version_patch 27 +%define xb_version_extra %{nil} +%define xb_rpm_version_extra 1 +%define xb_revision aae8e82 +%global mysqldatadir /var/lib/mysql + +##################################### +Name: percona-xtrabackup-%{xb_version_major}%{xb_version_minor} +Version: %{xb_version_major}.%{xb_version_minor}.%{xb_version_patch} +Release: %{xb_rpm_version_extra}%{?dist} +Summary: XtraBackup online backup for MySQL / InnoDB + +Group: Applications/Databases +License: GPLv2 +URL: http://www.percona.com/software/percona-xtrabackup +Source: percona-xtrabackup-%{version}%{xb_version_extra}.tar.gz + +BuildRequires: cmake, libaio-devel, libgcrypt-devel, ncurses-devel, readline-devel, zlib-devel, libev-devel openssl-devel +%if 0%{?rhel} > 5 +BuildRequires: libcurl-devel +%else +BuildRequires: curl-devel +%endif + +BuildRequires: make vim-common gcc gcc-c++ libgcc + +Conflicts: percona-xtrabackup-21, percona-xtrabackup-22, percona-xtrabackup +Requires: perl(DBD::mysql), rsync +Requires: perl(Digest::MD5) +BuildRoot: %{_tmppath}/%{name}-%{version}%{xb_version_extra}-root + %description -Online backup for InnoDB/XtraDB in MySQL, MariaDB and Percona Server. +Percona XtraBackup is OpenSource online (non-blockable) backup solution for InnoDB and XtraDB engines -%package test -Summary: Test suite for Percona Xtrabackup -Provides: %{name}-test -Requires: %{name} -Requires: /usr/bin/mysql -Requires: %{name} = %{version}-%{release} +%package -n percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} +Summary: Test suite for Percona XtraBackup +Group: Applications/Databases +Requires: percona-xtrabackup-%{xb_version_major}%{xb_version_minor} = %{version}-%{release} +Requires: /usr/bin/mysql +AutoReqProv: no -%description test -This package contains the test suite for Percona Xtrabackup +%description -n percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} +This package contains the test suite for Percona XtraBackup %{version}%{xb_version_extra} %prep -%setup -qn %{name}-%{name}-%{version} -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 +%setup -q -n percona-xtrabackup-%{version}%{xb_version_extra} +%bcond_with dummy %build -cmake -DBUILD_CONFIG=xtrabackup_release && make %{?_smp_mflags} - +# +%if %{with dummy} +# Dummy binaries that avoid compilation +echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xtrabackup +echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xbstream +echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xbcrypt +echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xbcloud +# +%else +# +export CC=${CC-"gcc"} +export CXX=${CXX-"g++"} +export CFLAGS=${CFLAGS:-} +export CXXFLAGS=${CXXFLAGS:-} +# +# +%if 0%{?rhel} == 8 +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' storage/innobase/xtrabackup/test/subunit2junitxml +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' storage/innobase/xtrabackup/test/python/subunit/tests/sample-two-script.py +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' storage/innobase/xtrabackup/test/python/subunit/tests/sample-script.py +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' storage/innobase/xtrabackup/test/python/subunit/run.py +%endif +# +%if 0%{?rhel} == 9 +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python3:g' storage/innobase/xtrabackup/test/subunit2junitxml +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python3:g' storage/innobase/xtrabackup/test/python/subunit/tests/sample-two-script.py +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python3:g' storage/innobase/xtrabackup/test/python/subunit/tests/sample-script.py +sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python3:g' storage/innobase/xtrabackup/test/python/subunit/run.py +%endif +# +%if 0%{?rhel} > 5 + cmake . -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DWITH_SSL=system -DDOWNLOAD_BOOST=1 -DWITH_BOOST=libboost \ + -DINSTALL_MYSQLTESTDIR=%{_datadir}/percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} \ + -DINSTALL_MANDIR=%{_mandir} -DWITH_MAN_PAGES=1 \ + -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \ + -DINSTALL_PLUGINDIR="%{_lib}/xtrabackup/plugin" +%else + cmake . -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DINSTALL_MYSQLTESTDIR=%{_datadir}/percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} \ + -DINSTALL_MANDIR=%{_mandir} -DWITH_MAN_PAGES=1 \ + -DDOWNLOAD_BOOST=1 -DWITH_BOOST=libboost \ + -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \ + -DINSTALL_PLUGINDIR="%{_lib}/xtrabackup/plugin" +%endif + +# +make %{?_smp_mflags} +# +%endif +# %install -[ "%{buildroot}" != '/' ] && rm -rf %{buildroot} -install -d %{buildroot}%{_bindir} -install -d %{buildroot}%{_datadir} -install -d %{buildroot}%{_mandir}/man1 -# install binaries and configs - -SRC_DIR=storage/innobase/xtrabackup/src -pushd . -cd $SRC_DIR -install -p -m 755 xtrabackup %{buildroot}%{_bindir} -ln -sf xtrabackup %{buildroot}%{_bindir}/innobackupex -install -p -m 755 xbstream %{buildroot}%{_bindir} -install -p -m 755 xbcrypt %{buildroot}%{_bindir} -cd .. -find test -size 0 -delete -cp -pR test %{buildroot}%{_datadir}/percona-xtrabackup-test -rm -rf %{buildroot}%{_datadir}/percona-xtrabackup-test/kewpie -rm -rf %{buildroot}%{_datadir}/percona-xtrabackup-test/*Make* -cd doc/source/build/man -install -m 644 *.1 %{buildroot}%{_mandir}/man1 - -popd +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT/%{_libdir}/libmysqlservices.a +rm -rf $RPM_BUILD_ROOT/usr/lib/libmysqlservices.a +rm -f $RPM_BUILD_ROOT/usr/COPYING-test +rm -f $RPM_BUILD_ROOT/usr/README-test + +%clean +rm -rf $RPM_BUILD_ROOT %files +%defattr(-,root,root,-) %{_bindir}/innobackupex %{_bindir}/xtrabackup %{_bindir}/xbstream %{_bindir}/xbcrypt -%doc COPYING README VERSION -%{_mandir}/man1/innobackupex.1.gz -%{_mandir}/man1/xtrabackup.1.gz -%{_mandir}/man1/xbstream.1.gz -%{_mandir}/man1/xbcrypt.1.gz +%{_bindir}/xbcloud +%{_bindir}/xbcloud_osenv +%{_libdir}/xtrabackup/plugin/keyring_file.so +%{_libdir}/xtrabackup/plugin/keyring_vault.so +%doc %{_mandir}/man1/*.1.gz +%doc LICENSE -%files -n percona-xtrabackup-test -%{_datadir}/percona-xtrabackup-test -%doc COPYING +%files -n percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} +%defattr(-,root,root,-) +%{_datadir}/percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} %changelog -* Mon Aug 2 2021 bzhaoop - 2.3.6-2 -- Fix gcc 10 compiling issue +* Wed Feb 03 2016 Tomislav Plavcic +- Packaging updates for version 2.4.0-rc1 + +* Mon Dec 14 2015 Tomislav Plavcic +- Update to new release Percona XtraBackup 2.3.3 + +* Fri Oct 16 2015 Tomislav Plavcic +- Update to new release Percona XtraBackup 2.3.2 +- Renamed the package to percona-xtrabackup since 2.3 became GA + +* Fri May 15 2015 Tomislav Plavcic +- Update to new release Percona XtraBackup 2.3.1beta1 + +* Thu Oct 30 2014 Tomislav Plavcic +- Update to new release Percona XtraBackup 2.3.0alpha1 + +* Wed Sep 29 2014 Tomislav Plavcic +- Update to new release Percona XtraBackup 2.2.6 + +* Fri Sep 26 2014 Tomislav Plavcic +- Update to new release Percona XtraBackup 2.2.5 + +* Thu Sep 11 2014 Tomislav Plavcic +- Changed options to build with system zlib -* Mon Jul 26 2021 bzhaoop - 2.3.6-1 -- Init project for percona-xtrabackup +* Mon Jun 10 2014 Tomislav Plavcic +- renamed package from percona-xtrabackup-22 to percona-xtrabackup +* Wed Mar 26 2014 Alexey Bychko +- initial alpha release for 2.2 (2.2.1-alpha1) diff --git a/percona-xtrabackup.yaml b/percona-xtrabackup.yaml deleted file mode 100644 index 6e915854ce71cd02caa29143bd30417e3ea1ffe9..0000000000000000000000000000000000000000 --- a/percona-xtrabackup.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: git -src_repo: https://github.com/percona/percona-xtrabackup -tag_prefix: "" -separator: "."