#1146281 url-normalize: FTBFS: E AssertionError: faß.de

#1146281#5
Date:
2026-08-30 22:57:30 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:url-normalize, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
=================================== FAILURES ===================================

E
E         - fass.de
E         + xn--fa-hia.de

tests/test_normalize_host.py:32: AssertionError
=============================== warnings summary ===============================
tests/test_normalize_host.py: 19 warnings
tests/test_normalize_query_filters.py: 32 warnings
tests/test_url_normalize.py: 127 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_url-normalize/build/url_normalize/normalize_host.py:35: DeprecationWarning: Transitional processing is deprecated in UTS #46 and has no effect. The transitional argument will be removed in a future version.
    idna.encode(p, uts46=True, transitional=True).decode(charset)

#1146281#10
Date:
2026-09-13 07:21:29 UTC
From:
To:
Hello Sandro,

As you know from my previous mails I try to maintain the beets package in
Debian.

url-normalize, which you maintain, has an FTBFS bug #1146281 against it which
affects beets. I have opened an MR with a patch for this bug which I backported
from upstream [1].

I've had no response from you in my recent previous attempts [2], so I'm not going
to wait this time and will seek sponsorship for an NMU right away.

I also noticed that you've not incorporated the changes to the packages in the
NMU's above in salsa. I know you are still active. I just think those packages
need some basic maintenance. I'm not sure how to ask you in other ways, so,
therefore, I'm including the MIA team as I don't think this is a good
situation.

I'm just offering help, I'm open to co-maintain or other suggestions you may
have to keep packages you maintain from showing up in the beets issue tracker.

Hoping to hear from you and that all is well.

Best regards,

Pieter

[1] : https://salsa.debian.org/morph/url-normalize/-/merge_requests/1
[2] : #1137569 and #1141675

#1146281#17
Date:
2026-09-13 11:47:30 UTC
From:
To:
Dear maintainer,

Pieter has prepared an NMU for url-normalize (versioned as 2.2.1-2.1) and
I uploaded it to DELAYED/5. Please feel free to tell me if I
should cancel it.

Regards.

diffstat for url-normalize-2.2.1 url-normalize-2.2.1

 changelog                                |    7 +++++++
 patches/fix_idna_deprecated_transitional |   28 ++++++++++++++++++++++++++++
 patches/series                           |    1 +
 3 files changed, 36 insertions(+)

