Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43470 - net-misc/whois does not depend on libidn
Summary: net-misc/whois does not depend on libidn
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
: 43693 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-02 05:06 UTC by Bernd Wurst
Modified: 2005-05-04 05:55 UTC (History)
0 users

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 Bernd Wurst 2004-03-02 05:06:02 UTC
as we got IDN domains in central europe this week, I recognized that "whois" is able to handle those punycode-coded domain names but portage does not enable ist and does not depend on libidn.

libidn is in portage since this week because kde 3.2.1 will use it. If I install it manually, whois does not know about it (doesn't have a configure-script).

I solved it by running make "HAVE_LIBIDN=1" which results in a linker error because libidn's interface has changed recently (I think). The solution is to replace 
    if (idna_to_ascii_from_locale(ret, &p, 0, 0) != IDNA_SUCCESS)
with
    if (idna_to_ascii_lz(ret, &p, 0) != IDNA_SUCCESS)
in whois.c file.

This works for me as long as there is no newer version of "whois".
Perhaps someone could do a -r1 ebuild for this.
I suggest putting "net-dns/libidn" in depend if USE=nls is set. or hard depend, don't know what's better... :-)
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-03-04 02:04:09 UTC
*** Bug 43693 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2004-10-16 11:26:37 UTC
hardcoded in whois-4.6.22 ;)
Comment 3 Olliver Schinagl 2005-05-04 05:55:50 UTC
So why isn't it a USE flag or something similiar? Here in the Netherlands we don't use these 'strange' symbols, it's the first and only package that depends on libidn. I don't want to install a 2mb tarball just because a simple whois tool _could_ use it.

I say make it a useflag! (in combination with the nls flag maybe or something the like).