From 9940f6cf1438a9a9188614a08f0fc46399171713 Mon Sep 17 00:00:00 2001 From: YAKSH BARIYA Date: Wed, 17 Nov 2021 06:58:59 +0530 Subject: [PATCH] binutils: Fix empty manpages (#7989) --- packages/binutils/build.sh | 10 +++++++++- packages/binutils/fix-empty-manpages.patch | 13 +++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 packages/binutils/fix-empty-manpages.patch diff --git a/packages/binutils/build.sh b/packages/binutils/build.sh index c8de12871..187fce015 100644 --- a/packages/binutils/build.sh +++ b/packages/binutils/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=2.37 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_REVISION=4 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c TERMUX_PKG_DEPENDS="libc++, zlib" @@ -26,6 +26,14 @@ termux_step_pre_configure() { else export LIB_PATH="${TERMUX_PREFIX}/lib:/system/lib64" fi + + # Force generation of manpages + rm \ + $TERMUX_PKG_SRCDIR/binutils/doc/*.1 \ + $TERMUX_PKG_SRCDIR/binutils/doc/cxxfilt.man \ + $TERMUX_PKG_SRCDIR/gas/doc/as.1 \ + $TERMUX_PKG_SRCDIR/ld/ld.1 \ + $TERMUX_PKG_SRCDIR/gprof/gprof.1 } termux_step_post_make_install() { diff --git a/packages/binutils/fix-empty-manpages.patch b/packages/binutils/fix-empty-manpages.patch new file mode 100644 index 000000000..8c65b00ff --- /dev/null +++ b/packages/binutils/fix-empty-manpages.patch @@ -0,0 +1,13 @@ +Patch borrowed from FreeBSD https://github.com/freebsd/freebsd-ports/commit/a055899f4f1c41d07ae5b8d3f5a9983173ef76f6#diff-6257cca5b6087edcb78aee07457b6d2f539402a4fe447484227a65f9948c6b78 + +--- ./etc/texi2pod.pl.orig 2021-08-30 17:17:09 UTC ++++ ./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 {