-
Notifications
You must be signed in to change notification settings - Fork 78
Cannot aply patches #439
Comments
Your top commit of chromium should be e82a7af9d123ad8d8dd629a641d21f961e2b1346. |
If its a fresh sync, make sure you are on master branch and not in detached head state. |
Thanks. How can I be sure I am on master branch and not in detached head state? |
Don't you mean the opposite? If his Chromium checkout is tracking a named branch (like "master"), I think |
In the file src/ozone/.DEPS.git the parameter 'chromium_rev': 'e82a7af9d123ad8d8dd629a641d21f961e2b1346', |
@vrotenberg: what do you get when you run |
I get
|
OK, and did you add ozone-wayland into Looking at the patching script, if your master branch is pointing at something other than the hash in "chromium_rev",
It will recreate the "master-ozone" branch using e82a7af9d123ad8d8dd629a641d21f961e2b1346 as a base. I haven't tried it locally, but it should work. |
Oh, thank you so much! Now the patching was successful! |
I'm glad to know it worked; I'm leaving this issue open in case Kalyan or Joone want to do something to make patch-chromium.sh more resilient. |
If you can be so kind to answer another question? I want to build chrome for wayland for the 32 bit Linux machine. So in order to compile the chromium I run on x64 bit machine export GYP_DEFINES='component=static_library use_ash=1 use_aura=1 chromeos=0 use_ozone=1 use_xkbcommon=1 proprietary_codecs=1 ffmpeg_branding=Chrome target_arch=ia32' |
For a pure Chromium build, that should work, in particular if you use Chromium's sysroot approach (basically building within a Debian Wheezy i386 chroot instead of using your system's packages). I'm not sure if the Ozone build is covered by that approach though, as it requires some library versions newer than the ones present in Debian Wheezy, plus Wayland is not part of the chroot. Depending on what distro you are running, you might get away with just passing |
Thank you for reply. So my GYP_DEFINES should be like component=static_library use_ash=1 use_aura=1 chromeos=0 use_ozone=1 use_xkbcommon=1 proprietary_codecs=1 ffmpeg_branding=Chrome use_sysroot=0 |
Yes, you need to set at least
Are you a distro packager? If that's the case I suggest not installing anything, seeing which software gyp complains about, then installing that, so on and so forth. You can check a minimal list of packages required by a Debian-based distro in With that said, if your intention is to create distro packages, you probably also want to disable Chromium's bundled clang with |
In any case, we're hijacking this issue with something totally unrelated :-) If you'd like to continue this discussion, I suggest the chromium-packager and chromium-dev mailing lists (which I also subscribe to). |
Thanks a lot!!! |
Hi!
When I run ./src/ozone/patches/patch-chromium.sh I always get an error:
Ozone-Wayland: patching Chromium
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Deleted branch master-ozone (was 14c5a1f).
Switched to a new branch 'master-ozone'
Applying: Browser: Support Desktop Aura creation on Ozone
Applying: Remove usage of DesktopFactory.
Applying: Add support to provide external ozone files in views.
Applying: Add support for checking DesktopWindow with Ozone and Ash.
Applying: Media: Build VaapiPictureWayland as part of Media.
Applying: Fix crash when switching to console(VT) mode
Applying: Add needed support in PlatformWindow.
Applying: Add file picker support using WebUI
error: patch failed: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc:337
error: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc: patch does not apply
error: patch failed: chrome/common/url_constants.cc:602
error: chrome/common/url_constants.cc: patch does not apply
Patch failed at 0008 Add file picker support using WebUI
The copy of the patch that failed is found in:
/home/shalom/git/chromium/src/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Please help!
Thanks
The text was updated successfully, but these errors were encountered: