-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromium: delete unused paths in source tarball #261285
Conversation
Not specifically for this instance or event, but I wonder: could we have a mechanism to add |
Adding something like that to Meaning, each one of those would need to get patched. Maybe in the long-term? :) |
There's lots of unbundling possibilities in https://source.chromium.org/chromium/chromium/src/+/main:build/linux/unbundle/ These could automatically be removed from the archive nixpkgs/pkgs/applications/networking/browsers/chromium/common.nix Lines 96 to 107 in 21f56f3
with a comment to remember to update the hash when a lib is added there |
to stay below hydra limit. At the time of writing, the hydra.nixos.org's output limit is 3 GB. The latest chromium tarball, however, is slightly above that. To work around this, recompress the original `tar.xz` into a `tar.zstd` and delete two unreasonably big and unused directories. Bringing it down to roughtly 2.2 GB. Unfortunately, this change breaks the `update.py` script. Resolves the current channel-blocker.
Long-term we could also consider re-using the gclient code from electron update script to get more control over what we fetch, and share submodules across electron and several chromium versions |
0474025
to
97738d7
Compare
Successfully compiled The And a few minutes ago again due to the |
Backport failed for Please cherry-pick the changes locally. git fetch origin release-23.05
git worktree add -d .worktree/backport-261285-to-release-23.05 origin/release-23.05
cd .worktree/backport-261285-to-release-23.05
git checkout -b backport-261285-to-release-23.05
ancref=$(git merge-base bb537a38dd8f0d292c34dad12f9fd84ffa600063 97738d7a1715d8022fd9d6e11e45586a56d9bdec)
git cherry-pick -x $ancref..97738d7a1715d8022fd9d6e11e45586a56d9bdec |
Let me merge already, so that the channel is not blocked anymore. Certainly feel free to continue discussing and improving this. |
It wasn't build in hyrda due to NixOS/nixpkgs#261285 and I'm not using it day-to-day anyway
Description of changes
Delete unused paths in source tarball to stay below hydra limit.
At the time of writing, the hydra.nixos.org's output limit is 3 GB.
The latest chromium tarball, however, is slightly above that.
To work around this, recompress the original
tar.xz
into atar.zstd
and delete two unreasonably big and unused directories.
Bringing it down to roughtly 2.2 GB.
Unfortunately, this change breaks the
update.py
script.Resolves the current channel-blocker.
The alternative would be to increase hydra.nixos.org's output limit to something like 3.5 GB.
(But the next chromium release might exceed that as well /shrug)
#260783 (comment)
https://hydra.nixos.org/build/238056551
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)cc @vcunat @K900 @networkException