0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/bazel
Kevin Barre e9685a3662
zml/bazel: simplify patchelf execution and fix RPATH removal (#916)
The `@patchelf` version 0.18.0 is more capable and can now construct
something like

```bash
patchelf \
  --add-needed somelib.so \
  --force-rpath \
  --set-rpath '/home/kevin/sdk/lib' \
  --rename-dynamic-symbols patched_tcc.symbols \
  --output patched_tcc/furiosa-tcc \
  somebinary
```

So now we do not need to spawn a shell and do all the cp, chmod, and the
successive patchelf command

Before 

```bash
remove_rpath = ["some/directory"]
```

`--remove-rpath` is a flag that `Removes the entire embedded search
path` and not an individual directory

will contruct something like `patchelf --remove-rpath some/directory
patched.so` but `--remove-rpath` do not take arguments

Switch to `remove_rpath = True` to ensure something like `patchelf
--remove-rpath --output patched.so original.so` the `--remove-rpath` is
now used just after the patchelf to ensure correct usage flag placement.
History 2026-10-20 11:49:41 +02:00
..
stamp bazel/stamp: generate .c file and replace genrule by run_binary+tool 2026-04-03 15:53:54 +02:00
bazel.zig zig 0.17 (second attempt) (#923) 2026-10-13 17:11:38 +02:00
BUILD.bazel bazel: fix runfiles initializer retention on macOS (#829) 2026-09-18 16:27:00 +02:00
cc_import.bzl workspace: bump to bazel 9.1.1 (#601) 2026-06-25 19:37:51 +02:00
dpkg.bzl bazel,runtimes/rocm: use dynamic symbol import renaming (#70) 2024-11-01 17:33:57 +01:00
http_aea_archive.bzl platform/metal: support toolchain extraction on Linux x86_64 (#880) 2026-10-01 18:41:45 +02:00
http_deb_archive.bzl platforms: uncompress http_archives using http_bsdtar_archive 2026-03-20 16:22:26 +00:00
huggingface.bzl bazel: fix random huggingface redownloads by using sha256 (#179) 2025-01-31 20:41:55 +01:00
patchelf.bzl zml/bazel: simplify patchelf execution and fix RPATH removal (#916) 2026-10-20 11:49:41 +02:00
runfiles.bzl runtimes/neuron: add support for AWS neuron / trainium / inferentia 2 (#102) 2024-11-26 14:20:47 +01:00
simple_repository.bzl runtimes/neuron: sandbox neuron dependencies (#290) 2025-07-25 11:35:04 +02:00
swig.bzl workspace: add several bazel 9 required changed (#530) 2026-05-12 10:27:18 +02:00
zig_index.json zig 0.17 (second attempt) (#923) 2026-10-13 17:11:38 +02:00
zig_options.bzl third_party/zio: bump zio=v0.19.0 2026-10-05 18:11:42 +02:00
zig_proto_library.bzl zml: remove zig-protobuf, switch to upb (#307) 2025-08-19 16:14:54 +02:00
zig_srcs.bzl platforms: uncompress http_archives using http_bsdtar_archive 2026-03-20 16:22:26 +00:00