liburi-perl: upgrade 5.35 -> 5.36
PATCH 1/1 liburi-perl: upgrade 5.35 -> 5.36
Refresh patches.
Changes for version 5.36 - 2026-08-19
Apply Unicode NFC normalization in URI::_idna nameprep so IDNA host encoding matches other clients instead of emitting a non-standard, non-round-tripping A-label [CVE-2026-19953] (reported by Naseeb Dangi, @naseeb0) (GH#191)
Signed-off-by Jason Schonberg <[email protected]>
---
.../0001-Skip-TODO-test-cases-that-fail.patch | 72 +++++++++++--------
...iburi-perl_5.35.bb => liburi-perl_5.36.bb} | 2 +-
2 files changed, 43 insertions(+), 31 deletions(-)
rename meta-perl/recipes-perl/liburi/{liburi-perl_5.35.bb => liburi-perl_5.36.bb} (94%)meta-perl/recipes-perl/liburi/liburi-perl/0001-Skip-TODO-test-cases-that-fail.patch +42 -30
@@ -9,16 +9,16 @@ Upstream-Status: Inappropriate [ptest-runner specific] Signed-off-by: Tim Orling <[email protected]> --- - t/escape-char.t | 20 ++++++++++---------- - t/iri.t | 18 +++++++++--------- - t/mailto.t | 12 ++++++------ - 3 files changed, 25 insertions(+), 25 deletions(-) + t/escape-char.t | 22 +++++++++++----------- + t/iri.t | 22 +++++++++++----------- + t/mailto.t | 18 +++++++++--------- + 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/t/escape-char.t b/t/escape-char.t -index c6ce79c..5e62ad5 100644 +index 5a5ad11..098bd5f 100644 --- a/t/escape-char.t +++ b/t/escape-char.t -@@ -6,16 +6,16 @@ use warnings; +@@ -6,17 +6,17 @@ use warnings; use Test::More; use URI ();
@@ -30,7 +30,8 @@ index c6ce79c..5e62ad5 100644 - 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'); +- is("$uri", 'http://foo/%E9', +- 'correctly created a URI from a utf8-upgraded string'); -} +#TODO: { +# my $str = "http://foo/\xE9";
@@ -40,35 +41,40 @@ index c6ce79c..5e62ad5 100644 +# 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'); ++# 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 cf983d6..884b36e 100644 +index 1f76c19..2411e87 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=>30; -+ plan tests=>28; - } else { - plan skip_all=>"this perl doesn't support PerlIO layers"; +- plan tests => 30; ++ plan tests => 28; } -@@ -67,17 +67,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"); + else { + plan skip_all => "this perl doesn't support PerlIO layers"; +@@ -70,19 +70,19 @@ 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"); +- 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"); ++# 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)
@@ -85,24 +91,30 @@ index cf983d6..884b36e 100644 +#} is $u->as_iri, "http://" . ("ü" x 128); diff --git a/t/mailto.t b/t/mailto.t -index 79e9a13..c68cfb2 100644 +index 92e4111..60f1c97 100644 --- a/t/mailto.t +++ b/t/mailto.t -@@ -48,12 +48,12 @@ $u = URI->new('mailto:[email protected]'); +@@ -48,15 +48,15 @@ $u = URI->new('mailto:[email protected]'); is $u->to, '[email protected]', 'subaddress with `+` parsed correctly'; - is $u, 'mailto:[email protected]', '... and stringification works'; + is $u, 'mailto:[email protected]', '... and stringification works'; -TODO: { -- local $TODO = "We can't handle quoted local parts without properly parsing the email addresses"; +- 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%[email protected]', '... and stringification works'; +- is $u->to, '"foo bar+baz"@example.com', +- 'address with quoted local part containing spaces is parsed correctly'; +- is $u, 'mailto:%22foo%20bar+baz%[email protected]', +- '... and stringification works'; -} +#TODO: { -+# local $TODO = "We can't handle quoted local parts without properly parsing the email addresses"; ++# 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%[email protected]', '... and stringification works'; ++# is $u->to, '"foo bar+baz"@example.com', ++# 'address with quoted local part containing spaces is parsed correctly'; ++# is $u, 'mailto:%22foo%20bar+baz%[email protected]', ++# '... and stringification works'; +#} # RFC 5321 (4.1.3) - Address Literals
meta-perl/recipes-perl/liburi/liburi-perl_5.36.bb renamed from meta-perl/recipes-perl/liburi/liburi-perl_5.35.bb +1 -1
@@ -12,7 +12,7 @@ SRC_URI = "${CPAN_MIRROR}/authors/id/O/OA/OALDERS/URI-${PV}.tar.gz \ file://0001-Skip-TODO-test-cases-that-fail.patch \ " -SRC_URI[sha256sum] = "89648964ce5ae006726951f42f718576fbefe9e98a41bd2212d57386163092d2" +SRC_URI[sha256sum] = "32719e57413db6e18492e104707b95c2210df637614c512e7368c9ec3c2f783b" S = "${UNPACKDIR}/URI-${PV}"
Signature · 1 line
2.43.0