From 73136c58fcd1cc619883d05604d7077e09f11f3d Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Fri, 10 Nov 2023 15:28:54 +0800 Subject: [PATCH] Redefine chrpath_delete macro to delete runpath/rpath --- sudo.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sudo.spec b/sudo.spec index bacb76e..7d2b212 100644 --- a/sudo.spec +++ b/sudo.spec @@ -1,6 +1,11 @@ +# The global macro chrpath_delete defined in +# macros file, but does't work. +# Redefine macro chrpath_delete local. +%define chrpath_delete() (find $RPM_BUILD_ROOT/ -type f -exec file {} ';' | grep -w "ELF" | awk -F ':' '{print $1}' | xargs -i chrpath --delete {}) + Name: sudo Version: 1.9.2 -Release: 13 +Release: 14 Summary: Allows restricted root access for specified users License: ISC URL: http://www.courtesan.com/sudo/ @@ -176,6 +181,9 @@ install -p -c -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/sudo-i %exclude %{_pkgdocdir}/ChangeLog %changelog +* Fri Nov 10 2023 yixiangzhike - 1.9.2-14 +- redefine chrpath_delete macro to delete runpath/rpath + * Wed Apr 12 2023 wangyu - 1.9.2-13 - Fix compilation error on sw64 arch. -- Gitee