Igalia / chromium

Old repo. See https://crbug.com/578890 instead.
https://chromium.googlesource.com/chromium/src.git
BSD 3-Clause "New" or "Revised" License
115 stars 16 forks source link

Properly clone/checkout the code #524

Closed etna closed 5 years ago

etna commented 5 years ago

Hi, may I know how should one checkout the repo properly? There are no instructions on how this should be done; the only instructions on the README are for building.

i did a git clone of this repo but gclient runhooks always fails with 'gclient not configured'. Trying the steps listed in https://github.com/Igalia/chromium/issues/301#issuecomment-343826496 allows for gclient runhooks to run, but only results in more problems about missing libraries during the build.

Specifically, I notice that following the upstream instructions results in a copy of Debian Sid being pulled to build/linux, but this does not happen in my clone of this repo. I suspect this is where my issues with missing libraries are originating from.

msisov commented 5 years ago

Right, the instructions are missing.

You need to checkout upstream first and add remote to this repo. Then switch to it and gclient will be able to fetch needed dependencies.

msisov commented 5 years ago

If you have more questions, feel free to reopen

etna commented 5 years ago

@msisov Sorry, I still need help (and a little hand holding here).

As per the upstream instructions, I use depot_tools to perform fetch --nohooks chromium The next step immediately after that is to run the dependencies script, which I omit because it's only useful for Ubuntu and Debian, following by gcllient runhooks.

I'm certain your add remote to this repo' step comes before gclient runhooks, but I still have no idea how this is done.

msisov commented 5 years ago

mkdir chromium fetch --nohooks chromium git remote add igalia https://github.com/Igalia/chromium git fetch igalia git checkout -b ozone-wayland-dev git reset --hard igalia/ozone-wayland-dev git pull igalia ozone-wayland-dev gclient sync