From b3e0e11edd8abe2f038f2675c714ae3bcaaa1eb2 Mon Sep 17 00:00:00 2001 From: Lukas Javorsky Date: Thu, 25 Nov 2021 10:36:39 +0100 Subject: [PATCH] Disable dtrace for the arm architecture due to FTBFS during gcc compiling Temporary workaround for BZ#2026600 Problem with the GCC is already beeing discussed in upstream's Bugzilla https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395 This commit should be reverted when the GCC fixes the issue on their side --- mariadb.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mariadb.spec b/mariadb.spec index e16f00b..c8d8953 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -845,7 +845,11 @@ fi -DGRN_DATA_DIR=share/%{name}-server/groonga \ -DGROONGA_NORMALIZER_MYSQL_PROJECT_NAME=%{name}-server/groonga-normalizer-mysql \ -DENABLED_LOCAL_INFILE=ON \ + %ifarch %{arm} + -DENABLE_DTRACE=OFF \ + %else -DENABLE_DTRACE=ON \ + %endif -DSECURITY_HARDENED=ON \ -DWITH_WSREP=%{?with_galera:ON}%{!?with_galera:OFF} \ -DWITH_INNODB_DISALLOW_WRITES=%{?with_galera:ON}%{!?with_galera:OFF} \ @@ -875,6 +879,10 @@ fi -DCONNECT_WITH_JDBC=OFF \ %{?with_debug: -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=OFF -DWITH_INNODB_EXTRA_DEBUG=ON -DWITH_VALGRIND=ON} +# The DTRACE option started to fail on the armv7hl architecture. +# This issue is already beeing discussed in the GCC upstream bugzilla. +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395 +# Whenever this issue is fixed in the GCC, we can enable the DTRACE for ARM again. CFLAGS="$CFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" # force PIC mode so that we can build libmysqld.so