From b0928d819517456af83373660751fcce0518a90b Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 2 Jun 2021 12:27:04 +0200 Subject: [PATCH] Fix RPATH error Error: "ERROR 0001: file '/usr/libexec/mysqld' contains a standard runpath '/usr/lib64' in [/usr/lib64]" Caused by: https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild More Info: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_beware_of_rpath --- community-mysql.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/community-mysql.spec b/community-mysql.spec index 22785a4..81aca62 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -491,7 +491,8 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \ -DTMPDIR=/var/tmp \ -DWITH_MYSQLD_LDFLAGS="%{build_ldflags}" \ -DCMAKE_C_LINK_FLAGS="%{build_ldflags}" \ - -DCMAKE_CXX_LINK_FLAGS="%{build_ldflags}" + -DCMAKE_CXX_LINK_FLAGS="%{build_ldflags}" \ + -DCMAKE_SKIP_INSTALL_RPATH=YES # Note: linking with GOLD disabled on Armv7hl because of https://bugs.mysql.com/bug.php?id=96698