From 9cffff411e28e91f015a5a7079844d501697c097 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 30 May 2021 15:38:21 +0200 Subject: extra/mariadb: applying atomic patch on i486 only --- extra/mariadb/PKGBUILD | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) (limited to 'extra/mariadb/PKGBUILD') diff --git a/extra/mariadb/PKGBUILD b/extra/mariadb/PKGBUILD index 83ea7950..f9ff5654 100644 --- a/extra/mariadb/PKGBUILD +++ b/extra/mariadb/PKGBUILD @@ -1,25 +1,12 @@ -# add -latomic where needed -# e.g.TARGET_LINK_LIBRARIES(mariabackup sql crc atomic) -source+=('mariadb-10.5.10-atomic.patch') -sha256sums+=('b235236c9a872a4921e5c6e57dbcc75e52d544ddd6ed4ac84ebd627853207b15') -eval "$( - declare -f prepare | \ - sed ' - /patch -Np1.*0001-arch-specific.patch/ a \ patch -Np1 -i "${srcdir}/mariadb-10.5.10-atomic.patch" - ' -)" - -# tests are also disabled upstream, running them manually on i486 looks ok -#The servers were restarted 1548 times -#Spent 5008.297 of 859 seconds executing testcases -# -#Completed: Failed 5/5417 tests, 99.91% were successful. -# -#Failing test(s): main.mysqldump main.ddl_i18n_koi8r main.ddl_i18n_utf8 main.flush_logs_not_windows perfschema.bad_option -# -#The log files in var/log may give you some hint of what went wrong. -# -#If you want to report this error, please read first the documentation -#at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html -# -#962 tests were skipped, 293 by the test itself. +# add -latomic where needed (i486) +# patch mainly from VoidLinux, applying on i486 as it seems to fail on i686 and pentium4 +if [ "$CARCH" = 'i486' ]; then + source+=('mariadb-10.5.10-atomic.patch') + sha256sums+=('b235236c9a872a4921e5c6e57dbcc75e52d544ddd6ed4ac84ebd627853207b15') + eval "$( + declare -f prepare | \ + sed ' + /patch -Np1.*0001-arch-specific.patch/ a \ patch -Np1 -i "${srcdir}/mariadb-10.5.10-atomic.patch" + ' + )" +fi -- cgit v1.2.3-70-g09d2