From a2d562c07ddbb3a2bf58c9a322a1a753c2edab8f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 10 Aug 2021 18:47:33 +0100 Subject: [PATCH] Ensure that the manual pages are generated. (#1989836) --- binutils-missing-man-pages.patch | 12 ++++++++++++ binutils.spec | 14 +++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 binutils-missing-man-pages.patch diff --git a/binutils-missing-man-pages.patch b/binutils-missing-man-pages.patch new file mode 100644 index 0000000..eff1548 --- /dev/null +++ b/binutils-missing-man-pages.patch @@ -0,0 +1,12 @@ +diff -rup binutils.orig/etc/texi2pod.pl binutils-2.37/etc/texi2pod.pl +--- binutils.orig/etc/texi2pod.pl 2021-08-10 10:15:38.063964450 +0100 ++++ binutils-2.37/etc/texi2pod.pl 2021-08-10 16:52:51.705688992 +0100 +@@ -59,6 +59,8 @@ while ($_ = shift) { + $flag = shift; + } + push (@ipath, $flag); ++ } elsif (/^--no-split$/) { ++ # ignore option for makeinfo compatibility + } elsif (/^-/) { + usage(); + } else { diff --git a/binutils.spec b/binutils.spec index f020c92..952f7d2 100644 --- a/binutils.spec +++ b/binutils.spec @@ -39,7 +39,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?name_cross}%{?_with_debug:-debug} Version: 2.37 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ URL: https://sourceware.org/binutils @@ -277,6 +277,10 @@ Patch17: binutils-gold-i386-gnu-property-notes.patch # Lifetime: Fixed in 2.38 Patch18: binutils-dwarf-5-dir0.patch +# Purpose: Ensure that the manual pages are generated. +# Lifetime: Fixed in 2.38 +Patch19: binutils-missing-man-pages.patch + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -457,6 +461,11 @@ touch */configure %if %{without docs} find . -name *.info -print -exec touch {} \; %endif +# If we are creating the docs, touch the texi files so that the info and +# man pages will be rebuilt. +%if %{with docs} + find . -name *.texi -print -exec touch {} \; +%endif %ifarch %{power64} %define _target_platform %{_arch}-%{_vendor}-%{_host_os} @@ -880,6 +889,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Tue Aug 10 2021 Nick Clifton - 2.37-6 +- Ensure that the manual pages are generated. (#1989836) + * Tue Aug 10 2021 Nick Clifton - 2.37-5 - Fix a local change to readelf which resulted in a success exit code for non-existant files. (#1990817)