🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.gentoo.user
2 messages
2 total messages Started by Matt Jolly Fri, 09 Oct 2026 10:00
[gentoo-dev] www-client/chromium masking and removal
#2
Author: Matt Jolly
Date: Fri, 09 Oct 2026 10:00
184 lines
12957 bytes
Hi all,

I've been absent for a bit due to personal and work circumstances, so
sorry for the delay in any 'official' statement.

The TL;DR is that maintaining Chromium each week can take upwards of six
hours, counting only compilation of the three channels on a ramdisk with
a fast PC (16c32t) and an absurd amount of RAM. That estimate goes up
for arm64 builds which can take more than 12 hours on my fastest
hardware. Support for ppc64 has been spotty for years at best, and I've
never succeeded in getting a proper Gentoo VM or prefix going on the
hardware that I have access to (mostly as it impacts the fewest users
and my available time is limited).

The longer version: maintaining Chromium really does need three channels
if you want to keep up, especially since September 2026 when the release
cycle was shortened to fortnightly. There may be value in the Chromium
LTSC releases, but that involves bigger jumps between versions, and I've
found the incremental milestone releases to be challenging enough
personally.

The main issue is that Chromium chews through maintainers. It's a
commitment to volunteer at least a business day's worth of your free
time each week when you include rebasing patches, cherry-picking fixes,
iterating on `ebuild ... clean compile`, plus trying to identify and fix
any new bugs, working out how much you violate Gentoo policy by not
unbundling more of the browser, spending time on automation to save time
and mistakes later, etc. There's immense pressure to keep builds up-to-
date, especially in the age of hundreds of weekly browser CVEs.

For anyone that wants to pick this up in a form that we'd consider
merging into ::gentoo, the current roadblock (M152) is that Rust
bindings are now required to build Chromium. No, carrying reverts long
term is not an option; the maintenance burden is just going to increase
as a result - trust me. There is a solution, but it comes with its own
trade-offs, and I sunk about a day into this while building on the
shoulders of giants and still couldn't get it to 100% (thanks lnl!):

* Teaching Rust ebuilds how to fetch components for both bin and source
(we need rustc-dev to build against Rust internals) - this is done and
I'll probably push it to ::gentoo after some tidy-up because it's
generally useful as a template for additional Rust components.
* Pinning Chromium to a specific older Rust and carrying additional
patches downstream.
* Possibly introducing an llvm-r2 style rust_slot_x USE that can be used
to select a Rust slot that matches a new build tool, specifically for
Chromium (though admittedly most of the Rust eclass came from Chromium's
needs, so there's a history of improving the wider ecosystem to make
Chromium maintenance better).

The actual mechanics of this replacement involve mutilating a symlinked
Rust sysroot until GN will accept it, regenerating the Rust GN files
with `gnrt` (a completely new package we'd have to maintain just for
Chromium), and then patching things that didn't exist in the earlier
Rust, so it's not particularly straightforward.

My thanks to the people who made keeping Chromium going in Gentoo for
this long possible, and apologies if I've missed anyone.

* A long list of Gentoo Chromium maintainers, contributors, and everyone
who has cared enough to submit or comment on a bug.
* Maintainers of other distros who have provided advice, patches, and a
shoulder to cry on.
* And in particular to Sam, Lauren (lnl), and Daniel (iskunk) for their
help and support.

Finally, a pre-emptive FAQ:

* Is there still value in Chromium ebuilds?

In my opinion, yes; absolutely. If we ever want to handle Electron
properly, the ebuilds will need to build off Chromium work.

Work on an ebuild as complex as Chromium is a great experience: it
touches on pretty much everything you'll find in an ebuild, and provides
some interesting opportunities for doing things that wouldn't make sense
elsewhere in ::gentoo. I've legitimately enjoyed working on some of the
technical / automation solutions that I've come up with. As mentioned
above, Chromium has had benefits to the wider Gentoo ecosystem through
needing to solve problems that nobody else was dealing with regularly,
so in that respect I'm sorry to see it go.

* Is Chromium gone forever?

