-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set c-blosc2 visibility to public (#1425)
* Set visibility to public for c-blosc2 build rule * Fix sha256 value for updated build file * Move visibility change to a new bcr.1 version * Resolve new presubmit requirement for specifying Bazel version * Fix indentation error in presubmit * Adjust line count to include new line * Update build_file sha256 patch * Fix ordering of versions in metadata.json * Remove changes in existing 2.12.0 version * Fix attempt to build file patch * Add newline to end of patch file --------- Co-authored-by: Fædon Jóhannes Sinis <[email protected]>
- Loading branch information
Showing
6 changed files
with
167 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module( | ||
name = "c-blosc2", | ||
version = "2.12.0.bcr.1", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "lz4", version = "1.9.4") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
bazel_dep(name = "zlib-ng", version = "2.0.7") | ||
bazel_dep(name = "zstd", version = "1.5.5") |
119 changes: 119 additions & 0 deletions
119
modules/c-blosc2/2.12.0.bcr.1/patches/add_build_file.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
--- /dev/null | ||
+++ BUILD.bazel | ||
@@ -0,0 +1,116 @@ | ||
+cc_library( | ||
+ name = "c-blosc2", | ||
+ srcs = [ | ||
+ "blosc/b2nd_utils.c", | ||
+ "blosc/b2nd-private.h", | ||
+ "blosc/b2nd.c", | ||
+ "blosc/bitshuffle-avx2.c", | ||
+ "blosc/bitshuffle-avx2.h", | ||
+ "blosc/bitshuffle-generic.c", | ||
+ "blosc/bitshuffle-generic.h", | ||
+ "blosc/bitshuffle-sse2.c", | ||
+ "blosc/bitshuffle-sse2.h", | ||
+ "blosc/blosc-private.h", | ||
+ "blosc/blosc2-stdio.c", | ||
+ "blosc/blosc2.c", | ||
+ "blosc/blosclz.c", | ||
+ "blosc/blosclz.h", | ||
+ "blosc/delta.c", | ||
+ "blosc/directories.c", | ||
+ "blosc/fastcopy.c", | ||
+ "blosc/frame.c", | ||
+ "blosc/frame.h", | ||
+ "blosc/schunk-private.h", | ||
+ "blosc/schunk.c", | ||
+ "blosc/sframe.c", | ||
+ "blosc/sframe.h", | ||
+ "blosc/shuffle-avx2.c", | ||
+ "blosc/shuffle-avx2.h", | ||
+ "blosc/shuffle-generic.c", | ||
+ "blosc/shuffle-generic.h", | ||
+ "blosc/shuffle-sse2.c", | ||
+ "blosc/shuffle-sse2.h", | ||
+ "blosc/shuffle.c", | ||
+ "blosc/shuffle.h", | ||
+ "blosc/stune.c", | ||
+ "blosc/timestamp.c", | ||
+ "blosc/trunc-prec.c", | ||
+ "plugins/codecs/codecs-registry.c", | ||
+ "plugins/codecs/ndlz/ndlz-private.h", | ||
+ "plugins/codecs/ndlz/ndlz.c", | ||
+ "plugins/codecs/ndlz/ndlz.h", | ||
+ "plugins/codecs/ndlz/ndlz4x4.c", | ||
+ "plugins/codecs/ndlz/ndlz4x4.h", | ||
+ "plugins/codecs/ndlz/ndlz8x8.c", | ||
+ "plugins/codecs/ndlz/ndlz8x8.h", | ||
+ "plugins/codecs/ndlz/xxhash.c", | ||
+ "plugins/codecs/ndlz/xxhash.h", | ||
+ "plugins/codecs/zfp/blosc2-zfp.c", | ||
+ "plugins/codecs/zfp/src/bitstream.c", | ||
+ "plugins/codecs/zfp/src/zfp.c", | ||
+ "plugins/codecs/zfp/zfp-private.h", | ||
+ "plugins/filters/bytedelta/bytedelta.c", | ||
+ "plugins/filters/filters-registry.c", | ||
+ "plugins/filters/ndcell/ndcell.c", | ||
+ "plugins/filters/ndcell/ndcell.h", | ||
+ "plugins/filters/ndmean/ndmean.c", | ||
+ "plugins/filters/ndmean/ndmean.h", | ||
+ "plugins/plugin_utils.c", | ||
+ "plugins/plugin_utils.h", | ||
+ "plugins/tuners/tuners-registry.c", | ||
+ "plugins/codecs/zfp/src/template/template.h", | ||
+ "plugins/filters/bytedelta/bytedelta.h", | ||
+ ], | ||
+ hdrs = [ | ||
+ "blosc/context.h", | ||
+ "blosc/delta.h", | ||
+ "blosc/fastcopy.h", | ||
+ "blosc/stune.h", | ||
+ "blosc/trunc-prec.h", | ||
+ "internal-complibs/lz4-1.9.4/lz4.c", | ||
+ "plugins/codecs/zfp/blosc2-zfp.h", | ||
+ "plugins/codecs/zfp/include", | ||
+ ] + glob([ | ||
+ "include/**/*.h", | ||
+ ]), | ||
+ copts = select({ | ||
+ "@platforms//os:linux": [ | ||
+ "-msse4.1", | ||
+ ], | ||
+ "//conditions:default": [ | ||
+ ], | ||
+ }), | ||
+ includes = [ | ||
+ "blosc", | ||
+ "include", | ||
+ "internal-complibs/lz4-1.9.4", | ||
+ "internal-complibs/zlib-ng-2.0.7", | ||
+ "plugins/codecs", | ||
+ "plugins/codecs/ndlz", | ||
+ "plugins/codecs/zfp/include", | ||
+ "plugins/codecs/zfp/src", | ||
+ ], | ||
+ textual_hdrs = [ | ||
+ "plugins/codecs/zfp/src/decode3l.c", | ||
+ "plugins/codecs/zfp/src/encode1f.c", | ||
+ "plugins/codecs/zfp/src/encode1d.c", | ||
+ "plugins/codecs/zfp/src/decode4f.c", | ||
+ "plugins/codecs/zfp/src/decode4l.c", | ||
+ "plugins/codecs/zfp/src/encode1i.c", | ||
+ "plugins/codecs/zfp/src/decode4d.c", | ||
+ "plugins/codecs/zfp/src/decode3f.c", | ||
+ "plugins/codecs/zfp/src/decode4i.c", | ||
+ "plugins/codecs/zfp/src/inline/bitstream.c", | ||
+ "plugins/codecs/zfp/src/share/parallel.c", | ||
+ "plugins/codecs/zfp/src/share/omp.c", | ||
+ "plugins/codecs/zfp/src/template/compress.c", | ||
+ "plugins/codecs/zfp/src/template/decompress.c", | ||
+ "plugins/codecs/zfp/src/template/ompcompress.c", | ||
+ ], | ||
+ visibility = ["//visibility:public"], | ||
+ deps = [ | ||
+ "@lz4//:lz4_hc", | ||
+ "@zlib-ng//:zlib-ng", | ||
+ "@zstd", | ||
+ ], | ||
+) |
13 changes: 13 additions & 0 deletions
13
modules/c-blosc2/2.12.0.bcr.1/patches/add_module_dot_bazel.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- MODULE.bazel | ||
+++ MODULE.bazel | ||
@@ -0,0 +1,10 @@ | ||
+module( | ||
+ name = "c-blosc2", | ||
+ version = "2.12.0.bcr.1", | ||
+ compatibility_level = 1, | ||
+) | ||
+ | ||
+bazel_dep(name = "lz4", version = "1.9.4") | ||
+bazel_dep(name = "platforms", version = "0.0.8") | ||
+bazel_dep(name = "zlib-ng", version = "2.0.7") | ||
+bazel_dep(name = "zstd", version = "1.5.5") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
matrix: | ||
platform: | ||
- ubuntu2004 | ||
- macos | ||
- windows | ||
bazel: [6.x, 7.x] | ||
tasks: | ||
verify_targets: | ||
name: Verify build targets | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- '@c-blosc2//:c-blosc2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"integrity": "sha256-uPoHqwYnwZ+2UuCKWtoZfrCTm3Xpfi+3a77hRertxuk=", | ||
"patch_strip": 0, | ||
"patches": { | ||
"add_build_file.patch": "sha256-PTaH5OllNorenDRvaON38L1DkYKPeIs9aupI40qs85c=", | ||
"add_module_dot_bazel.patch": "sha256-Xf1v8vz+RtK9epDzNuxAOqGaZHYWzt3wwjM3K/ifl3w=" | ||
}, | ||
"strip_prefix": "c-blosc2-2.12.0", | ||
"url": "https://github.com/Blosc/c-blosc2/archive/refs/tags/v2.12.0.tar.gz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
"github:Blosc/c-blosc2" | ||
], | ||
"versions": [ | ||
"2.12.0" | ||
"2.12.0", | ||
"2.12.0.bcr.1" | ||
], | ||
"yanked_versions": {} | ||
} |