Patch files with github repo using JHBuild

Is there a way to add patch files with a Github repo?
As for instance, in the following case:

  <meson id="wayland" mesonargs="-Ddocumentation=false">
    <branch tag="04654ba7b57ccbf583db899a327f8f7000f90546" repo="github" module="XQuartz/wayland">
      <patch file="0001-Darwin-fixes-from-owl-compositor.patch"
             strip="1" />
      <patch file="0002-wayland-os.c-LOCAL_PEERPID-may-not-be-defined.patch"
             strip="1" />
      <patch file="0003-os-wrappers-test-F_DUPFD_CLOEXEC-may-not-be-defined.patch"
             strip="1" />
    </branch>
    <dependencies>
      <dep package="libepoll-shim" />
    </dependencies>
  </meson>

The patches are not appllied before the configuring phase:

*** Checking out wayland *** [2/2]
git clone https://github.com/XQuartz/wayland
Cloning into 'wayland'...
...
*** Configuring wayland *** [2/2]
...

How to get them applied?

Make sure you have jhbuild from Git, with at least commit 84d2a2834ab6b456c7ace7001e337f8e09c1c537.

1 Like

Thanks for your quick answer.
That’s ok for me now :slight_smile: