Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 2021 05:53:42 GMT
From:      =?utf-8?Q?Fernando Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a055899f4f1c - main - devel/binutils: Fix manpage generation after 2.37
Message-ID:  <202109020553.1825rgAq066433@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a055899f4f1c41d07ae5b8d3f5a9983173ef76f6

commit a055899f4f1c41d07ae5b8d3f5a9983173ef76f6
Author:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
AuthorDate: 2021-08-30 17:19:36 +0000
Commit:     Fernando ApesteguĂ­a <fernape@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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109020553.1825rgAq066433>