Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
buildsystem: fix for cross-compilation
|
||||
|
||||
Avoid running the openssl binary, since it would break for
|
||||
cross-compilation. Buildroot has a supported version, anyway.
|
||||
|
||||
Also, avoid adding hard-coded includes and libraries search
|
||||
paths, since they are missing the destdir; Buildroot compilers
|
||||
and linkers already know where to search, anyway.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff -durN perl-net-ssleay-1.64.orig/inc/Module/Install/PRIVATE/Net/SSLeay.pm perl-net-ssleay-1.64/inc/Module/Install/PRIVATE/Net/SSLeay.pm
|
||||
--- perl-net-ssleay-1.64.orig/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2014-04-01 08:08:37.000000000 +0200
|
||||
+++ perl-net-ssleay-1.64/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2014-07-13 00:38:46.281380282 +0200
|
||||
@@ -37,14 +37,18 @@
|
||||
exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library"
|
||||
}
|
||||
|
||||
- $self->check_openssl_version($prefix, $exec);
|
||||
+# Does not work for cross-compilation.
|
||||
+# In Buildroot, we do have a supported version.
|
||||
+# $self->check_openssl_version($prefix, $exec);
|
||||
my $opts = $self->ssleay_get_build_opts($prefix, $exec);
|
||||
|
||||
$self->makemaker_args(
|
||||
CCCDLFLAGS => $opts->{cccdlflags},
|
||||
OPTIMIZE => $opts->{optimize},
|
||||
- INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
|
||||
- LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
|
||||
+# Buildroot already has the correct include and library search paths.
|
||||
+# INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
|
||||
+# LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
|
||||
+ LIBS => join(' ', (map {"-l$_"} @{$opts->{lib_links}})),
|
||||
);
|
||||
|
||||
if ( $self->prompt(
|
||||
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_PERL_NET_SSLEAY
|
||||
bool "perl-net-ssleay"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
Perl extension for using OpenSSL
|
||||
|
||||
https://metacpan.org/release/Net-SSLeay
|
||||
|
||||
comment "perl-net-ssleay needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
# retrieved by scancpan from http://cpan.metacpan.org/
|
||||
md5 a740d7792dbac8ca8c4eb38d3b8fbd01 Net-SSLeay-1.72.tar.gz
|
||||
sha256 1baac39f0f12cee515d8bec633175bb5916ca542e5356e26420437bd6195d2f4 Net-SSLeay-1.72.tar.gz
|
||||
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# perl-net-ssleay
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PERL_NET_SSLEAY_VERSION = 1.72
|
||||
PERL_NET_SSLEAY_SOURCE = Net-SSLeay-$(PERL_NET_SSLEAY_VERSION).tar.gz
|
||||
PERL_NET_SSLEAY_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MI/MIKEM
|
||||
PERL_NET_SSLEAY_DEPENDENCIES = openssl
|
||||
PERL_NET_SSLEAY_LICENSE = OpenSSL
|
||||
PERL_NET_SSLEAY_LICENSE_FILES = LICENSE
|
||||
|
||||
# Try as hard as possible to remedy to the brain-damage their build-system
|
||||
# suffers from: don't search for openssl, they pick the host-system one.
|
||||
PERL_NET_SSLEAY_CONF_ENV = OPENSSL_PREFIX=$(STAGING_DIR)/usr
|
||||
|
||||
# Remove problematic single quotes in LDDLFLAGS, CCFLAGS & OPTIMIZE definition
|
||||
define PERL_NET_SSLEAY_FIX_MAKEFILE
|
||||
$(SED) "s/^LDDLFLAGS = '\(.*\)'/LDDLFLAGS = \1/" $(@D)/Makefile
|
||||
$(SED) "s/^CCFLAGS = '\(.*\)'/CCFLAGS = \1/" $(@D)/Makefile
|
||||
$(SED) "s/^OPTIMIZE = '\(.*\)'/OPTIMIZE = \1/" $(@D)/Makefile
|
||||
endef
|
||||
PERL_NET_SSLEAY_POST_CONFIGURE_HOOKS += PERL_NET_SSLEAY_FIX_MAKEFILE
|
||||
|
||||
$(eval $(perl-package))
|
||||
Reference in New Issue
Block a user