Date: Wednesday, February 15, 2023 @ 05:11:40 Author: foutrelis Revision: 469042
Re-add script to fetch Chromium sources from Git Unfortunately upstream's tarball generation job is having issues. [1] https://ci.chromium.org/p/infra/builders/cron/publish_tarball Added: chromium/trunk/fetch-chromium-release Modified: chromium/trunk/PKGBUILD ------------------------+ PKGBUILD | 9 +++++++++ fetch-chromium-release | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-15 00:40:03 UTC (rev 469041) +++ PKGBUILD 2023-02-15 05:11:40 UTC (rev 469042) @@ -8,6 +8,7 @@ pkgrel=2 _launcher_ver=8 _gcc_patchset=4 +_manual_clone=0 pkgdesc="A web browser built for speed, simplicity, and security" arch=('x86_64') url="https://www.chromium.org/Home" @@ -42,6 +43,11 @@ '7f3b1b22d6a271431c1f9fc92b6eb49c6d80b8b3f868bdee07a6a1a16630a302' 'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711') +if (( _manual_clone )); then + source[0]=fetch-chromium-release + makedepends+=('python-httplib2' 'python-pyparsing' 'python-six') +fi + # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py # Keys are the names in the above script; values are the dependencies in Arch declare -gA _system_libs=( @@ -83,6 +89,9 @@ _google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM prepare() { + if (( _manual_clone )); then + ./fetch-chromium-release $pkgver + fi cd chromium-$pkgver # Allow building against system libraries in official builds Added: fetch-chromium-release =================================================================== --- fetch-chromium-release (rev 0) +++ fetch-chromium-release 2023-02-15 05:11:40 UTC (rev 469042) @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e + +readonly VERSION=$1 +if [[ -z $VERSION ]]; then + echo >&2 'No version given as an argument' + exit 1 +fi + +mkdir chromium-checkout +cd chromium-checkout +cat >.gclient <<EOF +solutions = [ + { + "name": "src", + "url": "https://chromium.googlesource.com/chromium/src.git", + "managed": False, + "custom_deps": {}, + "custom_vars": {}, + }, +] +EOF + +git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools +export PATH+=":$PWD/depot_tools" DEPOT_TOOLS_UPDATE=0 +export VPYTHON_BYPASS='manually managed python not supported by chrome operations' + +git clone -b $VERSION --depth=2 https://chromium.googlesource.com/chromium/src +gclient sync --no-history --nohooks +src/build/util/lastchange.py -o src/build/util/LASTCHANGE +src/build/util/lastchange.py -m GPU_LISTS_VERSION \ + --revision-id-only --header src/gpu/config/gpu_lists_version.h +src/build/util/lastchange.py -m SKIA_COMMIT_HASH \ + -s src/third_party/skia --header src/skia/ext/skia_commit_hash.h +src/build/util/lastchange.py \ + -s src/third_party/dawn --revision src/gpu/webgpu/DAWN_VERSION +src/tools/update_pgo_profiles.py --target=linux update \ + --gs-url-base=chromium-optimization-profiles/pgo_profiles +download_from_google_storage.py --no_resume --extract --no_auth \ + --bucket chromium-nodejs -s src/third_party/node/node_modules.tar.gz.sha1 + +find src/third_party/jdk/current -type f -delete +mv src ../chromium-$VERSION Property changes on: chromium/trunk/fetch-chromium-release ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property