How to re-generate patches when updating chromium?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to re-generate patches when updating chromium?

Postby Streamlet » Thu Jun 10, 2021 1:54 am

For example:

when we developed features, we made patch1, patch2, patch3.
Now we are updating chromium to a new version, patches possibly cannot be applied.
Then we might need following steps:
1. checkout chromium code to the commit before patch1, apply patch1 and resolve conflics, and remake patch1.
2. temporarily commit patch1, apply patch2 and resolve conflics, and remake patch2.
3. temporarily commit patch2, apply patch3 and resolve conflics, and remake patch3.
...
(additionally, every step should do CEF translator for api hash, should compile all code and run tests to check the feature for that patch, ...)

That costs too long time... How does CEF do this work?
Streamlet
Mentor
 
Posts: 61
Joined: Tue Aug 27, 2019 6:47 am

Re: How to re-generate patches when updating chromium?

Postby magreenblatt » Thu Jun 10, 2021 8:24 am

We use scripts for updating patches. See https://bitbucket.org/chromiumembedded/ ... mUpdate.md

You could also avoid checking in changes to auto-generated files and instead run the translator tool before building.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 25 guests