gitchromiumninjagclient

How to build a specific version of Chromium?


I want to build the latest stable version of Chromium (62.0.3202.84 at the time of writing, see OmahaProxy).

The build instructions work just fine for the current development version.

From this question, the Brave wiki and some other sources, the instructions to fetch and build a specific version seem to be pretty clear :

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

However, this does not seem to work for me. When I create a branch for FETCH_HEAD, a quick git log shows that I have the latest commits from master.

What am I misunderstanding ?

EDIT:

If I do the steps from Asesh's answer from master, it runs “successfully” but I still end up building master instead of what I want.

If I first create a branch from a specific tag (as specified in the Chromium documentation), like 62.0.3202.84, or even if I just check it out without branching, gclient sync --with_branch_heads fails giving me the following error :

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

Solution

  • I successfully compiled version 3239, so I understand the problem was a bad reference in 3202's DEPS file. (which is quite weird...)

    Hence the following steps are actually correct:

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

    EDIT 2018-07-02: According to this page, starting from version 3420, it should be possible to correctly sync dependencies.