From e63198ca3c3d2ef545cc18d5e21f2547714544be Mon Sep 17 00:00:00 2001 From: Lia Stratopoulos <167905060+lia-viam@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:30:30 -0400 Subject: [PATCH 1/2] try to override b2 --- conanfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conanfile.py b/conanfile.py index 574ad5450..067381eb4 100644 --- a/conanfile.py +++ b/conanfile.py @@ -51,6 +51,9 @@ def requirements(self): self.requires('protobuf/[>=3.17.1]') self.requires('xtensor/[>=0.24.3]', transitive_headers=True) + # See https://github.com/conan-io/conan-center-index/issues/27165 + self.requires('b2/5.2.1', override=True) + def build_requirements(self): if self.options.offline_proto_generation: self.tool_requires('grpc/[>=1.48.4]') From 7c5a8e3d7fc135bd01494b400933ca86baf2fc53 Mon Sep 17 00:00:00 2001 From: Lia Stratopoulos <167905060+lia-viam@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:43:12 -0400 Subject: [PATCH 2/2] put it in build_requirements --- conanfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 067381eb4..0d7c46ae6 100644 --- a/conanfile.py +++ b/conanfile.py @@ -51,10 +51,11 @@ def requirements(self): self.requires('protobuf/[>=3.17.1]') self.requires('xtensor/[>=0.24.3]', transitive_headers=True) - # See https://github.com/conan-io/conan-center-index/issues/27165 - self.requires('b2/5.2.1', override=True) def build_requirements(self): + # See https://github.com/conan-io/conan-center-index/issues/27165 + self.tool_requires('b2/5.2.1', override=True) + if self.options.offline_proto_generation: self.tool_requires('grpc/[>=1.48.4]') self.tool_requires('protobuf/[>=3.17.1]')