diff options
author | Kent Fredric <kentnl@gentoo.org> | 2020-07-02 04:42:33 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2020-07-02 04:43:05 +1200 |
commit | a0d233bae81d75aedfb873be9914bbc6d049adee (patch) | |
tree | 44f8f7b73d18e1e8b35735cbc742e0010ddde511 /dev-perl/Crypt-Eksblowfish | |
parent | dev-lang/julia: Fix typo (diff) | |
download | gentoo-a0d233bae81d75aedfb873be9914bbc6d049adee.tar.gz gentoo-a0d233bae81d75aedfb873be9914bbc6d049adee.tar.bz2 gentoo-a0d233bae81d75aedfb873be9914bbc6d049adee.zip |
dev-perl/Crypt-Eksblowfish: Avoid breaking w/ LD=ld bug #730390
This is probably the most sensible way I can handle this presently,
as the concept of CCLD is not well established in the gentoo toolchain,
and all the perl build tools expect their LD to be a CCLD, and become
broken when its an _ACTUAL_ LD.
A workaround for experts is left in its stead, as long as you set CCLD,
then it will get passed to perl using the LD environment variable.
Its a strange reality, but that's how it is.
Closes: https://bugs.gentoo.org/730390
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Crypt-Eksblowfish')
-rw-r--r-- | dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild | 12 |
1 files changed, 12 insertions, 0 deletions
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 index d66aea6f6c22..a586ce5a396c 100644 --- a/dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild +++ b/dev-perl/Crypt-Eksblowfish/Crypt-Eksblowfish-0.9.0-r3.ebuild @@ -31,6 +31,18 @@ BDEPEND="${RDEPEND} virtual/perl-Test-Simple ) " +src_configure() { + # Overriding this breaks build, + # as people always set this to a real LD + # but a CCLD is expected + # If you know what you're doing, export CCLD + # Bug: https://bugs.gentoo.org/730390 + unset LD + if [[ -n "${CCLD}" ]]; then + export LD="${CCLD}" + fi + perl-module_src_configure +} src_compile() { ./Build --config optimize="${CFLAGS}" build || die } |