ungoogled-software / ungoogled-chromium-portablelinux

Portable Linux packaging for ungoogled-chromium
96 stars 30 forks source link

Dockered build for version 98.0.4758.80-1.1 fails #132

Closed Drugoy closed 10 months ago

Drugoy commented 2 years ago
INFO: * Applying flag-fingerprinting-canvas-image-data-noise.patch (101/101)
patching file chrome/browser/bromite_flag_entries.h
patching file content/browser/renderer_host/render_process_host_impl.cc
patching file content/child/runtime_features.cc
patching file third_party/blink/public/platform/web_runtime_features.h
patching file third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
patching file third_party/blink/renderer/platform/BUILD.gn
patching file third_party/blink/renderer/platform/exported/web_runtime_features.cc
patching file third_party/blink/renderer/platform/graphics/image_data_buffer.cc
patching file third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
patching file third_party/blink/renderer/platform/graphics/static_bitmap_image.h
patching file third_party/blink/renderer/platform/runtime_enabled_features.json5
INFO: Applying patches from /repo/patches
INFO: * Applying node.patch (1/4)
patching file third_party/devtools-frontend/src/scripts/devtools_paths.py
patching file third_party/lottie/minify_lottie.py
patching file tools/typescript/tsconfig_base.json
INFO: * Applying node2.patch (2/4)
patching file third_party/node/node.py
INFO: * Applying manpage.patch (3/4)
patching file chrome/app/resources/manpage.1.in
INFO: * Applying compiler_specific.patch (4/4)
patching file base/compiler_specific.h
+ /repo/ungoogled-chromium/utils/domain_substitution.py apply -r /repo/ungoogled-chromium/domain_regex.list -f /repo/ungoogled-chromium/domain_substitution.list -c /repo/build/domsubcache.tar.gz /repo/build/src
INFO: Path has no substitutions: chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html
INFO: Path has no substitutions: chrome/browser/plugins/plugins_resource_service.cc
INFO: Path has no substitutions: chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css
INFO: Path has no substitutions: chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css
INFO: Path has no substitutions: chrome/browser/resources/discards/graph_doc_template.html
INFO: Path has no substitutions: chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html
INFO: Path has no substitutions: chrome/common/google_url_loader_throttle.cc
INFO: Path has no substitutions: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
INFO: Path has no substitutions: components/dom_distiller/core/html/preview.html
INFO: Path has no substitutions: components/domain_reliability/google_configs.cc
INFO: Path has no substitutions: components/page_load_metrics/common/page_load_metrics_util.cc
INFO: Path has no substitutions: net/base/url_util.cc
INFO: Path has no substitutions: net/dns/public/doh_provider_entry.cc
INFO: Path has no substitutions: net/tools/transport_security_state_generator/transport_security_state_generator.cc
INFO: Path has no substitutions: rlz/lib/lib_values.cc
INFO: Path has no substitutions: third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
INFO: Path has no substitutions: tools/md_browser/base.css
+ cp /repo/ungoogled-chromium/flags.gn /repo/build/src/out/Default/args.gn
+ cat /repo/flags.portable.gn
+ export LLVM_VERSION=13
+ LLVM_VERSION=13
+ export AR=llvm-ar-13
+ AR=llvm-ar-13
+ export NM=llvm-nm-13
+ NM=llvm-nm-13
+ export CC=clang-13
+ CC=clang-13
+ export CXX=clang++-13
+ CXX=clang++-13
+ export LLVM_BIN=/usr/lib/llvm-13/bin
+ LLVM_BIN=/usr/lib/llvm-13/bin
++ clang-13 --print-resource-dir
+ _llvm_resource_dir=/usr/lib/llvm-13/lib/clang/13.0.1
+ export 'CXXFLAGS+=-resource-dir=/usr/lib/llvm-13/lib/clang/13.0.1 -B/usr/lib/llvm-13/bin'
+ CXXFLAGS+='-resource-dir=/usr/lib/llvm-13/lib/clang/13.0.1 -B/usr/lib/llvm-13/bin'
+ export 'CPPFLAGS+=-resource-dir=/usr/lib/llvm-13/lib/clang/13.0.1 -B/usr/lib/llvm-13/bin'
+ CPPFLAGS+='-resource-dir=/usr/lib/llvm-13/lib/clang/13.0.1 -B/usr/lib/llvm-13/bin'
+ export 'CFLAGS+=-resource-dir=/usr/lib/llvm-13/lib/clang/13.0.1 -B/usr/lib/llvm-13/bin'
+ CFLAGS+='-resource-dir=/usr/lib/llvm-13/lib/clang/13.0.1 -B/usr/lib/llvm-13/bin'
+ cd /repo/build/src
+ ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn --skip-generate-buildfiles
ninja: Entering directory `/repo/build/src/out/Release/gn_build'
[194/194] LINK gn
+ ./out/Default/gn gen out/Default --fail-on-unused-args
Done. Made 16654 targets from 2784 files in 15394ms
+ ninja -C out/Default chrome chrome_sandbox chromedriver
ninja: Entering directory `out/Default'
[2094/49906] ACTION //chrome/browser/ui/webui/read_later/side_panel/reader_mode:mojo_bindings__generate_message_ids(//build/toolchain/linux/unbundle:default)ninja: error: WriteFile(__chrome_browser_ui_webui_read_later_side_panel_reader_mode_mojo_bindings__generate_message_ids___build_toolchain_linux_unbundle_default__rule..rsp): Unable to create file. File name too long

ninja: build stopped: .
Aufschlauer commented 2 years ago

Well, on Debian 11 it is just working fine so far:

[194/194] LINK gn
+ ./out/Default/gn gen out/Default --fail-on-unused-args
Done. Made 16654 targets from 2784 files in 6294ms
+ ninja -C out/Default chrome chrome_sandbox chromedriver
ninja: Entering directory `out/Default'
[3164/49906] CXX obj/skia/skia_core_and_effects/SkPathOps
Drugoy commented 2 years ago

@Aufschlauer I don't see how that is possible. What version of docker did you use? What's the sha256 of your build images for steps 1 and 2?

Aufschlauer commented 2 years ago

Well, all succeed:

1 warning generated.
[49906/49906] LINK ./chrome
$ ./package.sh 
+++ readlink -f ./package.sh
++ dirname /root/ungoogled-chromium-portablelinux/package.sh
+ _root_dir=/root/ungoogled-chromium-portablelinux
++ cat /root/ungoogled-chromium-portablelinux/ungoogled-chromium/chromium_version.txt
+ _chromium_version=98.0.4758.80
++ cat /root/ungoogled-chromium-portablelinux/ungoogled-chromium/revision.txt
+ _ungoogled_revision=1
++ cat /root/ungoogled-chromium-portablelinux/revision.txt
+ _package_revision=1
+ _tarprefix=ungoogled-chromium_98.0.4758.80-1.1_linux
+ _archive_output=/root/ungoogled-chromium-portablelinux/build/ungoogled-chromium_98.0.4758.80-1.1_linux.tar.xz
+ /root/ungoogled-chromium-portablelinux/ungoogled-chromium/utils/filescfg.py -c /root/ungoogled-chromium-portablelinux/build/src/chrome/tools/build/linux/FILES.cfg --build-outputs /root/ungoogled-chromium-portablelinux/build/src/out/Default archive -o /root/ungoogled-chromium-portablelinux/build/ungoogled-chromium_98.0.4758.80-1.1_linux.tar.xz -i /root/ungoogled-chromium-portablelinux/tar_includes/README

@Drugoy What do you mean by step 1 and 2? Docker is version 1.5-2

Drugoy commented 2 years ago

@Aufschlauer Since docker-build.sh is broken, the steps to build are:

git clone --recurse-submodules https://github.com/ungoogled-software/ungoogled-chromium-portablelinux.git
cd ungoogled-chromium-portablelinux
git checkout --recurse-submodules tags/98.0.4758.80-1.1
git submodule update --init --recursive
mkdir -p build
cd docker-stage1
docker build -f "Dockerfile" -t ug-chromium-builder-stage1:latest ./
cd ..
docker build -f "Dockerfile-stage2" -t ug-chromium-builder-stage2:latest ./

so by steps 1 and 2 I mean building images ug-chromium-builder-stage1:latest and ug-chromium-builder-stage2:latest.

As for your docker version - you seem to be using not just VERY archaic version (judging by the version number), but also non-official one: https://docs.docker.com/engine/release-notes/prior-releases/#150-2015-02-10 doesn't list 1.5.2.

I am using latest release version 20.10.12.

Aufschlauer commented 2 years ago

Well, for steps 1 and 2 I can't help then: I've reused a docker container from a previous build.

Regarding docker package: It is a recent version, but not the docker runtime package: https://packages.debian.org/bullseye/docker

I use this one: https://packages.debian.org/bullseye/docker.io

clickot commented 10 months ago

@Drugoy , @Aufschlauer may i close this issue or is it still relevant somehow?

Drugoy commented 10 months ago

I realized this project is fake.

clickot commented 10 months ago

@Drugoy i wouldn't say it's fake. It lacked support for quite some time, but is "back to live" again. Build works and i publish releases as soon a new version of ungoogled-chromiu is released :)

Aufschlauer commented 10 months ago

@Drugoy , @Aufschlauer may i close this issue or is it still relevant somehow?

@clickot No, just go ahead and close this one.