|
|
Log in / Subscribe / Register

AI could help

AI could help

Posted Oct 6, 2026 17:24 UTC (Tue) by notriddle (subscriber, #130608)
In reply to: AI could help by cen
Parent article: Last rites for Gentoo's Chromium package

But why is compiling Chromium so difficult in the first place? According to sam_c, Firefox isn’t as bad. Other projects that I would expect to be comparable, like OpenJDK, have caused plenty of drama around bundling, but they still manage to ship working release tarballs.


to post comments

AI could help

Posted Oct 6, 2026 18:17 UTC (Tue) by smurf (subscriber, #17840) [Link] (2 responses)

Probably because the Google devs don't bother, they have their own infrastructure with precompiled dependencies and whatnot.

working release tarballs

Tarballs are not source code. Not since the last decade. A git tag or commit ID, and all that hangs off it, is source code. (Source code: the thing you touch when you modify it.)

AI could help

Posted Oct 7, 2026 6:50 UTC (Wed) by pbonzini (subscriber, #60935) [Link] (1 responses)

> Source code: the thing you touch when you modify it.

No. The preferred form for making modifications. You don't modify the whole commit graph, nor do you need it: it's perfectly possible to make modifications after "git clone --depth 1".

So tarballs are perfectly fine as source code. And if they were not, all Linux distributions would be violating the GPL/LGPL.

AI could help

Posted Oct 7, 2026 7:08 UTC (Wed) by mb (subscriber, #50428) [Link]

It will not be too long until somebody claims that removing an AGENTS.md from a forked GPL project is a license violation, because it takes away the preferred form of modification. ;)

AI could help

Posted Oct 9, 2026 5:11 UTC (Fri) by ssmith32 (subscriber, #72404) [Link] (3 responses)

Because The Googly Way is to have a gianormous monorepo that bundles all dependencies in the build. It's a little nuts, but it's what they do there. They're so deeply committed, that when it started blowing up on them, they concluded that the correct path forward was to spend a bunch of time/money developing a special build system (Bazel) to handle the situation, instead of, you know, doing it like most people do.

As you traverse the industry, most ex-Googlers realize it's just an odd quirk of the company, but a few believers try to carry it over to new Company X... And it rarely works out well. Although I think redfin managed to duplicate the idea, for various definitions of success. And Microsoft Office also did at some point, although, I don't know if the reported day-long builds count as "successfully executed".

I had one manager (at old company) that kept trying to convince our team to do it. He kept excitedly reporting how his old company had embraced a monorepo, again and again. Maybe he thought the blank looks he got in response was an indication that he just needed to repeat himself again, and people would go "ah-hah, I see it now". No one ever did.

AI could help

Posted Oct 9, 2026 10:05 UTC (Fri) by taladar (subscriber, #68407) [Link] (2 responses)

Doesn't help that some people apparently now also use the term monorepo to refer to repositories with a couple of closely connected libraries or programs (e.g. all Rust crates related to tracing) while those old style monorepo companies really were insane enough to put all software they wrote into a single repo. A lot of people don't realize the true horror of the latter approach since they assume when the term is mentioned they mean the former.

AI could help

Posted Oct 9, 2026 23:19 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (1 responses)

I worked in companies that do tons of packages (one even had its own internal packaging systems) and with companies that do monorepos.

On the balance, monorepos were better from the organizational standpoint. Packages tend to result in dependency hell on every upgrade, with all the issues of ownership, maintenance, etc. Monorepos centralize dependencies, making it easier to do tree-wide changes.

I'd say that the main issue with monorepos is tooling. Git is just not designed for that.

AI could help

Posted Oct 11, 2026 14:20 UTC (Sun) by Wol (subscriber, #4433) [Link]

> I'd say that the main issue with monorepos is tooling. Git is just not designed for that.

This is why, when I designed the project management system I was working on many moons ago, it was an explicit design goal that the only thing the parent project knew about the subproject was the standard task data. To the parent, the sub was an opaque blob that filled in the standard "this job" task info, and in return read the standard parent task data to find out what resources it had available.

Looking at the fun with SHA-1 / SHA-256 in git, I now realise that was probably one heck of an ask (but the company nearly sank before I found that out).

If we want a monorepo, we really need to provide some way of telling git "this directory contains a repo with its own git structure, DON'T TOUCH". And some way of exporting the status of that sub-repo up that simply says "this is the live head", with a matching mechanism (maybe manual) of updating the sub-repo to its parent to report "this is the upstream live head" and maybe triggering the subrepo to do its own update/rebuild. Problem is, I think this is going to be a rather tricky problem ...

Cheers,
Wol

AI could help

Posted Oct 11, 2026 2:24 UTC (Sun) by Kangie (guest, #161139) [Link]

But why is compiling Chromium so difficult in the first place?

Recently ex-downstream package maintainer here.

There are a few reasons.

  1. Google / upstream only care about their developer workflow. That's understandable - it's their browser, but that means doing things like using system compilers is almost completely unsupported.

  2. Chromium is huge. It's the largest package that I'm aware of in terms of lines of code. It has tons of vendored dependencies, and the compilers that they're targeting shift regularly (as in, they pick a new rust and llvm commit and start using those).

  3. It's huge. I said that, but to put it in perspective, a build with 32 threads, all I/O on ramdisk and no paging can take 3+ hours locally. Google work around this by having a ton of build nodes that you can farm out work to.

  4. Upstream don't really care about consumers. The purpose of Chromium is to support Google Chrome. That's really about it. If their workflow works they don't even notice thousands of CI failures where tarballs stop being generated.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds