Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 554554

Summary: net-misc/whois: external -liconv is not linked in when needed
Product: Gentoo Linux Reporter: René Rhéaume <rene.rheaume>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 570544    
Attachments: whois-5.1.5.ebuild.patch

Description René Rhéaume 2015-07-11 21:01:43 UTC
On uclibc, even though the libraries are installed on the system and declared as dependencies, that are missing from the link command line when building whois. Therefore, the build fails. Solving this problem is simply passing the library names to the command line.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 net-misc/whois
2.
3.
Actual Results:  
emake failed (compile phase)

Expected Results:  
whois installed
Comment 1 René Rhéaume 2015-07-11 21:02:49 UTC
Created attachment 406564 [details, diff]
whois-5.1.5.ebuild.patch
Comment 2 SpanKY gentoo-dev 2015-07-15 02:52:27 UTC
this isn't specific to uClibc.  every system that has iconv functionality in a sep library is broken.
Comment 3 René Rhéaume 2017-01-28 23:08:17 UTC
(In reply to SpanKY from comment #2)
> this isn't specific to uClibc.  every system that has iconv functionality in
> a sep library is broken.

Is there an eclass function which indicates which environment needs -liconv ? I know it's needed for uclibc, FreeBSD before 10, Mac OS X (prefix) and Solaris (prefix) but where else?

By the way, the ebuild patch still applies to version 5.2.12 .
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-10 04:03:48 UTC
(In reply to René Rhéaume from comment #3)
> (In reply to SpanKY from comment #2)
> > this isn't specific to uClibc.  every system that has iconv functionality in
> > a sep library is broken.
> 
> Is there an eclass function which indicates which environment needs -liconv
> ? I know it's needed for uclibc, FreeBSD before 10, Mac OS X (prefix) and
> Solaris (prefix) but where else?

The best way is to use an autoconf test. But this is a standalone homebrew Makefile...