Skip to content

Commit

Permalink
gz-plugin: fix rpath for libexec/gz/plugin2 (#2404)
Browse files Browse the repository at this point in the history
Add an rpath entry with a relative path from the
libexec subfolder containing the CLI executable
to lib.

* gz-plugin2: bump revision
* update  bottle.

Signed-off-by: Steve Peters <[email protected]>
Co-authored-by: OSRF Build Bot <[email protected]>
  • Loading branch information
scpeters and osrfbuild authored Sep 14, 2023
1 parent 3fd37ad commit 8f0f00f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Formula/gz-plugin2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ class GzPlugin2 < Formula
url "https://osrf-distributions.s3.amazonaws.com/gz-plugin/releases/gz-plugin-2.0.1.tar.bz2"
sha256 "92b5c9a99b611887b40c271bf47300b4e8a5d006aa80902bd705d36f1d8508f5"
license "Apache-2.0"
revision 1

head "https://github.com/gazebosim/gz-math.git", branch: "gz-math7"

bottle do
root_url "https://osrf-distributions.s3.amazonaws.com/bottles-simulation"
sha256 cellar: :any, ventura: "0cccfc4e784821706358e8e91655d231c5378fa950ee02775d2917522f9da41f"
sha256 cellar: :any, monterey: "f5a33572b7400a2948ae1c988be41ee08f9c3f0a4217e7361fcca263b8290ed0"
sha256 cellar: :any, big_sur: "696b7c7ed4768f14eb5ba56fa393f087571f238873c4681caac6ac6c711169d5"
sha256 cellar: :any, catalina: "c7faa3c09ae61b955b32e2c959a586fd61fb73a03f90282f5d3f29a2e8af71b1"
sha256 cellar: :any, ventura: "657a4ddc17e9b96a49b3abfc74a12e2d1cc32cb9157d1db3698f74abe3c013aa"
sha256 cellar: :any, monterey: "80a2063bba46c16fb1a7137176c97709503402d82bbcac6de4f2937a71bdba43"
sha256 cellar: :any, big_sur: "46ef3900833388ac27a78cacf6e063807429b7600933bf8ed5f2e7c5ae4c6cec"
end

depends_on "cmake"
Expand All @@ -23,9 +23,13 @@ class GzPlugin2 < Formula
depends_on "pkg-config"

def install
rpaths = [
rpath,
rpath(source: libexec/"gz/plugin2", target: lib),
]
cmake_args = std_cmake_args
cmake_args << "-DBUILD_TESTING=OFF"
cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}"
cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}"

# Use build folder
mkdir "build" do
Expand Down

0 comments on commit 8f0f00f

Please sign in to comment.