diff --git a/elfutils.spec b/elfutils.spec index f3e8b4627dd537267b0b7df561a6c55ef165cb1e..2dd93e23ecd2dd21abdcff96ecd8636d85cc3713 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,12 +1,14 @@ # -*- rpm-spec from http://elfutils.org/ -*- Name: elfutils Version: 0.185 -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 + Requires: elfutils-libelf = %{version}-%{release} Requires: elfutils-libs = %{version}-%{release} Requires: glibc >= 2.7 libstdc++ @@ -153,7 +155,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} @@ -299,6 +301,9 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Thu Feb 17 2022 panxiaohe - 0.185-4 +- fix wrong use of stdin for eu-elfclassify --no-stdin option + * Wed Sep 15 2021 panxiaohe - 0.185-3 - detach subpackages elfutils-libs, elfutils-libelf, elfutils-libelf-devel, elfutils-default-yama-scope 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 +