Skip to content

Commit 75289bf

Browse files
Bump libzip to 1.11.4 (#4681)
Also, - Set cmake `ENABLE_LZMA` to off to fix linker errors - Bump version for all dependencies in MODULE.bazel - Add bazel 8.x coverage in presubmits - Add MacOS coverage in presubmits --------- Signed-off-by: Shameek Ganguly <[email protected]>
1 parent 15ab596 commit 75289bf

File tree

6 files changed

+111
-1
lines changed

6 files changed

+111
-1
lines changed

modules/libzip/1.11.4/MODULE.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module(
2+
name = "libzip",
3+
version = "1.11.4",
4+
)
5+
bazel_dep(name = "boringssl", version = "0.20250514.0")
6+
bazel_dep(name = "rules_license", version = "1.0.0")
7+
bazel_dep(name = "rules_foreign_cc", version = "0.14.0")
8+
bazel_dep(name = "zstd", version = "1.5.7")
9+
bazel_dep(name = "zlib", version = "1.3.1.bcr.6")
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
diff --git a/BUILD b/BUILD
2+
new file mode 100644
3+
index 00000000..991cb183
4+
--- a/BUILD
5+
+++ b/BUILD
6+
@@ -0,0 +1,53 @@
7+
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
8+
+load("@rules_license//rules:license.bzl", "license")
9+
+
10+
+package(
11+
+ default_applicable_licenses = [":license"],
12+
+ default_visibility = ["//visibility:public"],
13+
+)
14+
+
15+
+license(
16+
+ name = "license",
17+
+ package_name = "libzip",
18+
+)
19+
+
20+
+filegroup(
21+
+ name = "all_srcs",
22+
+ srcs = glob(["**"]),
23+
+)
24+
+
25+
+cmake(
26+
+ name = "libzip",
27+
+ build_args = [
28+
+ "-j4",
29+
+ ],
30+
+ cache_entries = {
31+
+ "BUILD_SHARED_LIBS": "OFF",
32+
+ "BUILD_DOC": "OFF",
33+
+ "BUILD_EXAMPLES": "OFF",
34+
+ "BUILD_OSSFUZZ": "OFF",
35+
+ "BUILD_REGRESS": "OFF",
36+
+ "BUILD_TOOLS": "OFF",
37+
+ "ENABLE_BZIP2": "OFF",
38+
+ "ENABLE_COMMONCRYPTO": "OFF",
39+
+ "ENABLE_GNUTLS": "OFF",
40+
+ "ENABLE_LZMA": "OFF",
41+
+ "ENABLE_MBEDTLS": "OFF",
42+
+ "ENABLE_WINDOWS_CRYPTO": "OFF",
43+
+ },
44+
+ env = {
45+
+ "CMAKE_BUILD_TYPE": "Release",
46+
+ "CMAKE_BUILD_PARALLEL_LEVEL": "4",
47+
+ },
48+
+ includes = [
49+
+ ".",
50+
+ "lib",
51+
+ ],
52+
+ lib_source = ":all_srcs",
53+
+ out_static_libs = ["libzip.a"],
54+
+ deps = [
55+
+ "@boringssl//:crypto",
56+
+ "@zstd",
57+
+ "@zlib",
58+
+ ],
59+
+)
60+
\ No newline at end of file
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- a/MODULE.bazel
2+
+++ b/MODULE.bazel
3+
@@ -0,0 +1,9 @@
4+
+module(
5+
+ name = "libzip",
6+
+ version = "1.11.4",
7+
+)
8+
+bazel_dep(name = "boringssl", version = "0.20250514.0")
9+
+bazel_dep(name = "rules_license", version = "1.0.0")
10+
+bazel_dep(name = "rules_foreign_cc", version = "0.14.0")
11+
+bazel_dep(name = "zstd", version = "1.5.7")
12+
+bazel_dep(name = "zlib", version = "1.3.1.bcr.6")

modules/libzip/1.11.4/presubmit.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2004
5+
- macos
6+
bazel:
7+
- 8.x
8+
- 7.x
9+
tasks:
10+
verify_targets:
11+
name: Verify build targets
12+
platform: ${{ platform }}
13+
bazel: ${{ bazel }}
14+
build_flags:
15+
- '--cxxopt=-std=c++17'
16+
- '--host_cxxopt=-std=c++17'
17+
build_targets:
18+
- '@libzip//:libzip'

modules/libzip/1.11.4/source.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"url": "https://github.com/nih-at/libzip/releases/download/v1.11.4/libzip-1.11.4.tar.gz",
3+
"integrity": "sha256-guny8kIfnXwkZrvDFzzQlZWojqN9sNVZqdCi3GDcci4=",
4+
"strip_prefix": "libzip-1.11.4",
5+
"patch_strip": 1,
6+
"patches": {
7+
"module_dot_bazel.patch": "sha256-FxW4Z8Qez/LB+LGGAiadF6gIfrU2Cpcm+psbYRogD2g=",
8+
"add-build-file.patch": "sha256-6A7P76GJufd3SVJHcaLqAyH3wxGL82U3DziOAhm1uzk="
9+
}
10+
}

modules/libzip/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"github:nih-at/libzip"
1111
],
1212
"versions": [
13-
"1.10.1"
13+
"1.10.1",
14+
"1.11.4"
1415
],
1516
"yanked_versions": {}
1617
}

0 commit comments

Comments
 (0)