There isn't an insurmountable technical issue. The truth is that the
Chromium project needs multiple maintainers to be sustainable, with a
reasonably broad set of skills:

* C
* C++
* Rust
* Go
* JS/TS

That's not necessarily a deal-breaker - you don't need to be an expert
to be able to read and interpret code, and a lot of the patches are
either trivial compile-time fixes, cherry-picks, or easily rebased. It
can be a great way of getting exposure to things you haven't previously
looked at if you're willing to dedicate the time; however, there are
also a huge number of NIH Google tools that you'll develop skills for
and never be able to use anywhere else - you have been warned.

The Gentoo Chromium project isn't going away - I'll be working to keep
the binary ebuilds up-to-date and even have time to look at improvements
(like Opera for arm64), so if a few dedicated people step up I'd be
willing to proxy and review commits and provide advice.

* If there's no insurmountable issue, why can't we just update the ebuild?

As outlined above, the sustainable solution requires additional work to
be ready. After several discussions it was decided that we were better
off masking Chromium for removal rather than maintaining it on life
support in hopes that I'd have the time and availability to fix it
properly. We'd still welcome volunteers who wanted to maintain Chromium
longer-term (and were willing to put in the effort to find long-term
solutions), but I'd want to see at least three people looking after it
personally. History has shown that one maintainer isn't working, and
we've had the release cycle shorten twice since I started maintaining
the package in 2023; it was bad then, and it's worse now.

* Why can't we just use the Google toolchain to avoid this?

Technically we could, but that would restrict the ebuild to amd64 only,
as upstream cross-compiles for other architectures. We'd lose arm64,
ppc64, and the RISC-V overlay - better to just rip the band-aid off now
as it doesn't materially make the situation better (and we've had issues
with upstream not generating the tarballs for weeks at a time).

Additionally, this breaks distcc which a small, but dedicated segment of
the Gentoo Chromium userbase still use for Chromium builds, and it's
questionable as to whether Gentoo users would even want to use a binary
toolchain (ref: the outcry when I made the dev-lang/rust bootstrap
dependency explicit!), and if we're trusting upstream binaries _anyway_,
Google Chrome is right there and comes with free PGO.

* Why isn't there a binary version?

Go ask upstream. The CI infrastructure exists; you might be able to
convince them to provide release builds. The Chromium ebuilds were
binpkg ready, but Portage doesn't currently support building it due to
the way RESTRICT=bindist works - there are several proposals to fix this
currently.

* What should I use instead of Chromium?

You have a few options within ::gentoo:

* www-client/google-chrome variants will provide the most similar
experience.
* Other Chromium-based browsers:
   www-client/microsoft-edge
   www-client/opera variants
   www-client/vivaldi
