From e74cde76c104df82b120a7b13964cb786da8f565 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 22 May 2023 20:18:50 +0200 Subject: community -> extra --- extra/percona-server/LF_PINS-size.patch | 11 ++++++++++ extra/percona-server/PKGBUILD | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 extra/percona-server/LF_PINS-size.patch create mode 100644 extra/percona-server/PKGBUILD (limited to 'extra/percona-server') diff --git a/extra/percona-server/LF_PINS-size.patch b/extra/percona-server/LF_PINS-size.patch new file mode 100644 index 00000000..49518579 --- /dev/null +++ b/extra/percona-server/LF_PINS-size.patch @@ -0,0 +1,11 @@ +--- a/include/lf.h 2019-01-23 14:23:40.167072246 +0000 ++++ b/include/lf.h 2019-01-23 14:20:59.600689484 +0000 +@@ -88,7 +88,7 @@ + std::atomic link; + /* we want sizeof(LF_PINS) to be 64 to avoid false sharing */ + #if 2 * 8 + SIZEOF_CHARP * (LF_PINBOX_PINS + 2) != 64 +- char pad[64 - sizeof(uint32) * 2 - sizeof(void *) * (LF_PINBOX_PINS + 2)]; ++ char pad[64 - (2 * 8 + SIZEOF_CHARP * (LF_PINBOX_PINS + 2))]; + #endif + }; + diff --git a/extra/percona-server/PKGBUILD b/extra/percona-server/PKGBUILD new file mode 100644 index 00000000..d4ca9e87 --- /dev/null +++ b/extra/percona-server/PKGBUILD @@ -0,0 +1,36 @@ +source+=('LF_PINS-size.patch') +sha256sums+=('c77f581059ee6a9b248c45194d392f45f311b3b755a9de20c274e13bb1a4d28c') + +eval "$( + declare -f prepare | \ + sed ' + $ i patch -p1 -i "$srcdir/LF_PINS-size.patch" + ' +)" + +# disable maintainer mode (-Werror) +eval "$( + declare -f build | \ + sed ' + s/-Wno-dev/-Wno-dev -DMYSQL_MAINTAINER_MODE=OFF/ + ' +)" + +# do not build storage backends which are only available on 64-bit +eval "$( + declare -f build | \ + sed ' + s/-DWITH_ROCKSDB=ON/-DWITH_ROCKSDB=OFF/ + s/-DTOKU_DEBUG_PARANOID=OFF/-DWITH_TOKUDB=OFF/ + ' +)" + +# https://bugs.mysql.com/bug.php?id=67898 +# is very old and on WONTFIX, so the error message generator break +# on 32-bit with optimization, we enable debug mode with no optimizations, sorry +eval "$( + declare -f build | \ + sed ' + s/-Wno-dev/-Wno-dev -DWITH_DEBUG=YES/ + ' +)" -- cgit v1.2.3-70-g09d2