git: a055899f4f1c - main - devel/binutils: Fix manpage generation after 2.37
Fernando Apesteguía
fernape at FreeBSD.org
Thu Sep 2 05:53:43 UTC 2021
The branch main has been updated by fernape:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a055899f4f1c41d07ae5b8d3f5a9983173ef76f6
commit a055899f4f1c41d07ae5b8d3f5a9983173ef76f6
Author: Fernando Apesteguía <fernape at FreeBSD.org>
AuthorDate: 2021-08-30 17:19:36 +0000
Commit: Fernando Apesteguía <fernape at FreeBSD.org>
CommitDate: 2021-09-02 05:43:11 +0000
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@
---
devel/binutils/Makefile | 3 +++
devel/binutils/files/patch-etc_texi2pod.pl | 11 +++++++++++
2 files changed, 14 insertions(+)
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 {
More information about the dev-commits-ports-all
mailing list