Skip to content

Commit 7341f70

Browse files
lukasoyenfilmil
authored andcommitted
add patchelf 0.16.1 (bazelbuild#4006)
The 0.18.0 version has a known bug. NixOS/patchelf#492. Until the fixed version is released, 0.16.1 is a working alternative.
1 parent 3a0d037 commit 7341f70

File tree

7 files changed

+74
-15
lines changed

7 files changed

+74
-15
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module(
2+
name = "patchelf",
3+
version = "0.16.1",
4+
compatibility_level = 0,
5+
)
6+
7+
bazel_dep(name = "rules_cc", version = "0.1.1")
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- /dev/null
2+
+++ b/MODULE.bazel
3+
@@ -0,0 +1,7 @@
4+
+module(
5+
+ name = "patchelf",
6+
+ version = "0.16.1",
7+
+ compatibility_level = 0,
8+
+)
9+
+
10+
+bazel_dep(name = "rules_cc", version = "0.1.1")
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/BUILD.bazel b/BUILD.bazel
2+
new file mode 100644
3+
index 0000000..1c12aa9
4+
--- /dev/null
5+
+++ b/BUILD.bazel
6+
@@ -0,0 +1,16 @@
7+
+load("@rules_cc//cc:defs.bzl", "cc_binary")
8+
+
9+
+cc_binary(
10+
+ name = "patchelf",
11+
+ srcs = glob([
12+
+ "src/*.cc",
13+
+ "src/*.h",
14+
+ ]),
15+
+ copts = [
16+
+ "-std=c++17",
17+
+ ],
18+
+ local_defines = [
19+
+ "D_FILE_OFFSET_BITS=64",
20+
+ ],
21+
+ visibility = ["//visibility:public"],
22+
+)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
matrix:
2+
platform: ["macos", "ubuntu2004"]
3+
bazel: ["6.x", "7.x", "8.x"]
4+
tasks:
5+
verify_targets:
6+
platform: ${{ platform }}
7+
bazel: ${{ bazel }}
8+
build_targets:
9+
- '@patchelf//:patchelf'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"integrity": "sha256-GlYu0osW+KAEVrX57lc7sa98OcG+6gHZT8DHsyVrBAY=",
3+
"strip_prefix": "patchelf-0.16.1",
4+
"url": "https://github.com/NixOS/patchelf/releases/download/0.16.1/patchelf-0.16.1.tar.gz",
5+
"patch_strip": 1,
6+
"patches": {
7+
"0001-Add-MODULE.bazel.patch": "sha256-yNKPYrLOFvVNyBCK0kE7q0A1/1ggelSwsCk6PrZteW4=",
8+
"0002-Add-BUILD.bazel.patch": "sha256-YnkSaGFyQqRMnTcbOSHEj7zXuTcKcVnsmOSIkU8GW5U="
9+
}
10+
}

modules/patchelf/0.18.0/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
matrix:
22
platform: ["macos", "ubuntu2004"]
3-
bazel: ["6.x", "7.x"]
3+
bazel: ["6.x", "7.x", "8.x"]
44
tasks:
55
verify_targets:
66
platform: ${{ platform }}

modules/patchelf/metadata.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"homepage": "https://github.com/NixOS/patchelf",
3-
"maintainers": [
4-
{
5-
"email": "[email protected]",
6-
"name": "Keith Smiley"
7-
}
8-
],
9-
"repository": [
10-
"github:NixOS/patchelf"
11-
],
12-
"versions": [
13-
"0.18.0"
14-
],
15-
"yanked_versions": {}
2+
"homepage": "https://github.com/NixOS/patchelf",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"name": "Keith Smiley"
7+
}
8+
],
9+
"repository": [
10+
"github:NixOS/patchelf"
11+
],
12+
"versions": [
13+
"0.16.1",
14+
"0.18.0"
15+
],
16+
"yanked_versions": {}
1617
}

0 commit comments

Comments
 (0)