fix -u option

This commit is contained in:
renxichen 2022-10-21 17:29:41 +08:00
parent 0e1b3a07c5
commit c1a9f5269a
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From dd64ac131aebbc31233d1c5f9317aaee35764374 Mon Sep 17 00:00:00 2001
From: Allan McRae <allan@archlinux.org>
Date: Sun, 2 Jan 2022 15:23:34 +1000
Subject: [PATCH] Fix -u option
The -u option was missing from optionsChars resulting in it being
unrecognised.
$ debugedit -u
debugedit: invalid option -- 'u'
Signed-off-by: Allan McRae <allan@archlinux.org>
---
tools/debugedit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/debugedit.c b/tools/debugedit.c
index a0e86d3..642b29d 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -3047,7 +3047,7 @@ static struct option optionsTable[] =
{ NULL, 0, 0, 0 }
};
-static const char *optionsChars = "b:d:l:is:nV?";
+static const char *optionsChars = "b:d:l:is:nV?u";
static const char *helpText =
"Usage: %s [OPTION...] FILE\n"
--
2.27.0

View File

@ -1,6 +1,6 @@
Name: debugedit
Version: 5.0
Release: 2
Release: 3
Summary: Tools for debuginfo creation
License: GPL-2.0-or-later and LGPL-2.1-only and GPL-3.0-only
Group: Applications
@ -20,6 +20,8 @@ Requires: sed dwz grep
Patch0: tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
Patch1: find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
Patch6000: backport-Fix-u-option.patch
%description
Debugedit provides programs and scripts for creating debuginfo and
source file distributions, collect build-ids and rewrite source
@ -56,6 +58,9 @@ make check %{?_smp_mflags}
%{_mandir}/man1/find-debuginfo.1*
%changelog
* Fri Oct 21 2022 renhongxun <renhongxun@h-partners.com> 5.0-3
- fix -u option
* Tue Jan 11 2022 renhongxun <renhongxun@huawei.com> 5.0-2
- bugfix