From 7f0ccc917c7abe6223784c703d86cd14755691fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 3 Jul 2021 22:39:47 +0100 Subject: gentoo resync : 03.07.2021 --- dev-lang/fpc/fpc-3.2.2.ebuild | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'dev-lang/fpc/fpc-3.2.2.ebuild') diff --git a/dev-lang/fpc/fpc-3.2.2.ebuild b/dev-lang/fpc/fpc-3.2.2.ebuild index 843ec9edcd9a..dc0615246046 100644 --- a/dev-lang/fpc/fpc-3.2.2.ebuild +++ b/dev-lang/fpc/fpc-3.2.2.ebuild @@ -26,6 +26,17 @@ QA_FLAGS_IGNORED=" usr/bin/.* usr/lib.*/.*" +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + # Bug 475210 + if $(tc-getLD) --version | grep -q "GNU gold"; then + eerror "fpc has several issues with the gold linker and does not easily" + eerror "permit selection. Please do not use USE=default-gold on binutils." + die "GNU gold detected from $(tc-getLD)" + fi + fi +} + src_unpack() { case ${ARCH} in amd64) @@ -49,10 +60,7 @@ src_unpack() { src_prepare() { default - local f - while IFS="" read -d $'\0' -r f ; do - sed -i -e 's/ -Xs / /' "${f}" || die - done < <(find "${WORKDIR}" -name Makefile -type f -print0) + find "${WORKDIR}" -name Makefile -exec sed -i 's/ -Xs / /' {} + || die # let the pkg manager compress man files sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die @@ -61,10 +69,6 @@ src_prepare() { hprefixify "${WORKDIR}"/fpcbuild-${PV}/fpcsrc/compiler/options.pas } -src_configure() { - tc-ld-disable-gold # bug 475210 -} - set_pp() { case ${ARCH} in amd64) -- cgit v1.2.3