Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/percona-server/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-22 20:18:50 +0200
committerErich Eckner <git@eckner.net>2023-05-22 20:18:50 +0200
commite74cde76c104df82b120a7b13964cb786da8f565 (patch)
tree39967e24037929c04aaf79922aa260b437a60a5e /extra/percona-server/PKGBUILD
parent73e1d3b448cc583ab38cae4d61a26f313fad946b (diff)
community -> extra
Diffstat (limited to 'extra/percona-server/PKGBUILD')
-rw-r--r--extra/percona-server/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
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/
+ '
+)"