Skip to content

Commit 19c9ed5

Browse files
scpetersosrfbuild
andauthored
sdformat15: fix standalone executable rpath and rebuild (#3055)
* revision bump for urdfdom * update bottle. Signed-off-by: Steve Peters <scpeters@openrobotics.org> Co-authored-by: OSRF Build Bot <osrfbuild@osrfoundation.org>
1 parent 806bd3b commit 19c9ed5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Formula/sdformat15.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ class Sdformat15 < Formula
44
url "https://osrf-distributions.s3.amazonaws.com/sdformat/releases/sdformat-15.3.0.tar.bz2"
55
sha256 "4855c95dcc53652e564f1c71d47d7e7ee73218efd8a99f2fa98207d175ee7c61"
66
license "Apache-2.0"
7+
revision 1
78

89
head "https://github.com/gazebosim/sdformat.git", branch: "sdf15"
910

1011
bottle do
1112
root_url "https://osrf-distributions.s3.amazonaws.com/bottles-simulation"
12-
sha256 sonoma: "40de3113ad2cea2b09c36a7a169e8aee910407959d450bc7113cdb108f27e354"
13-
sha256 ventura: "567c889281f63403739df481cbdeaf0787e80676a1a3b07cd63ed0ee34db2743"
13+
sha256 sonoma: "642eb6ea1a7eb99e705169366cacac94d8ca80c4876b9779589728808bebfefd"
14+
sha256 ventura: "c81e9d2f4a39bc187b85efe9bec0e9abd16079166247829bc47d4e3c3da4b75c"
1415
end
1516

1617
depends_on "cmake" => [:build, :test]
@@ -38,9 +39,13 @@ def python_cmake_arg(python = Formula["python@3.13"])
3839
end
3940

4041
def install
42+
rpaths = [
43+
rpath,
44+
rpath(source: libexec/"gz/sdformat15", target: lib),
45+
]
4146
cmake_args = std_cmake_args
4247
cmake_args << "-DBUILD_TESTING=Off"
43-
cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}"
48+
cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}"
4449

4550
# first build without python bindings
4651
mkdir "build" do
@@ -62,6 +67,7 @@ def install
6267
end
6368

6469
test do
70+
system libexec/"gz/sdformat15/gz-sdformat-sdf"
6571
(testpath/"test.cpp").write <<-EOS
6672
#include <iostream>
6773
#include "sdf/sdf.hh"

0 commit comments

Comments
 (0)