git: 844981cb54e8 - main - devel/binutils: Bring back ansidecl.h

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Thu, 09 Mar 2023 16:21:44 UTC
The branch main has been updated by cy:

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

commit 844981cb54e8d2ba2c77022e014c52f3c6ff47e9
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-03-08 20:02:56 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-03-09 16:20:21 +0000

    devel/binutils: Bring back ansidecl.h
    
    A missing ansidecl.h is causing some ports build failures because of
    and unknown ENUM_BITFIELD. This commit brings it back.
    
    Previous commits which removed ansidecl.h, 8b115343ad84e and 95c499bbd7f34,
    failed to say why the file was removed. We can only guess the reason, to
    solve an undocumented problem at the time.
    
    PR:             269878
    Submitted by:   yuri
    Reported by:    yuri
    MFH:            2023Q1
---
 devel/binutils/Makefile  | 3 +--
 devel/binutils/pkg-plist | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index 2e773537d046..8b8f9a3c200d 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	binutils
 DISTVERSION=	2.40
+PORTREVISION=	1
 PORTEPOCH?=	1
 CATEGORIES?=	devel
 MASTER_SITES=	SOURCEWARE/binutils/releases
@@ -148,8 +149,6 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/include/plugin-api.h ${STAGEDIR}${PREFIX}/include/
 	@${FIND} -ds ${STAGEDIR}${PREFIX}/${CONFIGURE_TARGET} ! -type d | \
 		${SED} -e 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
-	${RM} ${STAGEDIR}${PREFIX}/include/ansidecl.h
-	${REINPLACE_CMD} '/#include "ansidecl.h"/d' ${STAGEDIR}${PREFIX}/include/bfd.h
 .else
 .if ${PKGNAMEPREFIX:S/-$//} != ${BUTARGET}
 	${RM} -r ${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}
diff --git a/devel/binutils/pkg-plist b/devel/binutils/pkg-plist
index aa64c3d08214..100532991306 100644
--- a/devel/binutils/pkg-plist
+++ b/devel/binutils/pkg-plist
@@ -16,6 +16,7 @@ bin/readelf
 bin/size
 bin/strings
 bin/strip
+include/ansidecl.h
 include/bfd.h
 include/bfdlink.h
 include/ctf-api.h