diff options
Diffstat (limited to 'dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch')
-rw-r--r-- | dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch new file mode 100644 index 0000000..6aff3f8 --- /dev/null +++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch @@ -0,0 +1,27 @@ +Bug: https://bugs.gentoo.org/416339 + +The previous patch for the above bug report used $ENV{LIBDIR} but this +wasn't enough to help with cross-compiling. We could use $ENV{SYSROOT} +but this results in a bogus RPATH entry. It is better to simply trust +the toolchain, which may have its own sysroot applied. + +Cross-compiling Perl modules requires additional hackery but at least +that hackery will work now. :) + +Chewi +2017/12/03 + +diff -Naur a/inc/Module/Install/PRIVATE/Net/SSLeay.pm b/inc/Module/Install/PRIVATE/Net/SSLeay.pm +--- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2017-10-13 01:38:01.000000000 +0100 ++++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2017-12-03 10:52:27.304861804 +0000 +@@ -65,10 +65,8 @@ + cccdlflags => '', + }; + for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') { +- push @{$opts->{inc_paths}}, $_ if -f "$_/openssl/ssl.h"; + } + for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") { +- push @{$opts->{lib_paths}}, $_ if -d $_; + } + + my $rsaref = $self->ssleay_is_rsaref; |