Fix manpage empty issue.

Signed-off-by: Qiang Wei <qiang.wei@suse.com>
(cherry picked from commit 24a323b807d87ca4831f0f1312fbabac20974367)
This commit is contained in:
Qiang Wei 2022-09-02 18:06:43 +08:00 committed by openeuler-sync-bot
parent 6add22bac9
commit 03064399e6
2 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,37 @@
From 96a7037cd8573cf065aa6b12baca68696f96d9ca Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <siarheit@google.com>
Date: Mon, 26 Jul 2021 22:51:18 +0100
Subject: [PATCH] texi2pod.pl: add no-op --no-split option support [PR28144]
Change 2faf902da ("generate single html manual page by default")
added use of --no-split option to makeinfo. binutils reuses
makeinfo options for texi2pod.pl wrapper. Unsupported option
led to silent manpage truncation.
The change adds no-op option support.
etc/
* texi2pod.pl: Handle no-op --no-split option.
Signed-off-by: Wei, Qiang <qiang.wei@suse.com>
---
etc/texi2pod.pl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/etc/texi2pod.pl b/etc/texi2pod.pl
index 11f70d156be..dcf2b437640 100644
--- a/etc/texi2pod.pl
+++ b/etc/texi2pod.pl
@@ -59,6 +59,8 @@ while ($_ = shift) {
$flag = shift;
}
push (@ipath, $flag);
+ } elsif (/^--no-split$/) {
+ # ignore option for makeinfo compatibility
} elsif (/^-/) {
usage();
} else {
--
2.33.0

View File

@ -1,7 +1,7 @@
Summary: Binary utilities
Name: binutils
Version: 2.37
Release: 8
Release: 9
License: GPLv3+
URL: https://sourceware.org/binutils
@ -32,7 +32,7 @@ Patch9: backport-0003-CVE-2021-42574.patch
Patch10: bfd-Close-the-file-descriptor-if-there-is-no-archive.patch
Patch11: binutils-AArch64-EFI.patch
Patch12: backport-0001-PR28391-strip-objcopy-preserve-dates-.a-cannot-set-t.patch
Patch13: backport-0001-texi2pod.pl-add-no-op-no-split-option-support-PR2814.patch
Provides: bundled(libiberty)
@ -112,6 +112,7 @@ sed -i -e "s/^DEJATOOL = .*/DEJATOOL = binutils/" binutils/Makefile.in
sed -i -e "s/^DEJATOOL = .*/DEJATOOL = gas/" gas/Makefile.in
sed -i -e "s/^DEJATOOL = .*/DEJATOOL = ld/" ld/Makefile.in
touch gas/doc/as.texi
touch */configure
%build
@ -355,6 +356,9 @@ fi
%{_infodir}/bfd*info*
%changelog
* Fri Sep 02 2022 Wei, Qiang <qiang.wei@suse.com> - 2.37-9
- Fix man page empty issue
* Fri Aug 05 2022 maminjie <maminjie8@163.com> - 2.37-8
- Fix preserve_dates: cannot set time