diff --git a/patch/ros-jazzy-ament-cmake-core.patch b/patch/ros-jazzy-ament-cmake-core.patch new file mode 100644 index 000000000..555f3fc9a --- /dev/null +++ b/patch/ros-jazzy-ament-cmake-core.patch @@ -0,0 +1,18 @@ +diff --git a/cmake/package_templates/templates_2_cmake.py b/cmake/package_templates/templates_2_cmake.py +index b7c0faf..328cc38 100644 +--- a/cmake/package_templates/templates_2_cmake.py ++++ b/cmake/package_templates/templates_2_cmake.py +@@ -68,12 +68,7 @@ def generate_cmake_code(): + """ + variables = [] + +- if not IS_WINDOWS: +- variables.append(( +- 'ENVIRONMENT_HOOK_LIBRARY_PATH', +- '"%s"' % get_environment_hook_template_path('library_path.sh'))) +- else: +- variables.append(('ENVIRONMENT_HOOK_LIBRARY_PATH', '')) ++ variables.append(('ENVIRONMENT_HOOK_LIBRARY_PATH', '')) + + ext = '.bat.in' if IS_WINDOWS else '.sh.in' + variables.append(( diff --git a/patch/ros-jazzy-ament-package.patch b/patch/ros-jazzy-ament-package.patch new file mode 100644 index 000000000..ae032894c --- /dev/null +++ b/patch/ros-jazzy-ament-package.patch @@ -0,0 +1,22 @@ +diff --git a/ament_package/template/environment_hook/library_path.sh b/ament_package/template/environment_hook/library_path.sh +deleted file mode 100644 +index 292e518..0000000 +--- a/ament_package/template/environment_hook/library_path.sh ++++ /dev/null +@@ -1,16 +0,0 @@ +-# copied from ament_package/template/environment_hook/library_path.sh +- +-# detect if running on Darwin platform +-_UNAME=`uname -s` +-_IS_DARWIN=0 +-if [ "$_UNAME" = "Darwin" ]; then +- _IS_DARWIN=1 +-fi +-unset _UNAME +- +-if [ $_IS_DARWIN -eq 0 ]; then +- ament_prepend_unique_value LD_LIBRARY_PATH "$AMENT_CURRENT_PREFIX/lib" +-else +- ament_prepend_unique_value DYLD_LIBRARY_PATH "$AMENT_CURRENT_PREFIX/lib" +-fi +-unset _IS_DARWIN