libnet-ssleay-perl: Update to 1.80
PATCH 1/1 libnet-ssleay-perl: Update to 1.80
Updated LICENSE to reflect actual on website
Fixes musl compile error.
addresses many compatability issue with the newer openssl drop to backported patch now in this version
http://cpansearch.perl.org/src/MIKEM/Net-SSLeay-1.80/Changes
Signed-off-by Armin Kuster <[email protected]>
---
...ay-perl-Disable-test-that-fails-with-open.patch | 70 --------------------
...2-betas-have-dropped-the-SSLv3_method-fun.patch | 75 ----------------------
...eay-perl_1.65.bb => libnet-ssleay-perl_1.80.bb} | 14 ++--
3 files changed, 4 insertions(+), 155 deletions(-)
delete mode 100644 meta-perl/recipes-perl/libnet/files/0001-libnet-ssleay-perl-Disable-test-that-fails-with-open.patch
delete mode 100644 meta-perl/recipes-perl/libnet/files/0002-Recent-1.0.2-betas-have-dropped-the-SSLv3_method-fun.patch
rename meta-perl/recipes-perl/libnet/{libnet-ssleay-perl_1.65.bb => libnet-ssleay-perl_1.80.bb} (75%)meta-perl/recipes-perl/libnet/files/0001-libnet-ssleay-perl-Disable-test-that-fails-with-open.patch deleted +0 -70
@@ -1,70 +0,0 @@ -From e7a2d3a57fd51f0d4d5b3fcb6669b1876d4b18d2 Mon Sep 17 00:00:00 2001 -From: Hongxu Jia <[email protected]> -Date: Tue, 10 Nov 2015 01:23:18 -0500 -Subject: [PATCH 1/2] libnet-ssleay-perl: Disable test that fails with - openssl-1.0.2b or above - -Run testsuits: -t/local/33_x509_create_cert............NOK 39/123 -not ok 39 - PEM_get_string_PrivateKey+passwd+enc_alg -| Failed test 'PEM_get_string_PrivateKey+passwd+enc_alg' -| at t/local/33_x509_create_cert.t line 104. -| undef -| doesn't match '(?^:-----BEGIN (ENCRYPTED|RSA) PRIVATE KEY-----)' - -This is due to the following change in OpenSSL: -(git://git.openssl.org/openssl.git) -...... -4d9dc0c269be87b92da188df1fbd8bfee4700eb3 is the first bad commit -commit 4d9dc0c269be87b92da188df1fbd8bfee4700eb3 -Author: Dr. Stephen Henson <[email protected]> -Date: Thu May 28 15:44:20 2015 +0100 - -check for error when creating PKCS#8 structure - -Reviewed-by: Rich Salz <[email protected]> -(cherry picked from commit 2849707fa65d2803e6d1c1603fdd3fd1fdc4c6cc) -...... - -Upstream-Status: Backport from upstream latest 1.72: -http://www.cpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-1.72.tar.gz - -Signed-off-by: Hongxu Jia <[email protected]> ---- - t/local/33_x509_create_cert.t | 13 ++++++++----- - 1 file changed, 8 insertions(+), 5 deletions(-) - -diff --git a/t/local/33_x509_create_cert.t b/t/local/33_x509_create_cert.t -index 2f2c013..3e653ce 100755 ---- a/t/local/33_x509_create_cert.t -+++ b/t/local/33_x509_create_cert.t -@@ -2,7 +2,7 @@ - - use strict; - use warnings; --use Test::More tests => 123; -+use Test::More tests => 121; - use Net::SSLeay qw/MBSTRING_ASC MBSTRING_UTF8 EVP_PK_RSA EVP_PKT_SIGN EVP_PKT_ENC/; - use File::Spec; - use utf8; -@@ -99,10 +99,13 @@ is(Net::SSLeay::X509_NAME_cmp($ca_issuer, $ca_subject), 0, "X509_NAME_cmp"); - } - ok(my $alg1 = Net::SSLeay::EVP_get_cipherbyname("DES-EDE3-CBC"), "EVP_get_cipherbyname"); - like(my $key_pem3 = Net::SSLeay::PEM_get_string_PrivateKey($pk,"password",$alg1), qr/-----BEGIN (ENCRYPTED|RSA) PRIVATE KEY-----/, "PEM_get_string_PrivateKey+passwd+enc_alg"); -- -- ok(my $alg2 = Net::SSLeay::EVP_get_cipherbyname("DES-EDE3-OFB"), "EVP_get_cipherbyname"); -- like(my $key_pem4 = Net::SSLeay::PEM_get_string_PrivateKey($pk,"password",$alg2), qr/-----BEGIN (ENCRYPTED|RSA) PRIVATE KEY-----/, "PEM_get_string_PrivateKey+passwd+enc_alg"); -- -+ -+# DES-EDE3-OFB has no ASN1 support, detected by changes to do_pk8pkey as of openssl 1.0.1n -+# https://git.openssl.org/?p=openssl.git;a=commit;h=4d9dc0c269be87b92da188df1fbd8bfee4700eb3 -+# this test now fails -+# ok(my $alg2 = Net::SSLeay::EVP_get_cipherbyname("DES-EDE3-OFB"), "EVP_get_cipherbyname"); -+# like(my $key_pem4 = Net::SSLeay::PEM_get_string_PrivateKey($pk,"password",$alg2), qr/-----BEGIN (ENCRYPTED|RSA) PRIVATE KEY-----/, "PEM_get_string_PrivateKey+passwd+enc_alg"); -+ - is(Net::SSLeay::X509_NAME_print_ex($name), "O=Company Name,C=UK,CN=Common name text X509", "X509_NAME_print_ex"); - - # 2014-06-06: Sigh, some versions of openssl have this patch, which afffects the results of this test: --- -1.9.1 -
meta-perl/recipes-perl/libnet/files/0002-Recent-1.0.2-betas-have-dropped-the-SSLv3_method-fun.patch deleted +0 -75
75 lines not on this page · raw message
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.80.bb renamed from meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb +4 -10
@@ -7,8 +7,8 @@ so you can write servers or clients for more complicated applications." HOMEPAGE = "http://search.cpan.org/dist/Net-SSLeay/" SECTION = "libs" -LICENSE = "OpenSSL" -LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=49f415984b387be999ee2ad0e5c692fe" +LICENSE = "Artistic-1.0 | GPL-1.0+" +LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=67d67095d83e339da538a082fad5f38e" DEPENDS = "openssl zlib" RDEPENDS_${PN} += "perl-module-carp \
@@ -19,12 +19,10 @@ RDEPENDS_${PN} += "perl-module-carp \ " SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz \ - file://0001-libnet-ssleay-perl-Disable-test-that-fails-with-open.patch \ - file://0002-Recent-1.0.2-betas-have-dropped-the-SSLv3_method-fun.patch \ file://run-ptest \ " -SRC_URI[md5sum] = "19600c036e9e0bbfbf9157f083e40755" -SRC_URI[sha256sum] = "2fb1371120b85f018944d95736c107163f04ba56b6029c0709a2c3d6247b9c06" +SRC_URI[md5sum] = "b1e0fd96d7f3be57580377226ca5f089" +SRC_URI[sha256sum] = "a541a66d59fc5f9bb7af09d3a0b68305e4c43ba9488b12915728fd282ea01b93" S = "${WORKDIR}/Net-SSLeay-${PV}"
@@ -35,10 +33,6 @@ EXTRA_CPANFLAGS = "LIBS='-L=${STAGING_LIBDIR} -L=${STAGING_BASELIBDIR}' \ '-lssl -lcrypto -lz' \ " -do_configure_prepend() { - export OPENSSL_PREFIX=${STAGING_DIR_NATIVE}${prefix_native} -} - do_install_ptest() { cp -r ${B}/t ${D}${PTEST_PATH} }
Signature · 1 line
2.7.4