diff options
author | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-08-30 17:19:36 +0000 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2021-09-02 05:43:11 +0000 |
commit | a055899f4f1c41d07ae5b8d3f5a9983173ef76f6 (patch) | |
tree | 29068f6b41d26a7b197d43918b8c1af153e0c6d5 | |
parent | eb85136fdb82f931d277695f0bcee9c81500a9db (diff) | |
download | ports-a055899f4f1c41d07ae5b8d3f5a9983173ef76f6.tar.gz ports-a055899f4f1c41d07ae5b8d3f5a9983173ef76f6.zip |
devel/binutils: Fix manpage generation after 2.37
A bug[1] upstream in 2.37 left empty man pages after build.
The downloaded distribution file comes with empty man pages too.
Apply patch from upstream[1] and force man page regeration by removing the ones
which come with the distribution.
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28144
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28144#c3
PR: 257982
Reported by: jbeich@
-rw-r--r-- | devel/binutils/Makefile | 3 | ||||
-rw-r--r-- | devel/binutils/files/patch-etc_texi2pod.pl | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index dee3fb749890..9115eca8aa34 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -2,6 +2,7 @@ PORTNAME= binutils PORTVERSION= 2.37 +PORTREVISION= 1 PORTEPOCH?= 1 CATEGORIES?= devel MASTER_SITES= SOURCEWARE/binutils/releases @@ -124,6 +125,8 @@ CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL} post-patch: ${REINPLACE_CMD} -e "s/-ldl//g" ${WRKSRC}/gold/testsuite/Makefile.in +# Force the generation of man pages + ${RM} ${WRKSRC}/binutils/doc/*.1 post-install: .if ${FLAVOR} == native diff --git a/devel/binutils/files/patch-etc_texi2pod.pl b/devel/binutils/files/patch-etc_texi2pod.pl new file mode 100644 index 000000000000..456d44cfcdbd --- /dev/null +++ b/devel/binutils/files/patch-etc_texi2pod.pl @@ -0,0 +1,11 @@ +--- 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 { |