diff --git a/elfutils.spec b/elfutils.spec index f746c2047061a7826042c1694d715e218a28a723..ff86d1164277066df33059bc26a77af16f3ba524 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,12 +1,14 @@ # -*- rpm-spec from http://elfutils.org/ -*- Name: elfutils Version: 0.180 -Release: 3 +Release: 4 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data URL: http://elfutils.org/ License: GPLv3+ and (GPLv2+ or LGPLv3+) Source: ftp://sourceware.org/pub/elfutils/%{version}/elfutils-%{version}.tar.bz2 +Patch0: eu-elfclassify-no-stdin-should-use-classify_flag_no_stdin.patch + Provides: elfutils-libelf elfutils-default-yama-scope default-yama-scope elfutils-libs Obsoletes: elfutils-libelf elfutils-default-yama-scope elfutils-libs Requires: glibc >= 2.7 libstdc++ @@ -103,7 +105,7 @@ The ELF/DWARF file searching functions in libdwfl can query such servers to download those files on demand. %prep -%setup -q +%autosetup -n %{name}-%{version} -p1 %build %configure --program-prefix=%{_programprefix} @@ -231,6 +233,9 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Thu Feb 17 2022 panxiaohe - 0.180-4 +- fix wrong use of stdin for eu-elfclassify --no-stdin option + * Thu Jun 10 2021 wangchen - 0.180-3 - fix adding gcc-c++ to BuildRequires diff --git a/eu-elfclassify-no-stdin-should-use-classify_flag_no_stdin.patch b/eu-elfclassify-no-stdin-should-use-classify_flag_no_stdin.patch new file mode 100644 index 0000000000000000000000000000000000000000..a89c112409c72e62ea3eee4df4d8c1b8cf816fed --- /dev/null +++ b/eu-elfclassify-no-stdin-should-use-classify_flag_no_stdin.patch @@ -0,0 +1,26 @@ +From 6ac20db56ab5e431b128a9f80d294bcf82111e29 Mon Sep 17 00:00:00 2001 +From: panxiaohe +Date: Thu, 17 Feb 2022 15:39:23 +0800 +Subject: [PATCH] eu-elfclassify: --no-stdin option should use + classify_flag_no_stdin + +--- + src/elfclassify.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/elfclassify.c b/src/elfclassify.c +index 535cc49..712e08f 100644 +--- a/src/elfclassify.c ++++ b/src/elfclassify.c +@@ -948,7 +948,7 @@ separated by newlines"), 2 }, + { "stdin0", classify_flag_stdin0, NULL, 0, + N_("Also read file names to process from standard input, \ + separated by ASCII NUL bytes"), 2 }, +- { "no-stdin", classify_flag_stdin, NULL, 0, ++ { "no-stdin", classify_flag_no_stdin, NULL, 0, + N_("Do not read files from standard input (default)"), 2 }, + { "compressed", 'z', NULL, 0, + N_("Try to open compressed files or embedded (kernel) ELF images"), +-- +1.8.3.1 +