diff -Nru url-normalize-2.2.1/debian/changelog url-normalize-2.2.1/debian/changelog
--- url-normalize-2.2.1/debian/changelog	2026-04-15 03:20:02.000000000 +0200
+++ url-normalize-2.2.1/debian/changelog	2026-09-13 08:19:43.000000000 +0200
@@ -1,3 +1,10 @@
+url-normalize (2.2.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch for deprecated transitional host normalization (Closes: #1146281)
+
+ -- Pieter Lenaerts <plenae@disroot.org>  Sun, 13 Sep 2026 08:19:43 +0200
+
 url-normalize (2.2.1-2) unstable; urgency=medium

   * debian/control
diff -Nru url-normalize-2.2.1/debian/patches/fix_idna_deprecated_transitional url-normalize-2.2.1/debian/patches/fix_idna_deprecated_transitional
--- url-normalize-2.2.1/debian/patches/fix_idna_deprecated_transitional	1970-01-01 01:00:00.000000000 +0100
+++ url-normalize-2.2.1/debian/patches/fix_idna_deprecated_transitional	2026-09-13 08:19:43.000000000 +0200
@@ -0,0 +1,28 @@
+From: Pieter Lenaerts <plenae@disroot.org>
+Date: Sun, 13 Sep 2026 08:07:17 +0200
+Subject: Fix test with transitional host normalization
+
+UTS#46 has deprecated transitional hostname processing, so idna no
+longer supports the transitional argument to encode(). idna now
+ignores the argument, no longer returns IDNA2003 result but returns
+IDNA2008 result.
+
+Origin: backport, https://github.com/niksite/url-normalize/pull/42/changes#diff-42b168b1b2aa56197bae4f75ce04e18a2651d5eba4ff13d80b7a4b104998226a
+Forwarded: not-needed
+---
+ tests/test_normalize_host.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_normalize_host.py b/tests/test_normalize_host.py
+index 2dce3e3..713bf1a 100644
+--- a/tests/test_normalize_host.py
++++ b/tests/test_normalize_host.py
+@@ -17,7 +17,7 @@ from url_normalize.url_normalize import normalize_host
+         # Mixed case with Cyrillic
+         ("ExAmPle.РФ", "example.xn--p1ai"),
+         # IDNA2008 with UTS46
+-        ("faß.de", "fass.de"),  # Normalize using transitional rules
++        ("faß.de", "xn--fa-hia.de"),
+         # Edge cases
+         ("ドメイン.テスト", "xn--eckwd4c7c.xn--zckzah"),  # Japanese
+         ("domain.café", "domain.xn--caf-dma"),  # Latin with diacritic
diff -Nru url-normalize-2.2.1/debian/patches/series url-normalize-2.2.1/debian/patches/series
--- url-normalize-2.2.1/debian/patches/series	2026-04-15 03:20:02.000000000 +0200
+++ url-normalize-2.2.1/debian/patches/series	2026-09-13 08:19:43.000000000 +0200
@@ -1 +1,2 @@
 tests-remove-plugins.patch
+fix_idna_deprecated_transitional

#1146281#24
Date:
2026-09-14 05:19:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
url-normalize, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146281@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <morph@debian.org> (supplier of updated url-normalize package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 14 Sep 2026 01:04:41 -0400
Source: url-normalize
Architecture: source
Version: 3.0.0-1
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <morph@debian.org>
Changed-By: Sandro Tosi <morph@debian.org>
Closes: 1146281
Changes:
 url-normalize (3.0.0-1) unstable; urgency=medium
 .
   * New upstream release; Closes: #1146281
Checksums-Sha1:
 5082e9df29e99847eed49f5f29cfb09550b6a0f6 2115 url-normalize_3.0.0-1.dsc
 ff5758fa13a761027163b1e8bff69231e3e83917 52880 url-normalize_3.0.0.orig.tar.xz
 29c4a754d12ec855bd2d2b1a0570a96b1a3c8a20 3072 url-normalize_3.0.0-1.debian.tar.xz
 a1bdabfb758cc1d4f76e8a230d6767819b1e9fdc 8575 url-normalize_3.0.0-1_source.buildinfo
Checksums-Sha256:
 a9781a86596099753b244a1292ac86c54f6e57e0f7f15d417a6075b1653f3ecc 2115 url-normalize_3.0.0-1.dsc
 af57c24d809df0cd154aca37a48838d42676836a940c438ac14aa2d15bd0f9f6 52880 url-normalize_3.0.0.orig.tar.xz
 a89d9b67ad0895dd748aa6cf368561c11c25fede79696d3eaa32b42c44683a73 3072 url-normalize_3.0.0-1.debian.tar.xz
 d39e0b9c7fd19bb9663c559e316485fe80ed5dc81f220521714c60d5e7037723 8575 url-normalize_3.0.0-1_source.buildinfo
Files:
 b739f5ccd4d40973c8a9eeab2e650c74 2115 python optional url-normalize_3.0.0-1.dsc
 1d2b4b13d8653117a32bfcb91c183b7d 52880 python optional url-normalize_3.0.0.orig.tar.xz
 ee488760331803193d6032f2daf09d5f 3072 python optional url-normalize_3.0.0-1.debian.tar.xz
 9b42b8bb47e1cece5d69ce8a4127d70c 8575 python optional url-normalize_3.0.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAmqngHoACgkQh588mTgB
qU/WMQ/+OCi45cay1uCGzJuQAAavgfPV72k+1THcTL8h7z+xf0XSNITO7nQBV7VY
nVaRUviNm6cQ/HHxnDPLNfxt3csgDpy8NxZlI9e4XXyjB9rFkC696Qe+cZ1cFw6p
nH9yr1tnVFmB/AWNSfo1NNeyABkbaPYyyVZhqKlK3KunnKeYgZbOh2zBx38uvOmG
yBWX8T2g4YG621kmENtdaD6UETdLXrthHEp4AxjYfaW3p+Hz05YjrqsIIxtUMfZq
0c+AAOGQPMCMLb6eoRJAc54xfh+pr2Vuvv2KlOuUEUIdDVpPx0LYz5YkI6ocoDc3
O6WUWyn+vJYpy4//eyimjDcIMEkHl6Gbd/7mpKnigAl27Kq52mDqWzMvOSNgDJeK
rrpKszQkeoM3Gc8qIvqQ2GVrmbw3xwiEUzXNjutDCZrXkgTk72SRJ1cH7Nc859al
bp0AqTzCvFtGVu3/B4dpzFkELK2/9vNIPdLDQfLBoeJ2ViPVISKAO5CqA0jTVLma
f0RnpUDF9/D9x4a+w12f7zSAPrYlOfvvR8DN1FL+NWrzLhjgL6Yy+I3aliFh2XKP
LwUqdjPUtS+v+mkZ2Yan6+k3ot5Z8/dUzrMVkxc2W/T5MRtk3J/P1XTyQ2Uwzfd/
Tt5oBo5MzWL+EfMjLze21LUoUZ9GfLZSZcRVYcL+/rbHosu0TI4=
=udA/
-----END PGP SIGNATURE-----