From cfece481b7893b245507c4b7f30b3a09498c92fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=A3=E8=82=89=E9=85=B1?= Date: Mon, 6 Feb 2023 08:58:47 +0000 Subject: [PATCH] Fix output of undefined symbols detections. Signed-off-by: Chunmei Xu --- check_elf_files | 2 +- system-rpm-config.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/check_elf_files b/check_elf_files index 986e96e..c0badf5 100755 --- a/check_elf_files +++ b/check_elf_files @@ -33,7 +33,7 @@ sub check_missing_or_unused_libs { join(' ', map { basename($_) } @l), "\n"; } foreach my $file (@shared_libs) { - my @l = `ldd -r $file 2>/dev/null`; + my @l = `ldd -r $file 2>/dev/null | grep "undefined symbol"`; next unless @l; my $file_ = substr($file, $shift); print STDERR diff --git a/system-rpm-config.spec b/system-rpm-config.spec index 92e7d8b..21c93e3 100644 --- a/system-rpm-config.spec +++ b/system-rpm-config.spec @@ -1,4 +1,4 @@ -%define anolis_release 23 +%define anolis_release 24 Summary: Anolis OS specific rpm configuration files Name: system-rpm-config @@ -198,6 +198,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/anolis/srpm forge.lua %license MulanPSL %changelog +* Mon Feb 6 2023 Funda Wang - 1:23-24 +- Fix output of undefined symbols detections + * Sat Feb 4 2023 Funda Wang - 1:23-23 - Add helper scripts from Mageia for clean perl files and display warnings against shared libs -- Gitee