[arch-commits] Commit in xtrabackup/trunk (PKGBUILD gcc12.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sat Jun 11 15:37:29 UTC 2022


    Date: Saturday, June 11, 2022 @ 15:37:28
  Author: foutrelis
Revision: 1233874

Fix build with GCC 12

Added:
  xtrabackup/trunk/gcc12.patch
Modified:
  xtrabackup/trunk/PKGBUILD

-------------+
 PKGBUILD    |   12 +++++++++---
 gcc12.patch |   12 ++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-11 15:28:06 UTC (rev 1233873)
+++ PKGBUILD	2022-06-11 15:37:28 UTC (rev 1233874)
@@ -14,12 +14,18 @@
 optdepends=('qpress: for compressed backups')
 options=('debug')
 source=("https://www.percona.com/downloads/Percona-XtraBackup-LATEST/Percona-XtraBackup-${pkgver//_/-}/source/tarball/percona-xtrabackup-${pkgver//_/-}.tar.gz"
-        "https://boostorg.jfrog.io/artifactory/main/release/$_boost_ver/source/boost_${_boost_ver//./_}.tar.gz")
+        "https://boostorg.jfrog.io/artifactory/main/release/$_boost_ver/source/boost_${_boost_ver//./_}.tar.gz"
+        gcc12.patch)
 
 sha256sums=('0bcfc60b2b19723ea348e43b04bd904c49142f58d326ab32db11e69dda00b733'
-            '9995e192e68528793755692917f9eb6422f3052a53c5e13ba278a228af6c7acf')
+            '9995e192e68528793755692917f9eb6422f3052a53c5e13ba278a228af6c7acf'
+            'c0ec91be6ea6c1068b8f75b31c7ab4d743a628a808646afc0fdd9345a8d075f2')
+prepare() {
+  mkdir build
+  patch -Np1 -d percona-xtrabackup-${pkgver//_/-} <gcc12.patch
+}
+
 build() {
-  mkdir build
   cd build
   cmake -DBUILD_CONFIG=xtrabackup_release \
         -DCMAKE_BUILD_TYPE=Release \

Added: gcc12.patch
===================================================================
--- gcc12.patch	                        (rev 0)
+++ gcc12.patch	2022-06-11 15:37:28 UTC (rev 1233874)
@@ -0,0 +1,12 @@
+diff --git a/components/keyrings/common/component_helpers/src/keyring_log_builtins_definition.cc b/components/keyrings/common/component_helpers/src/keyring_log_builtins_definition.cc
+index b48013298e1..92b483ba8bc 100644
+--- a/components/keyrings/common/component_helpers/src/keyring_log_builtins_definition.cc
++++ b/components/keyrings/common/component_helpers/src/keyring_log_builtins_definition.cc
+@@ -25,6 +25,7 @@
+ #include <cstring>
+ #include <iostream>
+ #include <locale>
++#include <memory>
+ #include <sstream>
+ 
+ #include <m_string.h>



More information about the arch-commits mailing list