Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513340 - net-misc/curl-7.37.0: USE=metalink fails with axtls,polarssl
Summary: net-misc/curl-7.37.0: USE=metalink fails with axtls,polarssl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 12:21 UTC by Michał Górny
Modified: 2014-09-10 10:53 UTC (History)
1 user (show)

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


Attachments
Build log (net-misc:curl-7.37.0:20140615-120445.log,141.08 KB, text/x-log)
2014-06-15 12:21 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-15 12:21:42 UTC
Created attachment 378936 [details]
Build log

If you enable both USE=metalink and axtls or polarssl, you're going to get:

tool_metalink.c:90:4: error: #error "Can't compile METALINK support without a crypto library."
 #  error "Can't compile METALINK support without a crypto library."
    ^
Indeed, looking at tool_metalink.c, it seems to support openssl, gnutls, nss, darwin & win32 only.
Comment 1 Anthony Basile gentoo-dev 2014-06-15 15:16:30 UTC
Index: curl-7.37.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.37.0.ebuild,v
retrieving revision 1.1
diff -u -B -r1.1 curl-7.37.0.ebuild
--- curl-7.37.0.ebuild	21 May 2014 06:56:50 -0000	1.1
+++ curl-7.37.0.ebuild	15 Jun 2014 15:15:47 -0000
@@ -68,6 +68,7 @@
 REQUIRED_USE="
 	curl_ssl_winssl? ( elibc_Winnt )
 	threads? ( !adns )
+	metalink? ( !curl_ssl_axtls !curl_ssl_polarssl )
 	ssl? (
 		^^ (
 			curl_ssl_axtls


and similarly for curl-7.37.0-r1.ebuild.
Comment 2 Anthony Basile gentoo-dev 2014-06-15 15:21:53 UTC
I had to back out of the commit because of 

RepoMan scours the neighborhood...
  dependency.bad                42
   net-misc/curl/curl-7.37.0-r1.ebuild: DEPEND: ~amd64-fbsd(default/bsd/fbsd/amd64/9.1) ['dev-libs/nss[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?]']
   net-misc/curl/curl-7.37.0-r1.ebuild: RDEPEND: ~amd64-fbsd(default/bsd/fbsd/amd64/9.1) ['dev-libs/nss[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?]']
   net-misc/curl/curl-7.37.0-r1.ebuild: DEPEND: ~amd64(default/linux/amd64/13.0) ['dev-libs/nss[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?]']
   net-misc/curl/curl-7.37.0-r1.ebuild: RDEPEND: ~amd64(default/linux/amd64/13.0) ['dev-libs/nss[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?]']


etc.

Michal, did you commit multilib nss?
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-15 15:32:35 UTC
Yes, it's masked along with multilib curl :). Update your profiles, please.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-15 15:38:56 UTC
Just FYI, I've submitted pull request with polarssl support upstream, so we can expect one of them to be supported in the next release :).

https://github.com/bagder/curl/pull/103
Comment 5 Anthony Basile gentoo-dev 2014-09-10 10:53:56 UTC
This is fixed in 7.38.0