Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454410 - net-misc/iputils[idn,static] - failed to build
Summary: net-misc/iputils[idn,static] - failed to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-28 11:09 UTC by Sergey Popov
Modified: 2013-01-28 20:02 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,6.03 KB, text/plain)
2013-01-28 11:09 UTC, Sergey Popov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Popov gentoo-dev 2013-01-28 11:09:58 UTC
Created attachment 337092 [details]
build.log

net-misc/iputils-20121221 with USE="idn static" failed to build with error:

ld: cannot find -lidn

build.log attached

This is NOT a regression, current stable(net-misc/iputils-20101006-r2) fails too with same error.
Comment 2 SpanKY gentoo-dev 2013-01-28 18:56:52 UTC
portage guys: i must be going crazy here.  in iputils, i've put:
  RDEPEND="!static? ( ssl? ( dev-libs/openssl ) )"
  DEPEND="${RDEPEND}
      static? ( ssl? ( dev-libs/openssl[static-libs(+)] ) )"

but when i do:
  USE=static emerge iputils -pv

it does not require USE=static-libs be set on openssl.  any idea wtf i'm doing wrong here ?  seems to work for other lib packages.

$ emerge --version
Portage 2.2.0_alpha161 (default/linux/amd64/10.0/developer, gcc-4.7.2, glibc-2.17, 3.7.1 x86_64)

$ emerge openssl -pqv --nodeps
[ebuild   R   ] dev-libs/openssl-1.0.1c  USE="gmp (sse2) zlib -bindist -kerberos -rfc3779 -static-libs {-test} -vanilla" 

$ USE=static emerge iputils -qpv
[ebuild   R   ] net-misc/iputils-20121221-r1  USE="caps filecaps ipv6 ssl static* -SECURITY_HAZARD -doc -gnutls -idn" 

$ USE='static idn' emerge iputils -qpv
[ebuild     U ] net-dns/libidn-1.26 [1.25] USE="nls static-libs* -doc -emacs -java -mono" 
[ebuild   R   ] net-misc/iputils-20121221-r1  USE="caps filecaps idn* ipv6 ssl static* -SECURITY_HAZARD -doc -gnutls" 

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
#required by net-misc/iputils-20121221-r1[idn,static], required by @system, required by @selected, required by @world (argument)
>=net-dns/libidn-1.26 static-libs
Comment 3 Zac Medico gentoo-dev 2013-01-28 19:26:22 UTC
(In reply to comment #2)
You need to add a :0 slot to the openssl dep, or else the installed openssl:0.9.8 will satisfy the dep, since you used (+) and openssl:0.9.8 doesn't have static-libs in IUSE. I've tested it with dev-libs/openssl:0[static-libs(+)] and it seems to work correctly that way.
Comment 4 SpanKY gentoo-dev 2013-01-28 20:02:10 UTC
(In reply to comment #3)

nice sleuthing.  i'll fix iputils and a few other packages that suffer that.