From ed7f59526db33d5380b6bb626f665e9369d84a6d Mon Sep 17 00:00:00 2001 From: dpd Date: Tue, 8 Jul 2025 10:06:42 +0800 Subject: [PATCH] removing a warning message about loongarch64 --- ...-a-warning-message-about-loongarch64.patch | 23 +++++++++++++++++++ elfutils.spec | 9 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-removing-a-warning-message-about-loongarch64.patch diff --git a/0001-removing-a-warning-message-about-loongarch64.patch b/0001-removing-a-warning-message-about-loongarch64.patch new file mode 100644 index 0000000..972160a --- /dev/null +++ b/0001-removing-a-warning-message-about-loongarch64.patch @@ -0,0 +1,23 @@ +From 65f625ee127e26ce90acc503f53c81e560fdb2fa Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Tue, 8 Jul 2025 01:53:01 +0000 +Subject: [PATCH] removing a warning message about loongarch64 + +--- + config/10-default-yama-scope.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/config/10-default-yama-scope.conf b/config/10-default-yama-scope.conf +index 4df2090..0e960f5 100644 +--- a/config/10-default-yama-scope.conf ++++ b/config/10-default-yama-scope.conf +@@ -31,5 +31,5 @@ + # 2 - Admin-only attach. Only executables with CAP_SYS_PTRACE. + # 3 - No attach. No process may call ptrace at all. Irrevocable. + # +-kernel.yama.ptrace_scope = 0 ++-kernel.yama.ptrace_scope = 0 + +-- +2.47.1 + diff --git a/elfutils.spec b/elfutils.spec index 01a68bd..b018059 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ %global _gnu %{nil} %define __brp_remove_la_files %{nil} @@ -16,6 +16,7 @@ Source0: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version} Source1: elfutils-debuginfod.sysusers Patch0: add-sw_64-support.patch +Patch1: 0001-removing-a-warning-message-about-loongarch64.patch Requires: elfutils-libelf = %{version}-%{release} Requires: elfutils-libs = %{version}-%{release} @@ -201,6 +202,9 @@ such servers to download those files on demand. %ifarch sw_64 %patch -P0 -p1 %endif +%ifarch loongarch64 +%patch -P1 -p1 +%endif autoreconf -f -v -i find . -name \*.sh ! -perm -0100 -print | xargs chmod +x @@ -357,6 +361,9 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Tue Jul 8 2025 doupengda - 0.190-3 +- removing a warning message about loongarch64 + * Mon Mar 31 2025 xunian - 0.190-2 - add sw_64 support -- Gitee