From 5b8853d5ddbb87074a71351aa74bb74a060602bd Mon Sep 17 00:00:00 2001 From: wang--ge Date: Fri, 3 Mar 2023 14:39:34 +0800 Subject: [PATCH] remove rpath (cherry picked from commit 38496c3275dbd499a9c2fd948de90cafa38225eb) --- mysql.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mysql.spec b/mysql.spec index de5e205..04a529d 100644 --- a/mysql.spec +++ b/mysql.spec @@ -30,7 +30,7 @@ %global sameevr %{?epoch:%{epoch}:}%{version}-%{release} Name: mysql Version: 8.0.30 -Release: 1 +Release: 2 Summary: MySQL client programs and shared libraries URL: http://www.mysql.com License: GPLv2 with exceptions and LGPLv2 and BSD @@ -81,7 +81,7 @@ BuildRequires: perl(Getopt::Long) perl(if) perl(IO::File) perl(IO::Handle) BuildRequires: perl(IO::Socket::INET) perl(IPC::Open3) perl(JSON) perl(lib) perl(LWP::Simple) BuildRequires: perl(Memoize) perl(Net::Ping) perl(POSIX) perl(Socket) perl(strict) BuildRequires: perl(Sys::Hostname) perl(Test::More) perl(Time::HiRes) perl(Time::localtime) -BuildRequires: perl(warnings) systemd m4 +BuildRequires: perl(warnings) systemd m4 chrpath Requires: bash coreutils grep %{name}-common%{?_isa} = %{sameevr} Provides: bundled(boost) = %{boost_bundled_version} %if %{with mysql_names} @@ -385,11 +385,13 @@ chmod 644 %{buildroot}%{logrotateddir}/%{daemon_name} mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf mv %{buildroot}%{_bindir}/mysqld %{buildroot}%{_libexecdir}/mysqld +chrpath -d %{buildroot}%{_libexecdir}/mysqld mkdir -p %{buildroot}%{_sbindir} ln -s %{_libexecdir}/mysqld %{buildroot}%{_sbindir}/mysqld %if %{with debug} mv %{buildroot}%{_bindir}/mysqld-debug %{buildroot}%{_libexecdir}/mysqld +chrpath-d%{buildroot}%{_libexecdir}/mysqld %endif cd - @@ -541,6 +543,9 @@ fi %{_mandir}/man1/mysql_config.1* %changelog +* Fri Mar 3 2023 Ge Wang - 8.0.30-2 +- Remove rpath + * Thu Feb 9 2023 caodongxia - 8.0.30-1 - Update to 8.0.30 -- Gitee