!17 fix wrong use of stdin for eu-elfclassify --no-stdin option
From: @panxh_purple Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
1b13067cc7
@ -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 <panxh.life@foxmail.com> - 0.185-4
|
||||
- fix wrong use of stdin for eu-elfclassify --no-stdin option
|
||||
|
||||
* Wed Sep 15 2021 panxiaohe <panxiaohe@huawei.com> - 0.185-3
|
||||
- detach subpackages elfutils-libs, elfutils-libelf,
|
||||
elfutils-libelf-devel, elfutils-default-yama-scope
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
From 6ac20db56ab5e431b128a9f80d294bcf82111e29 Mon Sep 17 00:00:00 2001
|
||||
From: panxiaohe <panxh.life@foxmail.com>
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user