* qtwebengine-based browsers (use Chromium's engine):
   kde-apps/konqueror
   www-client/falkon
   www-client/qutebrowser
* Other browsers:
   www-client/firefox and www-client/firefox-bin
   www-client/seamonkey

Additionally, the ungoogled variant exists in in the PF4Public
repository, and there are several others that contain Chromium-related
ebuilds.

* What happens if I keep using Chromium after it's been removed?

There are already hundreds of outstanding CVEs. Don't, just... don't.

* Can I get my favourite Chromium-based browser added to ::gentoo?

Yes! Well, maybe. Reach out on IRC and I'll outline what I need to make
that maintainable long-term, though the short version is that we need a
way to map CVEs for security bug automation, and a reliable way to
extract the Chromium version from the binary package, changelogs, etc.

Thanks for your understanding, and for all of the testing and bug
reports that have been submitted through the years, as well as the
appreciation that the community has shown.

Cheers,

Matt
Re: [gentoo-user] www-client/chromium masking and removal
#3
Author: Philipp Ludwig
Date: Fri, 09 Oct 2026 10:40
214 lines
11118 bytes
Thanks to you and to all the other maintainers for your hard work.
With my PCs, just compiling chromium once has always taken several 
hours.
Just imagining making one change in the ebuild, waiting again to 
compile,
fixing a small thing, compiling again ... I believe chromium releases
come faster than one person alone can do this.

Enjoy a nice chromium-free weekend!

Philipp

Am 2026-10-09 11:48, schrieb Matt Jolly:
> Hi all,
> 
> I've been absent for a bit due to personal and work circumstances, so
> sorry for the delay in any 'official' statement.
> 
> The TL;DR is that maintaining Chromium each week can take upwards of 
> six
> hours, counting only compilation of the three channels on a ramdisk 
> with
> a fast PC (16c32t) and an absurd amount of RAM. That estimate goes up
> for arm64 builds which can take more than 12 hours on my fastest
> hardware. Support for ppc64 has been spotty for years at best, and I've
> never succeeded in getting a proper Gentoo VM or prefix going on the
> hardware that I have access to (mostly as it impacts the fewest users
> and my available time is limited).
> 
> The longer version: maintaining Chromium really does need three 
> channels
> if you want to keep up, especially since September 2026 when the 
> release
> cycle was shortened to fortnightly. There may be value in the Chromium
> LTSC releases, but that involves bigger jumps between versions, and 
> I've
> found the incremental milestone releases to be challenging enough
> personally.
> 
> The main issue is that Chromium chews through maintainers. It's a
> commitment to volunteer at least a business day's worth of your free
> time each week when you include rebasing patches, cherry-picking fixes,
> iterating on `ebuild ... clean compile`, plus trying to identify and 
> fix
> any new bugs, working out how much you violate Gentoo policy by not
> unbundling more of the browser, spending time on automation to save 
> time
> and mistakes later, etc. There's immense pressure to keep builds up-to-
> date, especially in the age of hundreds of weekly browser CVEs.
> 
> For anyone that wants to pick this up in a form that we'd consider
> merging into ::gentoo, the current roadblock (M152) is that Rust
> bindings are now required to build Chromium. No, carrying reverts long
> term is not an option; the maintenance burden is just going to increase
> as a result - trust me. There is a solution, but it comes with its own
> trade-offs, and I sunk about a day into this while building on the
> shoulders of giants and still couldn't get it to 100% (thanks lnl!):
> 
> * Teaching Rust ebuilds how to fetch components for both bin and source
> (we need rustc-dev to build against Rust internals) - this is done and
> I'll probably push it to ::gentoo after some tidy-up because it's
> generally useful as a template for additional Rust components.
> * Pinning Chromium to a specific older Rust and carrying additional
> patches downstream.
> * Possibly introducing an llvm-r2 style rust_slot_x USE that can be 
> used
> to select a Rust slot that matches a new build tool, specifically for
> Chromium (though admittedly most of the Rust eclass came from 
> Chromium's
> needs, so there's a history of improving the wider ecosystem to make
> Chromium maintenance better).
> 
> The actual mechanics of this replacement involve mutilating a symlinked
> Rust sysroot until GN will accept it, regenerating the Rust GN files
> with `gnrt` (a completely new package we'd have to maintain just for
> Chromium), and then patching things that didn't exist in the earlier
> Rust, so it's not particularly straightforward.
> 
> My thanks to the people who made keeping Chromium going in Gentoo for
> this long possible, and apologies if I've missed anyone.
> 
> * A long list of Gentoo Chromium maintainers, contributors, and 
> everyone
> who has cared enough to submit or comment on a bug.
> * Maintainers of other distros who have provided advice, patches, and a
> shoulder to cry on.
> * And in particular to Sam, Lauren (lnl), and Daniel (iskunk) for their
> help and support.
> 
> Finally, a pre-emptive FAQ:
> 
> * Is there still value in Chromium ebuilds?
> 
> In my opinion, yes; absolutely. If we ever want to handle Electron
> properly, the ebuilds will need to build off Chromium work.
> 
> Work on an ebuild as complex as Chromium is a great experience: it
> touches on pretty much everything you'll find in an ebuild, and 
> provides
> some interesting opportunities for doing things that wouldn't make 
> sense
> elsewhere in ::gentoo. I've legitimately enjoyed working on some of the
> technical / automation solutions that I've come up with. As mentioned
> above, Chromium has had benefits to the wider Gentoo ecosystem through
> needing to solve problems that nobody else was dealing with regularly,
> so in that respect I'm sorry to see it go.
> 
> * Is Chromium gone forever?
> 
> There isn't an insurmountable technical issue. The truth is that the
> Chromium project needs multiple maintainers to be sustainable, with a
> reasonably broad set of skills:
> 
> * C
> * C++
> * Rust
> * Go
> * JS/TS
> 
> That's not necessarily a deal-breaker - you don't need to be an expert
> to be able to read and interpret code, and a lot of the patches are
> either trivial compile-time fixes, cherry-picks, or easily rebased. It
> can be a great way of getting exposure to things you haven't previously
> looked at if you're willing to dedicate the time; however, there are
> also a huge number of NIH Google tools that you'll develop skills for
> and never be able to use anywhere else - you have been warned.
> 
> The Gentoo Chromium project isn't going away - I'll be working to keep
> the binary ebuilds up-to-date and even have time to look at 
> improvements
> (like Opera for arm64), so if a few dedicated people step up I'd be
> willing to proxy and review commits and provide advice.
> 
> * If there's no insurmountable issue, why can't we just update the 
> ebuild?
> 
> As outlined above, the sustainable solution requires additional work to
> be ready. After several discussions it was decided that we were better
> off masking Chromium for removal rather than maintaining it on life
> support in hopes that I'd have the time and availability to fix it
> properly. We'd still welcome volunteers who wanted to maintain Chromium
> longer-term (and were willing to put in the effort to find long-term
> solutions), but I'd want to see at least three people looking after it
> personally. History has shown that one maintainer isn't working, and
> we've had the release cycle shorten twice since I started maintaining
> the package in 2023; it was bad then, and it's worse now.
> 
> * Why can't we just use the Google toolchain to avoid this?
> 
> Technically we could, but that would restrict the ebuild to amd64 only,
> as upstream cross-compiles for other architectures. We'd lose arm64,
> ppc64, and the RISC-V overlay - better to just rip the band-aid off now
> as it doesn't materially make the situation better (and we've had 
> issues
> with upstream not generating the tarballs for weeks at a time).
> 
> Additionally, this breaks distcc which a small, but dedicated segment 
> of
> the Gentoo Chromium userbase still use for Chromium builds, and it's
> questionable as to whether Gentoo users would even want to use a binary
> toolchain (ref: the outcry when I made the dev-lang/rust bootstrap
> dependency explicit!), and if we're trusting upstream binaries 
> _anyway_,
> Google Chrome is right there and comes with free PGO.
> 
> * Why isn't there a binary version?
> 
> Go ask upstream. The CI infrastructure exists; you might be able to
> convince them to provide release builds. The Chromium ebuilds were
> binpkg ready, but Portage doesn't currently support building it due to
> the way RESTRICT=bindist works - there are several proposals to fix 
> this
> currently.
> 
> * What should I use instead of Chromium?
> 
> You have a few options within ::gentoo:
> 
> * www-client/google-chrome variants will provide the most similar
> experience.
> * Other Chromium-based browsers:
>    www-client/microsoft-edge
>    www-client/opera variants
>    www-client/vivaldi
> * qtwebengine-based browsers (use Chromium's engine):
>    kde-apps/konqueror
>    www-client/falkon
>    www-client/qutebrowser
> * Other browsers:
>    www-client/firefox and www-client/firefox-bin
>    www-client/seamonkey
> 
> Additionally, the ungoogled variant exists in in the PF4Public
> repository, and there are several others that contain Chromium-related
> ebuilds.
> 
> * What happens if I keep using Chromium after it's been removed?
> 
> There are already hundreds of outstanding CVEs. Don't, just... don't.
> 
> * Can I get my favourite Chromium-based browser added to ::gentoo?
> 
> Yes! Well, maybe. Reach out on IRC and I'll outline what I need to make
> that maintainable long-term, though the short version is that we need a
> way to map CVEs for security bug automation, and a reliable way to
> extract the Chromium version from the binary package, changelogs, etc.
> 
> Thanks for your understanding, and for all of the testing and bug
> reports that have been submitted through the years, as well as the
> appreciation that the community has shown.
> 
> Cheers,
> 
> Matt
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads