Skip to content
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 does not build (glibc, gcc) (Rust related) #187

Open
bramtechs opened this issue Nov 29, 2024 · 1 comment
Open

Chromium does not build (glibc, gcc) (Rust related) #187

bramtechs opened this issue Nov 29, 2024 · 1 comment

Comments

@bramtechs
Copy link

Hello,
thank you for your quick fix of android-tools in my previous issue.

./t2 install chromium seems to fail with the following:

Removing buildscripts for system provided zlib
Removing buildscripts for system provided libjpeg_turbo
ERROR at //build/config/rust.gni:130:24: Script returned non-zero exit code.
      rustc_revision = exec_script("//tools/rust/update_rust.py",
                       ^----------
Current dir: /srv/t2/src.chromium.241129.131435.5810/chromium-121.0.6167.160/out/bld/
Command: python3 /srv/t2/src.chromium.241129.131435.5810/chromium-121.0.6167.160/tools/rust/update_rust.py --print-package-version
Returned 1 and printed out:
^9-chromium
The expected Rust version is df0295f07175acc7325ce3ca4152eb05752af1f2-1-llvmorg-18-init-12938-geb1d5065 but the actual version is None
Did you run "gclient sync"?
^9-chromium
See //BUILD.gn:17:1: whence it was imported.
import("//build/config/rust.gni")
^-------------------------------
Due to previous errors, no 9-chromium.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---
Creating file list and doing final adaptions ... 
Searching for orphaned files ...
Found 6 files for this package.
Found 1 orphaned files for this package.
Calculating package dependencies ...
Deleting dependencies, pattern:  -e ".*: t2-src$" -e ".*: glibc$" -e ".*: gcc$" ...
Adding dependencies
Marking optional dependencies
Creating md5sum files ...
Creating package description ...
Making post-install adaptions.
  +00:01:47 Aborted building www/chromium

The NixOS distribution have had a similar issue:
https://discourse.nixos.org/t/how-can-i-run-chromiumdev/22339

@rxrbln
Copy link
Owner

rxrbln commented Nov 29, 2024

as you can see from the commit history Chrome is not the most loved and maintained pkg in t2 at the moment, as 1) the codebase is absolutely horrible 2) the build infrastructure cursed proprietary Google in-house specific nonsense and at last I have no really need or wish to use this cursed thing of a Google trap.

That being said it probably should be updated and made to build again. Maybe I can find time for a live later today. I tried to build Chrome some years ago, and it was not exactly "fun": https://www.youtube.com/watch?v=p9Hi7xWMsT0

I have not checked what source we packaged, but if we don't have yet it would certainly also be a good idea to package this ungoogled chromium, for the usual user added privacy reasons, ... ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants