Bug 2037930 - Switch from Net::LibIDN to Net::LibIDN2?
Summary: Switch from Net::LibIDN to Net::LibIDN2?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: amavis
Version: 36
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Juan Orti
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2035834 2059362
TreeView+ depends on / blocked
 
Reported: 2022-01-06 20:56 UTC by Robert Scheck
Modified: 2023-01-21 03:40 UTC (History)
4 users (show)

Fixed In Version: amavis-2.13.0-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-21 03:40:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab amavis amavis issues 83 0 None None None 2022-01-06 20:56:13 UTC
Gitlab amavis amavis merge_requests 89 0 None None None 2022-01-06 20:56:13 UTC

Description Robert Scheck 2022-01-06 20:56:13 UTC
Description of problem:
Perl Net::LibIDN supports only IDNA 2003, the first generation of internationalized domain names. Perl Net::LibIDN uses GNU libidn as backend library, which states that GNU libidn2 is the successor of GNU libidn. As of writing, GNU libidn has been removed from the first Linux distributions, such as CentOS Stream 9 (upstream of Red Hat Enterprise Linux 9).

While GNU libidn2 provides a compatibility layer for GNU libidn, it doesn't seem to be easily possible to build Net::LibIDN against GNU libidn2, because Net::LibIDN doesn't provide only encoding and decoding of internationalized domain names, but also various intermediate GNU libidn methods.

Thus the proper perl answer to that is Net::LibIDN2 using GNU libidn2 as backend, which comes with a IDNA 2008 and TR46 implementation – and that's why I suggest to switch from Net::LibIDN to Net::LibIDN2.

Upstream report: https://gitlab.com/amavis/amavis/-/issues/83

Version-Release number of selected component (if applicable):
amavis-2.12.2-3.fc36
amavis-2.12.2-3.el9

Actual results:
Dependency on perl(Net::LibIDN).

Expected results:
Dependency on perl(Net::LibIDN2).

Additional info:
I've suggested https://gitlab.com/amavis/amavis/-/merge_requests/89 to upstream, however Debian doesn't seem to have Net::LibIDN2 packaged yet, so the CI fails. The patch proposal could be easily migrated to 2.12 stable series.

Comment 1 Ben Cotton 2022-02-08 21:16:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Juan Orti 2022-03-09 20:46:30 UTC
I've pushed current amavis master branch to rawhide which has already switched to Net::LibIDN2.

There has been many changes, so I'd be grateful if you can test it and give me your feedback.

Thanks.

Comment 3 Fedora Update System 2023-01-11 11:08:22 UTC
FEDORA-2023-1806b1adb1 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1806b1adb1

Comment 4 Fedora Update System 2023-01-12 02:41:44 UTC
FEDORA-2023-1806b1adb1 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1806b1adb1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1806b1adb1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-01-21 03:40:35 UTC
FEDORA-2023-1806b1adb1 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.