Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554554 - net-misc/whois: external -liconv is not linked in when needed
Summary: net-misc/whois: external -liconv is not linked in when needed
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2015-07-11 21:01 UTC by René Rhéaume
Modified: 2021-09-10 04:03 UTC (History)
1 user (show)

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


Attachments
whois-5.1.5.ebuild.patch (whois-5.1.5.ebuild.patch,892 bytes, patch)
2015-07-11 21:02 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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-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...