Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-Eksblowfish/
Date: Wed, 01 Jul 2020 16:43:30
Message-Id: 1593621785.a0d233bae81d75aedfb873be9914bbc6d049adee.kentnl@gentoo
1 commit: a0d233bae81d75aedfb873be9914bbc6d049adee
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 1 16:42:33 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 1 16:43:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0d233ba
7
8 dev-perl/Crypt-Eksblowfish: Avoid breaking w/ LD=ld bug #730390
9
10 This is probably the most sensible way I can handle this presently,
11 as the concept of CCLD is not well established in the gentoo toolchain,
12 and all the perl build tools expect their LD to be a CCLD, and become
13 broken when its an _ACTUAL_ LD.
14
15 A workaround for experts is left in its stead, as long as you set CCLD,
16 then it will get passed to perl using the LD environment variable.
17
18 Its a strange reality, but that's how it is.
19
20 Closes: https://bugs.gentoo.org/730390
21 Package-Manager: Portage-2.3.100, Repoman-2.3.22
22 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
23
24 dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild | 12 ++++++++++++
25 1 file changed, 12 insertions(+)
26
27 diff --git a/dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild b/dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild
28 index d66aea6f6c2..a586ce5a396 100644
29 --- a/dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild
30 +++ b/dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild
31 @@ -31,6 +31,18 @@ BDEPEND="${RDEPEND}
32 virtual/perl-Test-Simple
33 )
34 "
35 +src_configure() {
36 + # Overriding this breaks build,
37 + # as people always set this to a real LD
38 + # but a CCLD is expected
39 + # If you know what you're doing, export CCLD
40 + # Bug: https://bugs.gentoo.org/730390
41 + unset LD
42 + if [[ -n "${CCLD}" ]]; then
43 + export LD="${CCLD}"
44 + fi
45 + perl-module_src_configure
46 +}
47 src_compile() {
48 ./Build --config optimize="${CFLAGS}" build || die
49 }