aboutsummaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch
blob: 9620df5ece1332a3ada8ad060539b722b4dc35a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Avoid running target binaries during in cross build

Upstream-Status: Inappropriate [Cross-compile specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm	2018-08-27 14:56:24.788544991 +0200
+++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm	2018-08-27 15:00:12.847266331 +0200
@@ -24,20 +24,7 @@
     $self->requires_external_cc;
 
     my $prefix = $self->find_openssl_prefix;
-    my $exec   = $self->find_openssl_exec($prefix);
-
-    unless (-x $exec) {
-        print <<EOM;
-*** Could not find OpenSSL
-    If it's already installed, please set the OPENSSL_PREFIX environment
-    variable accordingly. If it isn't installed yet, get the latest version
-    from http://www.openssl.org/.
-EOM
-        exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library"
-    }
-
-    $self->check_openssl_version($prefix, $exec);
-    my $opts = $self->ssleay_get_build_opts($prefix, $exec);
+    my $opts = $self->ssleay_get_build_opts($prefix);
 
     $self->makemaker_args(
         CCCDLFLAGS => $opts->{cccdlflags},
@@ -58,7 +45,7 @@
 }
 
 sub ssleay_get_build_opts {
-    my ($self, $prefix, $exec) = @_;
+    my ($self, $prefix) = @_;
 
     my $opts = {
         lib_links  => [],