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.
Commit message: Have USE=static depend on USE=static-libs in all of its lib packages http://sources.gentoo.org/net-misc/iputils/iputils-20121221-r1.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/net-misc/iputils/iputils-20121221.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/net-misc/iputils/iputils-99999999.ebuild?r1=1.8&r2=1.9
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
(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.
(In reply to comment #3) nice sleuthing. i'll fix iputils and a few other packages that suffer that.