Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951514 - net-misc/curl: curl_quic_* conditions should only be evaluated if quic enabled
Summary: net-misc/curl: curl_quic_* conditions should only be evaluated if quic enabled
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-17 19:05 UTC by Étienne Buira
Modified: 2025-03-18 11:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Étienne Buira 2025-03-17 19:05:57 UTC
I try to merge net-misc/curl[-quic], but portage errors out because of unsatisfied condition (which looks upside down):
The following REQUIRED_USE flag constraints are unsatisfied:
    curl_quic_openssl? ( quic )

I didn't touch CURL_QUIC

Reproducible: Always
Comment 1 Greg Kubaryk 2025-03-17 21:45:17 UTC
version number? emerge --info? please reopen when the necessary info is added
Comment 2 Étienne Buira 2025-03-17 21:54:58 UTC
All versions in gx86.

Issue lies in REQUIRED_USE:
curl_quic_openssl? (
    ...
    quic
    ...
)
curl_quic_ngtcp2? (
    ...
    quic
    ...
)

emerge --info would only add noise.
Comment 3 Greg Kubaryk 2025-03-17 22:08:12 UTC
please add emerge --info before reopening the bug
Comment 4 Étienne Buira 2025-03-17 22:12:17 UTC
Greg, please stop closing this bug for burocratic reason.
Let knowledgeable people see it (or read the ebuilds or whatever).
Comment 5 Paul Zander 2025-03-17 22:44:00 UTC
The knowledgeable people saw it, read the ebuild and decided that you need to provided the information you were asked for.

When and only when you do that reopen the bug. Otherwise there is nothing anyone can do for you given that you reconfigured something that we can't see.

The RESOLVED/NEEDINFO closure is exactly for those cases where the reporter failed to provide required information.
Comment 6 Matt Turner gentoo-dev 2025-03-17 22:47:31 UTC
I think Greg is asking for `emerge --info` because the curl ebuilds enable quic by default, so this indicates that you must have explicitly disabled USE=quic somewhere. (Which seems like an odd thing to do)

Unfortunately, portage doesn't have the ability to automatically disable USE flags in the way you want (and I want... see bug 790422)

The only currently available alternative we have today is what media-libs/mesa does -- not use REQUIRED_USE and instead ignore enabled USE flags. That makes sense for mesa for reasons I won't go into here, and I don't know if it makes sense for curl[quic]. I suppose that's a question for the maintainer.

If you're explicitly disabling USE=quic somewhere, you could just also disable all CURL_QUIC options. E.g. a package.use entry like this:

> net-misc/curl -quic CURL_QUIC: -*
Comment 7 Étienne Buira 2025-03-18 11:59:22 UTC
Thank you Matt,

I knew i could disable all curl_quic_*, but the whole point of the bug is that it makes no sense to choose implementation for a feature i disabled (disabled because of circular build dependencies).

I thought it was a policy to ignore those implementation use-flags if feature were disabled (even if that spammed the use-flags), this is where i might have been wrong.