【问题标题】:How to build a specific version of Chromium?如何构建特定版本的 Chromium?
【发布时间】:2017-11-08 17:25:24
【问题描述】:

我想构建 Chromium 的最新稳定版本(62.0.3202.84 在撰写本文时,请参阅 OmahaProxy)。

build instructions 适用于当前的开发版本。

来自this questionBrave wiki 和其他一些来源,获取和构建特定版本的说明似乎很清楚:

git fetch origin 62.0.3202.84
git checkout -b my_stable_branch FETCH_HEAD
# hooks and dependencies if needed, commits, compilation...

但是,这似乎对我有用。当我为FETCH_HEAD 创建一个分支时,一个快速的git log 显示我有来自master 的最新提交。

我误会了什么?

编辑

如果我从master 执行the steps from Asesh's answer,它会“成功”运行,但我最终还是会构建master,而不是我想要的。

如果我首先从特定标记(如 the Chromium documentation 中指定)创建分支,例如 62.0.3202.84,或者即使我只是在没有分支的情况下检查它,gclient sync --with_branch_heads 也会出现以下错误:

Error: Command 'git checkout --quiet 6e4c388c0117fe408b66fbede91081fb1018c5fe' returned non-zero exit status 128 in /path/to/chromium/src/media/cdm/api
fatal: reference is not a tree: 6e4c388c0117fe408b66fbede91081fb1018c5fe

【问题讨论】:

  • 我偷看了gclient的代码;我得到的错误可能与代码的特定版本(即 3202)有关。

标签: git chromium ninja gclient


【解决方案1】:

我成功编译了 3239 版本,所以我知道问题是 3202 的 DEPS 文件中的错误引用。 (这很奇怪...)

因此以下步骤实际上是正确的:

git checkout -b your_branch xx.x.xxxx.xx
gclient sync

EDIT 2018-07-02:根据this page,从3420版本开始,应该可以正确同步依赖了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-08-31
    • 1970-01-01
    • 1970-01-01
    • 2023-02-15
    • 2022-11-24
    • 1970-01-01
    • 2016-12-23
    相关资源
    最近更新 更多