Skip to contentSkip to conversation

meta-perl updates

PATCH New Tim Orling 1 participant 4 messages Nov 18, 2022

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover meta-perl updates

Once https://lore.kernel.org/openembedded-core/a4f847dcc056026082099ae4977bf6a8e8bd89bc.1668793524.git.tim.orling@konsulko.com/T/#u
merges, libtest-warnings-perl will move to oe-core.

Upgrade libio-socket-ssl-perl and add libmozilla-ca-perl dependency.

The following changes since commit c4829fa338dae008c75cfffd4a712813a99c33c4:

Nodejs - Upgrade to 16.18.1 (2022-11-18 11:10:25 -0800)

are available in the Git repository at:

https://git.openembedded.org/meta-openembedded-contrib timo/recipe-upgrades
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=timo/recipe-upgrades

Tim Orling (3):
libmozilla-ca-perl: add recipe for 20221114
libio-socket-ssl-perl: upgrade 2.075 -> 2.076
libtest-warnings-perl: move to oe-core

 meta-perl/recipes-perl/libio/files/run-ptest  | 16 -----------
 ....075.bb => libio-socket-ssl-perl_2.076.bb} | 26 +++++++++++------
 .../libmozilla/libmozilla-ca-perl_20221114.bb | 22 +++++++++++++++
 .../libtest/libtest-warnings-perl_0.031.bb    | 28 -------------------
 4 files changed, 40 insertions(+), 52 deletions(-)
 delete mode 100644 meta-perl/recipes-perl/libio/files/run-ptest
 rename meta-perl/recipes-perl/libio/{libio-socket-ssl-perl_2.075.bb => libio-socket-ssl-perl_2.076.bb} (70%)
 create mode 100644 meta-perl/recipes-perl/libmozilla/libmozilla-ca-perl_20221114.bb
 delete mode 100644 meta-perl/recipes-perl/libtest/libtest-warnings-perl_0.031.bb
Signature · 1 line
2.30.2
author
#1 lore raw

PATCH 1/3 libmozilla-ca-perl: add recipe for 20221114

Mozilla::CA - Mozilla's CA cert bundle in PEM format

Declared runtime dependency for libio-socket-ssl-perl

---
 .../libmozilla/libmozilla-ca-perl_20221114.bb | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libmozilla/libmozilla-ca-perl_20221114.bb
meta-perl/recipes-perl/libmozilla/libmozilla-ca-perl_20221114.bb new file +22 -0
new file mode 100644
index 0000000000..c5839b9b67
@@ -0,0 +1,22 @@
+SUMMARY = "Mozilla's CA cert bundle in PEM format"
+DESCRIPTION = "Mozilla::CA provides a copy of Mozilla's bundle of \
+Certificate Authority certificates in a form that can be consumed by  \
+modules and libraries based on OpenSSL."
+HOMEPAGE = "https://metacpan.org/pod/Mozilla::CA"
+BUGTRACKER = "https://github.com/libwww-perl/Mozilla-CA/issues"
+SECTION = "libs"
+
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://README;beginline=32;endline=39;md5=51e666dce556490a1132e937ad3f8729"
+
+SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Mozilla-CA-${PV}.tar.gz"
+SRC_URI[sha256sum] = "701bea67be670add5a102f9f8c879402b4983096b1cb0e20dd47d52d7a10666b"
+
+S = "${WORKDIR}/Mozilla-CA-${PV}"
+
+inherit cpan ptest-perl
+
+RDEPENDS:${PN}-ptest += "\
+    perl-module-test-more \
+"
+BBCLASSEXTEND = "native"
Signature · 1 line
2.30.2
author
#2 lore raw

PATCH 2/3 libio-socket-ssl-perl: upgrade 2.075 -> 2.076

In reply to Tim Orling

* RDEPENDS on libmozilla-ca-perl
* Inherit ptest-perl; drop run-ptest
* Add RDEPENDS for ptest

2.076 2022/11/12
- added curl like tracing based on contribution from jddurand
https://github.com/noxxi/p5-io-socket-ssl/pull/117
- fixed race condition in t/sni_verify.t based on analysis from jddurand
https://github.com/noxxi/p5-io-socket-ssl/issues/97

https://metacpan.org/release/SULLR/IO-Socket-SSL-2.076

---
 meta-perl/recipes-perl/libio/files/run-ptest  | 16 ------------
 ....075.bb => libio-socket-ssl-perl_2.076.bb} | 26 +++++++++++++------
 2 files changed, 18 insertions(+), 24 deletions(-)
 delete mode 100644 meta-perl/recipes-perl/libio/files/run-ptest
 rename meta-perl/recipes-perl/libio/{libio-socket-ssl-perl_2.075.bb => libio-socket-ssl-perl_2.076.bb} (70%)
