From c1a9f5269a14fe54d876b25950948f5d173cbf4f Mon Sep 17 00:00:00 2001 From: renxichen Date: Fri, 21 Oct 2022 17:29:41 +0800 Subject: [PATCH] fix -u option --- backport-Fix-u-option.patch | 32 ++++++++++++++++++++++++++++++++ debugedit.spec | 7 ++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 backport-Fix-u-option.patch diff --git a/backport-Fix-u-option.patch b/backport-Fix-u-option.patch new file mode 100644 index 0000000..08807d6 --- /dev/null +++ b/backport-Fix-u-option.patch @@ -0,0 +1,32 @@ +From dd64ac131aebbc31233d1c5f9317aaee35764374 Mon Sep 17 00:00:00 2001 +From: Allan McRae +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 +--- + 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 + diff --git a/debugedit.spec b/debugedit.spec index 0c72d42..76b0aad 100644 --- a/debugedit.spec +++ b/debugedit.spec @@ -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 5.0-3 +- fix -u option + * Tue Jan 11 2022 renhongxun 5.0-2 - bugfix