From 2b3747ab7f70228498187385c1be2ae935be9407 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 26 Dec 2014 22:02:20 +0000 Subject: [PATCH] binutils 2.15 turned "no group info for section" from a warning to an error On FreeBSD 8.x, a dozen of ports exhibit this warning so allow it again Approved by: maintainer --- devel/binutils/Makefile | 4 ++++ devel/binutils/files/allow-missing-group-info | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 devel/binutils/files/allow-missing-group-info diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 12a61b43580a..9920993c428e 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -55,6 +55,10 @@ NLS_CONFIGURE_ENABLE= nls .include +.if ! defined(PKGNAMEPREFIX) && ${OSVERSION} < 900000 +EXTRA_PATCHES+= ${FILESDIR}/allow-missing-group-info +.endif + # Actual earliest version may differ slightly .if ${ARCH} != ia64 && ${ARCH} != mips && ${OSVERSION} >= 900044 && !defined(PKGNAMEPREFIX) && (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 34 || ${COMPILER_TYPE} == gcc) CONFIGURE_ARGS+= --enable-gold --enable-plugins diff --git a/devel/binutils/files/allow-missing-group-info b/devel/binutils/files/allow-missing-group-info new file mode 100644 index 000000000000..0276fed6f13f --- /dev/null +++ b/devel/binutils/files/allow-missing-group-info @@ -0,0 +1,10 @@ +--- bfd/elf.c.orig 2014-12-23 08:47:10 UTC ++++ bfd/elf.c +@@ -741,7 +741,6 @@ setup_group (bfd *abfd, Elf_Internal_Shd + { + (*_bfd_error_handler) (_("%B: no group info for section %A"), + abfd, newsect); +- return FALSE; + } + return TRUE; + }