meta-perl/recipes-perl/libio/files/run-ptest deleted +0 -16
deleted file mode 100644
index c9f9ca94d0..0000000000
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-for case in `find t -type f -name '*.t'`; do
-    perl $case >$case.output 2>&1
-    ret=$?
-    cat $case.output
-    if [ $ret -ne 0 ]; then
-        echo "FAIL: ${case%.t}"
-    elif grep -i 'SKIP' $case.output; then
-        echo "SKIP: ${case%.t}"
-    else
-        echo "PASS: ${case%.t}"
-    fi
-
-    rm -f $case.output
-done
meta-perl/recipes-perl/libio/libio-socket-ssl-perl_2.076.bb renamed from meta-perl/recipes-perl/libio/libio-socket-ssl-perl_2.075.bb +18 -8
similarity index 70%
rename from meta-perl/recipes-perl/libio/libio-socket-ssl-perl_2.075.bb
rename to meta-perl/recipes-perl/libio/libio-socket-ssl-perl_2.076.bb
index 0a88d93056..171a675882 100644
@@ -13,20 +13,19 @@ LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
 LIC_FILES_CHKSUM = "file://META.yml;beginline=12;endline=12;md5=963ce28228347875ace682de56eef8e8"
 
 RDEPENDS:${PN} += "\
+    libmozilla-ca-perl \
     libnet-ssleay-perl \
     perl-module-autoloader \
-    perl-module-scalar-util \
     perl-module-io-socket \
+    perl-module-scalar-util \
 "
 
-SRC_URI = "http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-${PV}.tar.gz \
-           file://run-ptest \
-          "
-SRC_URI[sha256sum] = "c30ee2220b1e181a968ebbc81861d0cadf334b001377a44105ae5a8637ddae8c"
+SRC_URI = "${CPAN_MIRROR}/authors/id/S/SU/SULLR/IO-Socket-SSL-${PV}.tar.gz"
+SRC_URI[sha256sum] = "bdd148d9feaef1220251676d7053698fcf446c9850d706fe2e1c90ff232ed874"
 
 S = "${WORKDIR}/IO-Socket-SSL-${PV}"
 
-inherit cpan ptest
+inherit cpan ptest-perl
 
 do_install:append () {
     mkdir -p ${D}${docdir}/${PN}/
@@ -38,8 +37,19 @@ do_install:append () {
     cp -pRP ${S}/example ${D}${docdir}/${PN}/
 }
 
-do_install_ptest () {
-    cp -r ${B}/t ${D}${PTEST_PATH}
+RDEPENDS:${PN}-ptest += "\
+    libnet-libidn-perl \
+    liburi-perl \
+    perl-module-file-glob \
+    perl-module-findbin \
+    perl-module-io-socket-inet \
+    perl-module-io-socket-ip \
+    perl-module-perlio \
+    perl-module-perlio-scalar \
+    perl-module-test-more \
+"
+
+do_install_ptest:append () {
     cp -r ${B}/certs ${D}${PTEST_PATH}
 }
 
Signature · 1 line
2.30.2
author
#3 lore raw

PATCH 3/3 libtest-warnings-perl: move to oe-core

In reply to Tim Orling

This is now a dependency for liburi-perl-ptest.

---
 .../libtest/libtest-warnings-perl_0.031.bb    | 28 -------------------
 1 file changed, 28 deletions(-)
 delete mode 100644 meta-perl/recipes-perl/libtest/libtest-warnings-perl_0.031.bb
meta-perl/recipes-perl/libtest/libtest-warnings-perl_0.031.bb deleted +0 -28
deleted file mode 100644
index d1c0d95fd3..0000000000
@@ -1,28 +0,0 @@
-# Copyright (C) 2020 Jens Rehsack <[email protected]>
-# Released under the MIT license (see COPYING.MIT for the terms)
-
-DESCRIPTION = "If you've ever tried to use Test::NoWarnings to confirm there are no \
-warnings generated by your tests, combined with the convenience of \
-\\"done_testing\\" to not have to declare a test count, you'll have discovered \
-that these two features do not play well together, as the test count will \
-be calculated *before* the warnings test is run, resulting in a TAP error. \
-(See "examples/test_nowarnings.pl" in this distribution for a \
-demonstration.)"
-
-SECTION = "libs"
-LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
-
-HOMEPAGE=       "https://metacpan.org/release/Test-Warnings"
-
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
-file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61"
-
-SRC_URI = "https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Warnings-${PV}.tar.gz"
-
-SRC_URI[sha256sum] = "1e542909fef305e45563e9878ea1c3b0c7cef1b28bb7ae07eba2e1efabec477b"
-
-S = "${WORKDIR}/Test-Warnings-${PV}"
-
-inherit cpan ptest-perl
-
-BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2