Skip to content

Commit

Permalink
(conan-io#23011) harfbuzz: Disable auto-features which pull in system…
Browse files Browse the repository at this point in the history
… dependencies

It autodetects cairo and pulls it in, which breaks reproducibility.
This also breaks cross compilation by pulling in dependencies on the build system.

Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
  • Loading branch information
jwillikers and AbrilRBS authored Mar 16, 2024
1 parent a0ec39f commit 309abf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/harfbuzz/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def validate(self):
)

def build_requirements(self):
self.tool_requires("meson/1.2.3")
self.tool_requires("meson/1.3.2")
if not self.conf.get("tools.gnu:pkg_config", check_type=str):
self.tool_requires("pkgconf/2.0.3")
self.tool_requires("pkgconf/2.1.0")
if self.options.with_glib:
self.tool_requires("glib/<host_version>")
if self.settings.os == "Macos":
Expand Down Expand Up @@ -141,6 +141,7 @@ def is_vs_2017():

backend, cxxflags = meson_backend_and_flags()
tc = MesonToolchain(self, backend=backend)
tc.project_options["auto_features"] = "disabled"
tc.project_options.update({
"glib": is_enabled(self.options.with_glib),
"icu": is_enabled(self.options.with_icu),
Expand Down

0 comments on commit 309abf8

Please sign in to comment.