Control: tags 1123293 + patch Control: tags 1123293 + pending Dear maintainer,
I've prepared an NMU for python-publicsuffix2 (versioned as 2.20191221-5.1) and uploaded it to DELAYED/10. Please feel free to tell me if I should delay it longer. Please note that this package is already marked for autoremoval due to this bug. Cheers, Flo
diff -Nru python-publicsuffix2-2.20191221/debian/changelog python-publicsuffix2-2.20191221/debian/changelog --- python-publicsuffix2-2.20191221/debian/changelog 2025-01-29 23:13:42.000000000 +0100 +++ python-publicsuffix2-2.20191221/debian/changelog 2025-12-29 10:33:53.000000000 +0100 @@ -1,3 +1,12 @@ +python-publicsuffix2 (2.20191221-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add d/patches/replace-bd-tests.patch to replace .bd tests with .er tests + allowing the package to build again after recent publicsuffix changes + (Closes: #1123293) + + -- Florian Ernst <[email protected]> Mon, 29 Dec 2025 10:33:53 +0100 + python-publicsuffix2 (2.20191221-5) unstable; urgency=medium * Team upload. diff -Nru python-publicsuffix2-2.20191221/debian/patches/replace-bd-tests.patch python-publicsuffix2-2.20191221/debian/patches/replace-bd-tests.patch --- python-publicsuffix2-2.20191221/debian/patches/replace-bd-tests.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-publicsuffix2-2.20191221/debian/patches/replace-bd-tests.patch 2025-12-29 10:31:12.000000000 +0100 @@ -0,0 +1,76 @@ +Description: Replace .bd tests with .er tests + Upstream has changed the handling of .bd domains, cf. + https://github.com/publicsuffix/list/commit/30f4f4244cfef423c0150cfab53a5d89bc734f65, + causing this package's .bd tests to fail, so replace them with a suitable + substitute domain as done in publicsuffix-ruby, cf. + https://github.com/weppos/publicsuffix-ruby/commit/edadce0f1091cbda3ce39f97cc0f654ad21f43d6. +Author: Florian Ernst <[email protected]> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123293 + +Index: python-publicsuffix2-2.20191221/tests_mozilla.py +=================================================================== +--- python-publicsuffix2-2.20191221.orig/tests_mozilla.py ++++ python-publicsuffix2-2.20191221/tests_mozilla.py +@@ -130,16 +130,16 @@ class TestPublicSuffixMozilla(unittest.T + assert 'ac' == publicsuffix.get_tld('test.ac') + + def test_get_tld_TLD_with_only_1_wildcard_rule1(self): +- assert 'bd' == publicsuffix.get_tld('bd') ++ assert 'er' == publicsuffix.get_tld('er') + + def test_get_tld_TLD_with_only_1_wildcard_rule2(self): +- assert 'c.bd' == publicsuffix.get_tld('c.bd') ++ assert 'c.er' == publicsuffix.get_tld('c.er') + + def test_get_tld_TLD_with_only_1_wildcard_rule3(self): +- assert 'c.bd' == publicsuffix.get_tld('b.c.bd') ++ assert 'c.er' == publicsuffix.get_tld('b.c.er') + + def test_get_tld_TLD_with_only_1_wildcard_rule4(self): +- assert 'c.bd' == publicsuffix.get_tld('a.b.c.bd') ++ assert 'c.er' == publicsuffix.get_tld('a.b.c.er') + + def test_get_tld_More_complex_TLD1(self): + assert 'jp' == publicsuffix.get_tld('jp') +@@ -394,16 +394,16 @@ class TestPublicSuffixMozillaStrict(unit + assert 'ac' == publicsuffix.get_tld('test.ac', strict=True) + + def test_get_tld_TLD_with_only_1_wildcard_rule1(self): +- assert 'bd' == publicsuffix.get_tld('bd', strict=True) ++ assert 'er' == publicsuffix.get_tld('er', strict=True) + + def test_get_tld_TLD_with_only_1_wildcard_rule2(self): +- assert 'c.bd' == publicsuffix.get_tld('c.bd', strict=True) ++ assert 'c.er' == publicsuffix.get_tld('c.er', strict=True) + + def test_get_tld_TLD_with_only_1_wildcard_rule3(self): +- assert 'c.bd' == publicsuffix.get_tld('b.c.bd', strict=True) ++ assert 'c.er' == publicsuffix.get_tld('b.c.er', strict=True) + + def test_get_tld_TLD_with_only_1_wildcard_rule4(self): +- assert 'c.bd' == publicsuffix.get_tld('a.b.c.bd', strict=True) ++ assert 'c.er' == publicsuffix.get_tld('a.b.c.er', strict=True) + + def test_get_tld_More_complex_TLD1(self): + assert 'jp' == publicsuffix.get_tld('jp', strict=True) +@@ -658,16 +658,16 @@ class TestPublicSuffixMozillaSld(unittes + assert 'test.ac' == publicsuffix.get_sld('test.ac') + + def test_get_sld_tld_with_only_1_wildcard_rule1(self): +- assert 'bd' == publicsuffix.get_sld('bd') ++ assert 'er' == publicsuffix.get_sld('er') + + def test_get_sld_tld_with_only_1_wildcard_rule2(self): +- assert 'c.bd' == publicsuffix.get_sld('c.bd') ++ assert 'c.er' == publicsuffix.get_sld('c.er') + + def test_get_sld_tld_with_only_1_wildcard_rule3(self): +- assert 'b.c.bd' == publicsuffix.get_sld('b.c.bd') ++ assert 'b.c.er' == publicsuffix.get_sld('b.c.er') + + def test_get_sld_tld_with_only_1_wildcard_rule4(self): +- assert 'b.c.bd' == publicsuffix.get_sld('a.b.c.bd') ++ assert 'b.c.er' == publicsuffix.get_sld('a.b.c.er') + + def test_get_sld_More_complex_sld1(self): + assert 'jp' == publicsuffix.get_sld('jp') diff -Nru python-publicsuffix2-2.20191221/debian/patches/series python-publicsuffix2-2.20191221/debian/patches/series --- python-publicsuffix2-2.20191221/debian/patches/series 2025-01-29 23:12:03.000000000 +0100 +++ python-publicsuffix2-2.20191221/debian/patches/series 2025-12-29 10:31:41.000000000 +0100 @@ -1,2 +1,3 @@ use-system-psl.patch add-upstream-tests.patch +replace-bd-tests.patch
signature.asc
Description: PGP signature

