1 |
commit: 0f82b9b107ec751c104024e0c0080c1a52868ba8 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 30 21:30:03 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 30 21:55:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f82b9b1 |
7 |
|
8 |
dev-lang/fpc: re-add old-style gold check with updated message |
9 |
|
10 |
The previous check would ask to use binutils-config which is no |
11 |
longer possible, and tc-ld-disable-gold is not sufficient. |
12 |
|
13 |
Re-adding is only a temporary solution, this needs a proper look |
14 |
into making it respect $LD (emake LD=.. is not enough). |
15 |
|
16 |
Also revert Makefile sed style to how it was formerly suggested |
17 |
by Sergey Torokhov in previous bump, devmanual's old suggestion |
18 |
isn't useful here (this bit Acked-by David Seifert). |
19 |
|
20 |
Bug: https://bugs.gentoo.org/475210 |
21 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
22 |
|
23 |
dev-lang/fpc/fpc-3.2.2.ebuild | 20 ++++++++++++-------- |
24 |
1 file changed, 12 insertions(+), 8 deletions(-) |
25 |
|
26 |
diff --git a/dev-lang/fpc/fpc-3.2.2.ebuild b/dev-lang/fpc/fpc-3.2.2.ebuild |
27 |
index 843ec9edcd9..dc061524604 100644 |
28 |
--- a/dev-lang/fpc/fpc-3.2.2.ebuild |
29 |
+++ b/dev-lang/fpc/fpc-3.2.2.ebuild |
30 |
@@ -26,6 +26,17 @@ QA_FLAGS_IGNORED=" |
31 |
usr/bin/.* |
32 |
usr/lib.*/.*" |
33 |
|
34 |
+pkg_pretend() { |
35 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
36 |
+ # Bug 475210 |
37 |
+ if $(tc-getLD) --version | grep -q "GNU gold"; then |
38 |
+ eerror "fpc has several issues with the gold linker and does not easily" |
39 |
+ eerror "permit selection. Please do not use USE=default-gold on binutils." |
40 |
+ die "GNU gold detected from $(tc-getLD)" |
41 |
+ fi |
42 |
+ fi |
43 |
+} |
44 |
+ |
45 |
src_unpack() { |
46 |
case ${ARCH} in |
47 |
amd64) |
48 |
@@ -49,10 +60,7 @@ src_unpack() { |
49 |
src_prepare() { |
50 |
default |
51 |
|
52 |
- local f |
53 |
- while IFS="" read -d $'\0' -r f ; do |
54 |
- sed -i -e 's/ -Xs / /' "${f}" || die |
55 |
- done < <(find "${WORKDIR}" -name Makefile -type f -print0) |
56 |
+ find "${WORKDIR}" -name Makefile -exec sed -i 's/ -Xs / /' {} + || die |
57 |
|
58 |
# let the pkg manager compress man files |
59 |
sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die |
60 |
@@ -61,10 +69,6 @@ src_prepare() { |
61 |
hprefixify "${WORKDIR}"/fpcbuild-${PV}/fpcsrc/compiler/options.pas |
62 |
} |
63 |
|
64 |
-src_configure() { |
65 |
- tc-ld-disable-gold # bug 475210 |
66 |
-} |
67 |
- |
68 |
set_pp() { |
69 |
case ${ARCH} in |
70 |
amd64) |