From 3a8bc0057d201be20253fac72ab65a5b45178f2e Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 13 Feb 2024 13:51:12 -0800 Subject: [PATCH] Harmonic: patches to fix finding python (#2563) * gz-transport13: patch to fix finding python * sdformat14: patch to fix finding python Signed-off-by: Steve Peters --- Formula/gz-transport13.rb | 6 ++++++ Formula/sdformat14.rb | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Formula/gz-transport13.rb b/Formula/gz-transport13.rb index e569b9ce6..7d11e59ce 100644 --- a/Formula/gz-transport13.rb +++ b/Formula/gz-transport13.rb @@ -25,6 +25,12 @@ class GzTransport13 < Formula depends_on "tinyxml2" depends_on "zeromq" + patch do + # Fix for finding python + url "https://github.com/gazebosim/gz-transport/commit/502f5196063a88526f5c3e79d0d042e90cad81e2.patch?full_index=1" + sha256 "e710c2892bfd9ee67b2721ec2c2f3d25e6fd1a66a45f432d7fc4a50760432b4a" + end + def python_cmake_arg "-DPython3_EXECUTABLE=#{which("python3")}" end diff --git a/Formula/sdformat14.rb b/Formula/sdformat14.rb index 904fe4f6f..1059a0d67 100644 --- a/Formula/sdformat14.rb +++ b/Formula/sdformat14.rb @@ -22,6 +22,12 @@ class Sdformat14 < Formula depends_on "tinyxml2" depends_on "urdfdom" + patch do + # Fix for finding python + url "https://github.com/gazebosim/sdformat/commit/d374404cdeb5fd181b0a2ab5dd9d6400087634a1.patch?full_index=1" + sha256 "1f2eef54e5d2b3801b244b8d82e1bfc9357c1836e8230a6e2594ac8eb01eb988" + end + def python_cmake_arg "-DPython3_EXECUTABLE=#{which("python3")}" end