* [PATCH 1/5] mirrors.bbclass: update CPAN_MIRROR
2022-11-18 17:52 [PATCH 0/5] liburi-perl upgrade Tim Orling
@ 2022-11-18 17:52 ` Tim Orling
2022-11-18 17:52 ` [PATCH 2/5] libtry-tiny-perl: add recipe for 0.31 Tim Orling
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Tim Orling @ 2022-11-18 17:52 UTC (permalink / raw)
To: openembedded-core
Both of these redirect to https://cpan.metacpan.org/:
http://cpan.metacpan.org/
http://search.cpan.org/CPAN/
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
meta/classes-global/mirrors.bbclass | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/classes-global/mirrors.bbclass b/meta/classes-global/mirrors.bbclass
index 8b984de3bfe..cda431ce891 100644
--- a/meta/classes-global/mirrors.bbclass
+++ b/meta/classes-global/mirrors.bbclass
@@ -67,8 +67,7 @@ osc://.*/.* http://sources.openembedded.org/ \
https?://.*/.* http://sources.openembedded.org/ \
ftp://.*/.* http://sources.openembedded.org/ \
npm://.*/?.* http://sources.openembedded.org/ \
-${CPAN_MIRROR} http://cpan.metacpan.org/ \
-${CPAN_MIRROR} http://search.cpan.org/CPAN/ \
+${CPAN_MIRROR} https://cpan.metacpan.org/ \
https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.kernel.org/yocto/uninative/ \
https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.kernel.org/yocto-sources/ \
"
--
2.30.2
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH 2/5] libtry-tiny-perl: add recipe for 0.31
2022-11-18 17:52 [PATCH 0/5] liburi-perl upgrade Tim Orling
2022-11-18 17:52 ` [PATCH 1/5] mirrors.bbclass: update CPAN_MIRROR Tim Orling
@ 2022-11-18 17:52 ` Tim Orling
2022-11-18 17:52 ` [PATCH 3/5] libtest-fatal-perl: add recipe for 0.016 Tim Orling
` (3 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Tim Orling @ 2022-11-18 17:52 UTC (permalink / raw)
To: openembedded-core
Try::Tiny - Minimal try/catch with proper preservation of $@
https://metacpan.org/release/ETHER/Try-Tiny-0.31
* Dependency for libtest-fatal-perl
* Add self as maintainer
* Add to ptest-packagelists.inc (fast)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
meta/conf/distro/include/maintainers.inc | 1 +
.../distro/include/ptest-packagelists.inc | 1 +
.../perl/libtry-tiny-perl_0.31.bb | 36 +++++++++++++++++++
3 files changed, 38 insertions(+)
create mode 100644 meta/recipes-devtools/perl/libtry-tiny-perl_0.31.bb
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 5b7ce77c3cc..141578a7a99 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -396,6 +396,7 @@ RECIPE_MAINTAINER:pn-libtirpc = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER:pn-libtool = "Robert Yang <liezhi.yang@windriver.com>"
RECIPE_MAINTAINER:pn-libtool-cross = "Robert Yang <liezhi.yang@windriver.com>"
RECIPE_MAINTAINER:pn-libtool-native = "Robert Yang <liezhi.yang@windriver.com>"
+RECIPE_MAINTAINER:pn-libtry-tiny-perl = "Tim Orling <tim.orling@konsulko.com>"
RECIPE_MAINTAINER:pn-libucontext = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER:pn-libunistring = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER:pn-libunwind = "Bruce Ashfield <bruce.ashfield@gmail.com>"
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 3c9ff43bd9b..b0925e13dd0 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -34,6 +34,7 @@ PTESTS_FAST = "\
libssh2-ptest \
libtimedate-perl-ptest \
libtest-needs-perl-ptest \
+ libtry-tiny-perl-ptest \
liburi-perl-ptest \
libusb1-ptest \
libxml-namespacesupport-perl-ptest \
diff --git a/meta/recipes-devtools/perl/libtry-tiny-perl_0.31.bb b/meta/recipes-devtools/perl/libtry-tiny-perl_0.31.bb
new file mode 100644
index 00000000000..a3728d84356
--- /dev/null
+++ b/meta/recipes-devtools/perl/libtry-tiny-perl_0.31.bb
@@ -0,0 +1,36 @@
+SUMMARY = "Try::Tiny - Minimal try/catch with proper preservation of $@"
+DESCRIPTION = "This module provides bare bones try/catch/finally statements \
+that are designed to minimize common mistakes with eval blocks, and NOTHING \
+else."
+HOMEPAGE = "https://github.com/p5sagit/Try-Tiny"
+BUGTRACKER = "https://rt.cpan.org/Public/Dist/Display.html?Name=Try-Tiny"
+SECTION = "libs"
+LICENSE = "MIT"
+
+LIC_FILES_CHKSUM = "file://LICENCE;md5=5dc332c2d4aade55f5db244681000091"
+
+SRC_URI = "${CPAN_MIRROR}/authors/id/E/ET/ETHER/Try-Tiny-${PV}.tar.gz"
+
+SRC_URI[sha256sum] = "3300d31d8a4075b26d8f46ce864a1d913e0e8467ceeba6655d5d2b2e206c11be"
+
+S = "${WORKDIR}/Try-Tiny-${PV}"
+
+inherit cpan ptest-perl
+
+RDEPENDS:${PN} += "\
+ perl-module-carp \
+ perl-module-constant \
+ perl-module-exporter \
+"
+RRECOMMENDS:${PN} += "\
+ perl-module-sub-util \
+"
+RDEPENDS:${PN}-ptest += "\
+ perl-module-extutils-makemaker \
+ perl-module-extutils-mm-unix \
+ perl-module-file-spec \
+ perl-module-if \
+ perl-module-test-more \
+"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.30.2
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH 3/5] libtest-fatal-perl: add recipe for 0.016
2022-11-18 17:52 [PATCH 0/5] liburi-perl upgrade Tim Orling
2022-11-18 17:52 ` [PATCH 1/5] mirrors.bbclass: update CPAN_MIRROR Tim Orling
2022-11-18 17:52 ` [PATCH 2/5] libtry-tiny-perl: add recipe for 0.31 Tim Orling
@ 2022-11-18 17:52 ` Tim Orling
2022-11-18 17:52 ` [PATCH 4/5] libtest-warnings-perl: move from meta-perl Tim Orling
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Tim Orling @ 2022-11-18 17:52 UTC (permalink / raw)
To: openembedded-core
Test::Fatal - incredibly simple helpers for testing code with exceptions
https://metacpan.org/release/RJBS/Test-Fatal-0.016
* Dependency for liburi-perl ptest.
* Add self as maintainer
* Add to ptest-packages.inc (fast)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
meta/conf/distro/include/maintainers.inc | 1 +
.../distro/include/ptest-packagelists.inc | 1 +
.../perl/libtest-fatal-perl_0.016.bb | 36 +++++++++++++++++++
3 files changed, 38 insertions(+)
create mode 100644 meta/recipes-devtools/perl/libtest-fatal-perl_0.016.bb
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 141578a7a99..42e705bda95 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -389,6 +389,7 @@ RECIPE_MAINTAINER:pn-libsoup-2.4 = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER:pn-libssh2 = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-libssp-nonshared = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER:pn-libtasn1 = "Anuj Mittal <anuj.mittal@intel.com>"
+RECIPE_MAINTAINER:pn-libtest-fatal-perl = "Tim Orling <tim.orling@konsulko.com>"
RECIPE_MAINTAINER:pn-libtest-needs-perl = "Tim Orling <tim.orling@konsulko.com>"
RECIPE_MAINTAINER:pn-libtheora = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER:pn-libtimedate-perl = "Tim Orling <tim.orling@konsulko.com>"
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index b0925e13dd0..983f1dd72a5 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -33,6 +33,7 @@ PTESTS_FAST = "\
libpcre-ptest \
libssh2-ptest \
libtimedate-perl-ptest \
+ libtest-fatal-perl-ptest \
libtest-needs-perl-ptest \
libtry-tiny-perl-ptest \
liburi-perl-ptest \
diff --git a/meta/recipes-devtools/perl/libtest-fatal-perl_0.016.bb b/meta/recipes-devtools/perl/libtest-fatal-perl_0.016.bb
new file mode 100644
index 00000000000..6d36c94eeb5
--- /dev/null
+++ b/meta/recipes-devtools/perl/libtest-fatal-perl_0.016.bb
@@ -0,0 +1,36 @@
+SUMMARY = "Incredibly simple helpers for testing code with exceptions"
+DESCRIPTION = "Test::Fatal is an alternative to the popular Test::Exception.\
+It does much less, but should allow greater flexibility in testing \
+exception-throwing code with about the same amount of typing."
+HOMEPAGE = "https://github.com/rjbs/Test-Fatal"
+BUGTRACKER = "https://github.com/rjbs/Test-Fatal/issues"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f7c73bf24be1bc7759bde9c15000db6c"
+
+SRC_URI = "${CPAN_MIRROR}/authors/id/R/RJ/RJBS/Test-Fatal-${PV}.tar.gz"
+
+SRC_URI[sha256sum] = "7283d430f2ba2030b8cd979ae3039d3f1b2ec3dde1a11ca6ae09f992a66f788f"
+
+S = "${WORKDIR}/Test-Fatal-${PV}"
+
+inherit cpan ptest-perl
+
+RDEPENDS:${PN} += "\
+ libtry-tiny-perl \
+ perl-module-carp \
+ perl-module-exporter \
+ perl-module-test-builder \
+"
+
+RDEPENDS:${PN}-ptest += "\
+ perl-module-extutils-makemaker \
+ perl-module-extutils-mm-unix \
+ perl-module-file-spec \
+ perl-module-overload \
+ perl-module-test-builder-tester \
+ perl-module-test-more \
+"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.30.2
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH 4/5] libtest-warnings-perl: move from meta-perl
2022-11-18 17:52 [PATCH 0/5] liburi-perl upgrade Tim Orling
` (2 preceding siblings ...)
2022-11-18 17:52 ` [PATCH 3/5] libtest-fatal-perl: add recipe for 0.016 Tim Orling
@ 2022-11-18 17:52 ` Tim Orling
2022-11-18 17:52 ` [PATCH 5/5] liburi-perl: upgrade 5.08 -> 5.17 Tim Orling
2022-11-18 17:59 ` [OE-core] [PATCH 0/5] liburi-perl upgrade Alexander Kanavin
5 siblings, 0 replies; 11+ messages in thread
From: Tim Orling @ 2022-11-18 17:52 UTC (permalink / raw)
To: openembedded-core
liburi-perl in oe-core now RDEPENDS on libtest-warnings-perl for ptest
* Update HOMEPAGE; fix syntax
* Add SUMMARY
* Add BUGTRACKER
* Use CPAN_MIRROR for SRC_URI
* Use actual LICENCE file for LIC_FILES_CHKSUM
* Add RDEPENDS
* Add RDEPENDS on perl-modules for ptest
- Too many hidden dependencies that fail silently, but pass
with full perl-modules
* Add self as maintainer
* Add to ptest-packagelists (fast)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
meta/conf/distro/include/maintainers.inc | 1 +
.../distro/include/ptest-packagelists.inc | 1 +
.../perl/libtest-warnings-perl_0.031.bb | 39 +++++++++++++++++++
3 files changed, 41 insertions(+)
create mode 100644 meta/recipes-devtools/perl/libtest-warnings-perl_0.031.bb
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 42e705bda95..75931516323 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -391,6 +391,7 @@ RECIPE_MAINTAINER:pn-libssp-nonshared = "Khem Raj <raj.khem@gmail.com>"
RECIPE_MAINTAINER:pn-libtasn1 = "Anuj Mittal <anuj.mittal@intel.com>"
RECIPE_MAINTAINER:pn-libtest-fatal-perl = "Tim Orling <tim.orling@konsulko.com>"
RECIPE_MAINTAINER:pn-libtest-needs-perl = "Tim Orling <tim.orling@konsulko.com>"
+RECIPE_MAINTAINER:pn-libtest-warnings-perl = "Tim Orling <tim.orling@konsulko.com>"
RECIPE_MAINTAINER:pn-libtheora = "Alexander Kanavin <alex.kanavin@gmail.com>"
RECIPE_MAINTAINER:pn-libtimedate-perl = "Tim Orling <tim.orling@konsulko.com>"
RECIPE_MAINTAINER:pn-libtirpc = "Anuj Mittal <anuj.mittal@intel.com>"
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 983f1dd72a5..cf1b57e1867 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -35,6 +35,7 @@ PTESTS_FAST = "\
libtimedate-perl-ptest \
libtest-fatal-perl-ptest \
libtest-needs-perl-ptest \
+ libtest-warnings-perl-ptest \
libtry-tiny-perl-ptest \
liburi-perl-ptest \
libusb1-ptest \
diff --git a/meta/recipes-devtools/perl/libtest-warnings-perl_0.031.bb b/meta/recipes-devtools/perl/libtest-warnings-perl_0.031.bb
new file mode 100644
index 00000000000..e03deaf15fa
--- /dev/null
+++ b/meta/recipes-devtools/perl/libtest-warnings-perl_0.031.bb
@@ -0,0 +1,39 @@
+# Copyright (C) 2020 Jens Rehsack <sno@netbsd.org>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Test::Warnings - Test for warnings and the lack of them"
+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.)"
+HOMEPAGE = "https://github.com/karenetheridge/Test-Warnings"
+BUGTRACKER = "https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Warnings"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
+
+LIC_FILES_CHKSUM = "file://LICENCE;md5=6f2b02f39e7d359efd9525fbc56c84a1"
+
+SRC_URI = "${CPAN_MIRROR}/authors/id/E/ET/ETHER/Test-Warnings-${PV}.tar.gz"
+
+SRC_URI[sha256sum] = "1e542909fef305e45563e9878ea1c3b0c7cef1b28bb7ae07eba2e1efabec477b"
+
+S = "${WORKDIR}/Test-Warnings-${PV}"
+
+inherit cpan ptest-perl
+
+RDEPENDS:${PN} += "\
+ perl-module-test-builder \
+"
+
+# Many hidden dependencies and mysterious failures occur without full perl-modules
+RDEPENDS:${PN}-ptest += "perl-modules"
+
+do_install_ptest_perl:append () {
+ cp -r ${B}/t/lib ${D}${PTEST_PATH}/t/
+ chown -R root:root ${D}${PTEST_PATH}/t/lib
+}
+
+BBCLASSEXTEND = "native nativesdk"
--
2.30.2
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH 5/5] liburi-perl: upgrade 5.08 -> 5.17
2022-11-18 17:52 [PATCH 0/5] liburi-perl upgrade Tim Orling
` (3 preceding siblings ...)
2022-11-18 17:52 ` [PATCH 4/5] libtest-warnings-perl: move from meta-perl Tim Orling
@ 2022-11-18 17:52 ` Tim Orling
2022-11-18 17:59 ` [OE-core] [PATCH 0/5] liburi-perl upgrade Alexander Kanavin
5 siblings, 0 replies; 11+ messages in thread
From: Tim Orling @ 2022-11-18 17:52 UTC (permalink / raw)
To: openembedded-core
* Author changed back from ETHER to OALDERS
* Use CPAN_MIRROR for SRC_URI
* Update HOMEPAGE
* Update RPEPENDS for -ptest
* Patch to skip TODO test cases
For changes, see:
https://metacpan.org/release/OALDERS/URI-5.17/changes
License-Update: whitespace changes
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
.../0001-Skip-TODO-test-cases-that-fail.patch | 110 ++++++++++++++++++
...iburi-perl_5.08.bb => liburi-perl_5.17.bb} | 34 +++---
2 files changed, 130 insertions(+), 14 deletions(-)
create mode 100644 meta/recipes-devtools/perl/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch
rename meta/recipes-devtools/perl/{liburi-perl_5.08.bb => liburi-perl_5.17.bb} (65%)
diff --git a/meta/recipes-devtools/perl/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch b/meta/recipes-devtools/perl/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch
new file mode 100644
index 00000000000..68ccd061202
--- /dev/null
+++ b/meta/recipes-devtools/perl/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch
@@ -0,0 +1,110 @@
+From 858daa5047b00e7d5aa795302a9fad5504c8f0b9 Mon Sep 17 00:00:00 2001
+From: Tim Orling <tim.orling@konsulko.com>
+Date: Thu, 17 Nov 2022 16:33:20 -0800
+Subject: [PATCH] Skip TODO test cases that fail
+
+TODO cases report as "not ok" with ptest-runner
+
+Upstream-Status: Inappropriate [ptest-runner specific]
+
+Signed-off-by: Tim Orling <tim.orling@konsulko.com>
+
+---
+ t/escape-char.t | 20 ++++++++++----------
+ t/iri.t | 18 +++++++++---------
+ t/mailto.t | 12 ++++++------
+ 3 files changed, 25 insertions(+), 25 deletions(-)
+
+diff --git a/t/escape-char.t b/t/escape-char.t
+index c6ce79c..5e62ad5 100644
+--- a/t/escape-char.t
++++ b/t/escape-char.t
+@@ -6,16 +6,16 @@ use warnings;
+ use Test::More;
+ use URI ();
+
+-TODO: {
+- my $str = "http://foo/\xE9";
+- utf8::upgrade($str);
+- my $uri = URI->new($str);
+-
+- local $TODO = 'URI::Escape::escape_char misunderstands utf8';
+-
+- # http://foo/%C3%A9
+- is("$uri", 'http://foo/%E9', 'correctly created a URI from a utf8-upgraded string');
+-}
++#TODO: {
++# my $str = "http://foo/\xE9";
++# utf8::upgrade($str);
++# my $uri = URI->new($str);
++#
++# local $TODO = 'URI::Escape::escape_char misunderstands utf8';
++#
++# # http://foo/%C3%A9
++# is("$uri", 'http://foo/%E9', 'correctly created a URI from a utf8-upgraded string');
++#}
+
+ {
+ my $str = "http://foo/\xE9";
+diff --git a/t/iri.t b/t/iri.t
+index 2eb64b2..9c663c9 100644
+--- a/t/iri.t
++++ b/t/iri.t
+@@ -6,7 +6,7 @@ use Test::More;
+ use Config qw( %Config );
+
+ if (defined $Config{useperlio}) {
+- plan tests=>26;
++ plan tests=>24;
+ } else {
+ plan skip_all=>'this perl doesn\'t support PerlIO layers';
+ }
+@@ -60,17 +60,17 @@ is $u->as_iri, "http://➡.ws/";
+ # draft-duerst-iri-bis.txt examples (section 3.7.1):
+ is(URI->new("http://www.example.org/D%C3%BCrst")->as_iri, "http://www.example.org/D\xFCrst");
+ is(URI->new("http://www.example.org/D%FCrst")->as_iri, "http://www.example.org/D%FCrst");
+-TODO: {
+- local $TODO = "some chars (like U+202E, RIGHT-TO-LEFT OVERRIDE) need to stay escaped";
+-is(URI->new("http://xn--99zt52a.example.org/%e2%80%ae")->as_iri, "http://\x{7D0D}\x{8C46}.example.org/%e2%80%ae");
+-}
++#TODO: {
++# local $TODO = "some chars (like U+202E, RIGHT-TO-LEFT OVERRIDE) need to stay escaped";
++#is(URI->new("http://xn--99zt52a.example.org/%e2%80%ae")->as_iri, "http://\x{7D0D}\x{8C46}.example.org/%e2%80%ae");
++#}
+
+ # try some URLs that can't be IDNA encoded (fallback to encoded UTF8 bytes)
+ $u = URI->new("http://" . ("ü" x 128));
+ is $u, "http://" . ("%C3%BC" x 128);
+ is $u->host, ("\xC3\xBC" x 128);
+-TODO: {
+- local $TODO = "should ihost decode UTF8 bytes?";
+- is $u->ihost, ("ü" x 128);
+-}
++#TODO: {
++# local $TODO = "should ihost decode UTF8 bytes?";
++# is $u->ihost, ("ü" x 128);
++#}
+ is $u->as_iri, "http://" . ("ü" x 128);
+diff --git a/t/mailto.t b/t/mailto.t
+index 79e9a13..c68cfb2 100644
+--- a/t/mailto.t
++++ b/t/mailto.t
+@@ -48,12 +48,12 @@ $u = URI->new('mailto:user+detail@example.com');
+ is $u->to, 'user+detail@example.com', 'subaddress with `+` parsed correctly';
+ is $u, 'mailto:user+detail@example.com', '... and stringification works';
+
+-TODO: {
+- local $TODO = "We can't handle quoted local parts without properly parsing the email addresses";
+- $u = URI->new('mailto:"foo bar+baz"@example.com');
+- is $u->to, '"foo bar+baz"@example.com', 'address with quoted local part containing spaces is parsed correctly';
+- is $u, 'mailto:%22foo%20bar+baz%22@example.com', '... and stringification works';
+-}
++#TODO: {
++# local $TODO = "We can't handle quoted local parts without properly parsing the email addresses";
++# $u = URI->new('mailto:"foo bar+baz"@example.com');
++# is $u->to, '"foo bar+baz"@example.com', 'address with quoted local part containing spaces is parsed correctly';
++# is $u, 'mailto:%22foo%20bar+baz%22@example.com', '... and stringification works';
++#}
+
+ # RFC 5321 (4.1.3) - Address Literals
+
diff --git a/meta/recipes-devtools/perl/liburi-perl_5.08.bb b/meta/recipes-devtools/perl/liburi-perl_5.17.bb
similarity index 65%
rename from meta/recipes-devtools/perl/liburi-perl_5.08.bb
rename to meta/recipes-devtools/perl/liburi-perl_5.17.bb
index 5428c9ddf9f..5e15004dd0f 100644
--- a/meta/recipes-devtools/perl/liburi-perl_5.08.bb
+++ b/meta/recipes-devtools/perl/liburi-perl_5.17.bb
@@ -2,19 +2,17 @@ SUMMARY = "Perl module to manipulate and access URI strings"
DESCRIPTION = "This package contains the URI.pm module with friends. \
The module implements the URI class. URI objects can be used to access \
and manipulate the various components that make up these strings."
-
-HOMEPAGE = "http://search.cpan.org/dist/URI/"
+HOMEPAGE = "https://metacpan.org/dist/URI"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c453e94fae672800f83bc1bd7a38b53f"
-
-DEPENDS += "perl"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d8ca5f628bf2cd180bc4fa044cb8ef41"
-SRC_URI = "http://www.cpan.org/authors/id/E/ET/ETHER/URI-${PV}.tar.gz"
+SRC_URI = "${CPAN_MIRROR}/authors/id/O/OA/OALDERS/URI-${PV}.tar.gz \
+ file://0001-Skip-TODO-test-cases-that-fail.patch \
+ "
-SRC_URI[md5sum] = "cdbbf8f8ccdec5c162c8505077a35c2c"
-SRC_URI[sha256sum] = "7e2c6fe3b1d5947da334fa558a96e748aaa619213b85bcdce5b5347d4d26c46e"
+SRC_URI[sha256sum] = "5f7e42b769cb27499113cfae4b786c37d49e7c7d32dbb469602cd808308568f8"
S = "${WORKDIR}/URI-${PV}"
@@ -33,18 +31,26 @@ do_install:prepend() {
rm -rf ${B}/t/file.t
}
-RDEPENDS:${PN} += "perl-module-integer perl-module-mime-base64"
+RDEPENDS:${PN} += "\
+ perl-module-integer \
+ perl-module-mime-base64 \
+"
+
RDEPENDS:${PN}-ptest += " \
+ libtest-fatal-perl \
libtest-needs-perl \
- perl-module-test-more \
- perl-module-test \
- perl-module-utf8 \
- perl-module-extutils-makemaker \
- perl-module-net-domain \
+ libtest-warnings-perl \
perl-module-encode \
+ perl-module-encode-encoding \
+ perl-module-extutils-makemaker \
perl-module-extutils-mm-unix \
perl-module-file-spec-functions \
+ perl-module-net-domain \
perl-module-perlio \
+ perl-module-perlio-encoding \
+ perl-module-test \
+ perl-module-test-more \
+ perl-module-utf8 \
"
BBCLASSEXTEND = "native"
--
2.30.2
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [OE-core] [PATCH 0/5] liburi-perl upgrade
2022-11-18 17:52 [PATCH 0/5] liburi-perl upgrade Tim Orling
` (4 preceding siblings ...)
2022-11-18 17:52 ` [PATCH 5/5] liburi-perl: upgrade 5.08 -> 5.17 Tim Orling
@ 2022-11-18 17:59 ` Alexander Kanavin
2022-11-18 18:24 ` Tim Orling
5 siblings, 1 reply; 11+ messages in thread
From: Alexander Kanavin @ 2022-11-18 17:59 UTC (permalink / raw)
To: Tim Orling; +Cc: openembedded-core
I trust all of the affected recipes still pass 'devtool
check-upgrade-status'? AUH won't work if that is broken.
Alex
On Fri, 18 Nov 2022 at 18:52, Tim Orling <ticotimo@gmail.com> wrote:
>
> AUH has been missing upgrades to liburi-perl because the author changed
> back from ETHER to OALDERS, which changes the SRC_URI. In the mean time,
> the dependencies for -ptest have grown a little bit, so we add two new
> recipes and import one from meta-perl.
>
> While we are at it, correct the redirects in CPAN_MIRROR.
>
> The following changes since commit 44bb88cc869f3b42440d6f7aad000e706b739a2b:
>
> mesa: do not rely on native llvm-config in target sysroot (2022-11-15 09:38:38 +0000)
>
> are available in the Git repository at:
>
> https://git.yoctoproject.org/git/poky-contrib timo/recipe-upgrades
> http://git.yoctoproject.org/cgit.cgi/git/poky-contrib/log/?h=timo/recipe-upgrades
>
> Tim Orling (5):
> mirrors.bbclass: update CPAN_MIRROR
> libtry-tiny-perl: add recipe for 0.31
> libtest-fatal-perl: add recipe for 0.016
> libtest-warnings-perl: move from meta-perl
> liburi-perl: upgrade 5.08 -> 5.17
>
> meta/classes-global/mirrors.bbclass | 3 +-
> meta/conf/distro/include/maintainers.inc | 3 +
> .../distro/include/ptest-packagelists.inc | 3 +
> .../perl/libtest-fatal-perl_0.016.bb | 36 ++++++
> .../perl/libtest-warnings-perl_0.031.bb | 39 +++++++
> .../perl/libtry-tiny-perl_0.31.bb | 36 ++++++
> .../0001-Skip-TODO-test-cases-that-fail.patch | 110 ++++++++++++++++++
> ...iburi-perl_5.08.bb => liburi-perl_5.17.bb} | 34 +++---
> 8 files changed, 248 insertions(+), 16 deletions(-)
> create mode 100644 meta/recipes-devtools/perl/libtest-fatal-perl_0.016.bb
> create mode 100644 meta/recipes-devtools/perl/libtest-warnings-perl_0.031.bb
> create mode 100644 meta/recipes-devtools/perl/libtry-tiny-perl_0.31.bb
> create mode 100644 meta/recipes-devtools/perl/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch
> rename meta/recipes-devtools/perl/{liburi-perl_5.08.bb => liburi-perl_5.17.bb} (65%)
>
> --
> 2.30.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#173482): https://lists.openembedded.org/g/openembedded-core/message/173482
> Mute This Topic: https://lists.openembedded.org/mt/95117529/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [OE-core] [PATCH 0/5] liburi-perl upgrade
2022-11-18 17:59 ` [OE-core] [PATCH 0/5] liburi-perl upgrade Alexander Kanavin
@ 2022-11-18 18:24 ` Tim Orling
2022-11-18 18:35 ` Alexander Kanavin
0 siblings, 1 reply; 11+ messages in thread
From: Tim Orling @ 2022-11-18 18:24 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2982 bytes --]
On Fri, Nov 18, 2022 at 9:59 AM Alexander Kanavin <alex.kanavin@gmail.com>
wrote:
> I trust all of the affected recipes still pass 'devtool
> check-upgrade-status'? AUH won't work if that is broken.
>
> It doesn't matter when the author changes and CPAN changes the URL out
from under us. Unless we figure out a different URL to use for the AUH
query.
liburi-perl was happily reporting no change for a long time.
> Alex
>
> On Fri, 18 Nov 2022 at 18:52, Tim Orling <ticotimo@gmail.com> wrote:
> >
> > AUH has been missing upgrades to liburi-perl because the author changed
> > back from ETHER to OALDERS, which changes the SRC_URI. In the mean time,
> > the dependencies for -ptest have grown a little bit, so we add two new
> > recipes and import one from meta-perl.
> >
> > While we are at it, correct the redirects in CPAN_MIRROR.
> >
> > The following changes since commit
> 44bb88cc869f3b42440d6f7aad000e706b739a2b:
> >
> > mesa: do not rely on native llvm-config in target sysroot (2022-11-15
> 09:38:38 +0000)
> >
> > are available in the Git repository at:
> >
> > https://git.yoctoproject.org/git/poky-contrib timo/recipe-upgrades
> >
> http://git.yoctoproject.org/cgit.cgi/git/poky-contrib/log/?h=timo/recipe-upgrades
> >
> > Tim Orling (5):
> > mirrors.bbclass: update CPAN_MIRROR
> > libtry-tiny-perl: add recipe for 0.31
> > libtest-fatal-perl: add recipe for 0.016
> > libtest-warnings-perl: move from meta-perl
> > liburi-perl: upgrade 5.08 -> 5.17
> >
> > meta/classes-global/mirrors.bbclass | 3 +-
> > meta/conf/distro/include/maintainers.inc | 3 +
> > .../distro/include/ptest-packagelists.inc | 3 +
> > .../perl/libtest-fatal-perl_0.016.bb | 36 ++++++
> > .../perl/libtest-warnings-perl_0.031.bb | 39 +++++++
> > .../perl/libtry-tiny-perl_0.31.bb | 36 ++++++
> > .../0001-Skip-TODO-test-cases-that-fail.patch | 110 ++++++++++++++++++
> > ...iburi-perl_5.08.bb => liburi-perl_5.17.bb} | 34 +++---
> > 8 files changed, 248 insertions(+), 16 deletions(-)
> > create mode 100644 meta/recipes-devtools/perl/
> libtest-fatal-perl_0.016.bb
> > create mode 100644 meta/recipes-devtools/perl/
> libtest-warnings-perl_0.031.bb
> > create mode 100644 meta/recipes-devtools/perl/libtry-tiny-perl_0.31.bb
> > create mode 100644
> meta/recipes-devtools/perl/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch
> > rename meta/recipes-devtools/perl/{liburi-perl_5.08.bb =>
> liburi-perl_5.17.bb} (65%)
> >
> > --
> > 2.30.2
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#173482):
> https://lists.openembedded.org/g/openembedded-core/message/173482
> > Mute This Topic: https://lists.openembedded.org/mt/95117529/1686489
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
[-- Attachment #2: Type: text/html, Size: 5384 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [OE-core] [PATCH 0/5] liburi-perl upgrade
2022-11-18 18:24 ` Tim Orling
@ 2022-11-18 18:35 ` Alexander Kanavin
2022-11-18 18:56 ` Tim Orling
0 siblings, 1 reply; 11+ messages in thread
From: Alexander Kanavin @ 2022-11-18 18:35 UTC (permalink / raw)
To: Tim Orling; +Cc: openembedded-core
On Fri, 18 Nov 2022 at 19:24, Tim Orling <ticotimo@gmail.com> wrote:
>> I trust all of the affected recipes still pass 'devtool
>> check-upgrade-status'? AUH won't work if that is broken.
>>
> It doesn't matter when the author changes and CPAN changes the URL out from under us. Unless we figure out a different URL to use for the AUH query.
> liburi-perl was happily reporting no change for a long time.
What I mean is does version check work properly for the fixed recipe,
and the ones that were newly introduced in your patchset?
Alex
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [OE-core] [PATCH 0/5] liburi-perl upgrade
2022-11-18 18:35 ` Alexander Kanavin
@ 2022-11-18 18:56 ` Tim Orling
2022-11-18 19:23 ` Alexander Kanavin
0 siblings, 1 reply; 11+ messages in thread
From: Tim Orling @ 2022-11-18 18:56 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]
On Fri, Nov 18, 2022 at 10:35 AM Alexander Kanavin <alex.kanavin@gmail.com>
wrote:
> On Fri, 18 Nov 2022 at 19:24, Tim Orling <ticotimo@gmail.com> wrote:
> >> I trust all of the affected recipes still pass 'devtool
> >> check-upgrade-status'? AUH won't work if that is broken.
> >>
> > It doesn't matter when the author changes and CPAN changes the URL out
> from under us. Unless we figure out a different URL to use for the AUH
> query.
> > liburi-perl was happily reporting no change for a long time.
>
> What I mean is does version check work properly for the fixed recipe,
> and the ones that were newly introduced in your patchset?
>
> I know what you mean. Yes, all of them happily report back a value if you
run 'devtool check-upgrade-status'.
What I am trying to get across is that:
5.0.7 the author was OALDERS, so the URL was
https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-5.07.tar.gz
5.0.8 the author was ETHER, so the URL was
https://cpan.metacpan.org/authors/id/E/ET/ETHER/URI-5.08.tar.gz
5.0.9+ the author went back to OALDERS so the URL became
https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-${PV}.tar.gz again
So for ALL perl modules, we would need some other scheme for checking if
the author changed. For example:
https://metacpan.org/pod/URI
Alex
>
[-- Attachment #2: Type: text/html, Size: 2267 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread