From 4ecb21bff7fe26c476e616853efecdc20a9becc3 Mon Sep 17 00:00:00 2001 From: wep21 Date: Sat, 28 Dec 2024 23:08:57 +0900 Subject: [PATCH] update Signed-off-by: wep21 --- modules/iceoryx2/0.5.0/patches/bindgen.patch | 13 +++++++--- modules/iceoryx2/0.5.0/presubmit.yml | 26 +++++++++++++++++--- modules/iceoryx2/0.5.0/source.json | 2 +- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/modules/iceoryx2/0.5.0/patches/bindgen.patch b/modules/iceoryx2/0.5.0/patches/bindgen.patch index f7e0515c9dd..a8b247f00e2 100644 --- a/modules/iceoryx2/0.5.0/patches/bindgen.patch +++ b/modules/iceoryx2/0.5.0/patches/bindgen.patch @@ -1,5 +1,5 @@ diff --git iceoryx2-ffi/ffi/BUILD.bazel iceoryx2-ffi/ffi/BUILD.bazel -index f2738f81..8c93b3a2 100644 +index f2738f81..d294d862 100644 --- iceoryx2-ffi/ffi/BUILD.bazel +++ iceoryx2-ffi/ffi/BUILD.bazel @@ -20,9 +20,10 @@ filegroup( @@ -16,7 +16,7 @@ index f2738f81..8c93b3a2 100644 ) genrule( -@@ -31,11 +32,12 @@ genrule( +@@ -31,11 +32,17 @@ genrule( "//:all_srcs", "Cargo.toml", "cbindgen.toml", @@ -26,8 +26,13 @@ index f2738f81..8c93b3a2 100644 outs = ["include/iox2/iceoryx2.h"], # this is actually just 'cbindgen iceoryx2-ffi/ffi --quiet --config iceoryx2-ffi/ffi/cbindgen.toml --output include/iox2/iceoryx2.h' - cmd = "$(execpath :cbindgen-cli) $$(dirname $(location Cargo.toml)) --quiet --config $(location cbindgen.toml) --output $(OUTS)", -+ cmd = "$(execpath :cbindgen) $$(dirname $(location Cargo.toml)) --quiet --config $(location cbindgen.toml) --output $(OUTS)", -+ local = True, ++ cmd = """ ++export PATH=$$(dirname $$(realpath $(location @rules_rust//rust/toolchain:current_cargo_files))):$$PATH ++$(execpath :cbindgen) $$(dirname $(location Cargo.toml)) --quiet --config $(location cbindgen.toml) --output $(OUTS) ++""", ++ tools = [ ++ "@rules_rust//rust/toolchain:current_cargo_files", ++ ], ) rust_shared_library( diff --git a/modules/iceoryx2/0.5.0/presubmit.yml b/modules/iceoryx2/0.5.0/presubmit.yml index 1cadf6794d6..1111d0e69ca 100644 --- a/modules/iceoryx2/0.5.0/presubmit.yml +++ b/modules/iceoryx2/0.5.0/presubmit.yml @@ -1,9 +1,7 @@ matrix: platform: - - debian11 - macos - macos_arm64 - - ubuntu2004 - ubuntu2204 - ubuntu2404 bazel: [7.x, 8.x, rolling] @@ -26,6 +24,28 @@ tasks: - "--enable_bzlmod" - "--incompatible_disallow_empty_glob=false" - "--cxxopt=-std=c++17" - - "--linkopt=-lstdc++fs" + - "--linkopt=-lrt,-lstdc++fs" + build_targets: + - "@iceoryx2//..." + verify_debian11_targets: + name: Verify build targets + platform: debian11 + bazel: ${{ bazel }} + build_flags: + - "--enable_bzlmod" + - "--incompatible_disallow_empty_glob=false" + - "--cxxopt=-std=c++17" + - "--linkopt=-lrt" + build_targets: + - "@iceoryx2//..." + verify_ubuntu2004_targets: + name: Verify build targets + platform: ubuntu2004 + bazel: ${{ bazel }} + build_flags: + - "--enable_bzlmod" + - "--incompatible_disallow_empty_glob=false" + - "--cxxopt=-std=c++17" + - "--linkopt=-lrt" build_targets: - "@iceoryx2//..." diff --git a/modules/iceoryx2/0.5.0/source.json b/modules/iceoryx2/0.5.0/source.json index 55d2a272ea2..c83db556fb2 100644 --- a/modules/iceoryx2/0.5.0/source.json +++ b/modules/iceoryx2/0.5.0/source.json @@ -7,6 +7,6 @@ "MODULE.bazel": "sha256-5TJVZ/XxDuu6F2R+3TJQQix3XhXdwjKIyWtyY7YAVu8=" }, "patches": { - "bindgen.patch": "sha256-/moEJpn9m5eUqzFcLhd+UjmK4QLvJdJdvw8RyENH/ig=" + "bindgen.patch": "sha256-/dge8FyZJhabniA9qJsg3+xEiQBQsFLV2jEDagZyag8=" } }