We would like to be able to build WebKit on a given distribution using as much libraries from the system as possible. So the idea is to have a minimum JHBuild moduleset for building only the libraries that are not available on the distribution.
Created attachment 402796 [details] Patch
Comment on attachment 402796 [details] Patch I think there's an option in jhbuild to prefer system modules when the version is newer than the one in the moduleset.
(In reply to Carlos Garcia Campos from comment #2) > Comment on attachment 402796 [details] > Patch > > I think there's an option in jhbuild to prefer system modules when the > version is newer than the one in the moduleset. Right. But AFAIK that doesn't work for what I intend to do here. AFAIK <systemmodule ...> tells JHBuild that the dependency should be installed by the system (distro package), and if is not installed then JHBuild will fail. In other words: with systemmodule, jhbuild won't build the dependency if the system doesn't provide one new enough. It will simply fail. What I'm trying to do here is to tell JHBuild to check if the system provides a new enough version of the dependency, and if it does then skip building it. If it doesn't then JHBuild will build it, instead of failing. This is achieved by using the <pkg-config> directive in the modules
Created attachment 403692 [details] Patch
Committed r264092: <https://trac.webkit.org/changeset/264092> All reviewed patches have been landed. Closing bug and clearing flags on attachment 403692 [details].
<rdar://problem/65217427>