binutils: Fix empty manpages (#7989)

This commit is contained in:
YAKSH BARIYA 2021-11-17 06:58:59 +05:30 committed by GitHub
parent 464a9218b1
commit 9940f6cf14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -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() {

View File

@ -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 {