logoalt Hacker News

rmunn • today at 4:47 AM • 4 replies • view on HN

Also worth noting https://lwn.net/Articles/1097760/ - Gentoo has given up on building Chromium from source, because upstream "do not test their builds with any of their allegedly 'optional' features disabled" and "[i]n the case of Chromium, keeping all the toggle switches working (despite chronic neglect from upstream) is a monumental, nigh-insurmountable task." One maintainer said he could not possibly test all the combinations of USE flags in the Gentoo build, since his laptop took 15-16 hours to compile Chromium (I presume for just one build, which would have to be repeated 2^N times to test all possible flag combinations).

Much more in the LWN article, I'm not going to quote everything.


Replies

msdz • today at 5:59 AM

I wonder how the Helium [0] project solves this, since they also work off of an opinionated-ish Chromium base.

[0] https://helium.computer

➕ show 1 reply
octoberfranklin • today at 6:00 AM

upstream "do not test their builds with any of their allegedly 'optional' features disabled"

I've noticed this too and it's really annoying. Their CI doesn't even run `gn` for the use-flag permutations, which would take a trivial amount of compute. They could easily compile-but-not-link for every combination of flags in CI too at only a modest compute expenditure. At least that way people who break the #ifdef maze would be forced to fix it.

shevy-java • today at 6:59 AM

To be fair though: that's a gentoo fault. They want to be able to be as customizable as possible, which is fine, but if you support all flag-combinations, you are going to either test them all, or forego testing them. It's also a bit awkward that they don't mention this with regards to the linux kernel. Are the use flags that limited to begin with?

➕ show 2 replies
Mic92 • today at 5:44 AM

Well. Maybe they should just not have so many flags than?

➕ show 1 reply