git: 076cd16c618f - main - devel/gnulibiberty: Upgrade to 2.37

From: Joerg Wunsch <joerg_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 09:48:59 UTC
The branch main has been updated by joerg:

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

commit 076cd16c618f137903c36dfe1ecd0a0180cf581d
Author:     Joerg Wunsch <joerg@FreeBSD.org>
AuthorDate: 2021-12-21 09:47:39 +0000
Commit:     Joerg Wunsch <joerg@FreeBSD.org>
CommitDate: 2021-12-21 09:48:51 +0000

    devel/gnulibiberty: Upgrade to 2.37
    
    Unfortunately, we need a patch now as their Makefile relies
    on GCC's -print-multi-os-directory switch.
---
 devel/gnulibiberty/Makefile                          |  4 ++--
 devel/gnulibiberty/distinfo                          |  6 +++---
 devel/gnulibiberty/files/patch-libiberty-Makefile.in | 14 ++++++++++++++
 3 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/devel/gnulibiberty/Makefile b/devel/gnulibiberty/Makefile
index de19891610e9..1494fa2aa9ac 100644
--- a/devel/gnulibiberty/Makefile
+++ b/devel/gnulibiberty/Makefile
@@ -1,7 +1,7 @@
 # Created by: Joerg Wunsch <joerg@FreeBSD.org>
 
 PORTNAME=	gnulibiberty
-PORTVERSION=	2.33.1
+PORTVERSION=	2.37
 CATEGORIES=	devel
 MASTER_SITES=	SOURCEWARE/binutils/releases
 DISTNAME=	binutils-${PORTVERSION}
@@ -13,7 +13,7 @@ WRKSRC=		${WRKDIR}/binutils-${PORTVERSION}/libiberty
 
 USES=		gmake tar:xz
 
-CONFIGURE_ARGS=	--enable-install-libiberty
+CONFIGURE_ARGS=	--enable-install-libiberty --disable-multilib
 GNU_CONFIGURE=	yes
 
 .include <bsd.port.mk>
diff --git a/devel/gnulibiberty/distinfo b/devel/gnulibiberty/distinfo
index 26bb6cf5fda4..429395053a3a 100644
--- a/devel/gnulibiberty/distinfo
+++ b/devel/gnulibiberty/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1575361927
-SHA256 (binutils-2.33.1.tar.xz) = ab66fc2d1c3ec0359b8e08843c9f33b63e8707efdff5e4cc5c200eae24722cbf
-SIZE (binutils-2.33.1.tar.xz) = 21490848
+TIMESTAMP = 1626719973
+SHA256 (binutils-2.37.tar.xz) = 820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c
+SIZE (binutils-2.37.tar.xz) = 22916924
diff --git a/devel/gnulibiberty/files/patch-libiberty-Makefile.in b/devel/gnulibiberty/files/patch-libiberty-Makefile.in
new file mode 100644
index 000000000000..d852cae1d702
--- /dev/null
+++ b/devel/gnulibiberty/files/patch-libiberty-Makefile.in
@@ -0,0 +1,14 @@
+--- Makefile.in~	2021-07-08 13:37:21.000000000 +0200
++++ Makefile.in	2021-12-21 10:13:14.973574000 +0100
+@@ -367,7 +367,10 @@
+ # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
+ # default multilib, so we have to take CFLAGS into account as well,
+ # since it will be passed the multilib flags.
+-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
++#
++# XXX Clang does not support -print-multi-os-directory
++MULTIOSDIR = .
++#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
+ install_to_libdir: all
+ 	if test -n "${target_header_dir}"; then \
+ 		${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \