diff options
Diffstat (limited to 'meta-openembedded/meta-perl/recipes-perl/libnet')
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb | 27 | ||||
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb | 66 | ||||
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb | 33 | ||||
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch | 33 | ||||
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb (renamed from meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.84.bb) | 12 |
5 files changed, 139 insertions, 32 deletions
diff --git a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb deleted file mode 100644 index efaa7f7b1..000000000 --- a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb +++ /dev/null @@ -1,27 +0,0 @@ -DESCRIPTION = "This package contains the DNS.pm module with friends." -HOMEPAGE = "http://www.net-dns.org/" -SECTION = "libs" -LICENSE = "Artistic-1.0 | GPL-1.0+" - -LIC_FILES_CHKSUM = "file://README;md5=92d93d8c5bf22de77578531e283dd219" - -DEPENDS += "perl" - -SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz" - -SRC_URI[md5sum] = "0da1099c0a3548d36ea9e31d5bb9e122" -SRC_URI[sha256sum] = "83c38a594eeb2c85d66e60047a0f5b403f34bd92a5d13606f02e828d450299fc" - -S = "${WORKDIR}/Net-DNS-${PV}" - -EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}" - -inherit cpan - -RDEPENDS_${PN} = "perl-module-integer" - -do_compile() { - export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')" - cpan_do_compile -} -BBCLASSEXTEND = "native" diff --git a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb new file mode 100644 index 000000000..4e0c9c446 --- /dev/null +++ b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb @@ -0,0 +1,66 @@ +DESCRIPTION = "This package contains the DNS.pm module with friends." +HOMEPAGE = "http://www.net-dns.org/" +SECTION = "libs" +LICENSE = "MIT" + +LIC_FILES_CHKSUM = "file://README;beginline=252;endline=269;md5=27db37b42cd1a5173a53922d67072bcb" + +DEPENDS += "perl" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz" + +SRC_URI[md5sum] = "67af7e5c1c339f60c45c1054374bd8ee" +SRC_URI[sha256sum] = "52ce1494fc9707fd5a60ed71db5cde727157b7f2363787d730d4d1bd9800a9d3" + +UPSTREAM_CHECK_REGEX = "Net\-DNS\-(?P<pver>(\d+\.\d+))(?!_\d+).tar" + +S = "${WORKDIR}/Net-DNS-${PV}" + +EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}" + +inherit cpan ptest-perl + +RDEPENDS_${PN} = " \ + libdigest-hmac-perl \ + perl-module-base \ + perl-module-constant \ + perl-module-digest-md5 \ + perl-module-digest-sha \ + perl-module-file-spec \ + perl-module-integer \ + perl-module-io-file \ + perl-module-io-select \ + perl-module-io-socket \ + perl-module-io-socket-ip \ + perl-module-mime-base64 \ + perl-module-scalar-util \ + perl-module-test-more \ + perl-module-time-local \ +" + +RRECOMMENDS_${PN} += " \ + libnet-dns-sec-perl \ +" + +RDEPENDS_${PN}-ptest += " \ + perl-module-encode \ + perl-module-encode-byte \ + perl-module-extutils-mm \ + perl-module-extutils-mm-unix \ + perl-module-overload \ +" + +python __anonymous () { + # rather than use "find" to determine libc-*.so, + # statically export the known paths for glibc and musl + import os + if d.getVar('TCLIBC') == "glibc": + os.environ["LIBC"] = "${STAGING_BASELIBDIR}/libc.so.6" + elif d.getVar('TCLIBC') == "musl": + os.environ["LIBC"] = "${STAGING_LIBDIR}/libc.so" + else: + raise bb.parse.SkipRecipe("incompatible with %s C library" % + d.getVar('TCLIBC')) +} + +BBCLASSEXTEND = "native" diff --git a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb new file mode 100644 index 000000000..3fa6294f1 --- /dev/null +++ b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "DNSSEC extensions to Net::DNS" +HOMEPAGE = "http://www.net-dns.org/" +SECTION = "libs" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://README;beginline=165;endline=192;md5=6ef523fa09e8c272675839e21de16bde" + +SRC_URI = "https://cpan.metacpan.org/authors/id/W/WI/WILLEM/Net-DNS-SEC-${PV}.tar.gz" +SRC_URI[md5sum] = "ffa55a9898192c9d4c623cb1357eba9b" +SRC_URI[sha256sum] = "37a47d4def72d7338f3cc7cd807ec19bd9e2ae638ae656fa536cf0314801989e" + +DEPENDS += "openssl" + +UPSTREAM_CHECK_REGEX = "Net\-DNS\-SEC\-(?P<pver>(\d+\.\d+))(?!_\d+).tar" + +S = "${WORKDIR}/Net-DNS-SEC-${PV}" + +EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -lssl -L${STAGING_BASELIBDIR} -lcrypto'" + +inherit cpan ptest-perl + +RDEPENDS_${PN} = " \ + libnet-dns-perl \ + libcrypto \ + perl-module-dynaloader \ + perl-module-file-find \ + perl-module-file-spec \ + perl-module-io-file \ + perl-module-mime-base64 \ + perl-module-test-more \ +" + +BBCLASSEXTEND = "native" diff --git a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch new file mode 100644 index 000000000..6efa7d8f9 --- /dev/null +++ b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch @@ -0,0 +1,33 @@ +--- 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 => [], diff --git a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.84.bb b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb index cfecef9cf..dccef1640 100644 --- a/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.84.bb +++ b/meta-openembedded/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb @@ -23,18 +23,20 @@ RDEPENDS_${PN} += "\ " SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz \ + file://no-exec-on-configure.patch \ file://run-ptest \ " -SRC_URI[md5sum] = "cfbe968487149626978f427cc9fb8c77" -SRC_URI[sha256sum] = "823ec3cbb428309d6a9e56f362a9300693ce3215b7fede109adb7be361fff177" +SRC_URI[md5sum] = "d602bdce4e0531c6efc276e3e429ca69" +SRC_URI[sha256sum] = "9d8188b9fb1cae3bd791979c20554925d5e94a138d00414f1a6814549927b0c8" S = "${WORKDIR}/Net-SSLeay-${PV}" inherit cpan ptest -export OPENSSL_PREFIX="${STAGING_LIBDIR}" - -EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR} LIBS='-L${STAGING_LIBDIR} -lcrypto -lssl -L${STAGING_BASELIBDIR} -lz'" +do_configure() { + export OPENSSL_PREFIX="${STAGING_EXECPREFIXDIR}" + cpan_do_configure +} do_install_ptest() { cp -r ${B}/t ${D}${PTEST_PATH} |