Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-misc/curl and unmet requirements[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 200

PostPosted: Mon Sep 30, 2024 8:25 am    Post subject: net-misc/curl and unmet requirements[solved] Reply with quote

Hi,

When i update the system, i got this message:

Code:

!!! The ebuild selected to satisfy "net-misc/curl" has unmet requirements.
- net-misc/curl-8.9.1-r1::gentoo USE="adns alt-svc ftp gnutls hsts http2 http3 imap openssl pop3 progress-meter psl quic smtp ssl static-libs tftp -brotli -debug -gopher -idn -kerberos -ldap -mbedtls -rtmp (-rustls) -samba -ssh (-sslv3) -telnet -test -verify-sig -websockets -zstd" ABI_X86="(64) -32 (-x32)" CURL_QUIC="openssl -ngtcp2" CURL_SSL="openssl -gnutls -mbedtls (-rustls)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    curl_quic_openssl? ( !gnutls )

  The above constraints are a subset of the following complete expression:
    quic? ( exactly-one-of ( curl_quic_openssl curl_quic_ngtcp2 ) http3 ssl ) ssl? ( exactly-one-of ( curl_ssl_gnutls curl_ssl_mbedtls curl_ssl_openssl curl_ssl_rustls ) ) curl_quic_openssl? ( curl_ssl_openssl quic !gnutls !mbedtls !rustls ) curl_quic_ngtcp2? ( curl_ssl_gnutls quic !mbedtls !openssl !rustls ) curl_ssl_gnutls? ( gnutls ) curl_ssl_mbedtls? ( mbedtls ) curl_ssl_openssl? ( openssl ) curl_ssl_rustls? ( rustls ) http3? ( alt-svc quic )

(dependency required by "dev-vcs/git-2.45.2::gentoo[curl]" [installed])
(dependency required by "sys-devel/gettext-0.22.4::gentoo[git]" [installed])
(dependency required by "x11-wm/windowmaker-0.96.0::gentoo[nls]" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


I've tried to
Code:

net-misc/curl curl_ssl_gnutls


But the error still mains...
Any idea, how to deal it ?

Thanks in advance.

[Administrator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]


Last edited by y351 on Mon Sep 30, 2024 9:54 am; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1957
Location: 127.0.0.1

PostPosted: Mon Sep 30, 2024 8:49 am    Post subject: Reply with quote

Hi,

Same here.

On my system, gnutls useflag is set in make.conf.
So net-misc/curl is built with gnutls on.
If I disable this useflag on the curl package, problem is solved :
Code:

# USE="-gnutls" emerge -avu1 net-misc/curl

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 12.61 s (backtrack: 0/20).

[ebuild     U  ] dev-libs/openssl-3.3.2:0/3::gentoo [3.0.15:0/3::gentoo] USE="asm quic%* -fips -ktls -rfc3779 -sctp -static-libs -test -tls-compression -vanilla -verify-sig -weak-ssl-ciphers" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="(sse2)" 17 653 KiB
[ebuild  N     ] net-libs/nghttp3-1.5.0::gentoo  USE="-static-libs -test" ABI_X86="32 (64) (-x32)" 383 KiB
[ebuild     U  ] net-misc/curl-8.9.1-r1::gentoo [8.8.0-r1::gentoo] USE="adns alt-svc ftp hsts http2 http3%* imap openssl pop3 progress-meter psl quic%* smtp ssl tftp -brotli -debug -gnutls* -gopher -idn -kerberos -ldap -mbedtls -rtmp (-rustls) -samba -ssh (-sslv3) -static-libs -telnet -test -verify-sig -websockets -zstd (-nghttp3%)" ABI_X86="32 (64) (-x32)" CURL_QUIC="openssl%* -ngtcp2%" CURL_SSL="openssl -gnutls -mbedtls (-rustls)" 2 718 KiB

Total: 3 packages (2 upgrades, 1 new), Size of downloads: 20 753 KiB

Would you like to merge these packages? [Yes/No]
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1737
Location: Germany

PostPosted: Mon Sep 30, 2024 9:19 am    Post subject: Reply with quote

Quote:
Code:
The following REQUIRED_USE flag constraints are unsatisfied:
curl_quic_openssl? ( !gnutls )

This means curl_quic_openssl and gnutls can not be set at the same time for the package net-misc/curl

Use make.conf for global stuff and package.use for package specific use flags. The latter is the best case if you are unsure if the useflag needs to be global.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 200

PostPosted: Mon Sep 30, 2024 9:54 am    Post subject: Reply with quote

Yes. The solution is:
Code:
-gnutls


I did not remember the best way between gnutls and openssl...
Back to top
View user's profile Send private message
serafean
n00b
n00b


Joined: 11 Apr 2016
Posts: 21

PostPosted: Thu Oct 03, 2024 8:20 am    Post subject: Reply with quote

beware other packages may also have CURL_SSL flags. (currently only boinc)

I wanted curl to use gnutls, so, in package.use:

Code:
*/* CURL_SSL: -* gnutls
*/* CURL_QUIC: -* ngtcp2
net-misc/curl -openssl


Unfortunately, this means that under Gentoo curl no longer can have the MultiSSL capability (runtime choice of SSL implementation). I haven't looked whether curl itself lost that capability while adding QUIC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum