Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895902 - www-client/lynx: Uses libidn2 if available, dependencies say libidn
Summary: www-client/lynx: Uses libidn2 if available, dependencies say libidn
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-22 16:22 UTC by Hanno Böck
Modified: 2023-02-22 16:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2023-02-22 16:22:54 UTC
www-servers/lynx has libidn as a dependency listed.
However it also supports libidn2 and on a system where both are available it'll choose libidn2.

Given libidn2 is the successor of libidn, I think it'd make sense to just default to depending on libidn2.

Package is maintainer-needed, CCing sam@ who did the last version bump. I can also change it myself of course.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-22 16:27:53 UTC
I wonder how many other things are using libidn when they support libidn2. I ended up finding a bunch of these before for libpcre vs libpcre2.

Anyway, good spot, thank you, and I'm sorry for not spotting it when I did the bump.

Support was added in...
"""
2021-07-26 (2.9.0dev.7)
* trim extra '/' in the Related-ABS case of HTParse introduced by revision of
  HTSimplify in 2.9.0dev.3 (Debian #989047) -TD
* modify formatting of gopher telnet and tn3270 selectors to skip a leading
  "/" which produced ill-formed URI (report by Dario Niederman) -TD
* modify SGML parsing to allow DEL and INS tags to work on a block-level rather
  than only inline (Debian #981351) -TD
* modify configure script to check for libidn2, add options menu setting for
  selecting old/new/compat behavior (prompted by patch by Robert Scheck, Redhat
  #1910971) -TD
  Further reading:
    https://nikmav.blogspot.com/2017/04/the-mess-with-internationalized-domain.html
    https://unicode.org/reports/tr46/
    https://datatracker.ietf.org/doc/html/rfc5890
    https://datatracker.ietf.org/doc/html/draft-iab-protocol-transitions-01
[...]
"""

and fortunately I didn't do that bump, so at least I didn't miss it in the diff ;)

On it.
Comment 2 Larry the Git Cow gentoo-dev 2023-02-22 16:37:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3900d43cd935b7c9c6904ae68dcbcab60eb1cf3

commit d3900d43cd935b7c9c6904ae68dcbcab60eb1cf3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-22 16:29:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-22 16:37:22 +0000

    www-client/lynx: fix libidn2 automagic dep
    
    As Hanno points out, the build system already prefers libidn2 > libidn if libidn2 is
    installed.
    
    Closes: https://bugs.gentoo.org/895902
    Signed-off-by: Sam James <sam@gentoo.org>

 www-client/lynx/{lynx-2.9.0_pre12.ebuild => lynx-2.9.0_pre12-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)