From 976deb41655f108f3c61b84fb1b030eba1185b6d Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 23:36:36 +0100 Subject: [PATCH 01/62] bazel_jar_jar@0.1.5 (#1635) Release: https://github.com/bazeltools/bazel_jar_jar/releases/tag/v0.1.5 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: eugene yokota --- modules/bazel_jar_jar/0.1.5/MODULE.bazel | 14 ++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++++++++ modules/bazel_jar_jar/0.1.5/presubmit.yml | 17 +++++++++++++++++ modules/bazel_jar_jar/0.1.5/source.json | 9 +++++++++ modules/bazel_jar_jar/metadata.json | 3 ++- 5 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 modules/bazel_jar_jar/0.1.5/MODULE.bazel create mode 100644 modules/bazel_jar_jar/0.1.5/patches/module_dot_bazel_version.patch create mode 100644 modules/bazel_jar_jar/0.1.5/presubmit.yml create mode 100644 modules/bazel_jar_jar/0.1.5/source.json diff --git a/modules/bazel_jar_jar/0.1.5/MODULE.bazel b/modules/bazel_jar_jar/0.1.5/MODULE.bazel new file mode 100644 index 00000000000..cfc30e477ae --- /dev/null +++ b/modules/bazel_jar_jar/0.1.5/MODULE.bazel @@ -0,0 +1,14 @@ +module( + name = "bazel_jar_jar", + version = "0.1.5", +) + +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_java", version = "6.3.1") + +non_module_deps = use_extension("//internal:non_module_deps.bzl", "non_module_deps") +use_repo( + non_module_deps, + "jvm__jarjar_abrams_assembly", + "jvm__com_twitter__scalding_args", +) diff --git a/modules/bazel_jar_jar/0.1.5/patches/module_dot_bazel_version.patch b/modules/bazel_jar_jar/0.1.5/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..ef3b89a68fd --- /dev/null +++ b/modules/bazel_jar_jar/0.1.5/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "bazel_jar_jar", +- version = "0.1.0", ++ version = "0.1.5", + ) + + bazel_dep(name = "platforms", version = "0.0.7") + bazel_dep(name = "rules_java", version = "6.3.1") diff --git a/modules/bazel_jar_jar/0.1.5/presubmit.yml b/modules/bazel_jar_jar/0.1.5/presubmit.yml new file mode 100644 index 00000000000..36ba8bb151c --- /dev/null +++ b/modules/bazel_jar_jar/0.1.5/presubmit.yml @@ -0,0 +1,17 @@ +bcr_test_module: + module_path: test + matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: [6.x, 7.x] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - //... diff --git a/modules/bazel_jar_jar/0.1.5/source.json b/modules/bazel_jar_jar/0.1.5/source.json new file mode 100644 index 00000000000..8aafc04e585 --- /dev/null +++ b/modules/bazel_jar_jar/0.1.5/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-qdLKmi6QFPjWPcvpCRvLny0pKbO30Wg2xiJemPnKVN8=", + "strip_prefix": "bazel_jar_jar-0.1.5", + "url": "https://github.com/bazeltools/bazel_jar_jar/releases/download/v0.1.5/bazel_jar_jar-v0.1.5.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-BV7ff1/015NpLE+MEtGNDDPXJ3o78t4jl5SJmJ1mCLc=" + }, + "patch_strip": 1 +} diff --git a/modules/bazel_jar_jar/metadata.json b/modules/bazel_jar_jar/metadata.json index fb39e047706..12b353636ed 100644 --- a/modules/bazel_jar_jar/metadata.json +++ b/modules/bazel_jar_jar/metadata.json @@ -11,7 +11,8 @@ "github:bazeltools/bazel_jar_jar" ], "versions": [ - "0.1.0" + "0.1.0", + "0.1.5" ], "yanked_versions": {} } From da0c0d94bcbda97b376ef31cd9f9016a3c345a1e Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 17 Mar 2024 19:11:32 +0100 Subject: [PATCH 02/62] opentracing-cpp@1.6.0 (#1636) opentracing-cpp is archived but it is still used by several projects Add opentracing-cpp v1.6.0 --- modules/io_opentracing_cpp/1.6.0/MODULE.bazel | 4 +++ .../1.6.0/patches/module_dot_bazel.patch | 7 ++++ .../io_opentracing_cpp/1.6.0/presubmit.yml | 34 +++++++++++++++++++ modules/io_opentracing_cpp/1.6.0/source.json | 9 +++++ modules/io_opentracing_cpp/metadata.json | 16 +++++++++ 5 files changed, 70 insertions(+) create mode 100644 modules/io_opentracing_cpp/1.6.0/MODULE.bazel create mode 100644 modules/io_opentracing_cpp/1.6.0/patches/module_dot_bazel.patch create mode 100644 modules/io_opentracing_cpp/1.6.0/presubmit.yml create mode 100644 modules/io_opentracing_cpp/1.6.0/source.json create mode 100644 modules/io_opentracing_cpp/metadata.json diff --git a/modules/io_opentracing_cpp/1.6.0/MODULE.bazel b/modules/io_opentracing_cpp/1.6.0/MODULE.bazel new file mode 100644 index 00000000000..9d729ec1275 --- /dev/null +++ b/modules/io_opentracing_cpp/1.6.0/MODULE.bazel @@ -0,0 +1,4 @@ +module( + name = "io_opentracing_cpp", + version = "1.6.0", +) diff --git a/modules/io_opentracing_cpp/1.6.0/patches/module_dot_bazel.patch b/modules/io_opentracing_cpp/1.6.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..5c91e79d1dc --- /dev/null +++ b/modules/io_opentracing_cpp/1.6.0/patches/module_dot_bazel.patch @@ -0,0 +1,7 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,4 @@ ++module( ++ name = "io_opentracing_cpp", ++ version = "1.6.0", ++) diff --git a/modules/io_opentracing_cpp/1.6.0/presubmit.yml b/modules/io_opentracing_cpp/1.6.0/presubmit.yml new file mode 100644 index 00000000000..58b665a71e1 --- /dev/null +++ b/modules/io_opentracing_cpp/1.6.0/presubmit.yml @@ -0,0 +1,34 @@ +verify_linux_targets: + name: Verify linux build and test targets + platform: ${{ platform }} + matrix: + platform: + - debian10 + - ubuntu2004 + bazel: + - 7.x + - 6.x + shell_commands: + - ./ci/setup_linux_environment.sh + bazel: ${{ bazel }} + build_targets: + - '@io_opentracing_cpp//...' + test_targets: + - '@io_opentracing_cpp//...' +verify_osx_targets: + name: Verify osx build and test targets + platform: ${{ platform }} + matrix: + platform: + - macos + - macos_arm64 + bazel: + - 7.x + - 6.x + shell_commands: + - ./ci/setup_osx_environment.sh + bazel: ${{ bazel }} + build_targets: + - '@io_opentracing_cpp//...' + test_targets: + - '@io_opentracing_cpp//...' diff --git a/modules/io_opentracing_cpp/1.6.0/source.json b/modules/io_opentracing_cpp/1.6.0/source.json new file mode 100644 index 00000000000..ca74ccff3b2 --- /dev/null +++ b/modules/io_opentracing_cpp/1.6.0/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/opentracing/opentracing-cpp/archive/refs/tags/v1.6.0.tar.gz", + "integrity": "sha256-WxcAQtpNHEwjHfZZTaEgh1Qp1SMem6pReYIu6NEFSsM=", + "strip_prefix": "opentracing-cpp-1.6.0", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-cvGgNUsSk1Igso2vS6bcWAC9+kJZR70iTidZlfigLyQ=" + } +} diff --git a/modules/io_opentracing_cpp/metadata.json b/modules/io_opentracing_cpp/metadata.json new file mode 100644 index 00000000000..09f9eabb73e --- /dev/null +++ b/modules/io_opentracing_cpp/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/opentracing/opentracing-cpp", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:opentracing/opentracing-cpp" + ], + "versions": [ + "1.6.0" + ], + "yanked_versions": {} +} \ No newline at end of file From c4547d1696f1c4d25b59d303e47a4dc7a92156b6 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 08:04:51 +0100 Subject: [PATCH 03/62] rules_multitool@0.5.0 (#1642) Release: https://github.com/theoremlp/rules_multitool/releases/tag/v0.5.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Mark Elliot <123787712+mark-thm@users.noreply.github.com> --- modules/rules_multitool/0.5.0/MODULE.bazel | 17 +++++++++++++++++ modules/rules_multitool/0.5.0/presubmit.yml | 15 +++++++++++++++ modules/rules_multitool/0.5.0/source.json | 5 +++++ modules/rules_multitool/metadata.json | 3 ++- 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 modules/rules_multitool/0.5.0/MODULE.bazel create mode 100644 modules/rules_multitool/0.5.0/presubmit.yml create mode 100644 modules/rules_multitool/0.5.0/source.json diff --git a/modules/rules_multitool/0.5.0/MODULE.bazel b/modules/rules_multitool/0.5.0/MODULE.bazel new file mode 100644 index 00000000000..c67dca142a7 --- /dev/null +++ b/modules/rules_multitool/0.5.0/MODULE.bazel @@ -0,0 +1,17 @@ +"multitool" + +module( + name = "rules_multitool", + version = "0.5.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") + +# ensure toolchains get registered +multitool = use_extension("//multitool:extension.bzl", "multitool") +use_repo(multitool, "multitool") + +register_toolchains("@multitool//toolchains:all") diff --git a/modules/rules_multitool/0.5.0/presubmit.yml b/modules/rules_multitool/0.5.0/presubmit.yml new file mode 100644 index 00000000000..a90b2cabc28 --- /dev/null +++ b/modules/rules_multitool/0.5.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_multitool//...' diff --git a/modules/rules_multitool/0.5.0/source.json b/modules/rules_multitool/0.5.0/source.json new file mode 100644 index 00000000000..b7602ef7b61 --- /dev/null +++ b/modules/rules_multitool/0.5.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-pmB/ykKGkE7U6d2nOIrfbA58EqNptK9d0I2TXMS6gGA=", + "strip_prefix": "rules_multitool-0.5.0", + "url": "https://github.com/theoremlp/rules_multitool/releases/download/v0.5.0/rules_multitool-0.5.0.tar.gz" +} diff --git a/modules/rules_multitool/metadata.json b/modules/rules_multitool/metadata.json index 220bb9f1ce5..f19deeecabc 100644 --- a/modules/rules_multitool/metadata.json +++ b/modules/rules_multitool/metadata.json @@ -20,7 +20,8 @@ "0.1.1", "0.2.0", "0.3.0", - "0.4.0" + "0.4.0", + "0.5.0" ], "yanked_versions": {} } From d9a1816321de79d7f4ed87de157c5286e51e4d39 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:58:33 +0000 Subject: [PATCH 04/62] rules_uv@0.1.0 (#1644) Release: https://github.com/theoremlp/rules_uv/releases/tag/v0.1.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Mark Elliot <123787712+mark-thm@users.noreply.github.com> --- modules/rules_uv/0.1.0/MODULE.bazel | 19 +++++++++++++++++++ modules/rules_uv/0.1.0/presubmit.yml | 15 +++++++++++++++ modules/rules_uv/0.1.0/source.json | 5 +++++ modules/rules_uv/metadata.json | 22 ++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 modules/rules_uv/0.1.0/MODULE.bazel create mode 100644 modules/rules_uv/0.1.0/presubmit.yml create mode 100644 modules/rules_uv/0.1.0/source.json create mode 100644 modules/rules_uv/metadata.json diff --git a/modules/rules_uv/0.1.0/MODULE.bazel b/modules/rules_uv/0.1.0/MODULE.bazel new file mode 100644 index 00000000000..8937a475eba --- /dev/null +++ b/modules/rules_uv/0.1.0/MODULE.bazel @@ -0,0 +1,19 @@ +"rules_uv" + +module( + name = "rules_uv", + version = "0.1.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +# required for venv +bazel_dep(name = "rules_python", version = "0.31.0") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//uv/private:uv.lock.json") +use_repo(multitool, "multitool") diff --git a/modules/rules_uv/0.1.0/presubmit.yml b/modules/rules_uv/0.1.0/presubmit.yml new file mode 100644 index 00000000000..3a2a60fd70a --- /dev/null +++ b/modules/rules_uv/0.1.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_uv//..." diff --git a/modules/rules_uv/0.1.0/source.json b/modules/rules_uv/0.1.0/source.json new file mode 100644 index 00000000000..8f88cec9693 --- /dev/null +++ b/modules/rules_uv/0.1.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-D8SIrG2ag8lH8GaRn/0rEWgrjCHfqHXimyzubowizlk=", + "strip_prefix": "rules_uv-0.1.0", + "url": "https://github.com/theoremlp/rules_uv/releases/download/v0.1.0/rules_uv-0.1.0.tar.gz" +} diff --git a/modules/rules_uv/metadata.json b/modules/rules_uv/metadata.json new file mode 100644 index 00000000000..16ef4fab8a3 --- /dev/null +++ b/modules/rules_uv/metadata.json @@ -0,0 +1,22 @@ +{ + "homepage": "https://github.com/theoremlp/rules_uv", + "maintainers": [ + { + "email": "123787712+mark-thm@users.noreply.github.com", + "github": "mark-thm", + "name": "Mark Elliot" + }, + { + "email": "bazel-maintainers@theoremlp.com", + "github": "theoremlp", + "name": "Theorem Bazel Maintainers" + } + ], + "repository": [ + "github:theoremlp/rules_uv" + ], + "versions": [ + "0.1.0" + ], + "yanked_versions": {} +} From 9a567adb92d25d1ae13c8b5eb5b0611a890f8529 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:13:30 +0100 Subject: [PATCH 05/62] aws-in-a-box@0.0.51 (#1649) Release: https://github.com/dzbarsky/aws-in-a-box/releases/tag/v0.0.51 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: David Zbarsky --- modules/aws-in-a-box/0.0.51/MODULE.bazel | 26 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++++ modules/aws-in-a-box/0.0.51/presubmit.yml | 12 +++++++++ modules/aws-in-a-box/0.0.51/source.json | 9 +++++++ modules/aws-in-a-box/metadata.json | 3 ++- 5 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 modules/aws-in-a-box/0.0.51/MODULE.bazel create mode 100644 modules/aws-in-a-box/0.0.51/patches/module_dot_bazel_version.patch create mode 100644 modules/aws-in-a-box/0.0.51/presubmit.yml create mode 100644 modules/aws-in-a-box/0.0.51/source.json diff --git a/modules/aws-in-a-box/0.0.51/MODULE.bazel b/modules/aws-in-a-box/0.0.51/MODULE.bazel new file mode 100644 index 00000000000..3a473c4ab95 --- /dev/null +++ b/modules/aws-in-a-box/0.0.51/MODULE.bazel @@ -0,0 +1,26 @@ +module( + name = "aws-in-a-box", + version = "0.0.51", + compatibility_level = 1, +) + +bazel_dep(name = "rules_go", version = "0.44.0") +bazel_dep(name = "gazelle", version = "0.34.0") + +go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_aws_aws_sdk_go_v2", + "com_github_aws_aws_sdk_go_v2_service_dynamodb", + "com_github_aws_aws_sdk_go_v2_service_kinesis", + "com_github_aws_aws_sdk_go_v2_service_kms", + "com_github_aws_aws_sdk_go_v2_service_s3", + "com_github_aws_aws_sdk_go_v2_service_sqs", + "com_github_aws_smithy_go", + "com_github_fxamacker_cbor_v2", + "com_github_gofrs_uuid_v5", + "com_github_google_go_cmp", + "org_golang_x_exp", + "org_golang_x_net", +) diff --git a/modules/aws-in-a-box/0.0.51/patches/module_dot_bazel_version.patch b/modules/aws-in-a-box/0.0.51/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..b85d79906b0 --- /dev/null +++ b/modules/aws-in-a-box/0.0.51/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "aws-in-a-box", +- version = "0.0.41", ++ version = "0.0.51", + compatibility_level = 1, + ) + + bazel_dep(name = "rules_go", version = "0.44.0") diff --git a/modules/aws-in-a-box/0.0.51/presubmit.yml b/modules/aws-in-a-box/0.0.51/presubmit.yml new file mode 100644 index 00000000000..c13d1259fde --- /dev/null +++ b/modules/aws-in-a-box/0.0.51/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "." + matrix: + platform: ["debian10", "macos", "ubuntu2004"] + bazel: ["7.x"] + tasks: + run_tests: + name: "Run tests" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aws-in-a-box/0.0.51/source.json b/modules/aws-in-a-box/0.0.51/source.json new file mode 100644 index 00000000000..a3e4e86df91 --- /dev/null +++ b/modules/aws-in-a-box/0.0.51/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-NXzgqAaYGGl1g0t5PiJN0vsumc7wUkwuRBxkw80fQ+Q=", + "strip_prefix": "aws-in-a-box-0.0.51", + "url": "https://github.com/dzbarsky/aws-in-a-box/releases/download/v0.0.51/aws-in-a-box-v0.0.51.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-EWBWO/iZb23K7wx3vXUNBzPTY1e9FJhr0j9JCR9z1pw=" + }, + "patch_strip": 1 +} diff --git a/modules/aws-in-a-box/metadata.json b/modules/aws-in-a-box/metadata.json index 9930955b1d7..fcd18581d70 100644 --- a/modules/aws-in-a-box/metadata.json +++ b/modules/aws-in-a-box/metadata.json @@ -14,7 +14,8 @@ "0.0.43", "0.0.44", "0.0.48", - "0.0.49" + "0.0.49", + "0.0.51" ], "yanked_versions": {} } From 88c1045377955dacade52a30c0b7732c2d0d7044 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 00:58:53 +0000 Subject: [PATCH 06/62] toolchains_protoc@0.2.0 (#1650) Release: https://github.com/alexeagle/toolchains_protoc/releases/tag/v0.2.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/toolchains_protoc/0.2.0/MODULE.bazel | 52 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++ modules/toolchains_protoc/0.2.0/presubmit.yml | 12 +++++ modules/toolchains_protoc/0.2.0/source.json | 9 ++++ modules/toolchains_protoc/metadata.json | 17 ++++++ 5 files changed, 104 insertions(+) create mode 100644 modules/toolchains_protoc/0.2.0/MODULE.bazel create mode 100644 modules/toolchains_protoc/0.2.0/patches/module_dot_bazel_version.patch create mode 100644 modules/toolchains_protoc/0.2.0/presubmit.yml create mode 100644 modules/toolchains_protoc/0.2.0/source.json create mode 100644 modules/toolchains_protoc/metadata.json diff --git a/modules/toolchains_protoc/0.2.0/MODULE.bazel b/modules/toolchains_protoc/0.2.0/MODULE.bazel new file mode 100644 index 00000000000..ccf9594ee02 --- /dev/null +++ b/modules/toolchains_protoc/0.2.0/MODULE.bazel @@ -0,0 +1,52 @@ +"Bazel dependencies" + +module( + name = "toolchains_protoc", + version = "0.2.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "rules_proto", version = "6.0.0-rc2") +bazel_dep(name = "platforms", version = "0.0.8") + +protoc = use_extension("//protoc:extensions.bzl", "protoc") +protoc.toolchain( + google_protobuf = "com_google_protobuf", + version = "v25.3", +) +use_repo(protoc, "com_google_protobuf", "toolchains_protoc_hub") + +register_toolchains("@toolchains_protoc_hub//:all") + +bazel_dep(name = "aspect_bazel_lib", version = "1.32.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) +bazel_dep(name = "aspect_rules_py", version = "0.7.1", dev_dependency = True) +bazel_dep(name = "rules_java", version = "7.4.0", dev_dependency = True) +bazel_dep(name = "rules_python", version = "0.31.0", dev_dependency = True) + +# # Update to include +# https://github.com/bazelbuild/rules_python/pull/1577 +git_override( + module_name = "rules_python", + commit = "3edcae33dcc43051ca6f200c2d0cb3692df79d03", + remote = "https://github.com/bazelbuild/rules_python.git", +) + +register_toolchains( + "//examples/lang_toolchains:all", + dev_dependency = True, +) + +# Shows how a typical Python user fetches all the dependencies of their app, including the protobuf runtime +pip = use_extension( + "@rules_python//python/extensions:pip.bzl", + "pip", + dev_dependency = True, +) +pip.parse( + hub_name = "pypi", + python_version = "3.11", + requirements_lock = "//examples/lang_toolchains:requirements.txt", +) +use_repo(pip, "pypi") diff --git a/modules/toolchains_protoc/0.2.0/patches/module_dot_bazel_version.patch b/modules/toolchains_protoc/0.2.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..11de6ebfbe9 --- /dev/null +++ b/modules/toolchains_protoc/0.2.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "toolchains_protoc", +- version = "0.0.0", ++ version = "0.2.0", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.1") diff --git a/modules/toolchains_protoc/0.2.0/presubmit.yml b/modules/toolchains_protoc/0.2.0/presubmit.yml new file mode 100644 index 00000000000..508ee119a57 --- /dev/null +++ b/modules/toolchains_protoc/0.2.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/toolchains_protoc/0.2.0/source.json b/modules/toolchains_protoc/0.2.0/source.json new file mode 100644 index 00000000000..b7360d1f298 --- /dev/null +++ b/modules/toolchains_protoc/0.2.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-5sKjihb3nV8vg+QmdxXQ9ISXfBP8uO/HMmfJmKwI6DE=", + "strip_prefix": "toolchains_protoc-0.2.0", + "url": "https://github.com/alexeagle/toolchains_protoc/releases/download/v0.2.0/toolchains_protoc-v0.2.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-HQkPTHRO+AOjPzmtpfXsFzlp66NHKbGkTQO3oBmDysU=" + }, + "patch_strip": 1 +} diff --git a/modules/toolchains_protoc/metadata.json b/modules/toolchains_protoc/metadata.json new file mode 100644 index 00000000000..99fc9cf3cec --- /dev/null +++ b/modules/toolchains_protoc/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/alexeagle/toolchains_protoc", + "maintainers": [ + { + "email": "alex@aspect.dev", + "github": "alexeagle", + "name": "Alex Eagle" + } + ], + "repository": [ + "github:alexeagle/toolchains_protoc" + ], + "versions": [ + "0.2.0" + ], + "yanked_versions": {} +} From 24ba63fdf2bddb996a4e8536f32a3cd88b3ed0c7 Mon Sep 17 00:00:00 2001 From: satreix Date: Tue, 19 Mar 2024 02:29:23 +0000 Subject: [PATCH 07/62] fix: fmt module include (#1647) Closes https://github.com/bazelbuild/bazel-central-registry/issues/1537 I tried these changes successfully in https://github.com/satreix/everest/pull/770 with `--registry=file://` and this `fmt@10.2.1.bcr.1` version. --- modules/fmt/10.2.1.bcr.1/MODULE.bazel | 5 +++++ .../10.2.1.bcr.1/patches/add_build_file.patch | 19 +++++++++++++++++++ .../patches/module_dot_bazel.patch | 8 ++++++++ modules/fmt/10.2.1.bcr.1/presubmit.yml | 18 ++++++++++++++++++ modules/fmt/10.2.1.bcr.1/source.json | 10 ++++++++++ modules/fmt/metadata.json | 3 ++- 6 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 modules/fmt/10.2.1.bcr.1/MODULE.bazel create mode 100644 modules/fmt/10.2.1.bcr.1/patches/add_build_file.patch create mode 100644 modules/fmt/10.2.1.bcr.1/patches/module_dot_bazel.patch create mode 100644 modules/fmt/10.2.1.bcr.1/presubmit.yml create mode 100644 modules/fmt/10.2.1.bcr.1/source.json diff --git a/modules/fmt/10.2.1.bcr.1/MODULE.bazel b/modules/fmt/10.2.1.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..ac10f4bef60 --- /dev/null +++ b/modules/fmt/10.2.1.bcr.1/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "fmt", + version = "10.2.1.bcr.1", + compatibility_level = 10, +) diff --git a/modules/fmt/10.2.1.bcr.1/patches/add_build_file.patch b/modules/fmt/10.2.1.bcr.1/patches/add_build_file.patch new file mode 100644 index 00000000000..5d041d22dc4 --- /dev/null +++ b/modules/fmt/10.2.1.bcr.1/patches/add_build_file.patch @@ -0,0 +1,19 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,16 @@ ++package(default_visibility = ["//visibility:public"]) ++ ++licenses(["notice"]) ++ ++cc_library( ++ name = "fmt", ++ srcs = [ ++ "src/format.cc", ++ "src/os.cc", ++ ], ++ hdrs = glob([ ++ "include/fmt/*.h", ++ ]), ++ includes = ["include"], ++ strip_include_prefix = "include", # workaround: only needed on some macOS systems (see https://github.com/bazelbuild/bazel-central-registry/issues/1537) ++) diff --git a/modules/fmt/10.2.1.bcr.1/patches/module_dot_bazel.patch b/modules/fmt/10.2.1.bcr.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..efc26521fb9 --- /dev/null +++ b/modules/fmt/10.2.1.bcr.1/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "fmt", ++ version = "10.2.1.bcr.1", ++ compatibility_level = 10, ++) diff --git a/modules/fmt/10.2.1.bcr.1/presubmit.yml b/modules/fmt/10.2.1.bcr.1/presubmit.yml new file mode 100644 index 00000000000..6e5b3881200 --- /dev/null +++ b/modules/fmt/10.2.1.bcr.1/presubmit.yml @@ -0,0 +1,18 @@ +matrix: + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - windows + bazel: [6.x, 7.x] + +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@fmt//:fmt' diff --git a/modules/fmt/10.2.1.bcr.1/source.json b/modules/fmt/10.2.1.bcr.1/source.json new file mode 100644 index 00000000000..c14af84b5c1 --- /dev/null +++ b/modules/fmt/10.2.1.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-MSFRotE8gyf1ycWGrGz3zdwWWOj1Ptrg7FZQnI+lFsk=", + "patch_strip": 0, + "patches": { + "add_build_file.patch": "sha256-lm5/rkEpiPMHzN3BCTviKTSEJ6dSaQdF+NM6Rt8N7xQ=", + "module_dot_bazel.patch": "sha256-P0Xo4YTKo1Oc1UixL0f6oVETrUDI4VbpL4qSHeblQ3s=" + }, + "strip_prefix": "fmt-10.2.1", + "url": "https://github.com/fmtlib/fmt/releases/download/10.2.1/fmt-10.2.1.zip" +} diff --git a/modules/fmt/metadata.json b/modules/fmt/metadata.json index ba23664eced..ac183483fa4 100644 --- a/modules/fmt/metadata.json +++ b/modules/fmt/metadata.json @@ -17,7 +17,8 @@ "10.1.0", "10.1.1", "10.2.0", - "10.2.1" + "10.2.1", + "10.2.1.bcr.1" ], "yanked_versions": {} } \ No newline at end of file From 831a94b01b379666231aafded9114a82d760cde7 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:02:49 -0700 Subject: [PATCH 08/62] toolchains_protoc@0.2.1 (#1651) --- modules/toolchains_protoc/0.2.1/MODULE.bazel | 52 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++ modules/toolchains_protoc/0.2.1/presubmit.yml | 12 +++++ modules/toolchains_protoc/0.2.1/source.json | 9 ++++ modules/toolchains_protoc/metadata.json | 3 +- 5 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 modules/toolchains_protoc/0.2.1/MODULE.bazel create mode 100644 modules/toolchains_protoc/0.2.1/patches/module_dot_bazel_version.patch create mode 100644 modules/toolchains_protoc/0.2.1/presubmit.yml create mode 100644 modules/toolchains_protoc/0.2.1/source.json diff --git a/modules/toolchains_protoc/0.2.1/MODULE.bazel b/modules/toolchains_protoc/0.2.1/MODULE.bazel new file mode 100644 index 00000000000..8f16b8eaab6 --- /dev/null +++ b/modules/toolchains_protoc/0.2.1/MODULE.bazel @@ -0,0 +1,52 @@ +"Bazel dependencies" + +module( + name = "toolchains_protoc", + version = "0.2.1", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "rules_proto", version = "6.0.0-rc2") +bazel_dep(name = "platforms", version = "0.0.8") + +protoc = use_extension("//protoc:extensions.bzl", "protoc") +protoc.toolchain( + google_protobuf = "com_google_protobuf", + version = "v25.3", +) +use_repo(protoc, "com_google_protobuf", "toolchains_protoc_hub") + +register_toolchains("@toolchains_protoc_hub//:all") + +bazel_dep(name = "aspect_bazel_lib", version = "1.32.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) +bazel_dep(name = "aspect_rules_py", version = "0.7.1", dev_dependency = True) +bazel_dep(name = "rules_java", version = "7.4.0", dev_dependency = True) +bazel_dep(name = "rules_python", version = "0.31.0", dev_dependency = True) + +# # Update to include +# https://github.com/bazelbuild/rules_python/pull/1577 +git_override( + module_name = "rules_python", + commit = "3edcae33dcc43051ca6f200c2d0cb3692df79d03", + remote = "https://github.com/bazelbuild/rules_python.git", +) + +register_toolchains( + "//examples/lang_toolchains:all", + dev_dependency = True, +) + +# Shows how a typical Python user fetches all the dependencies of their app, including the protobuf runtime +pip = use_extension( + "@rules_python//python/extensions:pip.bzl", + "pip", + dev_dependency = True, +) +pip.parse( + hub_name = "pypi", + python_version = "3.11", + requirements_lock = "//examples/lang_toolchains:requirements.txt", +) +use_repo(pip, "pypi") diff --git a/modules/toolchains_protoc/0.2.1/patches/module_dot_bazel_version.patch b/modules/toolchains_protoc/0.2.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e944511f06c --- /dev/null +++ b/modules/toolchains_protoc/0.2.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "toolchains_protoc", +- version = "0.0.0", ++ version = "0.2.1", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.1") diff --git a/modules/toolchains_protoc/0.2.1/presubmit.yml b/modules/toolchains_protoc/0.2.1/presubmit.yml new file mode 100644 index 00000000000..508ee119a57 --- /dev/null +++ b/modules/toolchains_protoc/0.2.1/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/toolchains_protoc/0.2.1/source.json b/modules/toolchains_protoc/0.2.1/source.json new file mode 100644 index 00000000000..bcdcd78a4ff --- /dev/null +++ b/modules/toolchains_protoc/0.2.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-sxLm3mSF4B91PLh/oJtBk/F2JZMUF5DdCpCr9eUgsdc=", + "strip_prefix": "toolchains_protoc-0.2.1", + "url": "https://github.com/alexeagle/toolchains_protoc/releases/download/v0.2.1/toolchains_protoc-v0.2.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-e6awp9mKvoRfg3Zq+xppjZTfJLRsQdVrDkNUfd7ft9Q=" + }, + "patch_strip": 1 +} diff --git a/modules/toolchains_protoc/metadata.json b/modules/toolchains_protoc/metadata.json index 99fc9cf3cec..25293690e66 100644 --- a/modules/toolchains_protoc/metadata.json +++ b/modules/toolchains_protoc/metadata.json @@ -11,7 +11,8 @@ "github:alexeagle/toolchains_protoc" ], "versions": [ - "0.2.0" + "0.2.0", + "0.2.1" ], "yanked_versions": {} } From 3cb88af46d1a2eba9e1099ab3ae87d76de8f76a0 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 19 Mar 2024 11:49:37 +0100 Subject: [PATCH 09/62] prometheus-cpp@1.2.4 (#1637) Release: https://github.com/jupp0r/prometheus-cpp/releases/tag/v1.2.4 --- modules/prometheus-cpp/1.2.4/MODULE.bazel | 19 +++++++++++++++++++ modules/prometheus-cpp/1.2.4/presubmit.yml | 19 +++++++++++++++++++ modules/prometheus-cpp/1.2.4/source.json | 5 +++++ modules/prometheus-cpp/metadata.json | 22 ++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 modules/prometheus-cpp/1.2.4/MODULE.bazel create mode 100644 modules/prometheus-cpp/1.2.4/presubmit.yml create mode 100644 modules/prometheus-cpp/1.2.4/source.json create mode 100644 modules/prometheus-cpp/metadata.json diff --git a/modules/prometheus-cpp/1.2.4/MODULE.bazel b/modules/prometheus-cpp/1.2.4/MODULE.bazel new file mode 100644 index 00000000000..3d79069fa17 --- /dev/null +++ b/modules/prometheus-cpp/1.2.4/MODULE.bazel @@ -0,0 +1,19 @@ +module( + name = "prometheus-cpp", + version = "1.2.4", + repo_name = "com_github_jupp0r_prometheus_cpp", +) + +data_deps_ext = use_extension("//bazel:repositories.bzl", "data_deps_ext") +use_repo( + data_deps_ext, + "civetweb", + "com_github_curl", +) + +bazel_dep(name = "boringssl", version = "0.0.0-20230215-5c22014") +bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") +bazel_dep(name = "googletest", version = "1.12.1", dev_dependency = True, repo_name = "com_google_googletest") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "zlib", version = "1.3") diff --git a/modules/prometheus-cpp/1.2.4/presubmit.yml b/modules/prometheus-cpp/1.2.4/presubmit.yml new file mode 100644 index 00000000000..3b817519f50 --- /dev/null +++ b/modules/prometheus-cpp/1.2.4/presubmit.yml @@ -0,0 +1,19 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@prometheus-cpp//core' + - '@prometheus-cpp//pull' + - '@prometheus-cpp//push' diff --git a/modules/prometheus-cpp/1.2.4/source.json b/modules/prometheus-cpp/1.2.4/source.json new file mode 100644 index 00000000000..ad479eb8748 --- /dev/null +++ b/modules/prometheus-cpp/1.2.4/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/jupp0r/prometheus-cpp/releases/download/v1.2.4/prometheus-cpp-with-submodules.tar.gz", + "integrity": "sha256-DWhSKRBjw1hT6IgFxztS9zwMCLeMHnvE1Yj89ypxcus=", + "strip_prefix": "prometheus-cpp-with-submodules" +} diff --git a/modules/prometheus-cpp/metadata.json b/modules/prometheus-cpp/metadata.json new file mode 100644 index 00000000000..7409bcb704a --- /dev/null +++ b/modules/prometheus-cpp/metadata.json @@ -0,0 +1,22 @@ +{ + "homepage": "https://github.com/jupp0r/prometheus-cpp", + "maintainers": [ + { + "email": "gjasny@googlemail.com", + "github": "gjasny", + "name": "Gregor Jasny" + }, + { + "email": "jupp0r@gmail.com", + "github": "jupp0r", + "name": "Jupp Mueller" + } + ], + "repository": [ + "github:jupp0r/prometheus-cpp" + ], + "versions": [ + "1.2.4" + ], + "yanked_versions": {} +} From ce424ccd89c42386dbabc73eb0523255220689d3 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:16:36 -0400 Subject: [PATCH 10/62] aspect_rules_js@1.39.0 (#1652) Release: https://github.com/aspect-build/rules_js/releases/tag/v1.39.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Jason Bedard --- modules/aspect_rules_js/1.39.0/MODULE.bazel | 244 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 + modules/aspect_rules_js/1.39.0/presubmit.yml | 12 + modules/aspect_rules_js/1.39.0/source.json | 9 + modules/aspect_rules_js/metadata.json | 3 +- 5 files changed, 281 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_js/1.39.0/MODULE.bazel create mode 100644 modules/aspect_rules_js/1.39.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_js/1.39.0/presubmit.yml create mode 100644 modules/aspect_rules_js/1.39.0/source.json diff --git a/modules/aspect_rules_js/1.39.0/MODULE.bazel b/modules/aspect_rules_js/1.39.0/MODULE.bazel new file mode 100644 index 00000000000..9ade03ef04d --- /dev/null +++ b/modules/aspect_rules_js/1.39.0/MODULE.bazel @@ -0,0 +1,244 @@ +"aspect-build/rules_js" + +module( + name = "aspect_rules_js", + version = "1.39.0", + compatibility_level = 1, +) + +# Lower-bounds for runtime dependencies. +# Do not bump these unless rules_js requires a newer version to function. +bazel_dep(name = "aspect_bazel_lib", version = "1.40.3") +bazel_dep(name = "aspect_rules_lint", version = "0.12.0") +bazel_dep(name = "bazel_features", version = "0.1.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") + +# Keep v5 in to avoid breaking changes. +# TODO(2.0): change minimum to v6 +bazel_dep(name = "rules_nodejs", version = "5.8.2") + +# Override rules_nodejs to v6 to test the latest and recommended version internally. +single_version_override( + module_name = "rules_nodejs", + version = "6.0.5", +) + +bazel_dep(name = "platforms", version = "0.0.5") + +node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") +use_repo(node, "nodejs_darwin_amd64") +use_repo(node, "nodejs_darwin_arm64") +use_repo(node, "nodejs_linux_amd64") +use_repo(node, "nodejs_linux_arm64") +use_repo(node, "nodejs_linux_ppc64le") +use_repo(node, "nodejs_linux_s390x") +use_repo(node, "nodejs_windows_amd64") + +pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") +pnpm.pnpm( + name = "pnpm", + pnpm_version = "8.6.7", + pnpm_version_integrity = "sha512-vRIWpD/L4phf9Bk2o/O2TDR8fFoJnpYrp2TKqTIZF/qZ2/rgL3qKXzHofHgbXsinwMoSEigz28sqk3pQ+yMEQQ==", +) +use_repo(pnpm, "pnpm", "pnpm__links") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +use_repo(bazel_lib_toolchains, "coreutils_toolchains") +use_repo(bazel_lib_toolchains, "yq_darwin_amd64") +use_repo(bazel_lib_toolchains, "yq_darwin_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_amd64") +use_repo(bazel_lib_toolchains, "yq_linux_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_ppc64le") +use_repo(bazel_lib_toolchains, "yq_linux_s390x") +use_repo(bazel_lib_toolchains, "yq_windows_amd64") + +####### Dev dependencies ######## + +bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "rules_go", version = "0.41.0", dev_dependency = True) + +host = use_extension( + "@aspect_bazel_lib//lib:extensions.bzl", + "host", + dev_dependency = True, +) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +node_dev = use_extension( + "@rules_nodejs//nodejs:extensions.bzl", + "node", + dev_dependency = True, +) +use_repo(node_dev, "nodejs_toolchains") +use_repo(node_dev, "node20_linux_amd64") +use_repo(node_dev, "node20_darwin_arm64") +use_repo(node_dev, "node20_darwin_amd64") +use_repo(node_dev, "node20_linux_arm64") +use_repo(node_dev, "node20_linux_s390x") +use_repo(node_dev, "node20_linux_ppc64le") +use_repo(node_dev, "node20_windows_amd64") +use_repo(node_dev, "node18_linux_amd64") +use_repo(node_dev, "node18_darwin_arm64") +use_repo(node_dev, "node18_darwin_amd64") +use_repo(node_dev, "node18_linux_arm64") +use_repo(node_dev, "node18_linux_s390x") +use_repo(node_dev, "node18_linux_ppc64le") +use_repo(node_dev, "node18_windows_amd64") +use_repo(node_dev, "node16_linux_amd64") +use_repo(node_dev, "node16_darwin_arm64") +use_repo(node_dev, "node16_darwin_amd64") +use_repo(node_dev, "node16_linux_arm64") +use_repo(node_dev, "node16_linux_s390x") +use_repo(node_dev, "node16_linux_ppc64le") +use_repo(node_dev, "node16_windows_amd64") +node_dev.toolchain(node_version = "16.14.2") +node_dev.toolchain( + name = "node16", + node_version = "16.13.1", +) +node_dev.toolchain( + name = "node18", + node_version = "18.13.0", +) +node_dev.toolchain( + name = "node20", + node_version = "20.11.1", +) + +############################################ +# npm dependencies used by examples + +npm = use_extension( + "@aspect_rules_js//npm:extensions.bzl", + "npm", + dev_dependency = True, +) +npm.npm_translate_lock( + name = "npm", + bins = { + # derived from "bin" attribute in node_modules/typescript/package.json + "typescript": [ + "tsc=./bin/tsc", + "tsserver=./bin/tsserver", + ], + }, + custom_postinstalls = { + "@aspect-test/c": "echo moo > cow.txt", + "@aspect-test/c@2.0.2": "echo mooo >> cow.txt", + }, + data = [ + "//:examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch", + "//:package.json", + "//:pnpm-workspace.yaml", + "//examples/js_binary:package.json", + "//examples/macro:package.json", + "//examples/npm_deps:package.json", + "//examples/npm_package/libs/lib_a:package.json", + "//examples/npm_package/packages/pkg_a:package.json", + "//examples/npm_package/packages/pkg_b:package.json", + "//examples/webpack_cli:package.json", + "//js/private/coverage/bundle:package.json", + "//js/private/worker/src:package.json", + "//npm/private/test:package.json", + "//npm/private/test:vendored/lodash-4.17.21.tgz", + "//npm/private/test/npm_package:package.json", + "//npm/private/test/vendored/is-odd:package.json", + "//npm/private/test/vendored/semver-max:package.json", + ], + generate_bzl_library_targets = True, + lifecycle_hooks = { + # We fetch @kubernetes/client-node from source and it has a `prepare` lifecycle hook that needs to be run + # which runs the `build` package.json script: https://github.com/kubernetes-client/javascript/blob/fc681991e61c6808dd26012a2331f83671a11218/package.json#L28. + # Here we run run build so we just run `tsc` instead of `npm run build` which ends up just running `tsc`. + "@kubernetes/client-node": ["build"], + # 'install' hook fails as it assumes the following path to `node-pre-gyp`: ./node_modules/.bin/node-pre-gyp + # https://github.com/stultuss/protoc-gen-grpc-ts/blob/53d52a9d0e1fe3cbe930dec5581eca89b3dde807/package.json#L28 + "protoc-gen-grpc@2.0.3": [], + }, + lifecycle_hooks_execution_requirements = { + "*": [ + "no-sandbox", + ], + # If @kubernetes/client-node is not sandboxed, will fail with + # ``` + # src/azure_auth.ts(97,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/azure_auth.ts(98,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(93,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(94,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # ``` + # since a `jsonpath-plus@7.2.0` that is newer then the transitive dep `jsonpath-plus@0.19.0` is found outside of the sandbox that + # includes typings that don't match the 0.19.0 "any" usage. + "@kubernetes/client-node": [], + "@figma/nodegit": [ + "no-sandbox", + "requires-network", + ], + "esbuild": [ + "no-sandbox", + "requires-network", + ], + "segfault-handler": [ + "no-sandbox", + "requires-network", + ], + "puppeteer": [ + "no-sandbox", + "requires-network", + ], + }, + npmrc = "//:.npmrc", + package_visibility = { + "unused": ["//visibility:private"], + "@mycorp/pkg-a": ["//examples:__subpackages__"], + }, + patch_args = { + "*": ["-p1"], + }, + patches = { + "meaning-of-life@1.0.0": ["//examples/npm_deps:patches/meaning-of-life@1.0.0-after_pnpm.patch"], + }, + pnpm_lock = "//:pnpm-lock.yaml", + public_hoist_packages = { + # Instructs the linker to hoist the ms@2.1.3 npm package to `node_modules/ms` in the `examples/npm_deps` package. + # Similar to adding `public-hoist-pattern[]=ms` in .npmrc but with control over which version to hoist and where + # to hoist it. This hoisted package can be referenced by the label `//examples/npm_deps:node_modules/ms` same as + # other direct dependencies in the `examples/npm_deps/package.json`. + "ms@2.1.3": ["examples/npm_deps"], + }, + replace_packages = { + "chalk@5.0.1": "@chalk_501//:pkg", + }, + update_pnpm_lock = True, + verify_node_modules_ignored = "//:.bazelignore", + verify_patches = "//examples/npm_deps/patches:patches", +) +use_repo(npm, "npm", "npm__rollup__2.70.2", "npm__webpack-bundle-analyzer__4.5.0__bufferutil_4.0.7") + +# As an example, manually import a package using explicit coordinates. +# Just a demonstration of the syntax de-sugaring. +npm.npm_import( + name = "acorn__8.4.0", + bins = {"acorn": "./bin/acorn"}, + integrity = "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + package = "acorn", + # Root package where to link the virtual store + root_package = "", + version = "8.4.0", +) +use_repo(npm, "acorn__8.4.0") +use_repo(npm, "acorn__8.4.0__links") + +# Used by formatter +go_sdk = use_extension( + "@rules_go//go:extensions.bzl", + "go_sdk", + dev_dependency = True, +) +go_sdk.download( + name = "go_sdk", + version = "1.20.3", +) +use_repo(go_sdk, "go_sdk") diff --git a/modules/aspect_rules_js/1.39.0/patches/module_dot_bazel_version.patch b/modules/aspect_rules_js/1.39.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..3197823d8c3 --- /dev/null +++ b/modules/aspect_rules_js/1.39.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/rules_js" + + module( + name = "aspect_rules_js", +- version = "0.0.0", ++ version = "1.39.0", + compatibility_level = 1, + ) + + # Lower-bounds for runtime dependencies. diff --git a/modules/aspect_rules_js/1.39.0/presubmit.yml b/modules/aspect_rules_js/1.39.0/presubmit.yml new file mode 100644 index 00000000000..33f56fee944 --- /dev/null +++ b/modules/aspect_rules_js/1.39.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/bzlmod' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004', 'windows'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_js/1.39.0/source.json b/modules/aspect_rules_js/1.39.0/source.json new file mode 100644 index 00000000000..6b18b5978fe --- /dev/null +++ b/modules/aspect_rules_js/1.39.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-YUgYjPpct2OXuHRbcdV8R6fBqOAP8vHi55VSBoRhl/E=", + "strip_prefix": "rules_js-1.39.0", + "url": "https://github.com/aspect-build/rules_js/releases/download/v1.39.0/rules_js-v1.39.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-G5M/8u+DRrFD+L7N7gVW16xT9ZYQaZIbQWVfEMrxbLk=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_js/metadata.json b/modules/aspect_rules_js/metadata.json index c592cb81f82..08611b22e31 100644 --- a/modules/aspect_rules_js/metadata.json +++ b/modules/aspect_rules_js/metadata.json @@ -90,7 +90,8 @@ "1.36.1", "1.37.0", "1.37.1", - "1.38.0" + "1.38.0", + "1.39.0" ], "yanked_versions": {} } From 53f48aff5e16cbc984be565563f9869df19d700f Mon Sep 17 00:00:00 2001 From: Luke Aguilar Date: Wed, 20 Mar 2024 19:54:13 +1100 Subject: [PATCH 11/62] XZ updates for linux arm support (#1576) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @thesayyn I've moved your work to a new module revision as we don't want to modify already released versions on the BCR. Your work looks great, I also added linux arm to the ci/cd testing so it should pass that too now, and we will know for the future if something breaks linux arm support! Feel free to PR into my branch if any further changes are needed so they come through this PR, or I can add you to my BCR repo fork if needed👍 --------- Co-authored-by: Sahin Yort --- modules/xz/5.4.5.bcr.1/MODULE.bazel | 7 + modules/xz/5.4.5.bcr.1/patches/patch.diff | 5372 +++++++++++++++++++++ modules/xz/5.4.5.bcr.1/presubmit.yml | 30 + modules/xz/5.4.5.bcr.1/source.json | 9 + modules/xz/metadata.json | 3 +- 5 files changed, 5420 insertions(+), 1 deletion(-) create mode 100644 modules/xz/5.4.5.bcr.1/MODULE.bazel create mode 100644 modules/xz/5.4.5.bcr.1/patches/patch.diff create mode 100644 modules/xz/5.4.5.bcr.1/presubmit.yml create mode 100644 modules/xz/5.4.5.bcr.1/source.json diff --git a/modules/xz/5.4.5.bcr.1/MODULE.bazel b/modules/xz/5.4.5.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..c2c0d125fca --- /dev/null +++ b/modules/xz/5.4.5.bcr.1/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "xz", + version = "5.4.5.bcr.1", +) + +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "bazel_skylib", version = "1.5.0") diff --git a/modules/xz/5.4.5.bcr.1/patches/patch.diff b/modules/xz/5.4.5.bcr.1/patches/patch.diff new file mode 100644 index 00000000000..18641cb9aab --- /dev/null +++ b/modules/xz/5.4.5.bcr.1/patches/patch.diff @@ -0,0 +1,5372 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 0000000..0cd0bfe +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,372 @@ ++# Description ++# lzma is a general purpose data compression library https://tukaani.org/xz/ ++# Public Domain ++ ++load("@bazel_skylib//lib:selects.bzl", "selects") ++load("@bazel_skylib//rules:copy_file.bzl", "copy_file") ++load("@bazel_skylib//rules:expand_template.bzl", "expand_template") ++load("//:tools.bzl", "multi_test") ++ ++package(default_visibility = ["//visibility:private"]) ++ ++config_setting( ++ name = "osx_arm64", ++ constraint_values = [ ++ "@platforms//os:osx", ++ "@platforms//cpu:aarch64", ++ ], ++) ++ ++config_setting( ++ name = "osx_x86_64", ++ constraint_values = [ ++ "@platforms//os:osx", ++ "@platforms//cpu:x86_64", ++ ], ++) ++ ++config_setting( ++ name = "linux_arm64", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:aarch64", ++ ], ++) ++ ++config_setting( ++ name = "linux_x86_64", ++ constraint_values = [ ++ "@platforms//os:linux", ++ "@platforms//cpu:x86_64", ++ ], ++) ++ ++expand_template( ++ name = "config_linux_arm64", ++ out = "config.lzma-linux-arm64.h", ++ substitutions = { ++ "{HAVE_IMMINTRIN_H}": "#undef HAVE_IMMINTRIN_H", ++ "{HAVE_CPUID_H}": "#undef HAVE_CPUID_H", ++ "{HAVE_USABLE_CLMUL}": "#undef HAVE_USABLE_CLMUL", ++ }, ++ template = "config.lzma-linux.h", ++) ++ ++expand_template( ++ name = "config_linux_x86_64", ++ out = "config.lzma-linux-x86_64.h", ++ substitutions = { ++ "{HAVE_IMMINTRIN_H}": """\ ++#if defined __has_include ++ #if __has_include () ++ #define HAVE_IMMINTRIN_H 1 ++ #endif ++#endif""", ++ "{HAVE_CPUID_H}": "#define HAVE_CPUID_H 1", ++ "{HAVE_USABLE_CLMUL}": "#define HAVE_USABLE_CLMUL 1", ++ }, ++ template = "config.lzma-linux.h", ++) ++ ++copy_file( ++ name = "copy_config", ++ src = selects.with_or({ ++ "@platforms//os:android": "config.lzma-android.h", ++ ":linux_arm64": "config.lzma-linux-arm64.h", ++ ":linux_x86_64": "config.lzma-linux-x86_64.h", ++ ":osx_arm64": "config.lzma-osx-arm64.h", ++ ":osx_x86_64": "config.lzma-osx-x86_64.h", ++ ("@platforms//os:ios", "@platforms//os:watchos", "@platforms//os:tvos"): "apple_config", ++ "@platforms//os:windows": "config.lzma-windows.h", ++ }), ++ out = "src/liblzma/api/config.h", # minimize the number of exported include paths ++) ++ ++# Configuration is the same across iOS, watchOS, and tvOS ++alias( ++ name = "apple_config", ++ actual = select({ ++ "@platforms//cpu:arm64": "config.lzma-ios-arm64.h", ++ "@platforms//cpu:armv7": "config.lzma-ios-armv7.h", ++ "@platforms//cpu:x86_64": "config.lzma-osx-x86_64.h", # Configuration same as macOS ++ "@platforms//cpu:x86_32": "config.lzma-ios-i386.h", ++ }), ++) ++ ++# Note: lzma is bundled with Apple platforms, but sadly, not considered public API because its header is not exposed. lzma is not bundled on Android. ++ ++cc_library( ++ name = "lzma", ++ srcs = [ ++ "src/common/tuklib_cpucores.c", ++ "src/common/tuklib_physmem.c", ++ ] + glob( ++ [ ++ "src/**/*.h", ++ "src/liblzma/**/*.c", ++ ], ++ exclude = [ ++ "src/liblzma/check/crc*_small.c", ++ "src/liblzma/**/*_tablegen.c", ++ ], ++ ), ++ hdrs = [ ++ "src/liblzma/api/lzma.h", # Publicly exported header ++ ], ++ copts = select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": ["-std=c99"], ++ }), ++ defines = select({ ++ "@platforms//os:windows": ["LZMA_API_STATIC"], ++ "//conditions:default": [], ++ }), ++ linkopts = select({ ++ "@platforms//os:android": [], ++ "//conditions:default": ["-lpthread"], ++ }), ++ linkstatic = select({ ++ "@platforms//os:windows": True, ++ "//conditions:default": False, ++ }), ++ strip_include_prefix = "src/liblzma/api", # Allows public header without the path and without COPTS -I or includes = [] ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:lzma_src_common", ++ "//:lzma_src_liblzma", ++ "//:lzma_src_liblzma_api", ++ "//:lzma_src_liblzma_check", ++ "//:lzma_src_liblzma_common", ++ "//:lzma_src_liblzma_delta", ++ "//:lzma_src_liblzma_lz", ++ "//:lzma_src_liblzma_lzma", ++ "//:lzma_src_liblzma_rangecoder", ++ "//:lzma_src_liblzma_simpler", ++ ], ++) ++ ++cc_binary( ++ name = "xz", ++ srcs = glob( ++ ["src/xz/*.c"], ++ # exclude = ["src/xz/list.c"], # TODO Conditional this? ++ ) + [ ++ "src/common/tuklib_mbstr_fw.c", ++ "src/common/tuklib_mbstr_width.c", ++ "src/common/tuklib_open_stdxxx.c", ++ ], ++ # + select({ ++ # "//conditions:COND_MAIN_DECODER": ["list.c"], # TODO Conditional this? ++ # "//conditions:default": [], ++ # }) ++ copts = [ ++ '-DLOCALEDIR=\\"/usr/share/locale\\"', #TODO Help? Where do we get the locale directory from in bazel? ++ ], ++ # linkopts = [ ++ # "$(CAPSICUM_LIB)", #TODO Help? ++ # "-llibintl", # Replace with actual libintl target if available #TODO Help? ++ # ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:lzma", ++ "//:lzma_src_common", ++ "//:lzma_src_liblzma_api", ++ ], ++ # + select({ ++ # "@platforms//os:windows": ["//:xz_win_resources"], ++ # "//conditions:default": [], ++ # }), ++) ++ ++# cc_library( ++# name = "xz_win_resources", ++# srcs = ["xz_w32res.rc"], ++# ) ++ ++XZDEC_SRCS = [ ++ "src/xzdec/xzdec.c", ++] ++ ++XZDEC_DEPS = [ ++ "//:lzma", ++ "//:lzma_src_liblzma_common", ++] ++# + select({ ++# "@platforms//os:windows": ["//:xzdec_win_resources"], ++# "//conditions:default": [], ++# }) ++ ++# cc_library( ++# name = "xzdec_win_resources", ++# srcs = ["xzdec_w32res.rc"], ++# ) ++ ++cc_binary( ++ name = "xzdec", ++ srcs = XZDEC_SRCS, ++ copts = [ ++ "-DTUKLIB_GETTEXT=0", ++ ], ++ visibility = ["//visibility:public"], ++ # linkopts = ["-llibintl"], # Replace with actual libintl target if available #TODO Help? ++ deps = XZDEC_DEPS, ++) ++ ++cc_binary( ++ name = "lzmadec", ++ srcs = XZDEC_SRCS, # lzmadec uses the same source with a define ++ copts = [ ++ "-DTUKLIB_GETTEXT=0", ++ "-DLZMADEC", ++ ], ++ visibility = ["//visibility:public"], ++ # linkopts = ["-llibintl"], # Replace with actual libintl target if available #TODO Help? ++ deps = XZDEC_DEPS, ++) ++ ++cc_library( ++ name = "lzma_src_common", ++ srcs = [ ++ "src/common/tuklib_exit.c", ++ "src/common/tuklib_progname.c", ++ ], ++ hdrs = glob(["src/common/*.h"]), ++ defines = ["HAVE_CONFIG_H"] + select({ ++ "@platforms//os:windows": [ ++ "LZMA_API_STATIC", ++ "TUKLIB_GETTEXT=0", # Disable libintl for windows ++ ], ++ "//conditions:default": [], ++ }), ++ strip_include_prefix = "src/common", ++ deps = [ ++ "//:lzma_src_liblzma_api", ++ ], ++) ++ ++cc_library( ++ name = "lzma_src_liblzma", ++ hdrs = glob(["src/liblzma/*.h"]), ++ strip_include_prefix = "src/liblzma", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_api", ++ hdrs = [ ++ "src/liblzma/api/config.h", # Generated above, so missed by glob. In srcs so it's not public like the other headers ++ ] + glob( ++ [ ++ "src/liblzma/api/**/*.h", ++ ], ++ exclude = [ ++ "src/liblzma/api/lzma.h", # The public header, only used in hdrs of main lib (//visibility:public) ++ ], ++ ), ++ strip_include_prefix = "src/liblzma/api", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_check", ++ hdrs = glob(["src/liblzma/check/*.h"]), ++ strip_include_prefix = "src/liblzma/check", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_common", ++ hdrs = glob(["src/liblzma/common/*.h"]), ++ includes = ["src/liblzma"], # Needed as well as some usages use common/*.h instead of just the header ++ strip_include_prefix = "src/liblzma/common", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_delta", ++ hdrs = glob(["src/liblzma/delta/*.h"]), ++ strip_include_prefix = "src/liblzma/delta", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_lz", ++ hdrs = glob(["src/liblzma/lz/*.h"]), ++ strip_include_prefix = "src/liblzma/lz", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_lzma", ++ hdrs = glob(["src/liblzma/lzma/*.h"]), ++ strip_include_prefix = "src/liblzma/lzma", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_rangecoder", ++ hdrs = glob(["src/liblzma/rangecoder/*.h"]), ++ strip_include_prefix = "src/liblzma/rangecoder", ++) ++ ++cc_library( ++ name = "lzma_src_liblzma_simpler", ++ hdrs = glob(["src/liblzma/simple/*.h"]), ++ strip_include_prefix = "src/liblzma/simple", ++) ++ ++# Test header files ++cc_library( ++ name = "tests_hdrs", ++ testonly = True, ++ hdrs = [ ++ "tests/tests.h", ++ "tests/tuktest.h", ++ ], ++) ++ ++# Suite of tests, much tidier using the custom macro from the tools.bzl ++test_suite( ++ name = "all_tests", ++ tests = multi_test( ++ size = "small", ++ data = glob(["tests/files/**/*"]), ++ defines = select({ ++ "@platforms//os:windows": ["HAVE_LZIP_DECODER=1"], ++ "//conditions:default": [], ++ }), ++ names = [ ++ "bcj_test", ++ "create_compress_files", ++ "test_bcj_exact_size", ++ "test_block_header", ++ "test_check", ++ "test_filter_flags", ++ "test_filter_str", ++ "test_hardware", ++ "test_index", ++ "test_index_hash", ++ "test_lzip_decoder", ++ "test_memlimit", ++ "test_stream_flags", ++ "test_vli", ++ ], ++ deps = [ ++ ":lzma", ++ ":tests_hdrs", ++ ], ++ ) + [ ++ # "ossfuzz", # Currently disabled, as the fuzzer doesn't seem to be reliably available for linking on all systems. I don't have experience in this area :) ++ ], ++ visibility = ["//visibility:public"], ++) ++ ++# Fuzz test, not currently implemented ++cc_test( ++ name = "ossfuzz", ++ srcs = ["tests/ossfuzz/fuzz.c"], ++ copts = [ ++ "-fsanitize=fuzzer", ++ ], ++ data = glob(["files/**"]), ++ linkopts = [ ++ "-fsanitize=fuzzer", ++ ], ++ deps = [ ++ ":tests_hdrs", ++ "//:lzma", ++ ], ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 0000000..c2c0d12 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,7 @@ ++module( ++ name = "xz", ++ version = "5.4.5.bcr.1", ++) ++ ++bazel_dep(name = "platforms", version = "0.0.8") ++bazel_dep(name = "bazel_skylib", version = "1.5.0") +diff --git a/config.lzma-android.h b/config.lzma-android.h +new file mode 100644 +index 0000000..2c6afd0 +--- /dev/null ++++ b/config.lzma-android.h +@@ -0,0 +1,501 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++#define ENABLE_NLS 1 ++ ++/* Define to 1 if bswap_16 is available. */ ++#define HAVE_BSWAP_16 1 ++ ++/* Define to 1 if bswap_32 is available. */ ++#define HAVE_BSWAP_32 1 ++ ++/* Define to 1 if bswap_64 is available. */ ++#define HAVE_BSWAP_64 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_BYTESWAP_H 1 ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the ++ CoreFoundation framework. */ ++/* #undef HAVE_CFLOCALECOPYCURRENT */ ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++#define HAVE_DCGETTEXT 1 ++ ++/* Define to 1 if you have the declaration of `CLOCK_MONOTONIC', and to 0 if ++ you don't. */ ++#define HAVE_DECL_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the declaration of `program_invocation_name', and ++ to 0 if you don't. */ ++#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1 ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++#define HAVE_GETTEXT 1 ++ ++/* Define if you have the iconv() function and it works. */ ++/* #undef HAVE_ICONV */ ++ ++/* Define to 1 if you have the header file. */ ++#undef HAVE_IMMINTRIN_H ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_MEMORY_H 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++/* #undef HAVE_OPTRESET */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++#define HAVE_POSIX_FADVISE 1 ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++#define HAVE__MM_MOVEMASK_EPI8 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "lasse.collin@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.2.3" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "http://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.2.3" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 8 ++ ++/* Define to 1 if you have the ANSI C header files. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++#define TUKLIB_CPUCORES_SCHED_GETAFFINITY 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++/* #undef TUKLIB_CPUCORES_SYSCTL */ ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit and ++ 32-bit integers. */ ++#undef TUKLIB_FAST_UNALIGNED_ACCESS ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++#define _ALL_SOURCE 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE 1 ++#endif ++/* Enable threading extensions on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++#define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++#define _TANDEM_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++#define __EXTENSIONS__ 1 ++#endif ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++#if defined __BIG_ENDIAN__ ++#define WORDS_BIGENDIAN 1 ++#endif ++#else ++#ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++#endif ++#endif ++ ++/* Enable large inode numbers on Mac OS X 10.5. */ ++#ifndef _DARWIN_USE_64_BIT_INODE ++#define _DARWIN_USE_64_BIT_INODE 1 ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define to 1 if on MINIX. */ ++/* #undef _MINIX */ ++ ++/* Define to 2 if the system does not provide POSIX.1 features except with ++ this defined. */ ++/* #undef _POSIX_1_SOURCE */ ++ ++/* Define to 1 if you need to in order for `stat' and other things to work. */ ++/* #undef _POSIX_SOURCE */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-ios-arm64.h b/config.lzma-ios-arm64.h +new file mode 100644 +index 0000000..5286a94 +--- /dev/null ++++ b/config.lzma-ios-arm64.h +@@ -0,0 +1,602 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++/* #undef ENABLE_NLS */ ++ ++/* Define to 1 if bswap_16 is available. */ ++/* #undef HAVE_BSWAP_16 */ ++ ++/* Define to 1 if bswap_32 is available. */ ++/* #undef HAVE_BSWAP_32 */ ++ ++/* Define to 1 if bswap_64 is available. */ ++/* #undef HAVE_BSWAP_64 */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function ++ CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ ++#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1 ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if `CLOCK_MONOTONIC' is declared in . */ ++#define HAVE_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_CPUID_H */ ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++/* #undef HAVE_DCGETTEXT */ ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if arm64 decoder is enabled. */ ++#define HAVE_DECODER_ARM64 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if arm64 encoder is enabled. */ ++#define HAVE_ENCODER_ARM64 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if __attribute__((__constructor__)) is supported for functions. ++ */ ++#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++/* #undef HAVE_GETTEXT */ ++ ++/* Define if you have the iconv() function and it works. */ ++#define HAVE_ICONV 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_IMMINTRIN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if .lz (lzip) decompression support is enabled. */ ++#define HAVE_LZIP_DECODER 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_MINIX_CONFIG_H */ ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++#define HAVE_OPTRESET 1 ++ ++/* Define to 1 if you have the `pledge' function. */ ++/* #undef HAVE_PLEDGE */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++/* #undef HAVE_POSIX_FADVISE */ ++ ++/* Define to 1 if `program_invocation_name' is declared in . */ ++/* #undef HAVE_PROGRAM_INVOCATION_NAME */ ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++/* #undef HAVE_PTHREAD_CONDATTR_SETCLOCK */ ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDIO_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 to if GNU/Linux-specific details are unconditionally wanted for ++ symbol versioning. Define to 2 to if these are wanted only if also PIC is ++ defined (allows building both shared and static liblzma at the same time ++ with Libtool if neither --with-pic nor --without-pic is used). This define ++ must be used together with liblzma_linux.map. */ ++/* #undef HAVE_SYMBOL_VERSIONS_LINUX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if _mm_set_epi64x and _mm_clmulepi64_si128 are usable. See ++ configure.ac for details. */ ++/* #undef HAVE_USABLE_CLMUL */ ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_WCHAR_H 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++/* #undef HAVE__MM_MOVEMASK_EPI8 */ ++ ++/* Define to 1 if the GNU C extension __builtin_assume_aligned is supported. ++ */ ++#define HAVE___BUILTIN_ASSUME_ALIGNED 1 ++ ++/* Define to 1 if the GNU C extensions __builtin_bswap16/32/64 are supported. ++ */ ++#define HAVE___BUILTIN_BSWAPXX 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "xz@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.4.2" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "https://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.4.2" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 8 ++ ++/* Define to 1 if all of the C90 standard headers exist (not just the ones ++ required in a freestanding environment). This macro is provided for ++ backward compatibility; new code need not use it. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++/* #undef TUKLIB_CPUCORES_SCHED_GETAFFINITY */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++#define TUKLIB_CPUCORES_SYSCTL 1 ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit, ++ and 64-bit integers. */ ++#define TUKLIB_FAST_UNALIGNED_ACCESS 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Define to 1 to use unsafe type punning, e.g. char *x = ...; *(int *)x = ++ 123; which violates strict aliasing rules and thus is undefined behavior ++ and might result in broken code. */ ++/* #undef TUKLIB_USE_UNSAFE_TYPE_PUNNING */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++# define _ALL_SOURCE 1 ++#endif ++/* Enable general extensions on macOS. */ ++#ifndef _DARWIN_C_SOURCE ++# define _DARWIN_C_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# define _GNU_SOURCE 1 ++#endif ++/* Enable X/Open compliant socket functions that do not require linking ++ with -lxnet on HP-UX 11.11. */ ++#ifndef _HPUX_ALT_XOPEN_SOCKET_API ++# define _HPUX_ALT_XOPEN_SOCKET_API 1 ++#endif ++/* Identify the host operating system as Minix. ++ This macro does not affect the system headers' behavior. ++ A future release of Autoconf may stop defining this macro. */ ++#ifndef _MINIX ++/* # undef _MINIX */ ++#endif ++/* Enable general extensions on NetBSD. ++ Enable NetBSD compatibility extensions on Minix. */ ++#ifndef _NETBSD_SOURCE ++# define _NETBSD_SOURCE 1 ++#endif ++/* Enable OpenBSD compatibility extensions on NetBSD. ++ Oddly enough, this does nothing on OpenBSD. */ ++#ifndef _OPENBSD_SOURCE ++# define _OPENBSD_SOURCE 1 ++#endif ++/* Define to 1 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_SOURCE ++/* # undef _POSIX_SOURCE */ ++#endif ++/* Define to 2 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_1_SOURCE ++/* # undef _POSIX_1_SOURCE */ ++#endif ++/* Enable POSIX-compatible threading on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++# define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ ++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ ++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ ++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ ++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ ++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ ++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ ++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ ++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ ++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ ++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ ++#ifndef __STDC_WANT_LIB_EXT2__ ++# define __STDC_WANT_LIB_EXT2__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC 24747:2009. */ ++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ ++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++# define _TANDEM_SOURCE 1 ++#endif ++/* Enable X/Open extensions. Define to 500 only if necessary ++ to make mbstate_t available. */ ++#ifndef _XOPEN_SOURCE ++/* # undef _XOPEN_SOURCE */ ++#endif ++ ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-ios-armv7.h b/config.lzma-ios-armv7.h +new file mode 100644 +index 0000000..e2cd638 +--- /dev/null ++++ b/config.lzma-ios-armv7.h +@@ -0,0 +1,602 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++/* #undef ENABLE_NLS */ ++ ++/* Define to 1 if bswap_16 is available. */ ++/* #undef HAVE_BSWAP_16 */ ++ ++/* Define to 1 if bswap_32 is available. */ ++/* #undef HAVE_BSWAP_32 */ ++ ++/* Define to 1 if bswap_64 is available. */ ++/* #undef HAVE_BSWAP_64 */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function ++ CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ ++#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1 ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if `CLOCK_MONOTONIC' is declared in . */ ++#define HAVE_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_CPUID_H */ ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++/* #undef HAVE_DCGETTEXT */ ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if arm64 decoder is enabled. */ ++#define HAVE_DECODER_ARM64 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if arm64 encoder is enabled. */ ++#define HAVE_ENCODER_ARM64 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if __attribute__((__constructor__)) is supported for functions. ++ */ ++#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++/* #undef HAVE_GETTEXT */ ++ ++/* Define if you have the iconv() function and it works. */ ++#define HAVE_ICONV 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_IMMINTRIN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if .lz (lzip) decompression support is enabled. */ ++#define HAVE_LZIP_DECODER 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_MINIX_CONFIG_H */ ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++#define HAVE_OPTRESET 1 ++ ++/* Define to 1 if you have the `pledge' function. */ ++/* #undef HAVE_PLEDGE */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++/* #undef HAVE_POSIX_FADVISE */ ++ ++/* Define to 1 if `program_invocation_name' is declared in . */ ++/* #undef HAVE_PROGRAM_INVOCATION_NAME */ ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++/* #undef HAVE_PTHREAD_CONDATTR_SETCLOCK */ ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDIO_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 to if GNU/Linux-specific details are unconditionally wanted for ++ symbol versioning. Define to 2 to if these are wanted only if also PIC is ++ defined (allows building both shared and static liblzma at the same time ++ with Libtool if neither --with-pic nor --without-pic is used). This define ++ must be used together with liblzma_linux.map. */ ++/* #undef HAVE_SYMBOL_VERSIONS_LINUX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if _mm_set_epi64x and _mm_clmulepi64_si128 are usable. See ++ configure.ac for details. */ ++/* #undef HAVE_USABLE_CLMUL */ ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_WCHAR_H 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++/* #undef HAVE__MM_MOVEMASK_EPI8 */ ++ ++/* Define to 1 if the GNU C extension __builtin_assume_aligned is supported. ++ */ ++#define HAVE___BUILTIN_ASSUME_ALIGNED 1 ++ ++/* Define to 1 if the GNU C extensions __builtin_bswap16/32/64 are supported. ++ */ ++#define HAVE___BUILTIN_BSWAPXX 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "xz@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.4.2" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "https://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.4.2" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 4 ++ ++/* Define to 1 if all of the C90 standard headers exist (not just the ones ++ required in a freestanding environment). This macro is provided for ++ backward compatibility; new code need not use it. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++/* #undef TUKLIB_CPUCORES_SCHED_GETAFFINITY */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++#define TUKLIB_CPUCORES_SYSCTL 1 ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit, ++ and 64-bit integers. */ ++#define TUKLIB_FAST_UNALIGNED_ACCESS 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Define to 1 to use unsafe type punning, e.g. char *x = ...; *(int *)x = ++ 123; which violates strict aliasing rules and thus is undefined behavior ++ and might result in broken code. */ ++/* #undef TUKLIB_USE_UNSAFE_TYPE_PUNNING */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++# define _ALL_SOURCE 1 ++#endif ++/* Enable general extensions on macOS. */ ++#ifndef _DARWIN_C_SOURCE ++# define _DARWIN_C_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# define _GNU_SOURCE 1 ++#endif ++/* Enable X/Open compliant socket functions that do not require linking ++ with -lxnet on HP-UX 11.11. */ ++#ifndef _HPUX_ALT_XOPEN_SOCKET_API ++# define _HPUX_ALT_XOPEN_SOCKET_API 1 ++#endif ++/* Identify the host operating system as Minix. ++ This macro does not affect the system headers' behavior. ++ A future release of Autoconf may stop defining this macro. */ ++#ifndef _MINIX ++/* # undef _MINIX */ ++#endif ++/* Enable general extensions on NetBSD. ++ Enable NetBSD compatibility extensions on Minix. */ ++#ifndef _NETBSD_SOURCE ++# define _NETBSD_SOURCE 1 ++#endif ++/* Enable OpenBSD compatibility extensions on NetBSD. ++ Oddly enough, this does nothing on OpenBSD. */ ++#ifndef _OPENBSD_SOURCE ++# define _OPENBSD_SOURCE 1 ++#endif ++/* Define to 1 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_SOURCE ++/* # undef _POSIX_SOURCE */ ++#endif ++/* Define to 2 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_1_SOURCE ++/* # undef _POSIX_1_SOURCE */ ++#endif ++/* Enable POSIX-compatible threading on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++# define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ ++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ ++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ ++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ ++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ ++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ ++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ ++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ ++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ ++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ ++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ ++#ifndef __STDC_WANT_LIB_EXT2__ ++# define __STDC_WANT_LIB_EXT2__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC 24747:2009. */ ++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ ++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++# define _TANDEM_SOURCE 1 ++#endif ++/* Enable X/Open extensions. Define to 500 only if necessary ++ to make mbstate_t available. */ ++#ifndef _XOPEN_SOURCE ++/* # undef _XOPEN_SOURCE */ ++#endif ++ ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-ios-i386.h b/config.lzma-ios-i386.h +new file mode 100644 +index 0000000..f4c6182 +--- /dev/null ++++ b/config.lzma-ios-i386.h +@@ -0,0 +1,602 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++/* #undef ENABLE_NLS */ ++ ++/* Define to 1 if bswap_16 is available. */ ++/* #undef HAVE_BSWAP_16 */ ++ ++/* Define to 1 if bswap_32 is available. */ ++/* #undef HAVE_BSWAP_32 */ ++ ++/* Define to 1 if bswap_64 is available. */ ++/* #undef HAVE_BSWAP_64 */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function ++ CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ ++#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1 ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if `CLOCK_MONOTONIC' is declared in . */ ++#define HAVE_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_CPUID_H 1 ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++/* #undef HAVE_DCGETTEXT */ ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if arm64 decoder is enabled. */ ++#define HAVE_DECODER_ARM64 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if arm64 encoder is enabled. */ ++#define HAVE_ENCODER_ARM64 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if __attribute__((__constructor__)) is supported for functions. ++ */ ++#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++/* #undef HAVE_GETTEXT */ ++ ++/* Define if you have the iconv() function and it works. */ ++#define HAVE_ICONV 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_IMMINTRIN_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if .lz (lzip) decompression support is enabled. */ ++#define HAVE_LZIP_DECODER 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_MINIX_CONFIG_H */ ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++#define HAVE_OPTRESET 1 ++ ++/* Define to 1 if you have the `pledge' function. */ ++/* #undef HAVE_PLEDGE */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++/* #undef HAVE_POSIX_FADVISE */ ++ ++/* Define to 1 if `program_invocation_name' is declared in . */ ++/* #undef HAVE_PROGRAM_INVOCATION_NAME */ ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++/* #undef HAVE_PTHREAD_CONDATTR_SETCLOCK */ ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDIO_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 to if GNU/Linux-specific details are unconditionally wanted for ++ symbol versioning. Define to 2 to if these are wanted only if also PIC is ++ defined (allows building both shared and static liblzma at the same time ++ with Libtool if neither --with-pic nor --without-pic is used). This define ++ must be used together with liblzma_linux.map. */ ++/* #undef HAVE_SYMBOL_VERSIONS_LINUX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if _mm_set_epi64x and _mm_clmulepi64_si128 are usable. See ++ configure.ac for details. */ ++#define HAVE_USABLE_CLMUL 1 ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_WCHAR_H 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++#define HAVE__MM_MOVEMASK_EPI8 1 ++ ++/* Define to 1 if the GNU C extension __builtin_assume_aligned is supported. ++ */ ++#define HAVE___BUILTIN_ASSUME_ALIGNED 1 ++ ++/* Define to 1 if the GNU C extensions __builtin_bswap16/32/64 are supported. ++ */ ++#define HAVE___BUILTIN_BSWAPXX 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "xz@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.4.2" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "https://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.4.2" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 4 ++ ++/* Define to 1 if all of the C90 standard headers exist (not just the ones ++ required in a freestanding environment). This macro is provided for ++ backward compatibility; new code need not use it. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++/* #undef TUKLIB_CPUCORES_SCHED_GETAFFINITY */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++#define TUKLIB_CPUCORES_SYSCTL 1 ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit, ++ and 64-bit integers. */ ++/* #undef TUKLIB_FAST_UNALIGNED_ACCESS */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Define to 1 to use unsafe type punning, e.g. char *x = ...; *(int *)x = ++ 123; which violates strict aliasing rules and thus is undefined behavior ++ and might result in broken code. */ ++/* #undef TUKLIB_USE_UNSAFE_TYPE_PUNNING */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++# define _ALL_SOURCE 1 ++#endif ++/* Enable general extensions on macOS. */ ++#ifndef _DARWIN_C_SOURCE ++# define _DARWIN_C_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# define _GNU_SOURCE 1 ++#endif ++/* Enable X/Open compliant socket functions that do not require linking ++ with -lxnet on HP-UX 11.11. */ ++#ifndef _HPUX_ALT_XOPEN_SOCKET_API ++# define _HPUX_ALT_XOPEN_SOCKET_API 1 ++#endif ++/* Identify the host operating system as Minix. ++ This macro does not affect the system headers' behavior. ++ A future release of Autoconf may stop defining this macro. */ ++#ifndef _MINIX ++/* # undef _MINIX */ ++#endif ++/* Enable general extensions on NetBSD. ++ Enable NetBSD compatibility extensions on Minix. */ ++#ifndef _NETBSD_SOURCE ++# define _NETBSD_SOURCE 1 ++#endif ++/* Enable OpenBSD compatibility extensions on NetBSD. ++ Oddly enough, this does nothing on OpenBSD. */ ++#ifndef _OPENBSD_SOURCE ++# define _OPENBSD_SOURCE 1 ++#endif ++/* Define to 1 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_SOURCE ++/* # undef _POSIX_SOURCE */ ++#endif ++/* Define to 2 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_1_SOURCE ++/* # undef _POSIX_1_SOURCE */ ++#endif ++/* Enable POSIX-compatible threading on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++# define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ ++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ ++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ ++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ ++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ ++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ ++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ ++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ ++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ ++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ ++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ ++#ifndef __STDC_WANT_LIB_EXT2__ ++# define __STDC_WANT_LIB_EXT2__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC 24747:2009. */ ++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ ++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++# define _TANDEM_SOURCE 1 ++#endif ++/* Enable X/Open extensions. Define to 500 only if necessary ++ to make mbstate_t available. */ ++#ifndef _XOPEN_SOURCE ++/* # undef _XOPEN_SOURCE */ ++#endif ++ ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-linux.h b/config.lzma-linux.h +new file mode 100644 +index 0000000..298cc0b +--- /dev/null ++++ b/config.lzma-linux.h +@@ -0,0 +1,604 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++#define ENABLE_NLS 1 ++ ++/* Define to 1 if bswap_16 is available. */ ++/* #undef HAVE_BSWAP_16 */ ++ ++/* Define to 1 if bswap_32 is available. */ ++/* #undef HAVE_BSWAP_32 */ ++ ++/* Define to 1 if bswap_64 is available. */ ++/* #undef HAVE_BSWAP_64 */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function ++ CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ ++/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */ ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define to 1 if you have the header file. */ ++{HAVE_CPUID_H} ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++#define HAVE_DCGETTEXT 1 ++ ++/* Define to 1 if you have the declaration of `CLOCK_MONOTONIC', and to 0 if ++ you don't. */ ++#define HAVE_DECL_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the declaration of `program_invocation_name', and ++ to 0 if you don't. */ ++#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1 ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if arm64 decoder is enabled. */ ++#define HAVE_DECODER_ARM64 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if arm64 encoder is enabled. */ ++#define HAVE_ENCODER_ARM64 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if __attribute__((__constructor__)) is supported for functions. ++ */ ++#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++#define HAVE_GETTEXT 1 ++ ++/* Define if you have the iconv() function and it works. */ ++/* #undef HAVE_ICONV */ ++ ++/* Define to 1 if you have the header file. */ ++{HAVE_IMMINTRIN_H} ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if .lz (lzip) decompression support is enabled. */ ++#define HAVE_LZIP_DECODER 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_MINIX_CONFIG_H */ ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++/* #undef HAVE_OPTRESET */ ++ ++/* Define to 1 if you have the `pledge' function. */ ++/* #undef HAVE_PLEDGE */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++#define HAVE_POSIX_FADVISE 1 ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDIO_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 to if GNU/Linux-specific details are unconditionally wanted for ++ symbol versioning. Define to 2 to if these are wanted only if also PIC is ++ defined (allows building both shared and static liblzma at the same time ++ with Libtool if neither --with-pic nor --without-pic is used). This define ++ must be used together with liblzma_linux.map. */ ++#define HAVE_SYMBOL_VERSIONS_LINUX 2 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if _mm_clmulepi64_si128 is usable. See configure.ac for ++ details. */ ++{HAVE_USABLE_CLMUL} ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_WCHAR_H 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++#define HAVE__MM_MOVEMASK_EPI8 1 ++ ++/* Define to 1 if the GNU C extension __builtin_assume_aligned is supported. ++ */ ++#define HAVE___BUILTIN_ASSUME_ALIGNED 1 ++ ++/* Define to 1 if the GNU C extensions __builtin_bswap16/32/64 are supported. ++ */ ++#define HAVE___BUILTIN_BSWAPXX 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "xz@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.4.0" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "https://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.4.0" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 8 ++ ++/* Define to 1 if all of the C90 standard headers exist (not just the ones ++ required in a freestanding environment). This macro is provided for ++ backward compatibility; new code need not use it. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++#define TUKLIB_CPUCORES_SCHED_GETAFFINITY 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++/* #undef TUKLIB_CPUCORES_SYSCTL */ ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit, ++ and 64-bit integers. */ ++#define TUKLIB_FAST_UNALIGNED_ACCESS 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Define to 1 to use unsafe type punning, e.g. char *x = ...; *(int *)x = ++ 123; which violates strict aliasing rules and thus is undefined behavior ++ and might result in broken code. */ ++/* #undef TUKLIB_USE_UNSAFE_TYPE_PUNNING */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++# define _ALL_SOURCE 1 ++#endif ++/* Enable general extensions on macOS. */ ++#ifndef _DARWIN_C_SOURCE ++# define _DARWIN_C_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# define _GNU_SOURCE 1 ++#endif ++/* Enable X/Open compliant socket functions that do not require linking ++ with -lxnet on HP-UX 11.11. */ ++#ifndef _HPUX_ALT_XOPEN_SOCKET_API ++# define _HPUX_ALT_XOPEN_SOCKET_API 1 ++#endif ++/* Identify the host operating system as Minix. ++ This macro does not affect the system headers' behavior. ++ A future release of Autoconf may stop defining this macro. */ ++#ifndef _MINIX ++/* # undef _MINIX */ ++#endif ++/* Enable general extensions on NetBSD. ++ Enable NetBSD compatibility extensions on Minix. */ ++#ifndef _NETBSD_SOURCE ++# define _NETBSD_SOURCE 1 ++#endif ++/* Enable OpenBSD compatibility extensions on NetBSD. ++ Oddly enough, this does nothing on OpenBSD. */ ++#ifndef _OPENBSD_SOURCE ++# define _OPENBSD_SOURCE 1 ++#endif ++/* Define to 1 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_SOURCE ++/* # undef _POSIX_SOURCE */ ++#endif ++/* Define to 2 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_1_SOURCE ++/* # undef _POSIX_1_SOURCE */ ++#endif ++/* Enable POSIX-compatible threading on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++# define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ ++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ ++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ ++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ ++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ ++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ ++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ ++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ ++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ ++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ ++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ ++#ifndef __STDC_WANT_LIB_EXT2__ ++# define __STDC_WANT_LIB_EXT2__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC 24747:2009. */ ++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ ++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++# define _TANDEM_SOURCE 1 ++#endif ++/* Enable X/Open extensions. Define to 500 only if necessary ++ to make mbstate_t available. */ ++#ifndef _XOPEN_SOURCE ++/* # undef _XOPEN_SOURCE */ ++#endif ++ ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-osx-arm64.h b/config.lzma-osx-arm64.h +new file mode 100644 +index 0000000..1a5c936 +--- /dev/null ++++ b/config.lzma-osx-arm64.h +@@ -0,0 +1,602 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++/* #undef ENABLE_NLS */ ++ ++/* Define to 1 if bswap_16 is available. */ ++/* #undef HAVE_BSWAP_16 */ ++ ++/* Define to 1 if bswap_32 is available. */ ++/* #undef HAVE_BSWAP_32 */ ++ ++/* Define to 1 if bswap_64 is available. */ ++/* #undef HAVE_BSWAP_64 */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function ++ CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ ++#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1 ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if `CLOCK_MONOTONIC' is declared in . */ ++#define HAVE_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define to 1 if you have the header file. */ ++#undef HAVE_CPUID_H ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++/* #undef HAVE_DCGETTEXT */ ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if arm64 decoder is enabled. */ ++#define HAVE_DECODER_ARM64 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if arm64 encoder is enabled. */ ++#define HAVE_ENCODER_ARM64 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if __attribute__((__constructor__)) is supported for functions. ++ */ ++#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++/* #undef HAVE_GETTEXT */ ++ ++/* Define if you have the iconv() function and it works. */ ++#define HAVE_ICONV 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_IMMINTRIN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if .lz (lzip) decompression support is enabled. */ ++#define HAVE_LZIP_DECODER 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_MINIX_CONFIG_H */ ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++#define HAVE_OPTRESET 1 ++ ++/* Define to 1 if you have the `pledge' function. */ ++/* #undef HAVE_PLEDGE */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++/* #undef HAVE_POSIX_FADVISE */ ++ ++/* Define to 1 if `program_invocation_name' is declared in . */ ++/* #undef HAVE_PROGRAM_INVOCATION_NAME */ ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++/* #undef HAVE_PTHREAD_CONDATTR_SETCLOCK */ ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDIO_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 to if GNU/Linux-specific details are unconditionally wanted for ++ symbol versioning. Define to 2 to if these are wanted only if also PIC is ++ defined (allows building both shared and static liblzma at the same time ++ with Libtool if neither --with-pic nor --without-pic is used). This define ++ must be used together with liblzma_linux.map. */ ++/* #undef HAVE_SYMBOL_VERSIONS_LINUX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if _mm_set_epi64x and _mm_clmulepi64_si128 are usable. See ++ configure.ac for details. */ ++/* #undef HAVE_USABLE_CLMUL */ ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_WCHAR_H 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++/* #undef HAVE__MM_MOVEMASK_EPI8 */ ++ ++/* Define to 1 if the GNU C extension __builtin_assume_aligned is supported. ++ */ ++#define HAVE___BUILTIN_ASSUME_ALIGNED 1 ++ ++/* Define to 1 if the GNU C extensions __builtin_bswap16/32/64 are supported. ++ */ ++#define HAVE___BUILTIN_BSWAPXX 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "xz@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.4.2" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "https://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.4.2" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 8 ++ ++/* Define to 1 if all of the C90 standard headers exist (not just the ones ++ required in a freestanding environment). This macro is provided for ++ backward compatibility; new code need not use it. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++/* #undef TUKLIB_CPUCORES_SCHED_GETAFFINITY */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++#define TUKLIB_CPUCORES_SYSCTL 1 ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit, ++ and 64-bit integers. */ ++#define TUKLIB_FAST_UNALIGNED_ACCESS 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Define to 1 to use unsafe type punning, e.g. char *x = ...; *(int *)x = ++ 123; which violates strict aliasing rules and thus is undefined behavior ++ and might result in broken code. */ ++/* #undef TUKLIB_USE_UNSAFE_TYPE_PUNNING */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++# define _ALL_SOURCE 1 ++#endif ++/* Enable general extensions on macOS. */ ++#ifndef _DARWIN_C_SOURCE ++# define _DARWIN_C_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# define _GNU_SOURCE 1 ++#endif ++/* Enable X/Open compliant socket functions that do not require linking ++ with -lxnet on HP-UX 11.11. */ ++#ifndef _HPUX_ALT_XOPEN_SOCKET_API ++# define _HPUX_ALT_XOPEN_SOCKET_API 1 ++#endif ++/* Identify the host operating system as Minix. ++ This macro does not affect the system headers' behavior. ++ A future release of Autoconf may stop defining this macro. */ ++#ifndef _MINIX ++/* # undef _MINIX */ ++#endif ++/* Enable general extensions on NetBSD. ++ Enable NetBSD compatibility extensions on Minix. */ ++#ifndef _NETBSD_SOURCE ++# define _NETBSD_SOURCE 1 ++#endif ++/* Enable OpenBSD compatibility extensions on NetBSD. ++ Oddly enough, this does nothing on OpenBSD. */ ++#ifndef _OPENBSD_SOURCE ++# define _OPENBSD_SOURCE 1 ++#endif ++/* Define to 1 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_SOURCE ++/* # undef _POSIX_SOURCE */ ++#endif ++/* Define to 2 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_1_SOURCE ++/* # undef _POSIX_1_SOURCE */ ++#endif ++/* Enable POSIX-compatible threading on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++# define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ ++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ ++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ ++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ ++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ ++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ ++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ ++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ ++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ ++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ ++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ ++#ifndef __STDC_WANT_LIB_EXT2__ ++# define __STDC_WANT_LIB_EXT2__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC 24747:2009. */ ++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ ++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++# define _TANDEM_SOURCE 1 ++#endif ++/* Enable X/Open extensions. Define to 500 only if necessary ++ to make mbstate_t available. */ ++#ifndef _XOPEN_SOURCE ++/* # undef _XOPEN_SOURCE */ ++#endif ++ ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-osx-x86_64.h b/config.lzma-osx-x86_64.h +new file mode 100644 +index 0000000..529b41c +--- /dev/null ++++ b/config.lzma-osx-x86_64.h +@@ -0,0 +1,602 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++/* #undef ENABLE_NLS */ ++ ++/* Define to 1 if bswap_16 is available. */ ++/* #undef HAVE_BSWAP_16 */ ++ ++/* Define to 1 if bswap_32 is available. */ ++/* #undef HAVE_BSWAP_32 */ ++ ++/* Define to 1 if bswap_64 is available. */ ++/* #undef HAVE_BSWAP_64 */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function ++ CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ ++#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1 ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if `CLOCK_MONOTONIC' is declared in . */ ++#define HAVE_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_CPUID_H 1 ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++/* #undef HAVE_DCGETTEXT */ ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if arm64 decoder is enabled. */ ++#define HAVE_DECODER_ARM64 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if arm64 encoder is enabled. */ ++#define HAVE_ENCODER_ARM64 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if __attribute__((__constructor__)) is supported for functions. ++ */ ++#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++/* #undef HAVE_GETTEXT */ ++ ++/* Define if you have the iconv() function and it works. */ ++#define HAVE_ICONV 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_IMMINTRIN_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if .lz (lzip) decompression support is enabled. */ ++#define HAVE_LZIP_DECODER 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_MINIX_CONFIG_H */ ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++#define HAVE_OPTRESET 1 ++ ++/* Define to 1 if you have the `pledge' function. */ ++/* #undef HAVE_PLEDGE */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++/* #undef HAVE_POSIX_FADVISE */ ++ ++/* Define to 1 if `program_invocation_name' is declared in . */ ++/* #undef HAVE_PROGRAM_INVOCATION_NAME */ ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++/* #undef HAVE_PTHREAD_CONDATTR_SETCLOCK */ ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDIO_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 to if GNU/Linux-specific details are unconditionally wanted for ++ symbol versioning. Define to 2 to if these are wanted only if also PIC is ++ defined (allows building both shared and static liblzma at the same time ++ with Libtool if neither --with-pic nor --without-pic is used). This define ++ must be used together with liblzma_linux.map. */ ++/* #undef HAVE_SYMBOL_VERSIONS_LINUX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if _mm_set_epi64x and _mm_clmulepi64_si128 are usable. See ++ configure.ac for details. */ ++#define HAVE_USABLE_CLMUL 1 ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_WCHAR_H 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++#define HAVE__MM_MOVEMASK_EPI8 1 ++ ++/* Define to 1 if the GNU C extension __builtin_assume_aligned is supported. ++ */ ++#define HAVE___BUILTIN_ASSUME_ALIGNED 1 ++ ++/* Define to 1 if the GNU C extensions __builtin_bswap16/32/64 are supported. ++ */ ++#define HAVE___BUILTIN_BSWAPXX 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++#define MYTHREAD_POSIX 1 ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++/* #undef MYTHREAD_VISTA */ ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "xz@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.4.2" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "https://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.4.2" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 8 ++ ++/* Define to 1 if all of the C90 standard headers exist (not just the ones ++ required in a freestanding environment). This macro is provided for ++ backward compatibility; new code need not use it. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++/* #undef TUKLIB_CPUCORES_SCHED_GETAFFINITY */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++#define TUKLIB_CPUCORES_SYSCTL 1 ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit, 32-bit, ++ and 64-bit integers. */ ++/* #undef TUKLIB_FAST_UNALIGNED_ACCESS */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Define to 1 to use unsafe type punning, e.g. char *x = ...; *(int *)x = ++ 123; which violates strict aliasing rules and thus is undefined behavior ++ and might result in broken code. */ ++/* #undef TUKLIB_USE_UNSAFE_TYPE_PUNNING */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++# define _ALL_SOURCE 1 ++#endif ++/* Enable general extensions on macOS. */ ++#ifndef _DARWIN_C_SOURCE ++# define _DARWIN_C_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++# define __EXTENSIONS__ 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++# define _GNU_SOURCE 1 ++#endif ++/* Enable X/Open compliant socket functions that do not require linking ++ with -lxnet on HP-UX 11.11. */ ++#ifndef _HPUX_ALT_XOPEN_SOCKET_API ++# define _HPUX_ALT_XOPEN_SOCKET_API 1 ++#endif ++/* Identify the host operating system as Minix. ++ This macro does not affect the system headers' behavior. ++ A future release of Autoconf may stop defining this macro. */ ++#ifndef _MINIX ++/* # undef _MINIX */ ++#endif ++/* Enable general extensions on NetBSD. ++ Enable NetBSD compatibility extensions on Minix. */ ++#ifndef _NETBSD_SOURCE ++# define _NETBSD_SOURCE 1 ++#endif ++/* Enable OpenBSD compatibility extensions on NetBSD. ++ Oddly enough, this does nothing on OpenBSD. */ ++#ifndef _OPENBSD_SOURCE ++# define _OPENBSD_SOURCE 1 ++#endif ++/* Define to 1 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_SOURCE ++/* # undef _POSIX_SOURCE */ ++#endif ++/* Define to 2 if needed for POSIX-compatible behavior. */ ++#ifndef _POSIX_1_SOURCE ++/* # undef _POSIX_1_SOURCE */ ++#endif ++/* Enable POSIX-compatible threading on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++# define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ ++#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ ++# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ ++#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ ++# define __STDC_WANT_IEC_60559_BFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ ++#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ ++# define __STDC_WANT_IEC_60559_DFP_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ ++#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ ++# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ ++#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ ++# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ ++#ifndef __STDC_WANT_LIB_EXT2__ ++# define __STDC_WANT_LIB_EXT2__ 1 ++#endif ++/* Enable extensions specified by ISO/IEC 24747:2009. */ ++#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ ++# define __STDC_WANT_MATH_SPEC_FUNCS__ 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++# define _TANDEM_SOURCE 1 ++#endif ++/* Enable X/Open extensions. Define to 500 only if necessary ++ to make mbstate_t available. */ ++#ifndef _XOPEN_SOURCE ++/* # undef _XOPEN_SOURCE */ ++#endif ++ ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/config.lzma-windows.h b/config.lzma-windows.h +new file mode 100644 +index 0000000..c0442e5 +--- /dev/null ++++ b/config.lzma-windows.h +@@ -0,0 +1,501 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* How many MiB of RAM to assume if the real amount cannot be determined. */ ++#define ASSUME_RAM 128 ++ ++/* Define to 1 if translation of program messages to the user's native ++ language is requested. */ ++#define ENABLE_NLS 1 ++ ++/* Define to 1 if bswap_16 is available. */ ++#define HAVE_BSWAP_16 1 ++ ++/* Define to 1 if bswap_32 is available. */ ++#define HAVE_BSWAP_32 1 ++ ++/* Define to 1 if bswap_64 is available. */ ++#define HAVE_BSWAP_64 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_BYTESWAP_H */ ++ ++/* Define to 1 if Capsicum is available. */ ++/* #undef HAVE_CAPSICUM */ ++ ++/* Define to 1 if the system has the type `CC_SHA256_CTX'. */ ++/* #undef HAVE_CC_SHA256_CTX */ ++ ++/* Define to 1 if you have the `CC_SHA256_Init' function. */ ++/* #undef HAVE_CC_SHA256_INIT */ ++ ++/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the ++ CoreFoundation framework. */ ++/* #undef HAVE_CFLOCALECOPYCURRENT */ ++ ++/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in ++ the CoreFoundation framework. */ ++/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ ++ ++/* Define to 1 if crc32 integrity check is enabled. */ ++#define HAVE_CHECK_CRC32 1 ++ ++/* Define to 1 if crc64 integrity check is enabled. */ ++#define HAVE_CHECK_CRC64 1 ++ ++/* Define to 1 if sha256 integrity check is enabled. */ ++#define HAVE_CHECK_SHA256 1 ++ ++/* Define to 1 if you have the `clock_gettime' function. */ ++#define HAVE_CLOCK_GETTIME 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_COMMONCRYPTO_COMMONDIGEST_H */ ++ ++/* Define if the GNU dcgettext() function is already present or preinstalled. ++ */ ++#define HAVE_DCGETTEXT 1 ++ ++/* Define to 1 if you have the declaration of `CLOCK_MONOTONIC', and to 0 if ++ you don't. */ ++#define HAVE_DECL_CLOCK_MONOTONIC 1 ++ ++/* Define to 1 if you have the declaration of `program_invocation_name', and ++ to 0 if you don't. */ ++#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1 ++ ++/* Define to 1 if any of HAVE_DECODER_foo have been defined. */ ++#define HAVE_DECODERS 1 ++ ++/* Define to 1 if arm decoder is enabled. */ ++#define HAVE_DECODER_ARM 1 ++ ++/* Define to 1 if armthumb decoder is enabled. */ ++#define HAVE_DECODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta decoder is enabled. */ ++#define HAVE_DECODER_DELTA 1 ++ ++/* Define to 1 if ia64 decoder is enabled. */ ++#define HAVE_DECODER_IA64 1 ++ ++/* Define to 1 if lzma1 decoder is enabled. */ ++#define HAVE_DECODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 decoder is enabled. */ ++#define HAVE_DECODER_LZMA2 1 ++ ++/* Define to 1 if powerpc decoder is enabled. */ ++#define HAVE_DECODER_POWERPC 1 ++ ++/* Define to 1 if sparc decoder is enabled. */ ++#define HAVE_DECODER_SPARC 1 ++ ++/* Define to 1 if x86 decoder is enabled. */ ++#define HAVE_DECODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Define to 1 if any of HAVE_ENCODER_foo have been defined. */ ++#define HAVE_ENCODERS 1 ++ ++/* Define to 1 if arm encoder is enabled. */ ++#define HAVE_ENCODER_ARM 1 ++ ++/* Define to 1 if armthumb encoder is enabled. */ ++#define HAVE_ENCODER_ARMTHUMB 1 ++ ++/* Define to 1 if delta encoder is enabled. */ ++#define HAVE_ENCODER_DELTA 1 ++ ++/* Define to 1 if ia64 encoder is enabled. */ ++#define HAVE_ENCODER_IA64 1 ++ ++/* Define to 1 if lzma1 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA1 1 ++ ++/* Define to 1 if lzma2 encoder is enabled. */ ++#define HAVE_ENCODER_LZMA2 1 ++ ++/* Define to 1 if powerpc encoder is enabled. */ ++#define HAVE_ENCODER_POWERPC 1 ++ ++/* Define to 1 if sparc encoder is enabled. */ ++#define HAVE_ENCODER_SPARC 1 ++ ++/* Define to 1 if x86 encoder is enabled. */ ++#define HAVE_ENCODER_X86 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_FCNTL_H 1 ++ ++/* Define to 1 if you have the `futimens' function. */ ++#define HAVE_FUTIMENS 1 ++ ++/* Define to 1 if you have the `futimes' function. */ ++/* #undef HAVE_FUTIMES */ ++ ++/* Define to 1 if you have the `futimesat' function. */ ++/* #undef HAVE_FUTIMESAT */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_GETOPT_H 1 ++ ++/* Define to 1 if you have the `getopt_long' function. */ ++#define HAVE_GETOPT_LONG 1 ++ ++/* Define if the GNU gettext() function is already present or preinstalled. */ ++#define HAVE_GETTEXT 1 ++ ++/* Define if you have the iconv() function and it works. */ ++/* #undef HAVE_ICONV */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_IMMINTRIN_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_LIMITS_H 1 ++ ++/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ ++#define HAVE_MBRTOWC 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_MEMORY_H 1 ++ ++/* Define to 1 to enable bt2 match finder. */ ++#define HAVE_MF_BT2 1 ++ ++/* Define to 1 to enable bt3 match finder. */ ++#define HAVE_MF_BT3 1 ++ ++/* Define to 1 to enable bt4 match finder. */ ++#define HAVE_MF_BT4 1 ++ ++/* Define to 1 to enable hc3 match finder. */ ++#define HAVE_MF_HC3 1 ++ ++/* Define to 1 to enable hc4 match finder. */ ++#define HAVE_MF_HC4 1 ++ ++/* Define to 1 if getopt.h declares extern int optreset. */ ++/* #undef HAVE_OPTRESET */ ++ ++/* Define to 1 if you have the `posix_fadvise' function. */ ++#define HAVE_POSIX_FADVISE 1 ++ ++/* Define to 1 if you have the `pthread_condattr_setclock' function. */ ++#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 ++ ++/* Have PTHREAD_PRIO_INHERIT. */ ++#define HAVE_PTHREAD_PRIO_INHERIT 1 ++ ++/* Define to 1 if you have the `SHA256Init' function. */ ++/* #undef HAVE_SHA256INIT */ ++ ++/* Define to 1 if the system has the type `SHA256_CTX'. */ ++/* #undef HAVE_SHA256_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA256_H */ ++ ++/* Define to 1 if you have the `SHA256_Init' function. */ ++/* #undef HAVE_SHA256_INIT */ ++ ++/* Define to 1 if the system has the type `SHA2_CTX'. */ ++/* #undef HAVE_SHA2_CTX */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SHA2_H */ ++ ++/* Define to 1 if optimizing for size. */ ++/* #undef HAVE_SMALL */ ++ ++/* Define to 1 if stdbool.h conforms to C99. */ ++#define HAVE_STDBOOL_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_STRINGS_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ ++ ++/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ ++ ++/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ ++#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 ++ ++/* Define to 1 if `st_uatime' is a member of `struct stat'. */ ++/* #undef HAVE_STRUCT_STAT_ST_UATIME */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_BYTEORDER_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_CAPSICUM_H */ ++ ++/* Define to 1 if you have the header file. */ ++/* #undef HAVE_SYS_ENDIAN_H */ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_PARAM_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TIME_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if the system has the type `uintptr_t'. */ ++#define HAVE_UINTPTR_T 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to 1 if you have the `utime' function. */ ++/* #undef HAVE_UTIME */ ++ ++/* Define to 1 if you have the `utimes' function. */ ++/* #undef HAVE_UTIMES */ ++ ++/* Define to 1 or 0, depending whether the compiler supports simple visibility ++ declarations. */ ++#define HAVE_VISIBILITY 1 ++ ++/* Define to 1 if you have the `wcwidth' function. */ ++#define HAVE_WCWIDTH 1 ++ ++/* Define to 1 if the system has the type `_Bool'. */ ++#define HAVE__BOOL 1 ++ ++/* Define to 1 if you have the `_futime' function. */ ++/* #undef HAVE__FUTIME */ ++ ++/* Define to 1 if _mm_movemask_epi8 is available. */ ++#define HAVE__MM_MOVEMASK_EPI8 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Define to 1 when using POSIX threads (pthreads). */ ++/* #undef MYTHREAD_POSIX */ ++ ++/* Define to 1 when using Windows Vista compatible threads. This uses features ++ that are not available on Windows XP. */ ++#define MYTHREAD_VISTA 1 ++ ++/* Define to 1 when using Windows 95 (and thus XP) compatible threads. This ++ avoids use of features that were added in Windows Vista. */ ++/* #undef MYTHREAD_WIN95 */ ++ ++/* Define to 1 to disable debugging code. */ ++#define NDEBUG 1 ++ ++/* Name of package */ ++#define PACKAGE "xz" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "lasse.collin@tukaani.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "XZ Utils" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "XZ Utils 5.2.3" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "xz" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "http://tukaani.org/xz/" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "5.2.3" ++ ++/* Define to necessary symbol if this constant uses a non-standard name on ++ your system. */ ++/* #undef PTHREAD_CREATE_JOINABLE */ ++ ++/* The size of `size_t', as computed by sizeof. */ ++#define SIZEOF_SIZE_T 8 ++ ++/* Define to 1 if you have the ANSI C header files. */ ++#define STDC_HEADERS 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ cpuset(2). */ ++/* #undef TUKLIB_CPUCORES_CPUSET */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ pstat_getdynamic(). */ ++/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sched_getaffinity() */ ++#define TUKLIB_CPUCORES_SCHED_GETAFFINITY 1 ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ ++/* #undef TUKLIB_CPUCORES_SYSCONF */ ++ ++/* Define to 1 if the number of available CPU cores can be detected with ++ sysctl(). */ ++/* #undef TUKLIB_CPUCORES_SYSCTL */ ++ ++/* Define to 1 if the system supports fast unaligned access to 16-bit and ++ 32-bit integers. */ ++#define TUKLIB_FAST_UNALIGNED_ACCESS 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ _system_configuration.physmem. */ ++/* #undef TUKLIB_PHYSMEM_AIX */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getinvent_r(). */ ++/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ getsysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ pstat_getstatic(). */ ++/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ ++ ++/* Define to 1 if the amount of physical memory can be detected with ++ sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ ++#define TUKLIB_PHYSMEM_SYSCONF 1 ++ ++/* Define to 1 if the amount of physical memory can be detected with sysctl(). ++ */ ++/* #undef TUKLIB_PHYSMEM_SYSCTL */ ++ ++/* Define to 1 if the amount of physical memory can be detected with Linux ++ sysinfo(). */ ++/* #undef TUKLIB_PHYSMEM_SYSINFO */ ++ ++/* Enable extensions on AIX 3, Interix. */ ++#ifndef _ALL_SOURCE ++#define _ALL_SOURCE 1 ++#endif ++/* Enable GNU extensions on systems that have them. */ ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE 1 ++#endif ++/* Enable threading extensions on Solaris. */ ++#ifndef _POSIX_PTHREAD_SEMANTICS ++#define _POSIX_PTHREAD_SEMANTICS 1 ++#endif ++/* Enable extensions on HP NonStop. */ ++#ifndef _TANDEM_SOURCE ++#define _TANDEM_SOURCE 1 ++#endif ++/* Enable general extensions on Solaris. */ ++#ifndef __EXTENSIONS__ ++#define __EXTENSIONS__ 1 ++#endif ++ ++/* Version number of package */ ++#define VERSION "5.4.5" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++#if defined __BIG_ENDIAN__ ++#define WORDS_BIGENDIAN 1 ++#endif ++#else ++#ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++#endif ++#endif ++ ++/* Enable large inode numbers on Mac OS X 10.5. */ ++#ifndef _DARWIN_USE_64_BIT_INODE ++#define _DARWIN_USE_64_BIT_INODE 1 ++#endif ++ ++/* Number of bits in a file offset, on hosts where this is settable. */ ++/* #undef _FILE_OFFSET_BITS */ ++ ++/* Define for large files, on AIX-style hosts. */ ++/* #undef _LARGE_FILES */ ++ ++/* Define to 1 if on MINIX. */ ++/* #undef _MINIX */ ++ ++/* Define to 2 if the system does not provide POSIX.1 features except with ++ this defined. */ ++/* #undef _POSIX_1_SOURCE */ ++ ++/* Define to 1 if you need to in order for `stat' and other things to work. */ ++/* #undef _POSIX_SOURCE */ ++ ++/* Define for Solaris 2.5.1 so the uint32_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT32_T */ ++ ++/* Define for Solaris 2.5.1 so the uint64_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT64_T */ ++ ++/* Define for Solaris 2.5.1 so the uint8_t typedef from , ++ , or is not used. If the typedef were allowed, the ++ #define below would cause a syntax error. */ ++/* #undef _UINT8_T */ ++ ++/* Define to rpl_ if the getopt replacement functions and variables should be ++ used. */ ++/* #undef __GETOPT_PREFIX */ ++ ++/* Define to the type of a signed integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int32_t */ ++ ++/* Define to the type of a signed integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef int64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 16 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint16_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 32 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint32_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 64 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint64_t */ ++ ++/* Define to the type of an unsigned integer type of width exactly 8 bits if ++ such a type exists and the standard includes do not define it. */ ++/* #undef uint8_t */ ++ ++/* Define to the type of an unsigned integer type wide enough to hold a ++ pointer, if such a type exists, and if the system does not define it. */ ++/* #undef uintptr_t */ +diff --git a/tests/test_bcj_exact_size.c b/tests/test_bcj_exact_size.c +index 551166c..2faf384 100644 +--- a/tests/test_bcj_exact_size.c ++++ b/tests/test_bcj_exact_size.c +@@ -96,7 +96,7 @@ test_empty_block(void) + // An empty file with one Block using PowerPC BCJ and LZMA2. + size_t in_size; + uint8_t *empty_bcj_lzma2 = tuktest_file_from_srcdir( +- "files/good-1-empty-bcj-lzma2.xz", &in_size); ++ "tests/files/good-1-empty-bcj-lzma2.xz", &in_size); + + // Decompress without giving any output space. + uint64_t memlimit = 1 << 20; +diff --git a/tests/test_check.c b/tests/test_check.c +index cb1ad25..fd55e31 100644 +--- a/tests/test_check.c ++++ b/tests/test_check.c +@@ -358,25 +358,25 @@ main(int argc, char **argv) + tuktest_start(argc, argv); + + no_check_xz_data = tuktest_file_from_srcdir( +- "files/good-1-check-none.xz", &no_check_size); ++ "tests/files/good-1-check-none.xz", &no_check_size); + + unsupported_check_xz_data = tuktest_file_from_srcdir( +- "files/unsupported-check.xz", ++ "tests/files/unsupported-check.xz", + &unsupported_check_size); + + #ifdef HAVE_CHECK_CRC32 + crc32_xz_data = tuktest_file_from_srcdir( +- "files/good-1-check-crc32.xz", &crc32_size); ++ "tests/files/good-1-check-crc32.xz", &crc32_size); + #endif + + #ifdef HAVE_CHECK_CRC64 + crc64_xz_data = tuktest_file_from_srcdir( +- "files/good-1-check-crc64.xz", &crc64_size); ++ "tests/files/good-1-check-crc64.xz", &crc64_size); + #endif + + #ifdef HAVE_CHECK_SHA256 + sha256_xz_data = tuktest_file_from_srcdir( +- "files/good-1-check-sha256.xz", &sha256_size); ++ "tests/files/good-1-check-sha256.xz", &sha256_size); + #endif + + tuktest_run(test_lzma_crc32); +diff --git a/tests/test_lzip_decoder.c b/tests/test_lzip_decoder.c +index 3743d43..3dfa42a 100644 +--- a/tests/test_lzip_decoder.c ++++ b/tests/test_lzip_decoder.c +@@ -101,7 +101,7 @@ test_v0_decode(void) + // This tests if liblzma can decode lzip version 0 files. + // lzip 1.17 and older can decompress this, but lzip 1.18 + // and newer can no longer decode these files. +- basic_lzip_decode("files/good-1-v0.lz", hello_world_crc); ++ basic_lzip_decode("tests/files/good-1-v0.lz", hello_world_crc); + } + + +@@ -109,7 +109,7 @@ static void + test_v1_decode(void) + { + // This tests decoding a basic lzip v1 file +- basic_lzip_decode("files/good-1-v1.lz", hello_world_crc); ++ basic_lzip_decode("tests/files/good-1-v1.lz", hello_world_crc); + } + + +@@ -205,7 +205,7 @@ decode_expect_error(const char *src, lzma_ret expected_error) + static void + test_v0_trailing(void) + { +- trailing_helper("files/good-1-v0-trailing-1.lz", hello_world_crc, ++ trailing_helper("tests/files/good-1-v0-trailing-1.lz", hello_world_crc, + trailing_garbage_crc); + } + +@@ -213,21 +213,21 @@ test_v0_trailing(void) + static void + test_v1_trailing(void) + { +- trailing_helper("files/good-1-v1-trailing-1.lz", hello_world_crc, ++ trailing_helper("tests/files/good-1-v1-trailing-1.lz", hello_world_crc, + trailing_garbage_crc); + +- // The second files/good-1-v1-trailing-2.lz will have the same ++ // The second tests/files/good-1-v1-trailing-2.lz will have the same + // expected output and trailing output as +- // files/good-1-v1-trailing-1.lz, but this tests if the prefix ++ // tests/files/good-1-v1-trailing-1.lz, but this tests if the prefix + // to the trailing data contains lzip magic bytes. + // When this happens, the expected behavior is to silently ignore + // the magic byte prefix and consume it from the input file. +- trailing_helper("files/good-1-v1-trailing-2.lz", hello_world_crc, ++ trailing_helper("tests/files/good-1-v1-trailing-2.lz", hello_world_crc, + trailing_garbage_crc); + + // Expect LZMA_BUF error if a file ends with the lzip magic bytes + // but does not contain any data after +- decode_expect_error("files/bad-1-v1-trailing-magic.lz", ++ decode_expect_error("tests/files/bad-1-v1-trailing-magic.lz", + LZMA_BUF_ERROR); + } + +@@ -241,7 +241,7 @@ test_concatentated(void) + + lzma_stream strm = LZMA_STREAM_INIT; + size_t file_size; +- uint8_t *v0_v1 = tuktest_file_from_srcdir("files/good-2-v0-v1.lz", ++ uint8_t *v0_v1 = tuktest_file_from_srcdir("tests/files/good-2-v0-v1.lz", + &file_size); + + assert_lzma_ret(lzma_lzip_decoder(&strm, MEMLIMIT, +@@ -262,7 +262,7 @@ test_concatentated(void) + assert_uint_eq(checksum, hello_world_crc); + + // The second file contains one v1 member and one v2 member +- uint8_t *v1_v0 = tuktest_file_from_srcdir("files/good-2-v1-v0.lz", ++ uint8_t *v1_v0 = tuktest_file_from_srcdir("tests/files/good-2-v1-v0.lz", + &file_size); + + assert_lzma_ret(lzma_lzip_decoder(&strm, MEMLIMIT, +@@ -280,7 +280,7 @@ test_concatentated(void) + assert_uint_eq(checksum, hello_world_crc); + + // The third file contains 2 v1 members +- uint8_t *v1_v1 = tuktest_file_from_srcdir("files/good-2-v1-v1.lz", ++ uint8_t *v1_v1 = tuktest_file_from_srcdir("tests/files/good-2-v1-v1.lz", + &file_size); + + assert_lzma_ret(lzma_lzip_decoder(&strm, MEMLIMIT, +@@ -307,7 +307,7 @@ test_crc(void) + // Test invalid checksum + lzma_stream strm = LZMA_STREAM_INIT; + size_t file_size; +- uint8_t *data = tuktest_file_from_srcdir("files/bad-1-v1-crc32.lz", ++ uint8_t *data = tuktest_file_from_srcdir("tests/files/bad-1-v1-crc32.lz", + &file_size); + + assert_lzma_ret(lzma_lzip_decoder(&strm, MEMLIMIT, +@@ -385,7 +385,7 @@ test_invalid_version(void) + { + // The file contains a version number that is not 0 or 1, + // so it should cause an error +- decode_expect_error("files/unsupported-1-v234.lz", ++ decode_expect_error("tests/files/unsupported-1-v234.lz", + LZMA_OPTIONS_ERROR); + } + +@@ -394,10 +394,10 @@ static void + test_invalid_dictionary_size(void) + { + // First file has too small dictionary size field +- decode_expect_error("files/bad-1-v1-dict-1.lz", LZMA_DATA_ERROR); ++ decode_expect_error("tests/files/bad-1-v1-dict-1.lz", LZMA_DATA_ERROR); + + // Second file has too large dictionary size field +- decode_expect_error("files/bad-1-v1-dict-2.lz", LZMA_DATA_ERROR); ++ decode_expect_error("tests/files/bad-1-v1-dict-2.lz", LZMA_DATA_ERROR); + } + + +@@ -405,11 +405,11 @@ static void + test_invalid_uncomp_size(void) + { + // Test invalid v0 lzip file uncomp size +- decode_expect_error("files/bad-1-v0-uncomp-size.lz", ++ decode_expect_error("tests/files/bad-1-v0-uncomp-size.lz", + LZMA_DATA_ERROR); + + // Test invalid v1 lzip file uncomp size +- decode_expect_error("files/bad-1-v1-uncomp-size.lz", ++ decode_expect_error("tests/files/bad-1-v1-uncomp-size.lz", + LZMA_DATA_ERROR); + } + +@@ -417,7 +417,7 @@ test_invalid_uncomp_size(void) + static void + test_invalid_member_size(void) + { +- decode_expect_error("files/bad-1-v1-member-size.lz", ++ decode_expect_error("tests/files/bad-1-v1-member-size.lz", + LZMA_DATA_ERROR); + } + +@@ -428,7 +428,7 @@ test_invalid_memlimit(void) + // A very low memlimit should prevent decoding. + // Should be able to update the memlimit after failing + size_t file_size; +- uint8_t *data = tuktest_file_from_srcdir("files/good-1-v1.lz", ++ uint8_t *data = tuktest_file_from_srcdir("tests/files/good-1-v1.lz", + &file_size); + + uint8_t output_buffer[DECODE_CHUNK_SIZE]; +diff --git a/tests/test_memlimit.c b/tests/test_memlimit.c +index c45a44b..09bf82c 100644 +--- a/tests/test_memlimit.c ++++ b/tests/test_memlimit.c +@@ -104,7 +104,7 @@ test_memlimit_alone_decoder(void) + #else + size_t alone_size; + uint8_t *alone_buf = tuktest_file_from_srcdir( +- "files/good-unknown_size-with_eopm.lzma", &alone_size); ++ "tests/files/good-unknown_size-with_eopm.lzma", &alone_size); + + lzma_stream strm = LZMA_STREAM_INIT; + assert_lzma_ret(lzma_alone_decoder(&strm, MEMLIMIT_TOO_LOW), LZMA_OK); +@@ -162,7 +162,7 @@ main(int argc, char **argv) + { + tuktest_start(argc, argv); + +- in = tuktest_file_from_srcdir("files/good-1-check-crc32.xz", &in_size); ++ in = tuktest_file_from_srcdir("tests/files/good-1-check-crc32.xz", &in_size); + + tuktest_run(test_memlimit_stream_decoder); + tuktest_run(test_memlimit_stream_decoder_mt); +diff --git a/tools.bzl b/tools.bzl +new file mode 100644 +index 0000000..88a1322 +--- /dev/null ++++ b/tools.bzl +@@ -0,0 +1,13 @@ ++def multi_test( ++ names = [], ++ **kwargs): ++ tests = [] ++ for name in names: ++ native.cc_test( ++ name = name, ++ srcs = ["tests/" + name + ".c"], ++ **kwargs ++ ) ++ tests.append(":" + name) ++ ++ return tests +diff --git a/update_lzma_config_header.sh b/update_lzma_config_header.sh +new file mode 100755 +index 0000000..e9aefb4 +--- /dev/null ++++ b/update_lzma_config_header.sh +@@ -0,0 +1,74 @@ ++#!/usr/bin/env bash ++ ++# This is a helper script to update the config header for LZMA, i.e. ++# - config.lzma-android.h, ++# - config.lzma-ios-arm64.h ++# - config.lzma-ios-armv7.h ++# - config.lzma-ios-i386.h ++# - config.lzma-linux.h ++# - config.lzma-osx-arm64.h ++# - config.lzma-osx-x86_64.h ++# - config.lzma-windows.h ++# ++# Those files are dependent on the target OS and architecture. ++# Every time the version number of xz is bumped the corresponding config headers should be updated. ++# Note: This script has to be executed on macOS, Linux, and Windows since the configuration of the headers is specific to the underlying OS environment ++ ++# Fail on error, etc. ++set -euxo pipefail ++ ++# Get script location ++script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" ++ ++# Path where the WORKSPACE file is located ++rules_boost_dir=$script_dir ++ ++# Create a temporary directory ++tmpdir=$(mktemp -d) ++ ++# Get rid of temporary files when script exits ++trap "rm -rf $tmpdir" EXIT ++ ++# Version number of xz ++xz_version_number="5.4.2" ++ ++# Download, and untar xz ++cd "$tmpdir" ++curl -sL 'https://github.com/tukaani-project/xz/releases/download/v'$xz_version_number'/xz-'$xz_version_number'.tar.gz' --output 'xz-'$xz_version_number'.tar.gz' ++tar -xf 'xz-'$xz_version_number'.tar.gz' ++ ++# Switch to xz directory ++cd 'xz-'$xz_version_number ++ ++# config header files depend on the specific OS ++if [[ "$OSTYPE" == "linux-gnu"* ]]; then ++ ./configure ++ cp config.h "${rules_boost_dir}/config.lzma-linux.h" ++elif [[ "$OSTYPE" == "darwin"* ]]; then ++ CC="clang -arch x86_64" ./configure --host=$MACHTYPE ++ cp config.h "${rules_boost_dir}/config.lzma-osx-x86_64.h" ++ ++ CC="clang -arch arm64" ./configure --host=$MACHTYPE ++ cp config.h "${rules_boost_dir}/config.lzma-osx-arm64.h" ++ ++ CC="clang -arch arm64 \ ++ -isysroot $(xcrun --sdk iphoneos --show-sdk-path)" \ ++ ./configure --host=$MACHTYPE ++ cp config.h "${rules_boost_dir}/config.lzma-ios-arm64.h" ++ ++ CC="clang -arch armv7 \ ++ -isysroot $(xcrun --sdk iphoneos --show-sdk-path)" \ ++ ./configure --host=$MACHTYPE ++ cp config.h "${rules_boost_dir}/config.lzma-ios-armv7.h" ++ ++ CC="clang -arch i386 \ ++ -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)" \ ++ ./configure --host=$MACHTYPE ++ cp config.h "${rules_boost_dir}/config.lzma-ios-i386.h" ++elif [[ "$OSTYPE" == "msys"* ]]; then ++ ./configure ++ cp config.h "${rules_boost_dir}/config.lzma-windows.h" ++else ++ echo "Unsupported OS" ++ echo "$OSTYPE" ++fi diff --git a/modules/xz/5.4.5.bcr.1/presubmit.yml b/modules/xz/5.4.5.bcr.1/presubmit.yml new file mode 100644 index 00000000000..f20c826fe3a --- /dev/null +++ b/modules/xz/5.4.5.bcr.1/presubmit.yml @@ -0,0 +1,30 @@ +matrix: &matrix + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + # - ubuntu2004_arm64 + - windows + bazel: [6.x, 7.x, rolling] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@xz//:lzma" +bcr_test_module: + module_path: "" + matrix: *matrix + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_flags: + - "--enable_runfiles" + test_targets: + - all_tests diff --git a/modules/xz/5.4.5.bcr.1/source.json b/modules/xz/5.4.5.bcr.1/source.json new file mode 100644 index 00000000000..b1215b77e7e --- /dev/null +++ b/modules/xz/5.4.5.bcr.1/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/tukaani-project/xz/releases/download/v5.4.5/xz-5.4.5.tar.gz", + "integrity": "sha256-E1yQuTSu6PvA1Gfeh6Bctw1ifaNqvlGMNXqHNwnlt9Y=", + "strip_prefix": "xz-5.4.5", + "patches": { + "patch.diff": "sha256-zGKSAcrpWoOuhXHxYY0G3ATy2pCp7+vkYKLbF4BEGfo=" + }, + "patch_strip": 1 +} diff --git a/modules/xz/metadata.json b/modules/xz/metadata.json index 3c804faf4a5..2a71a4aae23 100644 --- a/modules/xz/metadata.json +++ b/modules/xz/metadata.json @@ -16,7 +16,8 @@ "github:tukaani-project/xz" ], "versions": [ - "5.4.5" + "5.4.5", + "5.4.5.bcr.1" ], "yanked_versions": {} } \ No newline at end of file From 6fa8eb6d8ff53438320e18d26507baaeac5c5e1f Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 08:43:57 -0400 Subject: [PATCH 12/62] aspect_rules_js@1.39.1 (#1654) Release: https://github.com/aspect-build/rules_js/releases/tag/v1.39.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Jason Bedard --- modules/aspect_rules_js/1.39.1/MODULE.bazel | 244 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 + modules/aspect_rules_js/1.39.1/presubmit.yml | 12 + modules/aspect_rules_js/1.39.1/source.json | 9 + modules/aspect_rules_js/metadata.json | 3 +- 5 files changed, 281 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_js/1.39.1/MODULE.bazel create mode 100644 modules/aspect_rules_js/1.39.1/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_js/1.39.1/presubmit.yml create mode 100644 modules/aspect_rules_js/1.39.1/source.json diff --git a/modules/aspect_rules_js/1.39.1/MODULE.bazel b/modules/aspect_rules_js/1.39.1/MODULE.bazel new file mode 100644 index 00000000000..e6afa59e284 --- /dev/null +++ b/modules/aspect_rules_js/1.39.1/MODULE.bazel @@ -0,0 +1,244 @@ +"aspect-build/rules_js" + +module( + name = "aspect_rules_js", + version = "1.39.1", + compatibility_level = 1, +) + +# Lower-bounds for runtime dependencies. +# Do not bump these unless rules_js requires a newer version to function. +bazel_dep(name = "aspect_bazel_lib", version = "1.40.3") +bazel_dep(name = "aspect_rules_lint", version = "0.12.0") +bazel_dep(name = "bazel_features", version = "0.1.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") + +# Keep v5 in to avoid breaking changes. +# TODO(2.0): change minimum to v6 +bazel_dep(name = "rules_nodejs", version = "5.8.2") + +# Override rules_nodejs to v6 to test the latest and recommended version internally. +single_version_override( + module_name = "rules_nodejs", + version = "6.0.5", +) + +bazel_dep(name = "platforms", version = "0.0.5") + +node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") +use_repo(node, "nodejs_darwin_amd64") +use_repo(node, "nodejs_darwin_arm64") +use_repo(node, "nodejs_linux_amd64") +use_repo(node, "nodejs_linux_arm64") +use_repo(node, "nodejs_linux_ppc64le") +use_repo(node, "nodejs_linux_s390x") +use_repo(node, "nodejs_windows_amd64") + +pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") +pnpm.pnpm( + name = "pnpm", + pnpm_version = "8.6.7", + pnpm_version_integrity = "sha512-vRIWpD/L4phf9Bk2o/O2TDR8fFoJnpYrp2TKqTIZF/qZ2/rgL3qKXzHofHgbXsinwMoSEigz28sqk3pQ+yMEQQ==", +) +use_repo(pnpm, "pnpm", "pnpm__links") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +use_repo(bazel_lib_toolchains, "coreutils_toolchains") +use_repo(bazel_lib_toolchains, "yq_darwin_amd64") +use_repo(bazel_lib_toolchains, "yq_darwin_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_amd64") +use_repo(bazel_lib_toolchains, "yq_linux_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_ppc64le") +use_repo(bazel_lib_toolchains, "yq_linux_s390x") +use_repo(bazel_lib_toolchains, "yq_windows_amd64") + +####### Dev dependencies ######## + +bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "rules_go", version = "0.41.0", dev_dependency = True) + +host = use_extension( + "@aspect_bazel_lib//lib:extensions.bzl", + "host", + dev_dependency = True, +) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +node_dev = use_extension( + "@rules_nodejs//nodejs:extensions.bzl", + "node", + dev_dependency = True, +) +use_repo(node_dev, "nodejs_toolchains") +use_repo(node_dev, "node20_linux_amd64") +use_repo(node_dev, "node20_darwin_arm64") +use_repo(node_dev, "node20_darwin_amd64") +use_repo(node_dev, "node20_linux_arm64") +use_repo(node_dev, "node20_linux_s390x") +use_repo(node_dev, "node20_linux_ppc64le") +use_repo(node_dev, "node20_windows_amd64") +use_repo(node_dev, "node18_linux_amd64") +use_repo(node_dev, "node18_darwin_arm64") +use_repo(node_dev, "node18_darwin_amd64") +use_repo(node_dev, "node18_linux_arm64") +use_repo(node_dev, "node18_linux_s390x") +use_repo(node_dev, "node18_linux_ppc64le") +use_repo(node_dev, "node18_windows_amd64") +use_repo(node_dev, "node16_linux_amd64") +use_repo(node_dev, "node16_darwin_arm64") +use_repo(node_dev, "node16_darwin_amd64") +use_repo(node_dev, "node16_linux_arm64") +use_repo(node_dev, "node16_linux_s390x") +use_repo(node_dev, "node16_linux_ppc64le") +use_repo(node_dev, "node16_windows_amd64") +node_dev.toolchain(node_version = "16.14.2") +node_dev.toolchain( + name = "node16", + node_version = "16.13.1", +) +node_dev.toolchain( + name = "node18", + node_version = "18.13.0", +) +node_dev.toolchain( + name = "node20", + node_version = "20.11.1", +) + +############################################ +# npm dependencies used by examples + +npm = use_extension( + "@aspect_rules_js//npm:extensions.bzl", + "npm", + dev_dependency = True, +) +npm.npm_translate_lock( + name = "npm", + bins = { + # derived from "bin" attribute in node_modules/typescript/package.json + "typescript": [ + "tsc=./bin/tsc", + "tsserver=./bin/tsserver", + ], + }, + custom_postinstalls = { + "@aspect-test/c": "echo moo > cow.txt", + "@aspect-test/c@2.0.2": "echo mooo >> cow.txt", + }, + data = [ + "//:examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch", + "//:package.json", + "//:pnpm-workspace.yaml", + "//examples/js_binary:package.json", + "//examples/macro:package.json", + "//examples/npm_deps:package.json", + "//examples/npm_package/libs/lib_a:package.json", + "//examples/npm_package/packages/pkg_a:package.json", + "//examples/npm_package/packages/pkg_b:package.json", + "//examples/webpack_cli:package.json", + "//js/private/coverage/bundle:package.json", + "//js/private/worker/src:package.json", + "//npm/private/test:package.json", + "//npm/private/test:vendored/lodash-4.17.21.tgz", + "//npm/private/test/npm_package:package.json", + "//npm/private/test/vendored/is-odd:package.json", + "//npm/private/test/vendored/semver-max:package.json", + ], + generate_bzl_library_targets = True, + lifecycle_hooks = { + # We fetch @kubernetes/client-node from source and it has a `prepare` lifecycle hook that needs to be run + # which runs the `build` package.json script: https://github.com/kubernetes-client/javascript/blob/fc681991e61c6808dd26012a2331f83671a11218/package.json#L28. + # Here we run run build so we just run `tsc` instead of `npm run build` which ends up just running `tsc`. + "@kubernetes/client-node": ["build"], + # 'install' hook fails as it assumes the following path to `node-pre-gyp`: ./node_modules/.bin/node-pre-gyp + # https://github.com/stultuss/protoc-gen-grpc-ts/blob/53d52a9d0e1fe3cbe930dec5581eca89b3dde807/package.json#L28 + "protoc-gen-grpc@2.0.3": [], + }, + lifecycle_hooks_execution_requirements = { + "*": [ + "no-sandbox", + ], + # If @kubernetes/client-node is not sandboxed, will fail with + # ``` + # src/azure_auth.ts(97,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/azure_auth.ts(98,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(93,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(94,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # ``` + # since a `jsonpath-plus@7.2.0` that is newer then the transitive dep `jsonpath-plus@0.19.0` is found outside of the sandbox that + # includes typings that don't match the 0.19.0 "any" usage. + "@kubernetes/client-node": [], + "@figma/nodegit": [ + "no-sandbox", + "requires-network", + ], + "esbuild": [ + "no-sandbox", + "requires-network", + ], + "segfault-handler": [ + "no-sandbox", + "requires-network", + ], + "puppeteer": [ + "no-sandbox", + "requires-network", + ], + }, + npmrc = "//:.npmrc", + package_visibility = { + "unused": ["//visibility:private"], + "@mycorp/pkg-a": ["//examples:__subpackages__"], + }, + patch_args = { + "*": ["-p1"], + }, + patches = { + "meaning-of-life@1.0.0": ["//examples/npm_deps:patches/meaning-of-life@1.0.0-after_pnpm.patch"], + }, + pnpm_lock = "//:pnpm-lock.yaml", + public_hoist_packages = { + # Instructs the linker to hoist the ms@2.1.3 npm package to `node_modules/ms` in the `examples/npm_deps` package. + # Similar to adding `public-hoist-pattern[]=ms` in .npmrc but with control over which version to hoist and where + # to hoist it. This hoisted package can be referenced by the label `//examples/npm_deps:node_modules/ms` same as + # other direct dependencies in the `examples/npm_deps/package.json`. + "ms@2.1.3": ["examples/npm_deps"], + }, + replace_packages = { + "chalk@5.0.1": "@chalk_501//:pkg", + }, + update_pnpm_lock = True, + verify_node_modules_ignored = "//:.bazelignore", + verify_patches = "//examples/npm_deps/patches:patches", +) +use_repo(npm, "npm", "npm__rollup__2.70.2", "npm__webpack-bundle-analyzer__4.5.0__bufferutil_4.0.7") + +# As an example, manually import a package using explicit coordinates. +# Just a demonstration of the syntax de-sugaring. +npm.npm_import( + name = "acorn__8.4.0", + bins = {"acorn": "./bin/acorn"}, + integrity = "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + package = "acorn", + # Root package where to link the virtual store + root_package = "", + version = "8.4.0", +) +use_repo(npm, "acorn__8.4.0") +use_repo(npm, "acorn__8.4.0__links") + +# Used by formatter +go_sdk = use_extension( + "@rules_go//go:extensions.bzl", + "go_sdk", + dev_dependency = True, +) +go_sdk.download( + name = "go_sdk", + version = "1.20.3", +) +use_repo(go_sdk, "go_sdk") diff --git a/modules/aspect_rules_js/1.39.1/patches/module_dot_bazel_version.patch b/modules/aspect_rules_js/1.39.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..545fb70cb3e --- /dev/null +++ b/modules/aspect_rules_js/1.39.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/rules_js" + + module( + name = "aspect_rules_js", +- version = "0.0.0", ++ version = "1.39.1", + compatibility_level = 1, + ) + + # Lower-bounds for runtime dependencies. diff --git a/modules/aspect_rules_js/1.39.1/presubmit.yml b/modules/aspect_rules_js/1.39.1/presubmit.yml new file mode 100644 index 00000000000..33f56fee944 --- /dev/null +++ b/modules/aspect_rules_js/1.39.1/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/bzlmod' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004', 'windows'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_js/1.39.1/source.json b/modules/aspect_rules_js/1.39.1/source.json new file mode 100644 index 00000000000..88b5d1c0cc4 --- /dev/null +++ b/modules/aspect_rules_js/1.39.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-Y89CsHquNJBER8dPW0FlLEkzmEzDJXJmc6XkVh2Xiec=", + "strip_prefix": "rules_js-1.39.1", + "url": "https://github.com/aspect-build/rules_js/releases/download/v1.39.1/rules_js-v1.39.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-EREtk1OrnWOqx331g7m20w9FeN3Rf+qoFHX/Y23ybYM=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_js/metadata.json b/modules/aspect_rules_js/metadata.json index 08611b22e31..45e7197a6e1 100644 --- a/modules/aspect_rules_js/metadata.json +++ b/modules/aspect_rules_js/metadata.json @@ -91,7 +91,8 @@ "1.37.0", "1.37.1", "1.38.0", - "1.39.0" + "1.39.0", + "1.39.1" ], "yanked_versions": {} } From 3d4e46c87e8fd3fc9499fb54a53efdc5fbfcd9f9 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Wed, 20 Mar 2024 14:06:34 +0100 Subject: [PATCH 13/62] tclap@1.2.5 (#1646) Release: https://github.com/mirror/tclap/releases/tag/v1.2.5 --- modules/tclap/1.2.5/MODULE.bazel | 5 +++++ .../tclap/1.2.5/patches/add_build_file.patch | 9 +++++++++ .../tclap/1.2.5/patches/module_dot_bazel.patch | 8 ++++++++ modules/tclap/1.2.5/presubmit.yml | 17 +++++++++++++++++ modules/tclap/1.2.5/source.json | 10 ++++++++++ modules/tclap/metadata.json | 16 ++++++++++++++++ 6 files changed, 65 insertions(+) create mode 100644 modules/tclap/1.2.5/MODULE.bazel create mode 100644 modules/tclap/1.2.5/patches/add_build_file.patch create mode 100644 modules/tclap/1.2.5/patches/module_dot_bazel.patch create mode 100644 modules/tclap/1.2.5/presubmit.yml create mode 100644 modules/tclap/1.2.5/source.json create mode 100644 modules/tclap/metadata.json diff --git a/modules/tclap/1.2.5/MODULE.bazel b/modules/tclap/1.2.5/MODULE.bazel new file mode 100644 index 00000000000..a7090a305eb --- /dev/null +++ b/modules/tclap/1.2.5/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "tclap", + version = "1.2.5", + compatibility_level = 1, +) diff --git a/modules/tclap/1.2.5/patches/add_build_file.patch b/modules/tclap/1.2.5/patches/add_build_file.patch new file mode 100644 index 00000000000..9fe37fb943c --- /dev/null +++ b/modules/tclap/1.2.5/patches/add_build_file.patch @@ -0,0 +1,9 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,6 @@ ++cc_library( ++ name = "tclap", ++ hdrs = glob(["include/tclap/*.h"]), ++ includes = ["include"], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/tclap/1.2.5/patches/module_dot_bazel.patch b/modules/tclap/1.2.5/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..8f299c39335 --- /dev/null +++ b/modules/tclap/1.2.5/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "tclap", ++ version = "1.2.5", ++ compatibility_level = 1, ++) diff --git a/modules/tclap/1.2.5/presubmit.yml b/modules/tclap/1.2.5/presubmit.yml new file mode 100644 index 00000000000..60b0aed56d3 --- /dev/null +++ b/modules/tclap/1.2.5/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@tclap//:tclap' diff --git a/modules/tclap/1.2.5/source.json b/modules/tclap/1.2.5/source.json new file mode 100644 index 00000000000..ad8f82d51eb --- /dev/null +++ b/modules/tclap/1.2.5/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/mirror/tclap/archive/refs/tags/v1.2.5.tar.gz", + "integrity": "sha256-fofRNzQHb6T2JvYUTOmgJxcZiz8FQ0GmiG4hB7BIsjU=", + "strip_prefix": "tclap-1.2.5", + "patches": { + "add_build_file.patch": "sha256-tCVQ3KII3o22b6T0I7XydMrGvJ90acqdqEHsgj/6Z94=", + "module_dot_bazel.patch": "sha256-YJYKrDeaBBPMAdb7XZtAGKIhECPLsAzNitkGweSDgnY=" + }, + "patch_strip": 0 +} diff --git a/modules/tclap/metadata.json b/modules/tclap/metadata.json new file mode 100644 index 00000000000..5c3f64eded9 --- /dev/null +++ b/modules/tclap/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/mirror/tclap", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:mirror/tclap" + ], + "versions": [ + "1.2.5" + ], + "yanked_versions": {} +} \ No newline at end of file From 9606739584b4a3ef431315276261664885eea102 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Wed, 20 Mar 2024 14:06:45 +0100 Subject: [PATCH 14/62] xxhash@0.8.2 (#1645) Release: https://github.com/Cyan4973/xxHash/releases/tag/v0.8.2 --- modules/xxhash/0.8.2/MODULE.bazel | 5 +++++ .../xxhash/0.8.2/patches/add_build_file.patch | 12 ++++++++++++ .../xxhash/0.8.2/patches/module_dot_bazel.patch | 8 ++++++++ modules/xxhash/0.8.2/presubmit.yml | 17 +++++++++++++++++ modules/xxhash/0.8.2/source.json | 10 ++++++++++ modules/xxhash/metadata.json | 16 ++++++++++++++++ 6 files changed, 68 insertions(+) create mode 100644 modules/xxhash/0.8.2/MODULE.bazel create mode 100644 modules/xxhash/0.8.2/patches/add_build_file.patch create mode 100644 modules/xxhash/0.8.2/patches/module_dot_bazel.patch create mode 100644 modules/xxhash/0.8.2/presubmit.yml create mode 100644 modules/xxhash/0.8.2/source.json create mode 100644 modules/xxhash/metadata.json diff --git a/modules/xxhash/0.8.2/MODULE.bazel b/modules/xxhash/0.8.2/MODULE.bazel new file mode 100644 index 00000000000..88d897aac3b --- /dev/null +++ b/modules/xxhash/0.8.2/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "xxhash", + version = "0.8.2", + compatibility_level = 1, +) diff --git a/modules/xxhash/0.8.2/patches/add_build_file.patch b/modules/xxhash/0.8.2/patches/add_build_file.patch new file mode 100644 index 00000000000..7e1b5dfe1d5 --- /dev/null +++ b/modules/xxhash/0.8.2/patches/add_build_file.patch @@ -0,0 +1,12 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,9 @@ ++cc_library( ++ name = "xxhash", ++ srcs = ["xxhash.c"], ++ hdrs = [ ++ "xxh3.h", ++ "xxhash.h", ++ ], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/xxhash/0.8.2/patches/module_dot_bazel.patch b/modules/xxhash/0.8.2/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..3a4a826fb2f --- /dev/null +++ b/modules/xxhash/0.8.2/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "xxhash", ++ version = "0.8.2", ++ compatibility_level = 1, ++) diff --git a/modules/xxhash/0.8.2/presubmit.yml b/modules/xxhash/0.8.2/presubmit.yml new file mode 100644 index 00000000000..44232e2e1bd --- /dev/null +++ b/modules/xxhash/0.8.2/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@xxhash//:xxhash' diff --git a/modules/xxhash/0.8.2/source.json b/modules/xxhash/0.8.2/source.json new file mode 100644 index 00000000000..56782320d92 --- /dev/null +++ b/modules/xxhash/0.8.2/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.2.tar.gz", + "integrity": "sha256-uu4Mav1PAxZd56TmeYjRbw8rJXtR0OPLkZCTAqJqecQ=", + "strip_prefix": "xxHash-0.8.2", + "patches": { + "add_build_file.patch": "sha256-WQDdUpYas3Sbezqz0dJ5kMdr/c729ki+QLZv4iwEOj8=", + "module_dot_bazel.patch": "sha256-ZLVQs0CBa7/fVGDx0804Hg7ORsWd92G06m2z1N5PeMg=" + }, + "patch_strip": 0 +} diff --git a/modules/xxhash/metadata.json b/modules/xxhash/metadata.json new file mode 100644 index 00000000000..f02730650a3 --- /dev/null +++ b/modules/xxhash/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/Cyan4973/xxHash", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:Cyan4973/xxHash" + ], + "versions": [ + "0.8.2" + ], + "yanked_versions": {} +} From 3e7ec9fad069539ed9e0de6a29ed96cad7226ed1 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:45:11 +0100 Subject: [PATCH 15/62] rules_java@7.5.0 (#1655) Release: https://github.com/bazelbuild/rules_java/releases/tag/7.5.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: bazel.build machine account --- modules/rules_java/7.5.0/MODULE.bazel | 89 ++++++++++++++++++++++++++ modules/rules_java/7.5.0/presubmit.yml | 16 +++++ modules/rules_java/7.5.0/source.json | 5 ++ modules/rules_java/metadata.json | 3 +- 4 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 modules/rules_java/7.5.0/MODULE.bazel create mode 100644 modules/rules_java/7.5.0/presubmit.yml create mode 100644 modules/rules_java/7.5.0/source.json diff --git a/modules/rules_java/7.5.0/MODULE.bazel b/modules/rules_java/7.5.0/MODULE.bazel new file mode 100644 index 00000000000..97b74baeb7f --- /dev/null +++ b/modules/rules_java/7.5.0/MODULE.bazel @@ -0,0 +1,89 @@ +module( + name = "rules_java", + version = "7.5.0", + # Requires @bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type. + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.4") +bazel_dep(name = "rules_cc", version = "0.0.2") +bazel_dep(name = "bazel_skylib", version = "1.2.0") + +# Required by @remote_java_tools, which is loaded via module extension. +bazel_dep(name = "rules_proto", version = "4.0.0") +bazel_dep(name = "rules_license", version = "0.0.3") + +register_toolchains("//toolchains:all") + +toolchains = use_extension("//java:extensions.bzl", "toolchains") + +# Declare remote java tools repos +use_repo(toolchains, "remote_java_tools") +use_repo(toolchains, "remote_java_tools_linux") +use_repo(toolchains, "remote_java_tools_windows") +use_repo(toolchains, "remote_java_tools_darwin_x86_64") +use_repo(toolchains, "remote_java_tools_darwin_arm64") + +# Declare local jdk repo +use_repo(toolchains, "local_jdk") + +register_toolchains( + "@local_jdk//:runtime_toolchain_definition", + "@local_jdk//:bootstrap_runtime_toolchain_definition", +) + +# Declare all remote jdk toolchain config repos +JDKS = { + # Must match JDK repos defined in remote_jdk11_repos() + "11": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], + # Must match JDK repos defined in remote_jdk17_repos() + "17": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], + # Must match JDK repos defined in remote_jdk21_repos() + "21": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], +} + +REMOTE_JDK_REPOS = [("remotejdk" + version + "_" + platform) for version in JDKS for platform in JDKS[version]] + +[use_repo( + toolchains, + repo + "_toolchain_config_repo", +) for repo in REMOTE_JDK_REPOS] + +[register_toolchains("@" + name + "_toolchain_config_repo//:all") for name in REMOTE_JDK_REPOS] + +# Dev dependencies +bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True) + +# Override rules_python version to deal with #161 and https://github.com/bazelbuild/bazel/issues/20458 +single_version_override( + module_name = "rules_python", + version = "0.24.0", +) diff --git a/modules/rules_java/7.5.0/presubmit.yml b/modules/rules_java/7.5.0/presubmit.yml new file mode 100644 index 00000000000..a99433433d0 --- /dev/null +++ b/modules/rules_java/7.5.0/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - centos7 + - debian10 + - macos + - ubuntu2004 + - windows + bazel: + - 7.x +tasks: + verify_build_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_java//java/..." diff --git a/modules/rules_java/7.5.0/source.json b/modules/rules_java/7.5.0/source.json new file mode 100644 index 00000000000..ecb5ecf2a64 --- /dev/null +++ b/modules/rules_java/7.5.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-TaN2H2hVrZFlaOK/6GITum0mN/Vrg2BTin+2Elq/ZRg=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_java/releases/download/7.5.0/rules_java-7.5.0.tar.gz" +} diff --git a/modules/rules_java/metadata.json b/modules/rules_java/metadata.json index 2cc201eb349..6285418a579 100644 --- a/modules/rules_java/metadata.json +++ b/modules/rules_java/metadata.json @@ -35,7 +35,8 @@ "7.3.0", "7.3.1", "7.3.2", - "7.4.0" + "7.4.0", + "7.5.0" ], "yanked_versions": { "6.3.3": "6.3.3 is a broken version.", From 546a3a28a5514c657854fad9cead4b36201092b2 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 21 Mar 2024 02:57:15 -0700 Subject: [PATCH 16/62] Add rpmpack (#1658) Forked from https://github.com/bazelbuild/bazel-central-registry/pull/1484 Very minor changes compared to the original PR, I fixed the targets in the presubmit.yml, added the missing strip_prefix in the source.json, and put the correct MODULE.bazel contents here since they are already setup correctly upstream --- modules/rpmpack/0.6.0/MODULE.bazel | 20 ++++++++++++++++ modules/rpmpack/0.6.0/presubmit.yml | 37 +++++++++++++++++++++++++++++ modules/rpmpack/0.6.0/source.json | 6 +++++ modules/rpmpack/metadata.json | 17 +++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 modules/rpmpack/0.6.0/MODULE.bazel create mode 100644 modules/rpmpack/0.6.0/presubmit.yml create mode 100644 modules/rpmpack/0.6.0/source.json create mode 100644 modules/rpmpack/metadata.json diff --git a/modules/rpmpack/0.6.0/MODULE.bazel b/modules/rpmpack/0.6.0/MODULE.bazel new file mode 100644 index 00000000000..0cb0f3b57ce --- /dev/null +++ b/modules/rpmpack/0.6.0/MODULE.bazel @@ -0,0 +1,20 @@ +module( + name = "rpmpack", + version = "0.6.0", +) + +bazel_dep(name = "rules_go", version = "0.46.0") +bazel_dep(name = "gazelle", version = "0.35.0") + +go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") + +# All *direct* Go dependencies of the module have to be listed explicitly. +use_repo( + go_deps, + "com_github_cavaliergopher_cpio", + "com_github_google_go_cmp", + "com_github_klauspost_compress", + "com_github_klauspost_pgzip", + "com_github_ulikunitz_xz", +) diff --git a/modules/rpmpack/0.6.0/presubmit.yml b/modules/rpmpack/0.6.0/presubmit.yml new file mode 100644 index 00000000000..e97bea88175 --- /dev/null +++ b/modules/rpmpack/0.6.0/presubmit.yml @@ -0,0 +1,37 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rpmpack//cmd/tar2rpm' +bcr_test_module: + module_path: example_bazel + matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '//:rpmtest-tar' + - '//:rpmtest' diff --git a/modules/rpmpack/0.6.0/source.json b/modules/rpmpack/0.6.0/source.json new file mode 100644 index 00000000000..51d9e93c53d --- /dev/null +++ b/modules/rpmpack/0.6.0/source.json @@ -0,0 +1,6 @@ +{ + "url": "https://github.com/google/rpmpack/releases/download/v0.6.0/rpmpack-0.6.0.tar.gz", + "integrity": "sha256-rgXCDM5Wf+QkNDvM/KYkRofNCTGX3ek+dWE5joS3bW8=", + "strip_prefix": "rpmpack-0.6.0", + "patch_strip": 0 +} diff --git a/modules/rpmpack/metadata.json b/modules/rpmpack/metadata.json new file mode 100644 index 00000000000..0da5edc9c4c --- /dev/null +++ b/modules/rpmpack/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/google/rpmpack/", + "maintainers": [ + { + "email": "jarondl@google.com", + "github": "jarondl", + "name": "Yaron de Leeuw" + } + ], + "repository": [ + "github:google/rpmpack" + ], + "versions": [ + "0.6.0" + ], + "yanked_versions": {} +} From fc4f0f643f2849e0316f234fcb02cf0bedd079aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=B9d=C5=8Dng=20Y=C3=A1ng?= Date: Thu, 21 Mar 2024 15:26:21 -0400 Subject: [PATCH 17/62] Add platforms@0.0.9 (#1661) https://github.com/bazelbuild/platforms/releases/tag/0.0.9 --- modules/platforms/0.0.9/MODULE.bazel | 11 +++++++++++ modules/platforms/0.0.9/presubmit.yml | 18 ++++++++++++++++++ modules/platforms/0.0.9/source.json | 4 ++++ modules/platforms/metadata.json | 3 ++- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 modules/platforms/0.0.9/MODULE.bazel create mode 100644 modules/platforms/0.0.9/presubmit.yml create mode 100644 modules/platforms/0.0.9/source.json diff --git a/modules/platforms/0.0.9/MODULE.bazel b/modules/platforms/0.0.9/MODULE.bazel new file mode 100644 index 00000000000..708245412fc --- /dev/null +++ b/modules/platforms/0.0.9/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "platforms", + version = "0.0.9", # keep in sync with version.bzl + compatibility_level = 1, +) + +bazel_dep(name = "rules_license", version = "0.0.7") + +host_platform = use_extension("//host:extension.bzl", "host_platform") +use_repo(host_platform, "host_platform") + diff --git a/modules/platforms/0.0.9/presubmit.yml b/modules/platforms/0.0.9/presubmit.yml new file mode 100644 index 00000000000..ea64cba69d6 --- /dev/null +++ b/modules/platforms/0.0.9/presubmit.yml @@ -0,0 +1,18 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@platforms//...' + diff --git a/modules/platforms/0.0.9/source.json b/modules/platforms/0.0.9/source.json new file mode 100644 index 00000000000..8c3de4c4f36 --- /dev/null +++ b/modules/platforms/0.0.9/source.json @@ -0,0 +1,4 @@ +{ + "url": "https://github.com/bazelbuild/platforms/releases/download/0.0.9/platforms-0.0.9.tar.gz", + "integrity": "sha256-XtpTnIQSZQMcL4LYrno6ZJC9YhduDAOPxGnqv5H2FJs=" +} diff --git a/modules/platforms/metadata.json b/modules/platforms/metadata.json index 6db44b79821..3f3bd20c9c5 100644 --- a/modules/platforms/metadata.json +++ b/modules/platforms/metadata.json @@ -14,7 +14,8 @@ "0.0.5", "0.0.6", "0.0.7", - "0.0.8" + "0.0.8", + "0.0.9" ], "yanked_versions": {} } From 4548dd118787b8293b3f2cb760ecbc69ae332cae Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:09:34 +0100 Subject: [PATCH 18/62] rules_multitool@0.6.0 (#1663) Release: https://github.com/theoremlp/rules_multitool/releases/tag/v0.6.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Mark Elliot <123787712+mark-thm@users.noreply.github.com> --- modules/rules_multitool/0.6.0/MODULE.bazel | 18 ++++++++++++++++++ modules/rules_multitool/0.6.0/presubmit.yml | 15 +++++++++++++++ modules/rules_multitool/0.6.0/source.json | 5 +++++ modules/rules_multitool/metadata.json | 3 ++- 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 modules/rules_multitool/0.6.0/MODULE.bazel create mode 100644 modules/rules_multitool/0.6.0/presubmit.yml create mode 100644 modules/rules_multitool/0.6.0/source.json diff --git a/modules/rules_multitool/0.6.0/MODULE.bazel b/modules/rules_multitool/0.6.0/MODULE.bazel new file mode 100644 index 00000000000..da026106215 --- /dev/null +++ b/modules/rules_multitool/0.6.0/MODULE.bazel @@ -0,0 +1,18 @@ +"multitool" + +module( + name = "rules_multitool", + version = "0.6.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.9.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") + +# ensure toolchains get registered +multitool = use_extension("//multitool:extension.bzl", "multitool") +use_repo(multitool, "multitool") + +register_toolchains("@multitool//toolchains:all") diff --git a/modules/rules_multitool/0.6.0/presubmit.yml b/modules/rules_multitool/0.6.0/presubmit.yml new file mode 100644 index 00000000000..a90b2cabc28 --- /dev/null +++ b/modules/rules_multitool/0.6.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_multitool//...' diff --git a/modules/rules_multitool/0.6.0/source.json b/modules/rules_multitool/0.6.0/source.json new file mode 100644 index 00000000000..e0c8b3cc009 --- /dev/null +++ b/modules/rules_multitool/0.6.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-VXtxt9jZl1r8f8I4HEwOQiDUOlgfsBkhfKCgQNbL6/8=", + "strip_prefix": "rules_multitool-0.6.0", + "url": "https://github.com/theoremlp/rules_multitool/releases/download/v0.6.0/rules_multitool-0.6.0.tar.gz" +} diff --git a/modules/rules_multitool/metadata.json b/modules/rules_multitool/metadata.json index f19deeecabc..e00c082dec7 100644 --- a/modules/rules_multitool/metadata.json +++ b/modules/rules_multitool/metadata.json @@ -21,7 +21,8 @@ "0.2.0", "0.3.0", "0.4.0", - "0.5.0" + "0.5.0", + "0.6.0" ], "yanked_versions": {} } From 5958c06f2695493509c6b8ad64c2774b2e25925c Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:02:34 -0700 Subject: [PATCH 19/62] rules_multirun@0.9.0 (#1665) Release: https://github.com/keith/rules_multirun/releases/tag/0.9.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_multirun/0.9.0/MODULE.bazel | 15 +++++++++++++++ .../0.9.0/patches/module_dot_bazel_version.patch | 12 ++++++++++++ modules/rules_multirun/0.9.0/presubmit.yml | 11 +++++++++++ modules/rules_multirun/0.9.0/source.json | 9 +++++++++ modules/rules_multirun/metadata.json | 3 ++- 5 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 modules/rules_multirun/0.9.0/MODULE.bazel create mode 100644 modules/rules_multirun/0.9.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_multirun/0.9.0/presubmit.yml create mode 100644 modules/rules_multirun/0.9.0/source.json diff --git a/modules/rules_multirun/0.9.0/MODULE.bazel b/modules/rules_multirun/0.9.0/MODULE.bazel new file mode 100644 index 00000000000..34713f8f23f --- /dev/null +++ b/modules/rules_multirun/0.9.0/MODULE.bazel @@ -0,0 +1,15 @@ +module( + name = "rules_multirun", + version = "0.9.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "rules_python", version = "0.27.1") + +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) diff --git a/modules/rules_multirun/0.9.0/patches/module_dot_bazel_version.patch b/modules/rules_multirun/0.9.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..87b3ce70f45 --- /dev/null +++ b/modules/rules_multirun/0.9.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_multirun", +- version = "0", ++ version = "0.9.0", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.2") diff --git a/modules/rules_multirun/0.9.0/presubmit.yml b/modules/rules_multirun/0.9.0/presubmit.yml new file mode 100644 index 00000000000..c2176c1055f --- /dev/null +++ b/modules/rules_multirun/0.9.0/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + platform: ["macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x", "rolling"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - '@rules_multirun//tests/...' diff --git a/modules/rules_multirun/0.9.0/source.json b/modules/rules_multirun/0.9.0/source.json new file mode 100644 index 00000000000..70935f9ecf6 --- /dev/null +++ b/modules/rules_multirun/0.9.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-DhJFZ/qFKHh07/M6eRw7vcxTQzKaVvqoKO9iQ4DUYHw=", + "strip_prefix": "", + "url": "https://github.com/keith/rules_multirun/releases/download/0.9.0/rules_multirun.0.9.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-TXZTom3++VxDkbxlgEc85OI7tV6p0Lcr246yGlzsrPQ=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_multirun/metadata.json b/modules/rules_multirun/metadata.json index 53d58dc8a35..6d1732576c3 100644 --- a/modules/rules_multirun/metadata.json +++ b/modules/rules_multirun/metadata.json @@ -17,7 +17,8 @@ "0.6.0", "0.6.1", "0.7.0", - "0.8.1" + "0.8.1", + "0.9.0" ], "yanked_versions": {} } From 28fe83e58df18807a53d48e905213579b74ecf27 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:52:16 +0100 Subject: [PATCH 20/62] rules_ruby@0.9.1 (#1667) Release: https://github.com/bazel-contrib/rules_ruby/releases/tag/v0.9.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Alex Eagle --- modules/rules_ruby/0.9.1/MODULE.bazel | 16 ++++++++++++++++ .../0.9.1/patches/module_dot_bazel_version.patch | 14 ++++++++++++++ modules/rules_ruby/0.9.1/presubmit.yml | 14 ++++++++++++++ modules/rules_ruby/0.9.1/source.json | 9 +++++++++ modules/rules_ruby/metadata.json | 3 ++- 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ruby/0.9.1/MODULE.bazel create mode 100644 modules/rules_ruby/0.9.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ruby/0.9.1/presubmit.yml create mode 100644 modules/rules_ruby/0.9.1/source.json diff --git a/modules/rules_ruby/0.9.1/MODULE.bazel b/modules/rules_ruby/0.9.1/MODULE.bazel new file mode 100644 index 00000000000..9d38a3932ed --- /dev/null +++ b/modules/rules_ruby/0.9.1/MODULE.bazel @@ -0,0 +1,16 @@ +"Define the Bazel module published to the Bazel Central Registry" + +module( + name = "rules_ruby", + # NB: this version will be replaced after a release by the Publish to BCR app + version = "0.9.1", + compatibility_level = 1, +) + +# Lower-bound dependency versions. +# These should NOT be increased unless needed, as bumping our lower-bound may change +# the versions resolved in users repositories. +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "platforms", version = "0.0.5") + +# TODO: should we register any toolchain by default? diff --git a/modules/rules_ruby/0.9.1/patches/module_dot_bazel_version.patch b/modules/rules_ruby/0.9.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..09d60d11a5b --- /dev/null +++ b/modules/rules_ruby/0.9.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_ruby", + # NB: this version will be replaced after a release by the Publish to BCR app +- version = "0.0.0", ++ version = "0.9.1", + compatibility_level = 1, + ) + + # Lower-bound dependency versions. diff --git a/modules/rules_ruby/0.9.1/presubmit.yml b/modules/rules_ruby/0.9.1/presubmit.yml new file mode 100644 index 00000000000..0a395ba141a --- /dev/null +++ b/modules/rules_ruby/0.9.1/presubmit.yml @@ -0,0 +1,14 @@ +# https://github.com/bazel-contrib/publish-to-bcr/tree/main/templates#presubmityml +bcr_test_module: + module_path: "examples/gem" + matrix: + bazel: ["7.x", "6.x"] + # NB: Windows is removed due to https://github.com/bazel-contrib/rules_ruby/issues/64 + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/rules_ruby/0.9.1/source.json b/modules/rules_ruby/0.9.1/source.json new file mode 100644 index 00000000000..e7748a2c156 --- /dev/null +++ b/modules/rules_ruby/0.9.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-XzqpNlX04v8PDfoUM5xlj6mrjdhf6kBhJtWJ5qCDdXU=", + "strip_prefix": "rules_ruby-0.9.1", + "url": "https://github.com/bazel-contrib/rules_ruby/releases/download/v0.9.1/rules_ruby-v0.9.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-yNgO8f7uCNSJvllfZZOIxOOHyYUDj+DYLsuD9dRh4HQ=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ruby/metadata.json b/modules/rules_ruby/metadata.json index 4de1016afeb..cb7998e189a 100644 --- a/modules/rules_ruby/metadata.json +++ b/modules/rules_ruby/metadata.json @@ -16,7 +16,8 @@ "0.5.0", "0.6.0", "0.8.0", - "0.8.1" + "0.8.1", + "0.9.1" ], "yanked_versions": {} } From 1d96bcc0bcfcae2e44304ddfdc8e222c12c796af Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Fri, 22 Mar 2024 10:54:03 +0100 Subject: [PATCH 21/62] opentracing-cpp@1.6.0 (#1656) Release: https://github.com/opentracing/opentracing-cpp/releases/tag/v1.6.0 --- modules/io_opentracing_cpp/metadata.json | 6 ++++-- modules/opentracing-cpp/1.6.0/MODULE.bazel | 5 +++++ .../1.6.0/patches/module_dot_bazel.patch | 8 +++++++ modules/opentracing-cpp/1.6.0/presubmit.yml | 21 +++++++++++++++++++ modules/opentracing-cpp/1.6.0/source.json | 9 ++++++++ modules/opentracing-cpp/metadata.json | 16 ++++++++++++++ 6 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 modules/opentracing-cpp/1.6.0/MODULE.bazel create mode 100644 modules/opentracing-cpp/1.6.0/patches/module_dot_bazel.patch create mode 100644 modules/opentracing-cpp/1.6.0/presubmit.yml create mode 100644 modules/opentracing-cpp/1.6.0/source.json create mode 100644 modules/opentracing-cpp/metadata.json diff --git a/modules/io_opentracing_cpp/metadata.json b/modules/io_opentracing_cpp/metadata.json index 09f9eabb73e..8050590c730 100644 --- a/modules/io_opentracing_cpp/metadata.json +++ b/modules/io_opentracing_cpp/metadata.json @@ -12,5 +12,7 @@ "versions": [ "1.6.0" ], - "yanked_versions": {} -} \ No newline at end of file + "yanked_versions": { + "1.6.0": "use opentracing-cpp@1.6.0 instead" + } +} diff --git a/modules/opentracing-cpp/1.6.0/MODULE.bazel b/modules/opentracing-cpp/1.6.0/MODULE.bazel new file mode 100644 index 00000000000..e6f4367c9df --- /dev/null +++ b/modules/opentracing-cpp/1.6.0/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "opentracing-cpp", + version = "1.6.0", + compatibility_level = 1, +) diff --git a/modules/opentracing-cpp/1.6.0/patches/module_dot_bazel.patch b/modules/opentracing-cpp/1.6.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..7ded81d8e8a --- /dev/null +++ b/modules/opentracing-cpp/1.6.0/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "opentracing-cpp", ++ version = "1.6.0", ++ compatibility_level = 1, ++) diff --git a/modules/opentracing-cpp/1.6.0/presubmit.yml b/modules/opentracing-cpp/1.6.0/presubmit.yml new file mode 100644 index 00000000000..435870c68ea --- /dev/null +++ b/modules/opentracing-cpp/1.6.0/presubmit.yml @@ -0,0 +1,21 @@ +matrix: + linux_platform: ["debian10", "ubuntu2004"] + osx_platform: ["macos", "macos_arm64"] + bazel: ["7.x", "6.x"] + +tasks: + verify_linux_targets: + name: Verify linux build and test targets + platform: ${{ linux_platform }} + shell_commands: + - sudo apt-get update + - sudo apt-get install cmake -y + bazel: ${{ bazel }} + build_targets: + - '@opentracing-cpp//:opentracing' + verify_osx_targets: + name: Verify osx build and test targets + platform: ${{ osx_platform }} + bazel: ${{ bazel }} + build_targets: + - '@opentracing-cpp//:opentracing' diff --git a/modules/opentracing-cpp/1.6.0/source.json b/modules/opentracing-cpp/1.6.0/source.json new file mode 100644 index 00000000000..17d0cbd9f6b --- /dev/null +++ b/modules/opentracing-cpp/1.6.0/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/opentracing/opentracing-cpp/archive/refs/tags/v1.6.0.tar.gz", + "integrity": "sha256-WxcAQtpNHEwjHfZZTaEgh1Qp1SMem6pReYIu6NEFSsM=", + "strip_prefix": "opentracing-cpp-1.6.0", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-Nq2stVYG8NW6QVnQLlhzD55Llshidjb/0EVi8LhWFys=" + } +} diff --git a/modules/opentracing-cpp/metadata.json b/modules/opentracing-cpp/metadata.json new file mode 100644 index 00000000000..77487d39a76 --- /dev/null +++ b/modules/opentracing-cpp/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/opentracing/opentracing-cpp", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:opentracing/opentracing-cpp" + ], + "versions": [ + "1.6.0" + ], + "yanked_versions": {} +} From 08641e9370cd125f9656b52ce586638930357ea8 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:17:08 +0000 Subject: [PATCH 22/62] rules_swift@1.17.0 (#1669) Release: https://github.com/bazelbuild/rules_swift/releases/tag/1.17.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Signed-off-by: Brentley Jones Co-authored-by: Patrick Balestra Co-authored-by: Brentley Jones --- modules/rules_swift/1.17.0/MODULE.bazel | 38 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++ modules/rules_swift/1.17.0/presubmit.yml | 36 ++++++++++++++++++ modules/rules_swift/1.17.0/source.json | 9 +++++ modules/rules_swift/metadata.json | 3 +- 5 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 modules/rules_swift/1.17.0/MODULE.bazel create mode 100644 modules/rules_swift/1.17.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_swift/1.17.0/presubmit.yml create mode 100644 modules/rules_swift/1.17.0/source.json diff --git a/modules/rules_swift/1.17.0/MODULE.bazel b/modules/rules_swift/1.17.0/MODULE.bazel new file mode 100644 index 00000000000..3e5967748cd --- /dev/null +++ b/modules/rules_swift/1.17.0/MODULE.bazel @@ -0,0 +1,38 @@ +module( + name = "rules_swift", + version = "1.17.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + repo_name = "build_bazel_rules_swift", +) + +bazel_dep(name = "bazel_features", version = "1.3.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "apple_support", version = "1.13.0", repo_name = "build_bazel_apple_support") +bazel_dep(name = "rules_cc", version = "0.0.2") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") +bazel_dep(name = "nlohmann_json", version = "3.6.1", repo_name = "com_github_nlohmann_json") + +non_module_deps = use_extension("//swift:extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", + "com_github_apple_swift_log", + "com_github_apple_swift_nio", + "com_github_apple_swift_nio_extras", + "com_github_apple_swift_nio_http2", + "com_github_apple_swift_nio_transport_services", + "com_github_apple_swift_protobuf", + "com_github_grpc_grpc_swift", +) + +apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension") +use_repo(apple_cc_configure, "local_config_apple_cc") + +# Dev dependencies +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") diff --git a/modules/rules_swift/1.17.0/patches/module_dot_bazel_version.patch b/modules/rules_swift/1.17.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..f6dc2ec0509 --- /dev/null +++ b/modules/rules_swift/1.17.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_swift", +- version = "0", ++ version = "1.17.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + repo_name = "build_bazel_rules_swift", + ) diff --git a/modules/rules_swift/1.17.0/presubmit.yml b/modules/rules_swift/1.17.0/presubmit.yml new file mode 100644 index 00000000000..31db0d51014 --- /dev/null +++ b/modules/rules_swift/1.17.0/presubmit.yml @@ -0,0 +1,36 @@ +shell_commands: &shell_commands +- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME" +- "mkdir $SWIFT_HOME" +- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME" + +matrix: + bazel: + - 7.x + - last_green + platform: + - ubuntu2004 +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + CC: "clang" + SWIFT_VERSION: "5.5.3" + SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION" + PATH: "$PATH:$SWIFT_HOME/usr/bin" + shell_commands: *shell_commands + build_flags: + - "--action_env=PATH" + build_targets: + - "@rules_swift//examples/xplatform/..." + - "-@rules_swift//examples/xplatform/deprecated_grpc/..." # TODO: Fix grpc on Linux + - "-@rules_swift//examples/xplatform/grpc/..." # TODO: Fix grpc on Linux + verify_targets_macos: + name: Verify build targets + bazel: ${{ bazel }} + platform: macos + build_targets: + - "@rules_swift//examples/apple/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_swift/1.17.0/source.json b/modules/rules_swift/1.17.0/source.json new file mode 100644 index 00000000000..7ead0dbcf3a --- /dev/null +++ b/modules/rules_swift/1.17.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-m8nclJBiQFQSQEwPB/cyO6MQ8/kfQq9BSsJ+M4unu4w=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_swift/releases/download/1.17.0/rules_swift.1.17.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-l9R97T0K2lbfurEt4ZkLTagdk7pGdKiLNFjhhQnkuWI=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_swift/metadata.json b/modules/rules_swift/metadata.json index 1451985ccf8..f1fe53b1a66 100644 --- a/modules/rules_swift/metadata.json +++ b/modules/rules_swift/metadata.json @@ -43,7 +43,8 @@ "1.14.0", "1.15.0", "1.15.1", - "1.16.0" + "1.16.0", + "1.17.0" ], "yanked_versions": {} } From 6dd3a6dfb9476f5a26efc3f133055a1f0846e7d8 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 22 Mar 2024 11:30:16 -0700 Subject: [PATCH 23/62] Add curl 8.4.0 (#1666) This is based on https://github.com/open-telemetry/opentelemetry-cpp/blob/47db4d0c0adfe2572d8b072518ae51fd5ec43961/bazel/curl.BUILD --- modules/curl/8.4.0/MODULE.bazel | 7 + .../curl/8.4.0/patches/add_build_file.patch | 222 ++++++++++++++++++ .../curl/8.4.0/patches/module_dot_bazel.patch | 10 + modules/curl/8.4.0/presubmit.yml | 17 ++ modules/curl/8.4.0/source.json | 10 + modules/curl/metadata.json | 17 ++ 6 files changed, 283 insertions(+) create mode 100644 modules/curl/8.4.0/MODULE.bazel create mode 100644 modules/curl/8.4.0/patches/add_build_file.patch create mode 100644 modules/curl/8.4.0/patches/module_dot_bazel.patch create mode 100644 modules/curl/8.4.0/presubmit.yml create mode 100644 modules/curl/8.4.0/source.json create mode 100644 modules/curl/metadata.json diff --git a/modules/curl/8.4.0/MODULE.bazel b/modules/curl/8.4.0/MODULE.bazel new file mode 100644 index 00000000000..8a9d7c5569e --- /dev/null +++ b/modules/curl/8.4.0/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "curl", + version = "8.4.0", + compatibility_level = 0, +) + +bazel_dep(name = "platforms", version = "0.0.8") diff --git a/modules/curl/8.4.0/patches/add_build_file.patch b/modules/curl/8.4.0/patches/add_build_file.patch new file mode 100644 index 00000000000..8e2d26f93a2 --- /dev/null +++ b/modules/curl/8.4.0/patches/add_build_file.patch @@ -0,0 +1,222 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,219 @@ ++# Copyright The OpenTelemetry Authors ++# SPDX-License-Identifier: Apache-2.0 ++ ++package(features = ["no_copts_tokenization"]) ++ ++_BASE_CURL_COPTS = [ ++ # Disable everything else except HTTP protocol. ++ "-DHTTP_ONLY=1", ++ "-DENABLE_IPV6=1", ++ "-DGETHOSTNAME_TYPE_ARG2=size_t", ++ "-DGETSERVBYPORT_R_ARGS=6", ++ "-DGETSERVBYPORT_R_BUFSIZE=4096", ++ "-DHAVE_ALARM=1", ++ "-DHAVE_ALLOCA_H=1", ++ "-DHAVE_ARPA_INET_H=1", ++ "-DHAVE_ARPA_TFTP_H=1", ++ "-DHAVE_ASSERT_H=1", ++ "-DHAVE_BASENAME=1", ++ "-DHAVE_BOOL_T=1", ++ "-DHAVE_CLOCK_GETTIME_MONOTONIC=1", ++ "-DHAVE_CONNECT=1", ++ "-DHAVE_DLFCN_H=1", ++ "-DHAVE_ENGINE_LOAD_BUILTIN_ENGINES=1", ++ "-DHAVE_ERRNO_H=1", ++ "-DHAVE_FCNTL=1", ++ "-DHAVE_FCNTL_H=1", ++ "-DHAVE_FCNTL_O_NONBLOCK=1", ++ "-DHAVE_FDOPEN=1", ++ "-DHAVE_FREEADDRINFO=1", ++ "-DHAVE_FREEIFADDRS=1", ++ "-DHAVE_FSETXATTR=1", ++ "-DHAVE_FSETXATTR_5=1", ++ "-DHAVE_FTRUNCATE=1", ++ "-DHAVE_GAI_STRERROR=1", ++ "-DHAVE_GETADDRINFO=1", ++ "-DHAVE_GETADDRINFO_THREADSAFE=1", ++ "-DHAVE_GETEUID=1", ++ "-DHAVE_GETHOSTBYADDR=1", ++ "-DHAVE_GETHOSTBYADDR_R=1", ++ "-DHAVE_GETHOSTBYADDR_R_8=1", ++ "-DHAVE_GETHOSTBYNAME=1", ++ "-DHAVE_GETHOSTBYNAME_R=1", ++ "-DHAVE_GETHOSTBYNAME_R_6=1", ++ "-DHAVE_GETHOSTNAME=1", ++ "-DHAVE_GETIFADDRS=1", ++ "-DHAVE_GETNAMEINFO=1", ++ "-DHAVE_GETPPID=1", ++ "-DHAVE_GETPWUID=1", ++ "-DHAVE_GETPWUID_R=1", ++ "-DHAVE_GETRLIMIT=1", ++ "-DHAVE_GETSERVBYPORT_R=1", ++ "-DHAVE_GETTIMEOFDAY=1", ++ "-DHAVE_GMTIME_R=1", ++ "-DHAVE_IFADDRS_H=1", ++ "-DHAVE_IF_NAMETOINDEX=1", ++ "-DHAVE_INET_NTOP=1", ++ "-DHAVE_INET_PTON=1", ++ "-DHAVE_INTTYPES_H=1", ++ "-DHAVE_IOCTL=1", ++ "-DHAVE_IOCTL_FIONBIO=1", ++ "-DHAVE_IOCTL_SIOCGIFADDR=1", ++ "-DHAVE_LIBGEN_H=1", ++ "-DHAVE_LL=1", ++ "-DHAVE_LOCALE_H=1", ++ "-DHAVE_LOCALTIME_R=1", ++ "-DHAVE_LONGLONG=1", ++ "-DHAVE_MALLOC_H=1", ++ "-DHAVE_MEMORY_H=1", ++ "-DHAVE_NETDB_H=1", ++ "-DHAVE_NETINET_IN_H=1", ++ "-DHAVE_NETINET_TCP_H=1", ++ "-DHAVE_NET_IF_H=1", ++ "-DHAVE_PIPE=1", ++ "-DHAVE_POLL=1", ++ "-DHAVE_POLL_FINE=1", ++ "-DHAVE_POLL_H=1", ++ "-DHAVE_POSIX_STRERROR_R=1", ++ "-DHAVE_PTHREAD_H=1", ++ "-DHAVE_PWD_H=1", ++ "-DHAVE_RECV=1", ++ "-DHAVE_SELECT=1", ++ "-DHAVE_SEND=1", ++ "-DHAVE_SETJMP_H=1", ++ "-DHAVE_SETLOCALE=1", ++ "-DHAVE_SETRLIMIT=1", ++ "-DHAVE_SETSOCKOPT=1", ++ "-DHAVE_SGTTY_H=1", ++ "-DHAVE_SIGACTION=1", ++ "-DHAVE_SIGINTERRUPT=1", ++ "-DHAVE_SIGNAL=1", ++ "-DHAVE_SIGNAL_H=1", ++ "-DHAVE_SIGSETJMP=1", ++ "-DHAVE_SIG_ATOMIC_T=1", ++ "-DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID=1", ++ "-DHAVE_SOCKET=1", ++ "-DHAVE_SOCKETPAIR=1", ++ "-DHAVE_STDBOOL_H=1", ++ "-DHAVE_STDINT_H=1", ++ "-DHAVE_STDIO_H=1", ++ "-DHAVE_STDLIB_H=1", ++ "-DHAVE_STRCASECMP=1", ++ "-DHAVE_STRDUP=1", ++ "-DHAVE_STRERROR_R=1", ++ "-DHAVE_STRINGS_H=1", ++ "-DHAVE_STRING_H=1", ++ "-DHAVE_STRNCASECMP=1", ++ "-DHAVE_STRSTR=1", ++ "-DHAVE_STRTOK_R=1", ++ "-DHAVE_STRTOLL=1", ++ "-DHAVE_STRUCT_SOCKADDR_STORAGE=1", ++ "-DHAVE_STRUCT_TIMEVAL=1", ++ "-DHAVE_SYS_IOCTL_H=1", ++ "-DHAVE_SYS_PARAM_H=1", ++ "-DHAVE_SYS_POLL_H=1", ++ "-DHAVE_SYS_RESOURCE_H=1", ++ "-DHAVE_SYS_SELECT_H=1", ++ "-DHAVE_SYS_SOCKET_H=1", ++ "-DHAVE_SYS_STAT_H=1", ++ "-DHAVE_SYS_TIME_H=1", ++ "-DHAVE_SYS_TYPES_H=1", ++ "-DHAVE_SYS_UIO_H=1", ++ "-DHAVE_SYS_UN_H=1", ++ "-DHAVE_SYS_WAIT_H=1", ++ "-DHAVE_SYS_XATTR_H=1", ++ "-DHAVE_TERMIOS_H=1", ++ "-DHAVE_TERMIO_H=1", ++ "-DHAVE_TIME_H=1", ++ "-DHAVE_UNISTD_H=1", ++ "-DHAVE_UTIME=1", ++ "-DHAVE_UTIMES=1", ++ "-DHAVE_UTIME_H=1", ++ "-DHAVE_VARIADIC_MACROS_C99=1", ++ "-DHAVE_VARIADIC_MACROS_GCC=1", ++ "-DHAVE_WRITABLE_ARGV=1", ++ "-DHAVE_WRITEV=1", ++ "-DRECV_TYPE_ARG1=int", ++ "-DRECV_TYPE_ARG2=void*", ++ "-DRECV_TYPE_ARG3=size_t", ++ "-DRECV_TYPE_ARG4=int", ++ "-DRECV_TYPE_RETV=ssize_t", ++ "-DRETSIGTYPE=void", ++ "-DSELECT_QUAL_ARG5=", ++ "-DSELECT_TYPE_ARG1=int", ++ "-DSELECT_TYPE_ARG234=fd_set*", ++ "-DSELECT_TYPE_RETV=int", ++ "-DSEND_QUAL_ARG2=const", ++ "-DSEND_TYPE_ARG1=int", ++ "-DSEND_TYPE_ARG2=void*", ++ "-DSEND_TYPE_ARG3=size_t", ++ "-DSEND_TYPE_ARG4=int", ++ "-DSEND_TYPE_RETV=ssize_t", ++ "-DSIZEOF_CURL_OFF_T=8", ++ "-DSIZEOF_INT=4", ++ "-DSIZEOF_LONG=8", ++ "-DSIZEOF_OFF_T=8", ++ "-DSIZEOF_SHORT=2", ++ "-DSIZEOF_SIZE_T=8", ++ "-DSIZEOF_TIME_T=8", ++ "-DSTDC_HEADERS=1", ++ "-DSTRERROR_R_TYPE_ARG3=size_t", ++ "-DTIME_WITH_SYS_TIME=1", ++ "-DUSE_THREADS_POSIX=1", ++ "-DUSE_UNIX_SOCKETS=1", ++ ++ # Extra defines needed by curl ++ "-DBUILDING_LIBCURL", ++ "-DCURL_HIDDEN_SYMBOLS", ++] ++ ++cc_library( ++ name = "curl", ++ srcs = glob([ ++ "lib/**/*.c", ++ ]), ++ hdrs = glob([ ++ "include/curl/*.h", ++ "lib/**/*.h", ++ ]), ++ copts = select({ ++ "@platforms//os:windows": [ ++ "/DCURL_STATICLIB", ++ "/DWIN32", ++ "/DBUILDING_LIBCURL", ++ "/DUSE_WIN32_IDN", ++ "/DWANT_IDN_PROTOTYPES", ++ "/DUSE_IPV6", ++ "/DUSE_WINDOWS_SSPI", ++ "/DUSE_SCHANNEL", ++ ], ++ "@platforms//os:macos": _BASE_CURL_COPTS, ++ "//conditions:default": _BASE_CURL_COPTS + [ ++ "-DHAVE_LINUX_TCP_H=1", ++ "-DHAVE_MSG_NOSIGNAL=1", ++ ], ++ }) + [ ++ "-DOS=\"os\"", ++ ], ++ defines = ["CURL_STATICLIB"], ++ includes = [ ++ "include/", ++ "lib/", ++ ], ++ linkopts = select({ ++ "@platforms//os:windows": [ ++ "-DEFAULTLIB:ws2_32.lib", ++ "-DEFAULTLIB:advapi32.lib", ++ "-DEFAULTLIB:crypt32.lib", ++ "-DEFAULTLIB:Normaliz.lib", ++ ], ++ "@platforms//os:macos": [ ++ "-Wl,-framework,SystemConfiguration", ++ "-lpthread", ++ ], ++ "//conditions:default": [ ++ "-lpthread", ++ ], ++ }), ++ visibility = ["//visibility:public"], ++) diff --git a/modules/curl/8.4.0/patches/module_dot_bazel.patch b/modules/curl/8.4.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..62d97597c68 --- /dev/null +++ b/modules/curl/8.4.0/patches/module_dot_bazel.patch @@ -0,0 +1,10 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,7 @@ ++module( ++ name = "curl", ++ version = "8.4.0", ++ compatibility_level = 0, ++) ++ ++bazel_dep(name = "platforms", version = "0.0.8") diff --git a/modules/curl/8.4.0/presubmit.yml b/modules/curl/8.4.0/presubmit.yml new file mode 100644 index 00000000000..581327dc799 --- /dev/null +++ b/modules/curl/8.4.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@curl//:curl' diff --git a/modules/curl/8.4.0/source.json b/modules/curl/8.4.0/source.json new file mode 100644 index 00000000000..fa183b8e834 --- /dev/null +++ b/modules/curl/8.4.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/curl/curl/releases/download/curl-8_4_0/curl-8.4.0.tar.gz", + "integrity": "sha256-gW5BgJwEP/KF6MDwanWh+iUCEbv7LcCgN+7vOfGp5Cc=", + "strip_prefix": "curl-8.4.0", + "patch_strip": 0, + "patches": { + "add_build_file.patch": "sha256-Vcb973u9Diuzp+nG0XzkID+LvaTdbJ6M6tZxH1Vtyo0=", + "module_dot_bazel.patch": "sha256-EEYIkUUDdDiyntAtQHOhsgwqJgs/EvZP6pjuxPUeWIo=" + } +} diff --git a/modules/curl/metadata.json b/modules/curl/metadata.json new file mode 100644 index 00000000000..25ce8ce70ba --- /dev/null +++ b/modules/curl/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/curl/curl", + "maintainers": [ + { + "email": "keithbsmiley@gmail.com", + "github": "keith", + "name": "Keith Smiley" + } + ], + "repository": [ + "github:curl/curl" + ], + "versions": [ + "8.4.0" + ], + "yanked_versions": {} +} From 65cfe57407724ad893af3efd22729aa3f8e7a23e Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 22 Mar 2024 11:30:55 -0700 Subject: [PATCH 24/62] Add new version of upb (#1660) This mostly copies from the previous version, which is missing some macOS fix commits. The only change from the previous version in the bcr is adding a new patch with an alias for the textformat target which is used by grpc. --- .../upb/0.0.0-20230907-e7430e6/MODULE.bazel | 19 ++++++++++++++++ .../patches/0001-Add-MODULE.bazel.patch | 22 +++++++++++++++++++ .../0002-Add-utf8_range-dependency.patch | 22 +++++++++++++++++++ .../patches/0003-Add-textformat-alias.patch | 11 ++++++++++ .../upb/0.0.0-20230907-e7430e6/presubmit.yml | 15 +++++++++++++ .../upb/0.0.0-20230907-e7430e6/source.json | 11 ++++++++++ modules/upb/metadata.json | 3 ++- 7 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 modules/upb/0.0.0-20230907-e7430e6/MODULE.bazel create mode 100644 modules/upb/0.0.0-20230907-e7430e6/patches/0001-Add-MODULE.bazel.patch create mode 100644 modules/upb/0.0.0-20230907-e7430e6/patches/0002-Add-utf8_range-dependency.patch create mode 100644 modules/upb/0.0.0-20230907-e7430e6/patches/0003-Add-textformat-alias.patch create mode 100644 modules/upb/0.0.0-20230907-e7430e6/presubmit.yml create mode 100644 modules/upb/0.0.0-20230907-e7430e6/source.json diff --git a/modules/upb/0.0.0-20230907-e7430e6/MODULE.bazel b/modules/upb/0.0.0-20230907-e7430e6/MODULE.bazel new file mode 100644 index 00000000000..7ae10f2bbc3 --- /dev/null +++ b/modules/upb/0.0.0-20230907-e7430e6/MODULE.bazel @@ -0,0 +1,19 @@ +module( + name = "upb", + version = "0.0.0-20230907-e7430e6", + compatibility_level = 1, +) + +bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") +bazel_dep(name = "bazel_skylib", version = "1.0.3") +bazel_dep(name = "platforms", version = "0.0.5") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_pkg", version = "0.7.0") +bazel_dep(name = "rules_proto", version = "4.0.0") +bazel_dep(name = "rules_python", version = "0.31.0") + +# Do not take the effort to convert utf8_range to Bzlmod as this has been moved to protobuf/third_party +# See https://github.com/protocolbuffers/utf8_range/commit/1d1ea7e3fedf482d4a12b473c1ed25fe0f371a45 +non_module_deps = use_extension("//:non_module_deps.bzl", "non_module_deps") +use_repo(non_module_deps, "utf8_range") diff --git a/modules/upb/0.0.0-20230907-e7430e6/patches/0001-Add-MODULE.bazel.patch b/modules/upb/0.0.0-20230907-e7430e6/patches/0001-Add-MODULE.bazel.patch new file mode 100644 index 00000000000..2086999a269 --- /dev/null +++ b/modules/upb/0.0.0-20230907-e7430e6/patches/0001-Add-MODULE.bazel.patch @@ -0,0 +1,22 @@ +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,19 @@ ++module( ++ name = "upb", ++ version = "0.0.0-20230907-e7430e6", ++ compatibility_level = 1, ++) ++ ++bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") ++bazel_dep(name = "bazel_skylib", version = "1.0.3") ++bazel_dep(name = "platforms", version = "0.0.5") ++bazel_dep(name = "rules_cc", version = "0.0.9") ++bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") ++bazel_dep(name = "rules_pkg", version = "0.7.0") ++bazel_dep(name = "rules_proto", version = "4.0.0") ++bazel_dep(name = "rules_python", version = "0.31.0") ++ ++# Do not take the effort to convert utf8_range to Bzlmod as this has been moved to protobuf/third_party ++# See https://github.com/protocolbuffers/utf8_range/commit/1d1ea7e3fedf482d4a12b473c1ed25fe0f371a45 ++non_module_deps = use_extension("//:non_module_deps.bzl", "non_module_deps") ++use_repo(non_module_deps, "utf8_range") diff --git a/modules/upb/0.0.0-20230907-e7430e6/patches/0002-Add-utf8_range-dependency.patch b/modules/upb/0.0.0-20230907-e7430e6/patches/0002-Add-utf8_range-dependency.patch new file mode 100644 index 00000000000..fd5023ef632 --- /dev/null +++ b/modules/upb/0.0.0-20230907-e7430e6/patches/0002-Add-utf8_range-dependency.patch @@ -0,0 +1,22 @@ +--- /dev/null ++++ b/non_module_deps.bzl +@@ -0,0 +1,19 @@ ++load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ++ ++def _github_archive(repo, commit, **kwargs): ++ repo_name = repo.split("/")[-1] ++ http_archive( ++ urls = [repo + "/archive/" + commit + ".zip"], ++ strip_prefix = repo_name + "-" + commit, ++ **kwargs ++ ) ++ ++def _non_module_deps_impl(ctx): ++ _github_archive( ++ name = "utf8_range", ++ repo = "https://github.com/protocolbuffers/utf8_range", ++ commit = "de0b4a8ff9b5d4c98108bdfe723291a33c52c54f", ++ sha256 = "5da960e5e5d92394c809629a03af3c7709d2d3d0ca731dacb3a9fb4bf28f7702", ++ ) ++ ++non_module_deps = module_extension(implementation = _non_module_deps_impl) diff --git a/modules/upb/0.0.0-20230907-e7430e6/patches/0003-Add-textformat-alias.patch b/modules/upb/0.0.0-20230907-e7430e6/patches/0003-Add-textformat-alias.patch new file mode 100644 index 00000000000..94778da20c7 --- /dev/null +++ b/modules/upb/0.0.0-20230907-e7430e6/patches/0003-Add-textformat-alias.patch @@ -0,0 +1,11 @@ +--- a/BUILD ++++ b/BUILD +@@ -743,2 +743,8 @@ filegroup( + # + # end:google_only ++ ++alias( ++ name = "textformat", ++ actual = "//upb/text:text", ++ visibility = ["//visibility:public"], ++) diff --git a/modules/upb/0.0.0-20230907-e7430e6/presubmit.yml b/modules/upb/0.0.0-20230907-e7430e6/presubmit.yml new file mode 100644 index 00000000000..f4872050ea6 --- /dev/null +++ b/modules/upb/0.0.0-20230907-e7430e6/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + build_targets: + - '@upb//:upb' + - '@upb//:descriptor_upb_proto' + - '@upb//:textformat' + - '@upb//cmake:staleness_test_lib' diff --git a/modules/upb/0.0.0-20230907-e7430e6/source.json b/modules/upb/0.0.0-20230907-e7430e6/source.json new file mode 100644 index 00000000000..c9ed027c1c6 --- /dev/null +++ b/modules/upb/0.0.0-20230907-e7430e6/source.json @@ -0,0 +1,11 @@ +{ + "integrity": "sha256-o1DZS2CWjimNFBLfUcH/fVGQ3RPtsXseB2asNpwXQAk=", + "strip_prefix": "upb-e7430e66d6e51def2a88f0b66fdab62b0d9492c1", + "url": "https://github.com/protocolbuffers/upb/archive/e7430e66d6e51def2a88f0b66fdab62b0d9492c1.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Add-MODULE.bazel.patch": "sha256-AC7tn9EKtF9UprYQKdPxH/PQGLF9U0jgoSZfh/rzmuc=", + "0002-Add-utf8_range-dependency.patch": "sha256-zQDiCRqENGZ2Y5+WTjSgmkTWSaRHaU0vefc+XUxksaw=", + "0003-Add-textformat-alias.patch": "sha256-IHkHImqzDKY8zQqheZGwuluHqtkFbZgj0wfNXmvHf3w=" + } +} diff --git a/modules/upb/metadata.json b/modules/upb/metadata.json index 66256332551..02362b7bf59 100644 --- a/modules/upb/metadata.json +++ b/modules/upb/metadata.json @@ -13,7 +13,8 @@ "0.0.0-20211020-160625a", "0.0.0-20220602-e5f2601", "0.0.0-20220923-a547704", - "0.0.0-20230516-61a97ef" + "0.0.0-20230516-61a97ef", + "0.0.0-20230907-e7430e6" ], "yanked_versions": {} } From 40265956347de6c606cc9af0c32636a25bae5387 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Fri, 22 Mar 2024 19:31:45 +0100 Subject: [PATCH 25/62] Release rules_poetry@v0.3.2 (#1659) What's Changed feat: add main.py stub to zip files by @oxidase in https://github.com/oxidase/rules_poetry/pull/50 feat: add platform attribute to py_zip by @oxidase in https://github.com/oxidase/rules_poetry/pull/51 Full Changelog: https://github.com/oxidase/rules_poetry/compare/v0.3.1...v0.3.2 --- modules/rules_poetry/0.3.2/MODULE.bazel | 11 +++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_poetry/0.3.2/presubmit.yml | 32 +++++++++++++++++++ modules/rules_poetry/0.3.2/source.json | 9 ++++++ modules/rules_poetry/metadata.json | 3 +- 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 modules/rules_poetry/0.3.2/MODULE.bazel create mode 100644 modules/rules_poetry/0.3.2/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_poetry/0.3.2/presubmit.yml create mode 100644 modules/rules_poetry/0.3.2/source.json diff --git a/modules/rules_poetry/0.3.2/MODULE.bazel b/modules/rules_poetry/0.3.2/MODULE.bazel new file mode 100644 index 00000000000..5f8c3a5cbf1 --- /dev/null +++ b/modules/rules_poetry/0.3.2/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "rules_poetry", + version = "0.3.2", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") + +internal_deps = use_extension("@rules_poetry//python:extensions.bzl", "internal_deps") +use_repo(internal_deps, "rules_poetry_deps", "rules_poetry_pip") diff --git a/modules/rules_poetry/0.3.2/patches/module_dot_bazel_version.patch b/modules/rules_poetry/0.3.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..87875067430 --- /dev/null +++ b/modules/rules_poetry/0.3.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_poetry", +- version = "0", ++ version = "0.3.2", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.5.0") diff --git a/modules/rules_poetry/0.3.2/presubmit.yml b/modules/rules_poetry/0.3.2/presubmit.yml new file mode 100644 index 00000000000..d5d7f5358e5 --- /dev/null +++ b/modules/rules_poetry/0.3.2/presubmit.yml @@ -0,0 +1,32 @@ +matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_poetry//python/...' + - '@rules_poetry//lib/...' +bcr_test_module: + module_path: "examples/transitions" + matrix: + platform: + - debian11 + - macos + - ubuntu2004 + bazel: + - 7.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - //... diff --git a/modules/rules_poetry/0.3.2/source.json b/modules/rules_poetry/0.3.2/source.json new file mode 100644 index 00000000000..bfbec97a009 --- /dev/null +++ b/modules/rules_poetry/0.3.2/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/oxidase/rules_poetry/releases/download/v0.3.2/rules_poetry-0.3.2.tar.gz", + "integrity": "sha256-PhhGo5JJvT1or6wnSfYPdPx+artTIZqrlpSC2jTSxOE=", + "strip_prefix": "rules_poetry-0.3.2", + "patches": { + "module_dot_bazel_version.patch": "sha256-lOfham5AH7qrCZClvx6ioGKvkixFNFgLWq33OZmkVoQ=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_poetry/metadata.json b/modules/rules_poetry/metadata.json index b0303b1e625..298af881af9 100644 --- a/modules/rules_poetry/metadata.json +++ b/modules/rules_poetry/metadata.json @@ -14,7 +14,8 @@ "0.1.0", "0.2.0", "0.3.0", - "0.3.1" + "0.3.1", + "0.3.2" ], "yanked_versions": {} } From b80f737977434ffecca3cd40ea66a1487074a138 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Sat, 23 Mar 2024 22:58:00 +0000 Subject: [PATCH 26/62] cgrindel_bazel_starlib@0.20.2 (#1677) --- .../0.20.2/MODULE.bazel | 61 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++ .../0.20.2/presubmit.yml | 12 ++++ .../cgrindel_bazel_starlib/0.20.2/source.json | 9 +++ modules/cgrindel_bazel_starlib/metadata.json | 3 +- 5 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 modules/cgrindel_bazel_starlib/0.20.2/MODULE.bazel create mode 100644 modules/cgrindel_bazel_starlib/0.20.2/patches/module_dot_bazel_version.patch create mode 100644 modules/cgrindel_bazel_starlib/0.20.2/presubmit.yml create mode 100644 modules/cgrindel_bazel_starlib/0.20.2/source.json diff --git a/modules/cgrindel_bazel_starlib/0.20.2/MODULE.bazel b/modules/cgrindel_bazel_starlib/0.20.2/MODULE.bazel new file mode 100644 index 00000000000..8b1f8e26c23 --- /dev/null +++ b/modules/cgrindel_bazel_starlib/0.20.2/MODULE.bazel @@ -0,0 +1,61 @@ +module( + name = "cgrindel_bazel_starlib", + version = "0.20.2", + bazel_compatibility = [">=6.1.0"], +) + +# MARK: - Runtime Dependencies + +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +) +bazel_dep( + name = "gazelle", + version = "0.32.0", + repo_name = "bazel_gazelle", +) +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep( + name = "stardoc", + version = "0.5.6", + repo_name = "io_bazel_stardoc", +) +bazel_dep( + name = "buildifier_prebuilt", + version = "6.0.0.1", +) +bazel_dep(name = "platforms", version = "0.0.6") + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_creasty_defaults", + "com_github_gomarkdown_markdown", + "com_github_stretchr_testify", + "in_gopkg_yaml_v3", +) + +# MARK: - Dev Dependencies + +bazel_dep( + name = "bazel_skylib_gazelle_plugin", + version = "1.4.2", + dev_dependency = True, +) +bazel_dep( + name = "rules_bazel_integration_test", + version = "0.14.1", + dev_dependency = True, +) + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) +bazel_binaries.download(version_file = "//:.bazelversion") +bazel_binaries.download(version = "6.4.0") +use_repo(bazel_binaries, "bazel_binaries") diff --git a/modules/cgrindel_bazel_starlib/0.20.2/patches/module_dot_bazel_version.patch b/modules/cgrindel_bazel_starlib/0.20.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..a0c3b38cd10 --- /dev/null +++ b/modules/cgrindel_bazel_starlib/0.20.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "cgrindel_bazel_starlib", +- version = "0.0.0", ++ version = "0.20.2", + bazel_compatibility = [">=6.1.0"], + ) + + # MARK: - Runtime Dependencies diff --git a/modules/cgrindel_bazel_starlib/0.20.2/presubmit.yml b/modules/cgrindel_bazel_starlib/0.20.2/presubmit.yml new file mode 100644 index 00000000000..ce93dce1608 --- /dev/null +++ b/modules/cgrindel_bazel_starlib/0.20.2/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "examples/bzlmod_e2e" + matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["7.1.1"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/cgrindel_bazel_starlib/0.20.2/source.json b/modules/cgrindel_bazel_starlib/0.20.2/source.json new file mode 100644 index 00000000000..9038990e61d --- /dev/null +++ b/modules/cgrindel_bazel_starlib/0.20.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ALCE6JUUbS3Ix2Q33V+RpyA8e0a7Tt0YltAYuHlbySc=", + "strip_prefix": "", + "url": "https://github.com/cgrindel/bazel-starlib/releases/download/v0.20.2/bazel-starlib.v0.20.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-BTqYysOoY8zQjV4j598mVWth+AJz8aNVV0PwotWdrxA=" + }, + "patch_strip": 1 +} diff --git a/modules/cgrindel_bazel_starlib/metadata.json b/modules/cgrindel_bazel_starlib/metadata.json index bf3b23476a7..d12a52174d8 100644 --- a/modules/cgrindel_bazel_starlib/metadata.json +++ b/modules/cgrindel_bazel_starlib/metadata.json @@ -20,7 +20,8 @@ "0.17.0", "0.18.0", "0.18.1", - "0.19.0" + "0.19.0", + "0.20.2" ], "yanked_versions": {} } From 33dde7082e5988c7b42b99bd3b89130eac8404be Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:53:12 -0500 Subject: [PATCH 27/62] rules_swift_package_manager@0.29.1 (#1683) --- .../0.29.1/MODULE.bazel | 78 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++ .../0.29.1/presubmit.yml | 14 ++++ .../0.29.1/source.json | 9 +++ .../rules_swift_package_manager/metadata.json | 3 +- 5 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 modules/rules_swift_package_manager/0.29.1/MODULE.bazel create mode 100644 modules/rules_swift_package_manager/0.29.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_swift_package_manager/0.29.1/presubmit.yml create mode 100644 modules/rules_swift_package_manager/0.29.1/source.json diff --git a/modules/rules_swift_package_manager/0.29.1/MODULE.bazel b/modules/rules_swift_package_manager/0.29.1/MODULE.bazel new file mode 100644 index 00000000000..a4aa320b26c --- /dev/null +++ b/modules/rules_swift_package_manager/0.29.1/MODULE.bazel @@ -0,0 +1,78 @@ +module( + name = "rules_swift_package_manager", + version = "0.29.1", +) + +# MARK: - Runtime Dependencies + +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep( + name = "rules_go", + version = "0.43.0", + repo_name = "io_bazel_rules_go", +) + +# The apple_support bazel_dep must come before the rules_cc. +# https://github.com/bazelbuild/apple_support#incompatible-toolchain-resolution +bazel_dep(name = "apple_support", version = "1.11.1") +bazel_dep(name = "rules_cc", version = "0.0.6") +bazel_dep(name = "platforms", version = "0.0.6") + +# With bzlmod enabled, any dependencies for repositories generated by +# rules_swift_package_manager _must_ be a runtime dependency of rules_swift_package_manager. +bazel_dep( + name = "rules_swift", + version = "1.16.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "rules_apple", + version = "3.1.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "gazelle", + version = "0.35.0", + repo_name = "bazel_gazelle", +) + +apple_cc_configure = use_extension( + "@apple_support//crosstool:setup.bzl", + "apple_cc_configure_extension", +) +use_repo(apple_cc_configure, "local_config_apple_cc") + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_creasty_defaults", + "com_github_deckarep_golang_set_v2", + "com_github_stretchr_testify", + "in_gopkg_yaml_v3", + "org_golang_x_exp", + "org_golang_x_text", +) + +# MARK: - Dev Dependencies + +bazel_dep( + name = "rules_bazel_integration_test", + version = "0.14.1", + dev_dependency = True, +) +bazel_dep( + name = "bazel_skylib_gazelle_plugin", + version = "1.4.1", + dev_dependency = True, +) + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) +bazel_binaries.download(version_file = "//:.bazelversion") +use_repo(bazel_binaries, "bazel_binaries") diff --git a/modules/rules_swift_package_manager/0.29.1/patches/module_dot_bazel_version.patch b/modules/rules_swift_package_manager/0.29.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..eb02e25639a --- /dev/null +++ b/modules/rules_swift_package_manager/0.29.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_swift_package_manager", +- version = "0.0.0", ++ version = "0.29.1", + ) + + # MARK: - Runtime Dependencies + diff --git a/modules/rules_swift_package_manager/0.29.1/presubmit.yml b/modules/rules_swift_package_manager/0.29.1/presubmit.yml new file mode 100644 index 00000000000..bf967c9faeb --- /dev/null +++ b/modules/rules_swift_package_manager/0.29.1/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "" + matrix: + platform: ["macos"] + bazel: + # This needs to exactly match the value used in .bazelversion at the root. + - 7.1.1 + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//bzlmod:e2e_test" diff --git a/modules/rules_swift_package_manager/0.29.1/source.json b/modules/rules_swift_package_manager/0.29.1/source.json new file mode 100644 index 00000000000..ed975eccda1 --- /dev/null +++ b/modules/rules_swift_package_manager/0.29.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-aIWMOfZigx2/n/XizA572l6ZQOyWSUVpVvwi2hTqJ04=", + "strip_prefix": "", + "url": "https://github.com/cgrindel/rules_swift_package_manager/releases/download/v0.29.1/rules_swift_package_manager.v0.29.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-I5y2cZeLHuA3+Pj7hiXGQo3rqoPZtJ7/2zU4cvdTYfA=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_swift_package_manager/metadata.json b/modules/rules_swift_package_manager/metadata.json index 346757b05a3..4b4ad6dabdc 100644 --- a/modules/rules_swift_package_manager/metadata.json +++ b/modules/rules_swift_package_manager/metadata.json @@ -40,7 +40,8 @@ "0.24.0", "0.25.0", "0.26.2", - "0.28.0" + "0.28.0", + "0.29.1" ], "yanked_versions": {} } From 889cc58c43b152356db710eb65912d0a885cb6db Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:16:35 +0100 Subject: [PATCH 28/62] bazel_features@1.9.1 (#1684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release: https://github.com/bazel-contrib/bazel_features/releases/tag/v1.9.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Xùdōng Yáng --- modules/bazel_features/1.9.1/MODULE.bazel | 16 ++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++++++++ modules/bazel_features/1.9.1/presubmit.yml | 17 +++++++++++++++++ modules/bazel_features/1.9.1/source.json | 9 +++++++++ modules/bazel_features/metadata.json | 3 ++- 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 modules/bazel_features/1.9.1/MODULE.bazel create mode 100644 modules/bazel_features/1.9.1/patches/module_dot_bazel_version.patch create mode 100644 modules/bazel_features/1.9.1/presubmit.yml create mode 100644 modules/bazel_features/1.9.1/source.json diff --git a/modules/bazel_features/1.9.1/MODULE.bazel b/modules/bazel_features/1.9.1/MODULE.bazel new file mode 100644 index 00000000000..1e52e04a142 --- /dev/null +++ b/modules/bazel_features/1.9.1/MODULE.bazel @@ -0,0 +1,16 @@ +module( + name = "bazel_features", + version = "1.9.1", +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") + +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +version = use_extension("//private:extensions.bzl", "version_extension") +use_repo(version, "bazel_features_globals", "bazel_features_version") diff --git a/modules/bazel_features/1.9.1/patches/module_dot_bazel_version.patch b/modules/bazel_features/1.9.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..0e5fb4d5c7c --- /dev/null +++ b/modules/bazel_features/1.9.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "bazel_features", +- version = "0.0.0", ++ version = "1.9.1", + ) + + bazel_dep(name = "bazel_skylib", version = "1.5.0") + diff --git a/modules/bazel_features/1.9.1/presubmit.yml b/modules/bazel_features/1.9.1/presubmit.yml new file mode 100644 index 00000000000..fa049b69b8a --- /dev/null +++ b/modules/bazel_features/1.9.1/presubmit.yml @@ -0,0 +1,17 @@ +bcr_test_module: + module_path: test/bcr_test + matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + - windows + bazel: [6.x, 7.x] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/bazel_features/1.9.1/source.json b/modules/bazel_features/1.9.1/source.json new file mode 100644 index 00000000000..97f2063fbcf --- /dev/null +++ b/modules/bazel_features/1.9.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-13h9oomn+0lzUiEa0gDsn2mIIqngdXpJdv2fcT/zcrM=", + "strip_prefix": "bazel_features-1.9.1", + "url": "https://github.com/bazel-contrib/bazel_features/releases/download/v1.9.1/bazel_features-v1.9.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-a2ofwS5r2Qq+WxzVa7sLbRXhfT3JoYxSlUVQH/nL454=" + }, + "patch_strip": 1 +} diff --git a/modules/bazel_features/metadata.json b/modules/bazel_features/metadata.json index eb2b7bbb7e3..a73dd30e733 100644 --- a/modules/bazel_features/metadata.json +++ b/modules/bazel_features/metadata.json @@ -34,7 +34,8 @@ "1.7.0", "1.7.1", "1.8.0", - "1.9.0" + "1.9.0", + "1.9.1" ], "yanked_versions": { "1.7.0": "Incorrect download URL" From b078946f2f12af87a41f31965d1cbe78715beef7 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 25 Mar 2024 11:25:14 +0100 Subject: [PATCH 29/62] jsoncpp@1.9.5 (#1674) Release: https://github.com/open-source-parsers/jsoncpp/releases/tag/1.9.5 Used by: * https://github.com/protocolbuffers/protobuf --- modules/jsoncpp/1.9.5/MODULE.bazel | 5 +++++ .../jsoncpp/1.9.5/patches/build_dot_bazel.patch | 15 +++++++++++++++ .../1.9.5/patches/module_dot_bazel.patch | 8 ++++++++ modules/jsoncpp/1.9.5/presubmit.yml | 17 +++++++++++++++++ modules/jsoncpp/1.9.5/source.json | 10 ++++++++++ modules/jsoncpp/metadata.json | 16 ++++++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 modules/jsoncpp/1.9.5/MODULE.bazel create mode 100644 modules/jsoncpp/1.9.5/patches/build_dot_bazel.patch create mode 100644 modules/jsoncpp/1.9.5/patches/module_dot_bazel.patch create mode 100644 modules/jsoncpp/1.9.5/presubmit.yml create mode 100644 modules/jsoncpp/1.9.5/source.json create mode 100644 modules/jsoncpp/metadata.json diff --git a/modules/jsoncpp/1.9.5/MODULE.bazel b/modules/jsoncpp/1.9.5/MODULE.bazel new file mode 100644 index 00000000000..3b44ac514d5 --- /dev/null +++ b/modules/jsoncpp/1.9.5/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "jsoncpp", + version = "1.9.5", + compatibility_level = 1, +) diff --git a/modules/jsoncpp/1.9.5/patches/build_dot_bazel.patch b/modules/jsoncpp/1.9.5/patches/build_dot_bazel.patch new file mode 100644 index 00000000000..52fa448c5e2 --- /dev/null +++ b/modules/jsoncpp/1.9.5/patches/build_dot_bazel.patch @@ -0,0 +1,15 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index 6d7ac3d..b013e4f 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -14,9 +14,9 @@ cc_library( + "include/json/allocator.h", + "include/json/assertions.h", + "include/json/config.h", +- "include/json/json_features.h", + "include/json/forwards.h", + "include/json/json.h", ++ "include/json/json_features.h", + "include/json/reader.h", + "include/json/value.h", + "include/json/version.h", diff --git a/modules/jsoncpp/1.9.5/patches/module_dot_bazel.patch b/modules/jsoncpp/1.9.5/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..a89ec09c24b --- /dev/null +++ b/modules/jsoncpp/1.9.5/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- a/MODULE.bazel ++++ a/MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "jsoncpp", ++ version = "1.9.5", ++ compatibility_level = 1, ++) diff --git a/modules/jsoncpp/1.9.5/presubmit.yml b/modules/jsoncpp/1.9.5/presubmit.yml new file mode 100644 index 00000000000..820f43089ec --- /dev/null +++ b/modules/jsoncpp/1.9.5/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@jsoncpp//...' diff --git a/modules/jsoncpp/1.9.5/source.json b/modules/jsoncpp/1.9.5/source.json new file mode 100644 index 00000000000..50929f86cf9 --- /dev/null +++ b/modules/jsoncpp/1.9.5/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.5.tar.gz", + "integrity": "sha256-9AmFblkgwY0ML7hSduJO5gfSoJtefV8KNxNokDwnXaI=", + "strip_prefix": "jsoncpp-1.9.5", + "patches": { + "build_dot_bazel.patch": "sha256-Vj8diXSWps8I8h5cdEqBDYmKBA2ulvWxMZBEQlIgcpU=", + "module_dot_bazel.patch": "sha256-7RC7fS8N11vcyeDEaUZ05yBqr0YY7OzuzqaWz5W2XDo=" + }, + "patch_strip": 1 +} diff --git a/modules/jsoncpp/metadata.json b/modules/jsoncpp/metadata.json new file mode 100644 index 00000000000..af4e4556544 --- /dev/null +++ b/modules/jsoncpp/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/open-source-parsers/jsoncpp", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:open-source-parsers/jsoncpp" + ], + "versions": [ + "1.9.5" + ], + "yanked_versions": {} +} \ No newline at end of file From a8775110974872812b3499ec8a204ff660f47ee9 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 25 Mar 2024 11:27:45 +0100 Subject: [PATCH 30/62] emboss@2024.0304.184309 (#1672) Release: https://github.com/google/emboss/releases/tag/v2024.0304.184309 Used by: * https://github.com/google/ecclesia-machine-management --- modules/emboss/2024.0304.184309/MODULE.bazel | 18 ++++++++++++++++ .../patches/module_dot_bazel.patch | 21 +++++++++++++++++++ modules/emboss/2024.0304.184309/presubmit.yml | 18 ++++++++++++++++ modules/emboss/2024.0304.184309/source.json | 8 +++++++ modules/emboss/metadata.json | 16 ++++++++++++++ 5 files changed, 81 insertions(+) create mode 100644 modules/emboss/2024.0304.184309/MODULE.bazel create mode 100644 modules/emboss/2024.0304.184309/patches/module_dot_bazel.patch create mode 100644 modules/emboss/2024.0304.184309/presubmit.yml create mode 100644 modules/emboss/2024.0304.184309/source.json create mode 100644 modules/emboss/metadata.json diff --git a/modules/emboss/2024.0304.184309/MODULE.bazel b/modules/emboss/2024.0304.184309/MODULE.bazel new file mode 100644 index 00000000000..a1cbee78bb7 --- /dev/null +++ b/modules/emboss/2024.0304.184309/MODULE.bazel @@ -0,0 +1,18 @@ +module( + name = "emboss", + version = "2024.0304.184309", + compatibility_level = 1, + repo_name = "com_google_emboss", +) + +bazel_dep( + name = "abseil-cpp", + repo_name = "com_google_absl", + version = "20230125.1", +) +bazel_dep( + name = "googletest", + version = "1.14.0.bcr.1", + repo_name = "com_google_googletest", +) +# -- bazel_dep definitions -- # diff --git a/modules/emboss/2024.0304.184309/patches/module_dot_bazel.patch b/modules/emboss/2024.0304.184309/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..8d616ebb96c --- /dev/null +++ b/modules/emboss/2024.0304.184309/patches/module_dot_bazel.patch @@ -0,0 +1,21 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,18 @@ ++module( ++ name = "emboss", ++ version = "2024.0304.184309", ++ compatibility_level = 1, ++ repo_name = "com_google_emboss", ++) ++ ++bazel_dep( ++ name = "abseil-cpp", ++ repo_name = "com_google_absl", ++ version = "20230125.1", ++) ++bazel_dep( ++ name = "googletest", ++ version = "1.14.0.bcr.1", ++ repo_name = "com_google_googletest", ++) ++# -- bazel_dep definitions -- # diff --git a/modules/emboss/2024.0304.184309/presubmit.yml b/modules/emboss/2024.0304.184309/presubmit.yml new file mode 100644 index 00000000000..c9eedd881fa --- /dev/null +++ b/modules/emboss/2024.0304.184309/presubmit.yml @@ -0,0 +1,18 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@emboss//runtime/...' diff --git a/modules/emboss/2024.0304.184309/source.json b/modules/emboss/2024.0304.184309/source.json new file mode 100644 index 00000000000..b5836f20ded --- /dev/null +++ b/modules/emboss/2024.0304.184309/source.json @@ -0,0 +1,8 @@ +{ + "url": "https://github.com/google/emboss/releases/download/v2024.0304.184309/emboss.zip", + "integrity": "sha256-+Nw5vq3eOph0Uv91RMZKBkutaehRBiY7D4SF4y70/Ig=", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-6EXkVqQkUfGwiGFkLLQS7JUp3bq/hPqVqwHZjWhR6Gc=" + } +} diff --git a/modules/emboss/metadata.json b/modules/emboss/metadata.json new file mode 100644 index 00000000000..56f924307ce --- /dev/null +++ b/modules/emboss/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/google/emboss", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:google/emboss" + ], + "versions": [ + "2024.0304.184309" + ], + "yanked_versions": {} +} \ No newline at end of file From 6e4b6d81769426bfe85d7f332dc8630c3f7c215a Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 25 Mar 2024 11:52:07 +0100 Subject: [PATCH 31/62] cel-spec@0.14.0 (#1641) Release: https://github.com/google/cel-spec/releases/tag/v0.14.0 --- modules/cel-spec/0.14.0/MODULE.bazel | 88 ++++++++++++++++++ .../0.14.0/patches/extensions_dot_bzl.patch | 21 +++++ .../patches/googleapis_ext_dot_blz.patch | 12 +++ .../0.14.0/patches/module_dot_bazel.patch | 91 +++++++++++++++++++ modules/cel-spec/0.14.0/presubmit.yml | 17 ++++ modules/cel-spec/0.14.0/source.json | 11 +++ modules/cel-spec/metadata.json | 16 ++++ 7 files changed, 256 insertions(+) create mode 100644 modules/cel-spec/0.14.0/MODULE.bazel create mode 100644 modules/cel-spec/0.14.0/patches/extensions_dot_bzl.patch create mode 100644 modules/cel-spec/0.14.0/patches/googleapis_ext_dot_blz.patch create mode 100644 modules/cel-spec/0.14.0/patches/module_dot_bazel.patch create mode 100644 modules/cel-spec/0.14.0/presubmit.yml create mode 100644 modules/cel-spec/0.14.0/source.json create mode 100644 modules/cel-spec/metadata.json diff --git a/modules/cel-spec/0.14.0/MODULE.bazel b/modules/cel-spec/0.14.0/MODULE.bazel new file mode 100644 index 00000000000..c5db74bee38 --- /dev/null +++ b/modules/cel-spec/0.14.0/MODULE.bazel @@ -0,0 +1,88 @@ +module( + name = "cel-spec", + version = "0.14.0", + compatibility_level = 1, +) + +bazel_dep( + name = "abseil-cpp", + version = "20230802.0.bcr.1", + repo_name = "com_google_absl", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.1", +) +bazel_dep( + name = "gazelle", + version = "0.34.0", + repo_name = "bazel_gazelle", +) +bazel_dep( + name = "protobuf", + version = "21.7", + repo_name = "com_google_protobuf", +) +bazel_dep( + name = "rules_cc", + version = "0.0.9", +) +bazel_dep( + name = "rules_go", + version = "0.45.1", + repo_name = "io_bazel_rules_go", +) +bazel_dep( + name = "rules_java", + version = "6.0.0", +) +bazel_dep( + name = "rules_pkg", + version = "0.7.0", +) +bazel_dep( + name = "rules_proto", + version = "5.3.0-21.7", +) +bazel_dep( + name = "rules_python", + version = "0.22.1", +) +# -- bazel_dep definitions -- # + +non_module_dependencies = use_extension("//:extensions.bzl", "non_module_dependencies") +use_repo( + non_module_dependencies, + "com_google_googleapis", +) + +googleapis_ext = use_extension("//:googleapis_ext.bzl", "googleapis_ext") +use_repo( + googleapis_ext, + "com_google_googleapis_imports", +) + +go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") +go_sdk.download(version = "1.19.1") + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +go_deps.module( + path = "google.golang.org/genproto/googleapis/api", + sum = "h1:m8v1xLLLzMe1m5P+gCTF8nJB9epwZQUBERm20Oy1poQ=", + version = "v0.0.0-20230525234035-dd9d682886f9", +) +go_deps.module( + path = "google.golang.org/genproto/googleapis/rpc", + sum = "h1:0nDDozoAU19Qb2HwhXadU8OcsiO/09cnTqhUtq2MEOM=", + version = "v0.0.0-20230525234030-28d5490b6b19", +) +use_repo( + go_deps, + "com_github_golang_protobuf", + "org_golang_google_genproto", + "org_golang_google_genproto_googleapis_api", + "org_golang_google_genproto_googleapis_rpc", + "org_golang_google_grpc", + "org_golang_google_protobuf", +) diff --git a/modules/cel-spec/0.14.0/patches/extensions_dot_bzl.patch b/modules/cel-spec/0.14.0/patches/extensions_dot_bzl.patch new file mode 100644 index 00000000000..b47863c4d6f --- /dev/null +++ b/modules/cel-spec/0.14.0/patches/extensions_dot_bzl.patch @@ -0,0 +1,21 @@ +diff --git a/extensions.bzl b/extensions.bzl +new file mode 100644 +index 0000000..c7e96b3 +--- /dev/null ++++ b/extensions.bzl +@@ -0,0 +1,15 @@ ++load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ++ ++def _non_module_dependencies_impl(_ctx): ++ http_archive( ++ name = "com_google_googleapis", ++ sha256 = "bd8e735d881fb829751ecb1a77038dda4a8d274c45490cb9fcf004583ee10571", ++ strip_prefix = "googleapis-07c27163ac591955d736f3057b1619ece66f5b99", ++ urls = [ ++ "https://github.com/googleapis/googleapis/archive/07c27163ac591955d736f3057b1619ece66f5b99.tar.gz", ++ ], ++ ) ++ ++non_module_dependencies = module_extension( ++ implementation = _non_module_dependencies_impl, ++) diff --git a/modules/cel-spec/0.14.0/patches/googleapis_ext_dot_blz.patch b/modules/cel-spec/0.14.0/patches/googleapis_ext_dot_blz.patch new file mode 100644 index 00000000000..1666bf2ce52 --- /dev/null +++ b/modules/cel-spec/0.14.0/patches/googleapis_ext_dot_blz.patch @@ -0,0 +1,12 @@ +diff --git a/googleapis_ext.bzl b/googleapis_ext.bzl +new file mode 100644 +index 0000000..f3c1e15 +--- /dev/null ++++ b/googleapis_ext.bzl +@@ -0,0 +1,6 @@ ++load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") ++ ++googleapis_ext = module_extension(implementation = lambda x: switched_rules_by_language( ++ name = "com_google_googleapis_imports", ++ cc = True, ++)) diff --git a/modules/cel-spec/0.14.0/patches/module_dot_bazel.patch b/modules/cel-spec/0.14.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..c493f0b3a13 --- /dev/null +++ b/modules/cel-spec/0.14.0/patches/module_dot_bazel.patch @@ -0,0 +1,91 @@ +--- a/MODULE.bazel ++++ a/MODULE.bazel +@@ -0,0 +1,88 @@ ++module( ++ name = "cel-spec", ++ version = "0.14.0", ++ compatibility_level = 1, ++) ++ ++bazel_dep( ++ name = "abseil-cpp", ++ version = "20230802.0.bcr.1", ++ repo_name = "com_google_absl", ++) ++bazel_dep( ++ name = "bazel_skylib", ++ version = "1.4.1", ++) ++bazel_dep( ++ name = "gazelle", ++ version = "0.34.0", ++ repo_name = "bazel_gazelle", ++) ++bazel_dep( ++ name = "protobuf", ++ version = "21.7", ++ repo_name = "com_google_protobuf", ++) ++bazel_dep( ++ name = "rules_cc", ++ version = "0.0.9", ++) ++bazel_dep( ++ name = "rules_go", ++ version = "0.45.1", ++ repo_name = "io_bazel_rules_go", ++) ++bazel_dep( ++ name = "rules_java", ++ version = "6.0.0", ++) ++bazel_dep( ++ name = "rules_pkg", ++ version = "0.7.0", ++) ++bazel_dep( ++ name = "rules_proto", ++ version = "5.3.0-21.7", ++) ++bazel_dep( ++ name = "rules_python", ++ version = "0.22.1", ++) ++# -- bazel_dep definitions -- # ++ ++non_module_dependencies = use_extension("//:extensions.bzl", "non_module_dependencies") ++use_repo( ++ non_module_dependencies, ++ "com_google_googleapis", ++) ++ ++googleapis_ext = use_extension("//:googleapis_ext.bzl", "googleapis_ext") ++use_repo( ++ googleapis_ext, ++ "com_google_googleapis_imports", ++) ++ ++go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") ++go_sdk.download(version = "1.19.1") ++ ++go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") ++go_deps.from_file(go_mod = "//:go.mod") ++go_deps.module( ++ path = "google.golang.org/genproto/googleapis/api", ++ sum = "h1:m8v1xLLLzMe1m5P+gCTF8nJB9epwZQUBERm20Oy1poQ=", ++ version = "v0.0.0-20230525234035-dd9d682886f9", ++) ++go_deps.module( ++ path = "google.golang.org/genproto/googleapis/rpc", ++ sum = "h1:0nDDozoAU19Qb2HwhXadU8OcsiO/09cnTqhUtq2MEOM=", ++ version = "v0.0.0-20230525234030-28d5490b6b19", ++) ++use_repo( ++ go_deps, ++ "com_github_golang_protobuf", ++ "org_golang_google_genproto", ++ "org_golang_google_genproto_googleapis_api", ++ "org_golang_google_genproto_googleapis_rpc", ++ "org_golang_google_grpc", ++ "org_golang_google_protobuf", ++) diff --git a/modules/cel-spec/0.14.0/presubmit.yml b/modules/cel-spec/0.14.0/presubmit.yml new file mode 100644 index 00000000000..2410d555abd --- /dev/null +++ b/modules/cel-spec/0.14.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@cel-spec//...' diff --git a/modules/cel-spec/0.14.0/source.json b/modules/cel-spec/0.14.0/source.json new file mode 100644 index 00000000000..ce4e8f19fad --- /dev/null +++ b/modules/cel-spec/0.14.0/source.json @@ -0,0 +1,11 @@ +{ + "url": "https://github.com/google/cel-spec/archive/refs/tags/v0.14.0.tar.gz", + "integrity": "sha256-NXnJexNUhxT5BZ728wxSZNQ57+9LQ4525xgHCe/ZOms=", + "strip_prefix": "cel-spec-0.14.0", + "patches": { + "extensions_dot_bzl.patch": "sha256-AOxL4MTXuJw/6yNZ2URaJo1iosZxs7OeCmbTr/kZMqQ=", + "googleapis_ext_dot_blz.patch": "sha256-aV5uYSWn8jqV4nX813Frqh+OIpmpyP9p8/nK9MRV2rk=", + "module_dot_bazel.patch": "sha256-NXDdcPUgNWoQzEkvWbg7Sxo1eQb/nyXtgC4/wTN/lM4=" + }, + "patch_strip": 1 +} diff --git a/modules/cel-spec/metadata.json b/modules/cel-spec/metadata.json new file mode 100644 index 00000000000..61fab7c1ae3 --- /dev/null +++ b/modules/cel-spec/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/google/cel-spec", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:google/cel-spec" + ], + "versions": [ + "0.14.0" + ], + "yanked_versions": {} +} From ec8e887a9d2928f2ee3d6d1754110709b3dea5c1 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 25 Mar 2024 15:44:07 +0100 Subject: [PATCH 32/62] hdrhistogram_c@0.11.2 (#1678) Release: https://github.com/HdrHistogram/HdrHistogram_c/releases/tag/0.11.2 Used by: * https://github.com/envoyproxy/nighthawk --- modules/hdrhistogram_c/0.11.2/MODULE.bazel | 10 ++++++ .../0.11.2/patches/add_build_file.patch | 34 +++++++++++++++++++ .../0.11.2/patches/module_dot_bazel.patch | 13 +++++++ modules/hdrhistogram_c/0.11.2/presubmit.yml | 16 +++++++++ modules/hdrhistogram_c/0.11.2/source.json | 10 ++++++ modules/hdrhistogram_c/metadata.json | 16 +++++++++ 6 files changed, 99 insertions(+) create mode 100644 modules/hdrhistogram_c/0.11.2/MODULE.bazel create mode 100644 modules/hdrhistogram_c/0.11.2/patches/add_build_file.patch create mode 100644 modules/hdrhistogram_c/0.11.2/patches/module_dot_bazel.patch create mode 100644 modules/hdrhistogram_c/0.11.2/presubmit.yml create mode 100644 modules/hdrhistogram_c/0.11.2/source.json create mode 100644 modules/hdrhistogram_c/metadata.json diff --git a/modules/hdrhistogram_c/0.11.2/MODULE.bazel b/modules/hdrhistogram_c/0.11.2/MODULE.bazel new file mode 100644 index 00000000000..c7e30530421 --- /dev/null +++ b/modules/hdrhistogram_c/0.11.2/MODULE.bazel @@ -0,0 +1,10 @@ +module( + name = "hdrhistogram_c", + version = "0.11.2", + compatibility_level = 1, +) + +bazel_dep( + name = "zlib", + version = "1.3.1.bcr.1", +) diff --git a/modules/hdrhistogram_c/0.11.2/patches/add_build_file.patch b/modules/hdrhistogram_c/0.11.2/patches/add_build_file.patch new file mode 100644 index 00000000000..14851226827 --- /dev/null +++ b/modules/hdrhistogram_c/0.11.2/patches/add_build_file.patch @@ -0,0 +1,34 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,31 @@ ++cc_library( ++ name = "hdrhistogram_c", ++ srcs = [ ++ "src/hdr_encoding.c", ++ "src/hdr_histogram.c", ++ "src/hdr_histogram_log.c", ++ "src/hdr_interval_recorder.c", ++ "src/hdr_thread.c", ++ "src/hdr_time.c", ++ "src/hdr_writer_reader_phaser.c", ++ ], ++ hdrs = [ ++ "src/hdr_atomic.h", ++ "src/hdr_encoding.h", ++ "src/hdr_endian.h", ++ "src/hdr_histogram.h", ++ "src/hdr_histogram_log.h", ++ "src/hdr_interval_recorder.h", ++ "src/hdr_tests.h", ++ "src/hdr_thread.h", ++ "src/hdr_time.h", ++ "src/hdr_writer_reader_phaser.h", ++ ], ++ copts = [ ++ "-std=gnu99", ++ "-Wno-implicit-function-declaration", ++ "-Wno-error", ++ ], ++ visibility = ["//visibility:public"], ++ deps = ["@zlib"], ++) diff --git a/modules/hdrhistogram_c/0.11.2/patches/module_dot_bazel.patch b/modules/hdrhistogram_c/0.11.2/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..d96fa23af78 --- /dev/null +++ b/modules/hdrhistogram_c/0.11.2/patches/module_dot_bazel.patch @@ -0,0 +1,13 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,10 @@ ++module( ++ name = "hdrhistogram_c", ++ version = "0.11.2", ++ compatibility_level = 1, ++) ++ ++bazel_dep( ++ name = "zlib", ++ version = "1.3.1.bcr.1", ++) diff --git a/modules/hdrhistogram_c/0.11.2/presubmit.yml b/modules/hdrhistogram_c/0.11.2/presubmit.yml new file mode 100644 index 00000000000..d2f0a1d73b2 --- /dev/null +++ b/modules/hdrhistogram_c/0.11.2/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@hdrhistogram_c//:hdrhistogram_c' diff --git a/modules/hdrhistogram_c/0.11.2/source.json b/modules/hdrhistogram_c/0.11.2/source.json new file mode 100644 index 00000000000..35d9bd0ec6a --- /dev/null +++ b/modules/hdrhistogram_c/0.11.2/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/HdrHistogram/HdrHistogram_c/archive/refs/tags/0.11.2.tar.gz", + "integrity": "sha256-Y38otfZN4uJoEx5ONObu8Lkc9f+ZFn20R9mygl6ua60=", + "strip_prefix": "HdrHistogram_c-0.11.2", + "patches": { + "add_build_file.patch": "sha256-3oOur+YN9ttwuII6klYpndhMGf1WNdgcp/c3ybpvWYw=", + "module_dot_bazel.patch": "sha256-N833h2a0gYMTx877/Qrs4Yx0LkKjwVi649g9PyzMCb4=" + }, + "patch_strip": 0 +} diff --git a/modules/hdrhistogram_c/metadata.json b/modules/hdrhistogram_c/metadata.json new file mode 100644 index 00000000000..cdbe18e7166 --- /dev/null +++ b/modules/hdrhistogram_c/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/HdrHistogram/HdrHistogram_c", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:HdrHistogram/HdrHistogram_c" + ], + "versions": [ + "0.11.2" + ], + "yanked_versions": {} +} \ No newline at end of file From d3302fca2335a0296fe66ddf484c22eff11bc6ad Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 25 Mar 2024 10:15:11 -0700 Subject: [PATCH 33/62] Add opentelemetry-proto (#1687) --- .../opentelemetry-proto/1.1.0/MODULE.bazel | 8 + .../1.1.0/patches/0001-Add-MODULE.bazel.patch | 166 ++++++++++++++++++ .../opentelemetry-proto/1.1.0/presubmit.yml | 12 ++ modules/opentelemetry-proto/1.1.0/source.json | 9 + modules/opentelemetry-proto/metadata.json | 17 ++ 5 files changed, 212 insertions(+) create mode 100644 modules/opentelemetry-proto/1.1.0/MODULE.bazel create mode 100644 modules/opentelemetry-proto/1.1.0/patches/0001-Add-MODULE.bazel.patch create mode 100644 modules/opentelemetry-proto/1.1.0/presubmit.yml create mode 100644 modules/opentelemetry-proto/1.1.0/source.json create mode 100644 modules/opentelemetry-proto/metadata.json diff --git a/modules/opentelemetry-proto/1.1.0/MODULE.bazel b/modules/opentelemetry-proto/1.1.0/MODULE.bazel new file mode 100644 index 00000000000..89985e144ec --- /dev/null +++ b/modules/opentelemetry-proto/1.1.0/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "opentelemetry-proto", + version = "1.1.0", + compatibility_level = 0, +) + +bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") diff --git a/modules/opentelemetry-proto/1.1.0/patches/0001-Add-MODULE.bazel.patch b/modules/opentelemetry-proto/1.1.0/patches/0001-Add-MODULE.bazel.patch new file mode 100644 index 00000000000..ce60fbf8b41 --- /dev/null +++ b/modules/opentelemetry-proto/1.1.0/patches/0001-Add-MODULE.bazel.patch @@ -0,0 +1,166 @@ +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,151 @@ ++# Copyright The OpenTelemetry Authors ++# SPDX-License-Identifier: Apache-2.0 ++ ++load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") ++load("@rules_proto//proto:defs.bzl", "proto_library") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++proto_library( ++ name = "common_proto", ++ srcs = [ ++ "opentelemetry/proto/common/v1/common.proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "common_proto_cc", ++ deps = [":common_proto"], ++) ++ ++proto_library( ++ name = "resource_proto", ++ srcs = [ ++ "opentelemetry/proto/resource/v1/resource.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "resource_proto_cc", ++ deps = [":resource_proto"], ++) ++ ++proto_library( ++ name = "trace_proto", ++ srcs = [ ++ "opentelemetry/proto/trace/v1/trace.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ":resource_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "trace_proto_cc", ++ deps = [":trace_proto"], ++) ++ ++proto_library( ++ name = "trace_service_proto", ++ srcs = [ ++ "opentelemetry/proto/collector/trace/v1/trace_service.proto", ++ ], ++ deps = [ ++ ":trace_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "trace_service_proto_cc", ++ deps = [":trace_service_proto"], ++) ++ ++cc_grpc_library( ++ name = "trace_service_grpc_cc", ++ srcs = [":trace_service_proto"], ++ generate_mocks = True, ++ grpc_only = True, ++ deps = [":trace_service_proto_cc"], ++) ++ ++proto_library( ++ name = "logs_proto", ++ srcs = [ ++ "opentelemetry/proto/logs/v1/logs.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ":resource_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "logs_proto_cc", ++ deps = [":logs_proto"], ++) ++ ++proto_library( ++ name = "logs_service_proto", ++ srcs = [ ++ "opentelemetry/proto/collector/logs/v1/logs_service.proto", ++ ], ++ deps = [ ++ ":logs_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "logs_service_proto_cc", ++ deps = [":logs_service_proto"], ++) ++ ++cc_grpc_library( ++ name = "logs_service_grpc_cc", ++ srcs = [":logs_service_proto"], ++ generate_mocks = True, ++ grpc_only = True, ++ deps = [":logs_service_proto_cc"], ++) ++ ++proto_library( ++ name = "metrics_proto", ++ srcs = [ ++ "opentelemetry/proto/metrics/v1/metrics.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ":resource_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "metrics_proto_cc", ++ deps = [":metrics_proto"], ++) ++ ++proto_library( ++ name = "metrics_service_proto", ++ srcs = [ ++ "opentelemetry/proto/collector/metrics/v1/metrics_service.proto", ++ ], ++ deps = [ ++ ":metrics_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "metrics_service_proto_cc", ++ deps = [":metrics_service_proto"], ++) ++ ++cc_grpc_library( ++ name = "metrics_service_grpc_cc", ++ srcs = [":metrics_service_proto"], ++ generate_mocks = True, ++ grpc_only = True, ++ deps = [":metrics_service_proto_cc"], ++) + +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,8 @@ ++module( ++ name = "opentelemetry-proto", ++ version = "1.1.0", ++ compatibility_level = 0, ++) ++ ++bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") ++bazel_dep(name = "rules_proto", version = "5.3.0-21.7") diff --git a/modules/opentelemetry-proto/1.1.0/presubmit.yml b/modules/opentelemetry-proto/1.1.0/presubmit.yml new file mode 100644 index 00000000000..0a6384a3fd1 --- /dev/null +++ b/modules/opentelemetry-proto/1.1.0/presubmit.yml @@ -0,0 +1,12 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + build_targets: + - '@opentelemetry-proto//...' diff --git a/modules/opentelemetry-proto/1.1.0/source.json b/modules/opentelemetry-proto/1.1.0/source.json new file mode 100644 index 00000000000..85e3288109d --- /dev/null +++ b/modules/opentelemetry-proto/1.1.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-30kaBfP8v4bMW6XJ3oH2piTXTUdz1wCdVz431uK2r2Q=", + "strip_prefix": "opentelemetry-proto-1.1.0", + "url": "https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v1.1.0.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Add-MODULE.bazel.patch": "sha256-RrO6zvMf7Z36RlhKw/7d3/6RnyTbMpQfOp8kq2bqWJw=" + } +} diff --git a/modules/opentelemetry-proto/metadata.json b/modules/opentelemetry-proto/metadata.json new file mode 100644 index 00000000000..55353ebb39a --- /dev/null +++ b/modules/opentelemetry-proto/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/open-telemetry/opentelemetry-proto", + "maintainers": [ + { + "email": "keithbsmiley@gmail.com", + "github": "keith", + "name": "Keith Smiley" + } + ], + "repository": [ + "github:open-telemetry/opentelemetry-proto" + ], + "versions": [ + "1.1.0" + ], + "yanked_versions": {} +} From 9610e1f00729760fad213c04534c8ab5e3934d98 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 25 Mar 2024 10:33:02 -0700 Subject: [PATCH 34/62] Add opentelemetry-cpp (#1670) --- modules/opentelemetry-cpp/1.14.2/MODULE.bazel | 28 +++++++++++++++++ .../patches/0001-Add-MODULE.bazel.patch | 31 +++++++++++++++++++ .../opentelemetry-cpp/1.14.2/presubmit.yml | 13 ++++++++ modules/opentelemetry-cpp/1.14.2/source.json | 9 ++++++ modules/opentelemetry-cpp/metadata.json | 17 ++++++++++ 5 files changed, 98 insertions(+) create mode 100644 modules/opentelemetry-cpp/1.14.2/MODULE.bazel create mode 100644 modules/opentelemetry-cpp/1.14.2/patches/0001-Add-MODULE.bazel.patch create mode 100644 modules/opentelemetry-cpp/1.14.2/presubmit.yml create mode 100644 modules/opentelemetry-cpp/1.14.2/source.json create mode 100644 modules/opentelemetry-cpp/metadata.json diff --git a/modules/opentelemetry-cpp/1.14.2/MODULE.bazel b/modules/opentelemetry-cpp/1.14.2/MODULE.bazel new file mode 100644 index 00000000000..e144a20105f --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2/MODULE.bazel @@ -0,0 +1,28 @@ +module( + name = "opentelemetry-cpp", + version = "1.14.2", + compatibility_level = 0, + repo_name = "io_opentelemetry_cpp", +) + +bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") +single_version_override( + module_name = "abseil-cpp", + version = "20230802.0.bcr.1", +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "curl", version = "8.4.0") +bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json") +bazel_dep(name = "opentelemetry-proto", version = "1.1.0", repo_name = "com_github_opentelemetry_proto") +bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp") +bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") +bazel_dep(name = "upb", version = "0.0.0-20230907-e7430e6") +bazel_dep(name = "zlib", version = "1.3.1.bcr.1") + +bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") +bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest") diff --git a/modules/opentelemetry-cpp/1.14.2/patches/0001-Add-MODULE.bazel.patch b/modules/opentelemetry-cpp/1.14.2/patches/0001-Add-MODULE.bazel.patch new file mode 100644 index 00000000000..78540c8ba37 --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2/patches/0001-Add-MODULE.bazel.patch @@ -0,0 +1,31 @@ +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,28 @@ ++module( ++ name = "opentelemetry-cpp", ++ version = "1.14.2", ++ compatibility_level = 0, ++ repo_name = "io_opentelemetry_cpp", ++) ++ ++bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") ++single_version_override( ++ module_name = "abseil-cpp", ++ version = "20230802.0.bcr.1", ++) ++ ++bazel_dep(name = "bazel_skylib", version = "1.5.0") ++bazel_dep(name = "curl", version = "8.4.0") ++bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") ++bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json") ++bazel_dep(name = "opentelemetry-proto", version = "1.1.0", repo_name = "com_github_opentelemetry_proto") ++bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing") ++bazel_dep(name = "platforms", version = "0.0.8") ++bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp") ++bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") ++bazel_dep(name = "rules_proto", version = "5.3.0-21.7") ++bazel_dep(name = "upb", version = "0.0.0-20230907-e7430e6") ++bazel_dep(name = "zlib", version = "1.3.1.bcr.1") ++ ++bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") ++bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest") diff --git a/modules/opentelemetry-cpp/1.14.2/presubmit.yml b/modules/opentelemetry-cpp/1.14.2/presubmit.yml new file mode 100644 index 00000000000..7ac611a0cb7 --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + - '--@opentelemetry-cpp//api:with_abseil=true' + build_targets: + - '@opentelemetry-cpp//api' diff --git a/modules/opentelemetry-cpp/1.14.2/source.json b/modules/opentelemetry-cpp/1.14.2/source.json new file mode 100644 index 00000000000..09494b6ee52 --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-x+eAHJ9iKHUc253Uck0PBHd+1T9STIgo5zv0yfiU4L0=", + "strip_prefix": "opentelemetry-cpp-1.14.2", + "url": "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.14.2.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Add-MODULE.bazel.patch": "sha256-JAtjQwrqEgzpNN6oPz4n6Cm+i2uOh4Sm2XL3HBMCTkA=" + } +} diff --git a/modules/opentelemetry-cpp/metadata.json b/modules/opentelemetry-cpp/metadata.json new file mode 100644 index 00000000000..ecb05643779 --- /dev/null +++ b/modules/opentelemetry-cpp/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/open-telemetry/opentelemetry-cpp", + "maintainers": [ + { + "email": "keithbsmiley@gmail.com", + "github": "keith", + "name": "Keith Smiley" + } + ], + "repository": [ + "github:open-telemetry/opentelemetry-cpp" + ], + "versions": [ + "1.14.2" + ], + "yanked_versions": {} +} From bbdecc72bf48ee8b09a081f6e03e13ba2b8e8b00 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 25 Mar 2024 19:38:17 +0100 Subject: [PATCH 35/62] msgpack-c@6.1.0 (#1639) Release: https://github.com/msgpack/msgpack-c/releases/tag/cpp-6.1.0 --- modules/msgpack-c/6.1.0/MODULE.bazel | 5 +++++ .../6.1.0/patches/add_build_file.patch | 13 +++++++++++++ .../6.1.0/patches/module_dot_bazel.patch | 8 ++++++++ modules/msgpack-c/6.1.0/presubmit.yml | 17 +++++++++++++++++ modules/msgpack-c/6.1.0/source.json | 10 ++++++++++ modules/msgpack-c/metadata.json | 16 ++++++++++++++++ 6 files changed, 69 insertions(+) create mode 100644 modules/msgpack-c/6.1.0/MODULE.bazel create mode 100644 modules/msgpack-c/6.1.0/patches/add_build_file.patch create mode 100644 modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch create mode 100644 modules/msgpack-c/6.1.0/presubmit.yml create mode 100644 modules/msgpack-c/6.1.0/source.json create mode 100644 modules/msgpack-c/metadata.json diff --git a/modules/msgpack-c/6.1.0/MODULE.bazel b/modules/msgpack-c/6.1.0/MODULE.bazel new file mode 100644 index 00000000000..23ce1d01b61 --- /dev/null +++ b/modules/msgpack-c/6.1.0/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "msgpack-c", + version = "6.1.0", + compatibility_level = 1, +) diff --git a/modules/msgpack-c/6.1.0/patches/add_build_file.patch b/modules/msgpack-c/6.1.0/patches/add_build_file.patch new file mode 100644 index 00000000000..ffed22b2bd9 --- /dev/null +++ b/modules/msgpack-c/6.1.0/patches/add_build_file.patch @@ -0,0 +1,13 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,10 @@ ++cc_library( ++ name = "msgpack", ++ hdrs = glob([ ++ "include/**/*.h", ++ "include/**/*.hpp", ++ ]), ++ defines = ["MSGPACK_NO_BOOST"], ++ includes = ["include"], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch b/modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..41ba035580b --- /dev/null +++ b/modules/msgpack-c/6.1.0/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "msgpack-c", ++ version = "6.1.0", ++ compatibility_level = 1, ++) diff --git a/modules/msgpack-c/6.1.0/presubmit.yml b/modules/msgpack-c/6.1.0/presubmit.yml new file mode 100644 index 00000000000..d84a1297f46 --- /dev/null +++ b/modules/msgpack-c/6.1.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@msgpack-c//:msgpack' diff --git a/modules/msgpack-c/6.1.0/source.json b/modules/msgpack-c/6.1.0/source.json new file mode 100644 index 00000000000..0fde2606860 --- /dev/null +++ b/modules/msgpack-c/6.1.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/msgpack/msgpack-c/releases/download/cpp-6.1.0/msgpack-cxx-6.1.0.tar.gz", + "integrity": "sha256-I+3n6TyO/uNDrYxlFMKPNwggflEGrzs+SWmzqe1wOec=", + "strip_prefix": "msgpack-cxx-6.1.0", + "patches": { + "add_build_file.patch": "sha256-pMzY862FSfeA3HoyvVMJI4xpHzwCLMHE2QblM+rZSZQ=", + "module_dot_bazel.patch": "sha256-ST7je5jsqxG5KgO/chTAMcR9h/RB9xaIoF8Fh0QLgno=" + }, + "patch_strip": 0 +} diff --git a/modules/msgpack-c/metadata.json b/modules/msgpack-c/metadata.json new file mode 100644 index 00000000000..b07415e5dd9 --- /dev/null +++ b/modules/msgpack-c/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/msgpack/msgpack-c", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:msgpack/msgpack-c" + ], + "versions": [ + "6.1.0" + ], + "yanked_versions": {} +} From c41cb8ffed2eac087ab233e6cbba7ee2a2c04dbe Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 22:41:31 +0100 Subject: [PATCH 36/62] aspect_rules_esbuild@0.19.0 (#1688) Release: https://github.com/aspect-build/rules_esbuild/releases/tag/v0.19.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Alex Eagle --- .../aspect_rules_esbuild/0.19.0/MODULE.bazel | 25 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++++++++ .../aspect_rules_esbuild/0.19.0/presubmit.yml | 12 +++++++++ .../aspect_rules_esbuild/0.19.0/source.json | 9 +++++++ modules/aspect_rules_esbuild/metadata.json | 3 ++- 5 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_esbuild/0.19.0/MODULE.bazel create mode 100644 modules/aspect_rules_esbuild/0.19.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_esbuild/0.19.0/presubmit.yml create mode 100644 modules/aspect_rules_esbuild/0.19.0/source.json diff --git a/modules/aspect_rules_esbuild/0.19.0/MODULE.bazel b/modules/aspect_rules_esbuild/0.19.0/MODULE.bazel new file mode 100644 index 00000000000..fc15d5833a9 --- /dev/null +++ b/modules/aspect_rules_esbuild/0.19.0/MODULE.bazel @@ -0,0 +1,25 @@ +"aspect-build/rules_esbuild" + +module( + name = "aspect_rules_esbuild", + version = "0.19.0", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "1.40.0") +bazel_dep(name = "aspect_rules_js", version = "1.35.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_nodejs", version = "5.8.3") + +esbuild = use_extension("@aspect_rules_esbuild//esbuild:extensions.bzl", "esbuild") +esbuild.toolchain( + name = "esbuild", + esbuild_version = "0.19.9", +) +use_repo(esbuild, "esbuild_toolchains") + +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") + +register_toolchains("@esbuild_toolchains//:all") diff --git a/modules/aspect_rules_esbuild/0.19.0/patches/module_dot_bazel_version.patch b/modules/aspect_rules_esbuild/0.19.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..356609351ed --- /dev/null +++ b/modules/aspect_rules_esbuild/0.19.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/rules_esbuild" + + module( + name = "aspect_rules_esbuild", +- version = "0.0.0", ++ version = "0.19.0", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "1.40.0") diff --git a/modules/aspect_rules_esbuild/0.19.0/presubmit.yml b/modules/aspect_rules_esbuild/0.19.0/presubmit.yml new file mode 100644 index 00000000000..c0ccf5659a7 --- /dev/null +++ b/modules/aspect_rules_esbuild/0.19.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/smoke' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004', 'windows'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_esbuild/0.19.0/source.json b/modules/aspect_rules_esbuild/0.19.0/source.json new file mode 100644 index 00000000000..5d53d755e17 --- /dev/null +++ b/modules/aspect_rules_esbuild/0.19.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ziBsA+J6cCuipIDuCh5PjbEk81lUYKd6OuHkZSQ8enM=", + "strip_prefix": "rules_esbuild-0.19.0", + "url": "https://github.com/aspect-build/rules_esbuild/releases/download/v0.19.0/rules_esbuild-v0.19.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-rt7zh2VsJN29fsWLekGTSINFsMz2sYjoL8Ml2WVRq4c=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_esbuild/metadata.json b/modules/aspect_rules_esbuild/metadata.json index d2bab953e2e..7fcd2ba1363 100644 --- a/modules/aspect_rules_esbuild/metadata.json +++ b/modules/aspect_rules_esbuild/metadata.json @@ -17,7 +17,8 @@ "0.15.0", "0.15.3", "0.16.0", - "0.18.0" + "0.18.0", + "0.19.0" ], "yanked_versions": {} } From 069d7e4881f043528785dba69ff0cd6ad0259b50 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 18:24:18 -0700 Subject: [PATCH 37/62] rules_poetry@0.3.3 (#1690) Release: https://github.com/oxidase/rules_poetry/releases/tag/v0.3.3 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_poetry/0.3.3/MODULE.bazel | 11 +++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_poetry/0.3.3/presubmit.yml | 32 +++++++++++++++++++ modules/rules_poetry/0.3.3/source.json | 9 ++++++ modules/rules_poetry/metadata.json | 3 +- 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 modules/rules_poetry/0.3.3/MODULE.bazel create mode 100644 modules/rules_poetry/0.3.3/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_poetry/0.3.3/presubmit.yml create mode 100644 modules/rules_poetry/0.3.3/source.json diff --git a/modules/rules_poetry/0.3.3/MODULE.bazel b/modules/rules_poetry/0.3.3/MODULE.bazel new file mode 100644 index 00000000000..55efd4a84f2 --- /dev/null +++ b/modules/rules_poetry/0.3.3/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "rules_poetry", + version = "0.3.3", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") + +internal_deps = use_extension("@rules_poetry//python:extensions.bzl", "internal_deps") +use_repo(internal_deps, "rules_poetry_deps", "rules_poetry_pip") diff --git a/modules/rules_poetry/0.3.3/patches/module_dot_bazel_version.patch b/modules/rules_poetry/0.3.3/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..10c1a3036c0 --- /dev/null +++ b/modules/rules_poetry/0.3.3/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_poetry", +- version = "0", ++ version = "0.3.3", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.5.0") diff --git a/modules/rules_poetry/0.3.3/presubmit.yml b/modules/rules_poetry/0.3.3/presubmit.yml new file mode 100644 index 00000000000..d5d7f5358e5 --- /dev/null +++ b/modules/rules_poetry/0.3.3/presubmit.yml @@ -0,0 +1,32 @@ +matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_poetry//python/...' + - '@rules_poetry//lib/...' +bcr_test_module: + module_path: "examples/transitions" + matrix: + platform: + - debian11 + - macos + - ubuntu2004 + bazel: + - 7.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - //... diff --git a/modules/rules_poetry/0.3.3/source.json b/modules/rules_poetry/0.3.3/source.json new file mode 100644 index 00000000000..f69d6ee73e3 --- /dev/null +++ b/modules/rules_poetry/0.3.3/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ZjpWgaoEdn69xFQlusTuqoM4+8CYNlWTbOlcZGlKGf0=", + "strip_prefix": "rules_poetry-0.3.3", + "url": "https://github.com/oxidase/rules_poetry/releases/download/v0.3.3/rules_poetry-0.3.3.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-agJcrqyHT9OMlHCfEHTyd8hVmPjNgl/4Q/iHkc7CJDc=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_poetry/metadata.json b/modules/rules_poetry/metadata.json index 298af881af9..fa0826ceb01 100644 --- a/modules/rules_poetry/metadata.json +++ b/modules/rules_poetry/metadata.json @@ -15,7 +15,8 @@ "0.2.0", "0.3.0", "0.3.1", - "0.3.2" + "0.3.2", + "0.3.3" ], "yanked_versions": {} } From aba9c41ddb377cb54f3f2f754cf1bef4ef8b449e Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 26 Mar 2024 17:49:19 +0100 Subject: [PATCH 38/62] s2geometry@0.10.0 (#1673) Release: https://github.com/google/s2geometry/releases/tag/v0.10.0 Used by: * https://github.com/opencomputeproject/ocp-diag-core-cpp --- modules/s2geometry/0.10.0/MODULE.bazel | 11 + .../0.10.0/patches/add_build_file.patch | 217 ++++++++++++++++++ .../0.10.0/patches/module_dot_bazel.patch | 14 ++ modules/s2geometry/0.10.0/presubmit.yml | 19 ++ modules/s2geometry/0.10.0/source.json | 10 + modules/s2geometry/metadata.json | 16 ++ 6 files changed, 287 insertions(+) create mode 100644 modules/s2geometry/0.10.0/MODULE.bazel create mode 100644 modules/s2geometry/0.10.0/patches/add_build_file.patch create mode 100644 modules/s2geometry/0.10.0/patches/module_dot_bazel.patch create mode 100644 modules/s2geometry/0.10.0/presubmit.yml create mode 100644 modules/s2geometry/0.10.0/source.json create mode 100644 modules/s2geometry/metadata.json diff --git a/modules/s2geometry/0.10.0/MODULE.bazel b/modules/s2geometry/0.10.0/MODULE.bazel new file mode 100644 index 00000000000..095de4c08cc --- /dev/null +++ b/modules/s2geometry/0.10.0/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "s2geometry", + version = "0.10.0", + compatibility_level = 1, +) + +bazel_dep( + name = "abseil-cpp", + repo_name = "com_google_absl", + version = "20230125.1", +) diff --git a/modules/s2geometry/0.10.0/patches/add_build_file.patch b/modules/s2geometry/0.10.0/patches/add_build_file.patch new file mode 100644 index 00000000000..26bf57ac9fc --- /dev/null +++ b/modules/s2geometry/0.10.0/patches/add_build_file.patch @@ -0,0 +1,217 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,214 @@ ++licenses(["notice"]) # Apache License 2.0 ++ ++exports_files(["LICENSE"]) ++ ++cc_library( ++ name = "bits", ++ srcs = [ ++ "s2/util/bits/bits.cc", ++ "s2/util/bits/bit-interleave.cc" ++ ], ++ hdrs = [ ++ "s2/util/bits/bits.h", ++ "s2/util/bits/bit-interleave.h", ++ "s2/base/integral_types.h", ++ "s2/base/logging.h", ++ "s2/base/log_severity.h", ++ "s2/base/port.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/numeric:bits", ++ "@com_google_absl//absl/numeric:int128", ++ ], ++) ++ ++cc_library( ++ name = "endian", ++ hdrs = [ ++ "s2/util/endian/endian.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/base:config", ++ "@com_google_absl//absl/base:endian", ++ "@com_google_absl//absl/numeric:int128", ++ ], ++) ++ ++cc_library( ++ name = "gtl_util", ++ hdrs = [ ++ "s2/util/gtl/compact_array.h", ++ "s2/util/gtl/container_logging.h", ++ "s2/util/gtl/dense_hash_set.h", ++ "s2/util/gtl/densehashtable.h", ++ "s2/util/gtl/hashtable_common.h", ++ "s2/util/gtl/legacy_random_shuffle.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/meta:type_traits", ++ "@com_google_absl//absl/strings:internal", ++ ], ++) ++ ++cc_library( ++ name = "hash", ++ hdrs = [ ++ "s2/util/hash/mix.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/base:endian", ++ "@com_google_absl//absl/numeric:int128", ++ "@com_google_absl//absl/strings", ++ ], ++) ++ ++cc_library( ++ name = "coding", ++ srcs = [ ++ "s2/util/coding/coder.cc", ++ "s2/util/coding/varint.cc", ++ ], ++ hdrs = [ ++ "s2/util/coding/coder.h", ++ "s2/util/coding/nth-derivative.h", ++ "s2/util/coding/transforms.h", ++ "s2/util/coding/varint.h", ++ "s2/base/port.h", ++ "s2/base/casts.h", ++ "s2/base/logging.h", ++ "s2/base/log_severity.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/numeric:int128", ++ "@com_google_absl//absl/utility", ++ ":bits", ++ ":endian", ++ ":gtl_util", ++ ":hash", ++ ], ++) ++ ++cc_library( ++ name = "mathutil", ++ srcs = ["s2/util/math/mathutil.cc"], ++ hdrs = [ ++ "s2/util/math/mathutil.h", ++ "s2/base/integral_types.h", ++ "s2/base/logging.h", ++ "s2/base/log_severity.h", ++ "s2/util/bits/bits.h", ++ "s2/base/port.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/numeric:bits", ++ "@com_google_absl//absl/numeric:int128", ++ "@com_google_absl//absl/meta:type_traits", ++ ], ++) ++ ++cc_library( ++ name = "vector", ++ hdrs = [ ++ "s2/util/math/vector.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/utility", ++ ], ++) ++ ++cc_library( ++ name = "matrix", ++ hdrs = [ ++ "s2/util/math/matrix3x3.h", ++ "s2/util/math/vector.h", ++ ], ++ deps = [ ++ ":mathutil", ++ ":vector", ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/types:optional", ++ ], ++) ++ ++cc_library( ++ name = "r1interval", ++ hdrs = [ ++ "s2/_fp_contract_off.h", ++ "s2/r1interval.h", ++ ], ++ deps = [ ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/log:check", ++ ":vector", ++ ], ++) ++ ++cc_library( ++ name = "s2cell_id", ++ srcs = [ ++ "s2/r2rect.cc", ++ "s2/s1angle.cc", ++ "s2/s1chord_angle.cc", ++ "s2/s2cell_id.cc", ++ "s2/s2coords.cc", ++ "s2/s2coords_internal.h", ++ "s2/s2latlng.cc", ++ "s2/s2pointutil.cc", ++ ], ++ hdrs = [ ++ "s2/_fp_contract_off.h", ++ "s2/r2.h", ++ "s2/r2rect.h", ++ "s2/s1angle.h", ++ "s2/s1chord_angle.h", ++ "s2/s2cell_id.h", ++ "s2/s2coords.h", ++ "s2/s2error.h", ++ "s2/s2latlng.h", ++ "s2/s2point.h", ++ "s2/s2pointutil.h", ++ "s2/s2region.h", ++ "s2/s2shape.h", ++ "s2/base/integral_types.h", ++ "s2/base/logging.h", ++ "s2/base/log_severity.h", ++ "s2/util/bits/bits.h", ++ "s2/base/port.h", ++ ], ++ textual_hdrs = [ ++ "s2/_fp_contract_off.h", ++ "s2/r1interval.h", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ ":r1interval", ++ "@com_google_absl//absl/base", ++ "@com_google_absl//absl/base:core_headers", ++ "@com_google_absl//absl/hash", ++ "@com_google_absl//absl/log", ++ "@com_google_absl//absl/log:check", ++ "@com_google_absl//absl/numeric:bits", ++ "@com_google_absl//absl/status", ++ "@com_google_absl//absl/strings", ++ "@com_google_absl//absl/strings:str_format", ++ ":bits", ++ ":coding", ++ ":mathutil", ++ ":matrix", ++ ":vector", ++ ], ++) diff --git a/modules/s2geometry/0.10.0/patches/module_dot_bazel.patch b/modules/s2geometry/0.10.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..97013949c79 --- /dev/null +++ b/modules/s2geometry/0.10.0/patches/module_dot_bazel.patch @@ -0,0 +1,14 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,11 @@ ++module( ++ name = "s2geometry", ++ version = "0.10.0", ++ compatibility_level = 1, ++) ++ ++bazel_dep( ++ name = "abseil-cpp", ++ repo_name = "com_google_absl", ++ version = "20230125.1", ++) diff --git a/modules/s2geometry/0.10.0/presubmit.yml b/modules/s2geometry/0.10.0/presubmit.yml new file mode 100644 index 00000000000..d7b3d25fb74 --- /dev/null +++ b/modules/s2geometry/0.10.0/presubmit.yml @@ -0,0 +1,19 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + build_targets: + - '@s2geometry//...' diff --git a/modules/s2geometry/0.10.0/source.json b/modules/s2geometry/0.10.0/source.json new file mode 100644 index 00000000000..2ed0c32488d --- /dev/null +++ b/modules/s2geometry/0.10.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/google/s2geometry/archive/refs/tags/v0.10.0.tar.gz", + "integrity": "sha256-HBewTx6iDtCaZ6gxUd3V2FKXFvUJ3eSagZBhjXBTKj0=", + "strip_prefix": "s2geometry-0.10.0/src", + "patches": { + "add_build_file.patch": "sha256-31LIDPP+da7vOezEjFztvjmK3WoV4j3m2yOiYDFqGrE=", + "module_dot_bazel.patch": "sha256-s5lvDU+veq9J8twVwlNZdXG4hFKFyDxh3yYLFlLmnR4=" + }, + "patch_strip": 0 +} diff --git a/modules/s2geometry/metadata.json b/modules/s2geometry/metadata.json new file mode 100644 index 00000000000..4d75009f92e --- /dev/null +++ b/modules/s2geometry/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/google/s2geometry", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:google/s2geometry" + ], + "versions": [ + "0.10.0" + ], + "yanked_versions": {} +} From 15cd229b410f1639e1c1c1074b8e6a5a6126e608 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 26 Mar 2024 17:51:14 +0100 Subject: [PATCH 39/62] skywalking-data-collect-protocol@9.7.0 (#1671) Release: https://github.com/apache/skywalking-data-collect-protocol/releases/tag/v9.7.0 Used by: * https://github.com/envoyproxy/envoy --- .../9.7.0/MODULE.bazel | 20 ++++++++++++++++ .../9.7.0/patches/build_dot_bzl.patch | 16 +++++++++++++ .../9.7.0/patches/module_dot_bazel.patch | 23 +++++++++++++++++++ .../9.7.0/presubmit.yml | 17 ++++++++++++++ .../9.7.0/source.json | 10 ++++++++ .../metadata.json | 16 +++++++++++++ 6 files changed, 102 insertions(+) create mode 100644 modules/skywalking-data-collect-protocol/9.7.0/MODULE.bazel create mode 100644 modules/skywalking-data-collect-protocol/9.7.0/patches/build_dot_bzl.patch create mode 100644 modules/skywalking-data-collect-protocol/9.7.0/patches/module_dot_bazel.patch create mode 100644 modules/skywalking-data-collect-protocol/9.7.0/presubmit.yml create mode 100644 modules/skywalking-data-collect-protocol/9.7.0/source.json create mode 100644 modules/skywalking-data-collect-protocol/metadata.json diff --git a/modules/skywalking-data-collect-protocol/9.7.0/MODULE.bazel b/modules/skywalking-data-collect-protocol/9.7.0/MODULE.bazel new file mode 100644 index 00000000000..8a403e64efe --- /dev/null +++ b/modules/skywalking-data-collect-protocol/9.7.0/MODULE.bazel @@ -0,0 +1,20 @@ +module( + name = "skywalking-data-collect-protocol", + compatibility_level = 1, + version = "9.7.0", +) + +bazel_dep( + name = "grpc", + version = "1.56.3.bcr.1", + repo_name = "com_github_grpc_grpc", +) +bazel_dep( + name = "rules_cc", + version = "0.0.9", +) +bazel_dep( + name = "rules_proto", + version = "5.3.0-21.7", +) +# -- bazel_dep definitions -- # diff --git a/modules/skywalking-data-collect-protocol/9.7.0/patches/build_dot_bzl.patch b/modules/skywalking-data-collect-protocol/9.7.0/patches/build_dot_bzl.patch new file mode 100644 index 00000000000..32f723c8353 --- /dev/null +++ b/modules/skywalking-data-collect-protocol/9.7.0/patches/build_dot_bzl.patch @@ -0,0 +1,16 @@ +diff --git a/common/BUILD b/common/BUILD +index 55d0e92..061e22a 100644 +--- a/common/BUILD ++++ b/common/BUILD +@@ -22,6 +22,9 @@ package(default_visibility = ["//visibility:public"]) + licenses(["notice"]) # Apache 2 + + proto_library( +- name = "common_protocol_proto_lib", +- srcs = ["Common.proto"], ++ name = "common_protocol_proto_lib", ++ srcs = [ ++ "Command.proto", ++ "Common.proto", ++ ], + ) diff --git a/modules/skywalking-data-collect-protocol/9.7.0/patches/module_dot_bazel.patch b/modules/skywalking-data-collect-protocol/9.7.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..96b6cf9026c --- /dev/null +++ b/modules/skywalking-data-collect-protocol/9.7.0/patches/module_dot_bazel.patch @@ -0,0 +1,23 @@ +--- a/MODULE.bazel ++++ a/MODULE.bazel +@@ -0,0 +1,20 @@ ++module( ++ name = "skywalking-data-collect-protocol", ++ compatibility_level = 1, ++ version = "9.7.0", ++) ++ ++bazel_dep( ++ name = "grpc", ++ version = "1.56.3.bcr.1", ++ repo_name = "com_github_grpc_grpc", ++) ++bazel_dep( ++ name = "rules_cc", ++ version = "0.0.9", ++) ++bazel_dep( ++ name = "rules_proto", ++ version = "5.3.0-21.7", ++) ++# -- bazel_dep definitions -- # diff --git a/modules/skywalking-data-collect-protocol/9.7.0/presubmit.yml b/modules/skywalking-data-collect-protocol/9.7.0/presubmit.yml new file mode 100644 index 00000000000..0cd4b5fe0e6 --- /dev/null +++ b/modules/skywalking-data-collect-protocol/9.7.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@skywalking-data-collect-protocol//...' diff --git a/modules/skywalking-data-collect-protocol/9.7.0/source.json b/modules/skywalking-data-collect-protocol/9.7.0/source.json new file mode 100644 index 00000000000..5d76b8b3c47 --- /dev/null +++ b/modules/skywalking-data-collect-protocol/9.7.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/apache/skywalking-data-collect-protocol/archive/refs/tags/v9.7.0.tar.gz", + "integrity": "sha256-8DcGmfSB8mLuM+HTX5Oh4VhHumF0YvwfgrfgvhDEu0Q=", + "strip_prefix": "skywalking-data-collect-protocol-9.7.0", + "patches": { + "build_dot_bzl.patch": "sha256-a4Cy8bSt1E+LOV7lLewlubKG+VQKfQOFyKEuDuBEKqQ=", + "module_dot_bazel.patch": "sha256-FJTR5P8OtiAUX42fGE9p6y1Udb2ezBXXx9tFCyEK1h8=" + }, + "patch_strip": 1 +} diff --git a/modules/skywalking-data-collect-protocol/metadata.json b/modules/skywalking-data-collect-protocol/metadata.json new file mode 100644 index 00000000000..67ff9ca41a5 --- /dev/null +++ b/modules/skywalking-data-collect-protocol/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/apache/skywalking-data-collect-protocol", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:apache/skywalking-data-collect-protocol" + ], + "versions": [ + "9.7.0" + ], + "yanked_versions": {} +} From 04c2b1405ac349e343711bc4811b32eb4fa3eaca Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 26 Mar 2024 17:31:07 +0000 Subject: [PATCH 40/62] feat(download_utils): add `1.0.0-beta.2` (#1668) --- .../download_utils/1.0.0-beta.2/MODULE.bazel | 10 +++++++ .../download_utils/1.0.0-beta.2/presubmit.yml | 28 ++++++++++++++++++ .../download_utils/1.0.0-beta.2/source.json | 5 ++++ modules/download_utils/metadata.json | 29 ++++++++++--------- 4 files changed, 58 insertions(+), 14 deletions(-) create mode 100644 modules/download_utils/1.0.0-beta.2/MODULE.bazel create mode 100644 modules/download_utils/1.0.0-beta.2/presubmit.yml create mode 100644 modules/download_utils/1.0.0-beta.2/source.json diff --git a/modules/download_utils/1.0.0-beta.2/MODULE.bazel b/modules/download_utils/1.0.0-beta.2/MODULE.bazel new file mode 100644 index 00000000000..1b6fe2f7361 --- /dev/null +++ b/modules/download_utils/1.0.0-beta.2/MODULE.bazel @@ -0,0 +1,10 @@ +module( + name = "download_utils", + version = "1.0.0-beta.2", + bazel_compatibility = [ + ">=7.0.0", + ], + compatibility_level = 1, +) + +bazel_dep(name = "rules_diff", version = "1.0.0-alpha.3", dev_dependency = True) diff --git a/modules/download_utils/1.0.0-beta.2/presubmit.yml b/modules/download_utils/1.0.0-beta.2/presubmit.yml new file mode 100644 index 00000000000..59eaef33062 --- /dev/null +++ b/modules/download_utils/1.0.0-beta.2/presubmit.yml @@ -0,0 +1,28 @@ +bcr_test_module: + module_path: e2e + matrix: + bazel: + - 7.x + platform: + # TODO: Enable when we can fallback to an older `coreutils` in testing + # `uutils/coreutils` only goes back to `glibc@2.18` + # - centos7_java11_devtoolset10 + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2004_arm64 + - ubuntu2204 + - fedora39 + - macos + # TODO: enable when `@ape` supports Apple Silicon as `rules_diff` uses `@ape//:diff` + # https://gitlab.arm.com/bazel/ape/-/issues/1 + # - macos_arm64 + # TODO: enable this once the `gitlab.arm.com` does not use a self-signed certificate + # - windows + tasks: + run_tests: + name: Run end-to-end Tests + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/download_utils/1.0.0-beta.2/source.json b/modules/download_utils/1.0.0-beta.2/source.json new file mode 100644 index 00000000000..a39dc9b7f8f --- /dev/null +++ b/modules/download_utils/1.0.0-beta.2/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://gitlab.arm.com/bazel/download_utils/-/releases/v1.0.0-beta.2/downloads/src.tar.gz", + "integrity": "sha512-n7eahkJiCgZaF5gGrgBIxUq0qBRMlnvklYOiATGU+sXGGEPDG1C8N/sjtCUHVes8x5GFy8ZLjcaJWiebFf2D6g==", + "strip_prefix": "download_utils-v1.0.0-beta.2" +} diff --git a/modules/download_utils/metadata.json b/modules/download_utils/metadata.json index fc75ee0f477..4c719e1e804 100644 --- a/modules/download_utils/metadata.json +++ b/modules/download_utils/metadata.json @@ -1,16 +1,17 @@ { - "homepage": "https://gitlab.arm.com/bazel/download_utils", - "repository": [ - "https://gitlab.arm.com/bazel/download_utils" - ], - "versions":[ - "1.0.0-beta.1" - ], - "maintainers": [ - { - "email": "matthew.clarkson@arm.com", - "github": "mattyclarkson", - "name": "Matt Clarkson" - } - ] + "homepage": "https://gitlab.arm.com/bazel/download_utils", + "repository": [ + "https://gitlab.arm.com/bazel/download_utils" + ], + "versions": [ + "1.0.0-beta.1", + "1.0.0-beta.2" + ], + "maintainers": [ + { + "email": "matthew.clarkson@arm.com", + "name": "Matt Clarkson", + "github": "mattyclarkson" + } + ] } From 8a034211d2eb65f751737d60d9dde022c7040f14 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 12:47:02 -0700 Subject: [PATCH 41/62] aspect_bazel_lib@1.41.0 (#1692) Release: https://github.com/aspect-build/bazel-lib/releases/tag/v1.41.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Derek Cormier --- modules/aspect_bazel_lib/1.41.0/MODULE.bazel | 66 +++++++++++++++++++ .../1.41.0/patches/go_dev_dep.patch | 27 ++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_bazel_lib/1.41.0/presubmit.yml | 12 ++++ modules/aspect_bazel_lib/1.41.0/source.json | 10 +++ modules/aspect_bazel_lib/metadata.json | 1 + 6 files changed, 130 insertions(+) create mode 100644 modules/aspect_bazel_lib/1.41.0/MODULE.bazel create mode 100644 modules/aspect_bazel_lib/1.41.0/patches/go_dev_dep.patch create mode 100644 modules/aspect_bazel_lib/1.41.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_bazel_lib/1.41.0/presubmit.yml create mode 100644 modules/aspect_bazel_lib/1.41.0/source.json diff --git a/modules/aspect_bazel_lib/1.41.0/MODULE.bazel b/modules/aspect_bazel_lib/1.41.0/MODULE.bazel new file mode 100644 index 00000000000..2e5c741e47a --- /dev/null +++ b/modules/aspect_bazel_lib/1.41.0/MODULE.bazel @@ -0,0 +1,66 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "1.41.0", + compatibility_level = 1, +) + +# Lower-bound versions of our dependencies +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.expand_template() +use_repo(bazel_lib_toolchains, "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", +) + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.33.0", + dev_dependency = True +) +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +# Development-only dependencies + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.1.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/1.41.0/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/1.41.0/patches/go_dev_dep.patch new file mode 100644 index 00000000000..99b1bc48a9f --- /dev/null +++ b/modules/aspect_bazel_lib/1.41.0/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 07a6eff..26702ad 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -34,19 +34,19 @@ register_toolchains( + bazel_dep( + name = "gazelle", + version = "0.33.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/1.41.0/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/1.41.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e0ff4487b84 --- /dev/null +++ b/modules/aspect_bazel_lib/1.41.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "1.41.0", + compatibility_level = 1, + ) + + # Lower-bound versions of our dependencies diff --git a/modules/aspect_bazel_lib/1.41.0/presubmit.yml b/modules/aspect_bazel_lib/1.41.0/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/1.41.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/1.41.0/source.json b/modules/aspect_bazel_lib/1.41.0/source.json new file mode 100644 index 00000000000..6ff2e69f38b --- /dev/null +++ b/modules/aspect_bazel_lib/1.41.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-jnpRxruDUCP8p74vBNaIVkhprU35XWxWyi2tzMP5APM=", + "strip_prefix": "bazel-lib-1.41.0", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v1.41.0/bazel-lib-v1.41.0.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-dEFxvx2hBB/tOWlknfRHRXNCdvYpvrxsYHWaMGF2QgA=", + "module_dot_bazel_version.patch": "sha256-nyfPZJQ/Vyo96bOOp/Iz7V9s/UA4pNZcuh+epII3D04=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index b25378ec9fd..bc3d6ed9d40 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -93,6 +93,7 @@ "1.40.0", "1.40.2", "1.40.3", + "1.41.0", "2.0.0-beta0", "2.0.0-beta1", "2.0.0-rc0", From f7da87872dbc3d3867ea802e290cb934b713957c Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Wed, 27 Mar 2024 11:24:33 +0100 Subject: [PATCH 42/62] Update GitHub Actions for BCR Reviewer (#1693) To get fix from https://github.com/bazelbuild/continuous-integration/pull/1929 --- .github/workflows/dismiss_approvals.yml | 2 +- .github/workflows/notify_maintainers.yml | 2 +- .github/workflows/review_prs.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dismiss_approvals.yml b/.github/workflows/dismiss_approvals.yml index 2eecabe8410..980b365cf6c 100644 --- a/.github/workflows/dismiss_approvals.yml +++ b/.github/workflows/dismiss_approvals.yml @@ -15,7 +15,7 @@ jobs: egress-policy: audit - name: Run BCR PR Reviewer - uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@4b83ef1d08decb055ac7a6f864c3759fa22984a4 # master + uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@9fddc08b79867b8eea406c2d75898d4e98b20388 # master with: # This token needs to be updated annually on Feb 05. token: ${{ secrets.BCR_PR_REVIEW_HELPER_TOKEN }} diff --git a/.github/workflows/notify_maintainers.yml b/.github/workflows/notify_maintainers.yml index 670fb2c09be..c1bddb6ab5d 100644 --- a/.github/workflows/notify_maintainers.yml +++ b/.github/workflows/notify_maintainers.yml @@ -16,7 +16,7 @@ jobs: egress-policy: audit - name: Run BCR PR Reviewer - uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@4b83ef1d08decb055ac7a6f864c3759fa22984a4 # master + uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@9fddc08b79867b8eea406c2d75898d4e98b20388 # master with: # This token needs to be updated annually on Feb 05. token: ${{ secrets.BCR_PR_REVIEW_HELPER_TOKEN }} diff --git a/.github/workflows/review_prs.yml b/.github/workflows/review_prs.yml index 80772757f23..8fbe41b2944 100644 --- a/.github/workflows/review_prs.yml +++ b/.github/workflows/review_prs.yml @@ -16,7 +16,7 @@ jobs: - name: Run BCR PR Reviewer if: github.repository_owner == 'bazelbuild' - uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@4b83ef1d08decb055ac7a6f864c3759fa22984a4 # master + uses: bazelbuild/continuous-integration/actions/bcr-pr-reviewer@9fddc08b79867b8eea406c2d75898d4e98b20388 # master with: # This token needs to be updated annually on Feb 05. token: ${{ secrets.BCR_PR_REVIEW_HELPER_TOKEN }} From 0ebddb17717d3bdb34e88374833d87c68d99c20d Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:01:30 -0400 Subject: [PATCH 43/62] aspect_bazel_lib@1.42.0 (#1696) Release: https://github.com/aspect-build/bazel-lib/releases/tag/v1.42.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Derek Cormier --- modules/aspect_bazel_lib/1.42.0/MODULE.bazel | 73 +++++++++++++++++++ .../1.42.0/patches/go_dev_dep.patch | 27 +++++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_bazel_lib/1.42.0/presubmit.yml | 12 +++ modules/aspect_bazel_lib/1.42.0/source.json | 10 +++ modules/aspect_bazel_lib/metadata.json | 1 + 6 files changed, 137 insertions(+) create mode 100644 modules/aspect_bazel_lib/1.42.0/MODULE.bazel create mode 100644 modules/aspect_bazel_lib/1.42.0/patches/go_dev_dep.patch create mode 100644 modules/aspect_bazel_lib/1.42.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_bazel_lib/1.42.0/presubmit.yml create mode 100644 modules/aspect_bazel_lib/1.42.0/source.json diff --git a/modules/aspect_bazel_lib/1.42.0/MODULE.bazel b/modules/aspect_bazel_lib/1.42.0/MODULE.bazel new file mode 100644 index 00000000000..b8a223e2abe --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.0/MODULE.bazel @@ -0,0 +1,73 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "1.42.0", + compatibility_level = 1, +) + +# Lower-bound versions of our dependencies +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.tar() +bazel_lib_toolchains.expand_template() +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", + # Expand bsd_tar_toolchains + "@bsd_tar_toolchains//:linux_amd64_toolchain", + "@bsd_tar_toolchains//:linux_arm64_toolchain", + "@bsd_tar_toolchains//:windows_amd64_toolchain", + # host toolchain must be last, as it's only suitable as a fallback on macos + "@bsd_tar_toolchains//:host_toolchain", +) + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.33.0", + dev_dependency = True +) +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +# Development-only dependencies + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.1.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/1.42.0/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/1.42.0/patches/go_dev_dep.patch new file mode 100644 index 00000000000..99b1bc48a9f --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.0/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 07a6eff..26702ad 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -34,19 +34,19 @@ register_toolchains( + bazel_dep( + name = "gazelle", + version = "0.33.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/1.42.0/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/1.42.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..33ac708041c --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "1.42.0", + compatibility_level = 1, + ) + + # Lower-bound versions of our dependencies diff --git a/modules/aspect_bazel_lib/1.42.0/presubmit.yml b/modules/aspect_bazel_lib/1.42.0/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/1.42.0/source.json b/modules/aspect_bazel_lib/1.42.0/source.json new file mode 100644 index 00000000000..46d1a1f08e3 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-bnKeSQBpViPvpenHOxCwUJ6xYGtzyvw3SjWa7UyeaVg=", + "strip_prefix": "bazel-lib-1.42.0", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v1.42.0/bazel-lib-v1.42.0.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-dEFxvx2hBB/tOWlknfRHRXNCdvYpvrxsYHWaMGF2QgA=", + "module_dot_bazel_version.patch": "sha256-IU1qqEuicK1AotEepQad6eFBtvrL/g6QCHWDzQxN4o4=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index bc3d6ed9d40..73bf71ebde7 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -94,6 +94,7 @@ "1.40.2", "1.40.3", "1.41.0", + "1.42.0", "2.0.0-beta0", "2.0.0-beta1", "2.0.0-rc0", From 5d43cc9c602ea186d1cab5fcc75490f41ab74da3 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:01:47 -0400 Subject: [PATCH 44/62] aspect_bazel_lib@2.6.0 (#1697) Release: https://github.com/aspect-build/bazel-lib/releases/tag/v2.6.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Derek Cormier --- modules/aspect_bazel_lib/2.6.0/MODULE.bazel | 80 +++++++++++++++++++ .../2.6.0/patches/go_dev_dep.patch | 27 +++++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_bazel_lib/2.6.0/presubmit.yml | 12 +++ modules/aspect_bazel_lib/2.6.0/source.json | 10 +++ modules/aspect_bazel_lib/metadata.json | 3 +- 6 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_bazel_lib/2.6.0/MODULE.bazel create mode 100644 modules/aspect_bazel_lib/2.6.0/patches/go_dev_dep.patch create mode 100644 modules/aspect_bazel_lib/2.6.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_bazel_lib/2.6.0/presubmit.yml create mode 100644 modules/aspect_bazel_lib/2.6.0/source.json diff --git a/modules/aspect_bazel_lib/2.6.0/MODULE.bazel b/modules/aspect_bazel_lib/2.6.0/MODULE.bazel new file mode 100644 index 00000000000..f4f9ae56834 --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.0/MODULE.bazel @@ -0,0 +1,80 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "2.6.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +# Lower-bound versions of our dependencies +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.tar() +bazel_lib_toolchains.expand_template() +bazel_lib_toolchains.bats() +use_repo(bazel_lib_toolchains, "bats_toolchains", "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", + "@bats_toolchains//:all", + # Expand bsd_tar_toolchains + "@bsd_tar_toolchains//:linux_amd64_toolchain", + "@bsd_tar_toolchains//:linux_arm64_toolchain", + "@bsd_tar_toolchains//:windows_amd64_toolchain", + # host toolchain must be last, as it's only suitable as a fallback on macos + "@bsd_tar_toolchains//:host_toolchain", +) + +host = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "host", dev_dependency = True) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.33.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True, +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True, +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +# Development-only dependencies + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.2.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/2.6.0/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/2.6.0/patches/go_dev_dep.patch new file mode 100644 index 00000000000..1ade7b2c6d7 --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.0/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index e63fa5b..9d78a88 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -50,19 +50,19 @@ use_repo(host, "aspect_bazel_lib_host") + bazel_dep( + name = "gazelle", + version = "0.33.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/2.6.0/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/2.6.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..c14efdb3596 --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "2.6.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/aspect_bazel_lib/2.6.0/presubmit.yml b/modules/aspect_bazel_lib/2.6.0/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/2.6.0/source.json b/modules/aspect_bazel_lib/2.6.0/source.json new file mode 100644 index 00000000000..6e6214f6aaa --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-PgpDCtqbjw+EV2eiZ89YS8lLjsZC1gk/Mdyjk4sY9qE=", + "strip_prefix": "bazel-lib-2.6.0", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v2.6.0/bazel-lib-v2.6.0.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-KgABwDzOT+DugUHn9tHLOz05osnk2FLsS10d5zqG/M0=", + "module_dot_bazel_version.patch": "sha256-qSIbSBOVaz8zZVOmdy/KRrQfVeqMnziGnF1aoJomWx4=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index 73bf71ebde7..35c1deb1763 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -112,7 +112,8 @@ "2.5.0", "2.5.1", "2.5.2", - "2.5.3" + "2.5.3", + "2.6.0" ], "yanked_versions": { "1.31.0": "1.31.0 has a breaking change to the default yq version", From c104b7dc37495d22396ae44843eba68471c42b48 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:45:27 -0500 Subject: [PATCH 45/62] rules_ios@4.2.0 (#1695) --- modules/rules_ios/4.2.0/MODULE.bazel | 107 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++ modules/rules_ios/4.2.0/presubmit.yml | 9 ++ modules/rules_ios/4.2.0/source.json | 9 ++ modules/rules_ios/metadata.json | 3 +- 5 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ios/4.2.0/MODULE.bazel create mode 100644 modules/rules_ios/4.2.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ios/4.2.0/presubmit.yml create mode 100644 modules/rules_ios/4.2.0/source.json diff --git a/modules/rules_ios/4.2.0/MODULE.bazel b/modules/rules_ios/4.2.0/MODULE.bazel new file mode 100644 index 00000000000..e3ddf49f31d --- /dev/null +++ b/modules/rules_ios/4.2.0/MODULE.bazel @@ -0,0 +1,107 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.2.0", + bazel_compatibility = [ + ">=6.0.0", + # Temporarily limit the usage of Bazel 7+ until + # https://github.com/bazel-ios/rules_ios/issues/795 + # is complete. + "<7.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.11.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.1.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.13.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.2.0/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.2.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..1b87babe9b4 --- /dev/null +++ b/modules/rules_ios/4.2.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.2.0", + bazel_compatibility = [ + ">=6.0.0", + # Temporarily limit the usage of Bazel 7+ until + # https://github.com/bazel-ios/rules_ios/issues/795 diff --git a/modules/rules_ios/4.2.0/presubmit.yml b/modules/rules_ios/4.2.0/presubmit.yml new file mode 100644 index 00000000000..3a425c6ef78 --- /dev/null +++ b/modules/rules_ios/4.2.0/presubmit.yml @@ -0,0 +1,9 @@ +matrix: + bazel: ["6.x"] +tasks: + verify_build_targets: + name: Verify Build targets on macOS + platform: macos_arm64 + bazel: ${{ bazel }} + build_targets: + - "@rules_ios//rules/..." diff --git a/modules/rules_ios/4.2.0/source.json b/modules/rules_ios/4.2.0/source.json new file mode 100644 index 00000000000..9243ca1d065 --- /dev/null +++ b/modules/rules_ios/4.2.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-u5d10m442k0pXK189zgHyXR5U2kBiym7irRqNQphf2w=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.2.0/rules_ios.4.2.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-y/NfoC8vCBb7CobKnKPFD7vslDayy1cLB3aYnzVqYL4=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index e403a27c923..2dabf10c154 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -24,7 +24,8 @@ "3.2.1", "3.2.2", "4.0.0", - "4.1.0" + "4.1.0", + "4.2.0" ], "yanked_versions": {} } From 79ebb7d211bd4c9440a72f9f557b9a3711d3187c Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:51:00 -0700 Subject: [PATCH 46/62] rules_oci@1.7.5 (#1701) Release: https://github.com/bazel-contrib/rules_oci/releases/tag/v1.7.5 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Sahin Yort --- modules/rules_oci/1.7.5/MODULE.bazel | 22 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++++++ modules/rules_oci/1.7.5/presubmit.yml | 16 ++++++++++++++ modules/rules_oci/1.7.5/source.json | 9 ++++++++ modules/rules_oci/metadata.json | 3 ++- 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 modules/rules_oci/1.7.5/MODULE.bazel create mode 100644 modules/rules_oci/1.7.5/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_oci/1.7.5/presubmit.yml create mode 100644 modules/rules_oci/1.7.5/source.json diff --git a/modules/rules_oci/1.7.5/MODULE.bazel b/modules/rules_oci/1.7.5/MODULE.bazel new file mode 100644 index 00000000000..9b9a5e32ec5 --- /dev/null +++ b/modules/rules_oci/1.7.5/MODULE.bazel @@ -0,0 +1,22 @@ +"bazel-contrib/rules_oci" + +module( + name = "rules_oci", + version = "1.7.5", + compatibility_level = 1, +) + +# Minimum 1.36.0 to include https://github.com/aspect-build/bazel-lib/pull/594 +bazel_dep(name = "aspect_bazel_lib", version = "1.36.0") +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "platforms", version = "0.0.5") + +oci = use_extension("//oci:extensions.bzl", "oci") +oci.toolchains(crane_version = "v0.18.0") +use_repo(oci, "oci_crane_registry_toolchains", "oci_crane_toolchains") + +register_toolchains("@oci_crane_toolchains//:all", "@oci_crane_registry_toolchains//:all") + +bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.29.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) diff --git a/modules/rules_oci/1.7.5/patches/module_dot_bazel_version.patch b/modules/rules_oci/1.7.5/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..ad3ff345f2e --- /dev/null +++ b/modules/rules_oci/1.7.5/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "bazel-contrib/rules_oci" + + module( + name = "rules_oci", +- version = "0.0.0", ++ version = "1.7.5", + compatibility_level = 1, + ) + + # Minimum 1.36.0 to include https://github.com/aspect-build/bazel-lib/pull/594 diff --git a/modules/rules_oci/1.7.5/presubmit.yml b/modules/rules_oci/1.7.5/presubmit.yml new file mode 100644 index 00000000000..6dbe9b1ecab --- /dev/null +++ b/modules/rules_oci/1.7.5/presubmit.yml @@ -0,0 +1,16 @@ +bcr_test_module: + module_path: "e2e/crane_as_registry" + matrix: + bazel: ["6.x", "7.x"] + # TODO(#97): add windows + # File "C:/b/eznkjcld/external/rules_oci~override/oci/repositories.bzl", line 100, column 64, in _stucture_test_repo_impl + # integrity = ST_VERSIONS[repository_ctx.attr.st_version][platform], + # Error: key "windows-amd64" not found in dictionary + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_oci/1.7.5/source.json b/modules/rules_oci/1.7.5/source.json new file mode 100644 index 00000000000..66e0e5ce91d --- /dev/null +++ b/modules/rules_oci/1.7.5/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-VtVJkCXWemuGsubrrlIyxyEErmgrWiEod3C9O/BmGr8=", + "strip_prefix": "rules_oci-1.7.5", + "url": "https://github.com/bazel-contrib/rules_oci/releases/download/v1.7.5/rules_oci-v1.7.5.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-lig21/o7qRchCezlG3z6xbGmkFFEsfxbrJwrdPJAc/E=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_oci/metadata.json b/modules/rules_oci/metadata.json index f224c0e52d5..6de51248731 100644 --- a/modules/rules_oci/metadata.json +++ b/modules/rules_oci/metadata.json @@ -40,7 +40,8 @@ "1.7.0", "1.7.2", "1.7.3", - "1.7.4" + "1.7.4", + "1.7.5" ], "yanked_versions": {} } From 47880c8ad4ca527ce89f8a1f5dcdbd8b52d01727 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:24:48 -0700 Subject: [PATCH 47/62] aspect_bazel_lib@1.42.1 (#1700) Release: https://github.com/aspect-build/bazel-lib/releases/tag/v1.42.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Derek Cormier --- modules/aspect_bazel_lib/1.42.1/MODULE.bazel | 73 +++++++++++++++++++ .../1.42.1/patches/go_dev_dep.patch | 27 +++++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_bazel_lib/1.42.1/presubmit.yml | 12 +++ modules/aspect_bazel_lib/1.42.1/source.json | 10 +++ modules/aspect_bazel_lib/metadata.json | 1 + 6 files changed, 137 insertions(+) create mode 100644 modules/aspect_bazel_lib/1.42.1/MODULE.bazel create mode 100644 modules/aspect_bazel_lib/1.42.1/patches/go_dev_dep.patch create mode 100644 modules/aspect_bazel_lib/1.42.1/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_bazel_lib/1.42.1/presubmit.yml create mode 100644 modules/aspect_bazel_lib/1.42.1/source.json diff --git a/modules/aspect_bazel_lib/1.42.1/MODULE.bazel b/modules/aspect_bazel_lib/1.42.1/MODULE.bazel new file mode 100644 index 00000000000..ed85c00c689 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.1/MODULE.bazel @@ -0,0 +1,73 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "1.42.1", + compatibility_level = 1, +) + +# Lower-bound versions of our dependencies +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.tar() +bazel_lib_toolchains.expand_template() +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", + # Expand bsd_tar_toolchains + "@bsd_tar_toolchains//:linux_amd64_toolchain", + "@bsd_tar_toolchains//:linux_arm64_toolchain", + "@bsd_tar_toolchains//:windows_amd64_toolchain", + # host toolchain must be last, as it's only suitable as a fallback on macos + "@bsd_tar_toolchains//:host_toolchain", +) + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.33.0", + dev_dependency = True +) +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +# Development-only dependencies + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.1.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/1.42.1/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/1.42.1/patches/go_dev_dep.patch new file mode 100644 index 00000000000..99b1bc48a9f --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.1/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 07a6eff..26702ad 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -34,19 +34,19 @@ register_toolchains( + bazel_dep( + name = "gazelle", + version = "0.33.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/1.42.1/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/1.42.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e7b473b7f79 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "1.42.1", + compatibility_level = 1, + ) + + # Lower-bound versions of our dependencies diff --git a/modules/aspect_bazel_lib/1.42.1/presubmit.yml b/modules/aspect_bazel_lib/1.42.1/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.1/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/1.42.1/source.json b/modules/aspect_bazel_lib/1.42.1/source.json new file mode 100644 index 00000000000..a33c4594bad --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.1/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-0CA7AyomCGcpreSMRrxhWftKqCXZpb3y2XJEm8vv6Wc=", + "strip_prefix": "bazel-lib-1.42.1", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v1.42.1/bazel-lib-v1.42.1.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-dEFxvx2hBB/tOWlknfRHRXNCdvYpvrxsYHWaMGF2QgA=", + "module_dot_bazel_version.patch": "sha256-W29SKEA2wbqTNtqceS19h0oX2jWdAreBf87b5fD6gjM=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index 35c1deb1763..e5ed6637588 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -95,6 +95,7 @@ "1.40.3", "1.41.0", "1.42.0", + "1.42.1", "2.0.0-beta0", "2.0.0-beta1", "2.0.0-rc0", From 1ec7544024854308184557a378006f5878b452e3 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:31:18 -0700 Subject: [PATCH 48/62] aspect_rules_lint@0.15.0 (#1702) --- modules/aspect_rules_lint/0.15.0/MODULE.bazel | 34 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++ .../aspect_rules_lint/0.15.0/presubmit.yml | 14 ++++++++ modules/aspect_rules_lint/0.15.0/source.json | 9 +++++ modules/aspect_rules_lint/metadata.json | 3 +- 5 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_lint/0.15.0/MODULE.bazel create mode 100644 modules/aspect_rules_lint/0.15.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_lint/0.15.0/presubmit.yml create mode 100644 modules/aspect_rules_lint/0.15.0/source.json diff --git a/modules/aspect_rules_lint/0.15.0/MODULE.bazel b/modules/aspect_rules_lint/0.15.0/MODULE.bazel new file mode 100644 index 00000000000..b6736be69f0 --- /dev/null +++ b/modules/aspect_rules_lint/0.15.0/MODULE.bazel @@ -0,0 +1,34 @@ +"Bazel dependencies" + +module( + name = "aspect_rules_lint", + version = "0.15.0", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "1.38.0") + +# Needed in the root because we use js_lib_helpers in our aspect impl +# Minimum version needs 'chore: bump bazel-lib to 2.0 by @alexeagle in #1311' +# to allow users on bazel-lib 2.0 +bazel_dep(name = "aspect_rules_js", version = "1.33.1") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_multirun", version = "0.9.0") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +# Needed in the root because we dereference ProtoInfo in our aspect impl +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") + +# Needed in the root because we dereference the toolchain in our aspect impl +bazel_dep(name = "rules_buf", version = "0.1.1") + +# Needed due to rules_proto leaking the dependency +bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") + +# Needed to get the 'go_context' symbol, to invoke golangci-lint +bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//format:multitool.lock.json") +use_repo(multitool, "multitool") diff --git a/modules/aspect_rules_lint/0.15.0/patches/module_dot_bazel_version.patch b/modules/aspect_rules_lint/0.15.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e62a39b4f24 --- /dev/null +++ b/modules/aspect_rules_lint/0.15.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "aspect_rules_lint", +- version = "0.0.0", ++ version = "0.15.0", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "1.38.0") diff --git a/modules/aspect_rules_lint/0.15.0/presubmit.yml b/modules/aspect_rules_lint/0.15.0/presubmit.yml new file mode 100644 index 00000000000..c810b54054f --- /dev/null +++ b/modules/aspect_rules_lint/0.15.0/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "example" + matrix: + bazel: ["7.x", "6.x"] + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + BAZELISK_BASE_URL: "https://github.com/bazelbuild/bazel/releases/download/" + test_targets: + - "//..." diff --git a/modules/aspect_rules_lint/0.15.0/source.json b/modules/aspect_rules_lint/0.15.0/source.json new file mode 100644 index 00000000000..7f89d55b91a --- /dev/null +++ b/modules/aspect_rules_lint/0.15.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-5b4LppNdJ0l5ChkxQIhpLotR9T0V+AMN8KGHNJiNdLI=", + "strip_prefix": "rules_lint-0.15.0", + "url": "https://github.com/aspect-build/rules_lint/releases/download/v0.15.0/rules_lint-v0.15.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-9iMq5CjqPqj3UecvkfSSJW7KVA+VLkYy1wTigPVbKfg=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_lint/metadata.json b/modules/aspect_rules_lint/metadata.json index 731da435372..380d3d3b29f 100644 --- a/modules/aspect_rules_lint/metadata.json +++ b/modules/aspect_rules_lint/metadata.json @@ -28,7 +28,8 @@ "0.13.0", "0.14.0", "0.14.1", - "0.14.2" + "0.14.2", + "0.15.0" ], "yanked_versions": {} } From 9b432df024088d5c3c542b19637c7fbe112e6d45 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 28 Mar 2024 04:13:56 -0700 Subject: [PATCH 49/62] Add googleapis and grpc-java (#1699) These are in the same PR since they have a circular dependency on each other Fixes: https://github.com/bazelbuild/bazel-central-registry/issues/353 Fixes: https://github.com/bazelbuild/bazel-central-registry/issues/1113 --- .../0.0.0-20240326-1c8d509c5/MODULE.bazel | 29 + .../patches/add_module_bazel.patch | 100 ++ .../0.0.0-20240326-1c8d509c5/presubmit.yml | 9 + .../0.0.0-20240326-1c8d509c5/source.json | 9 + modules/googleapis/metadata.json | 16 + modules/grpc-java/1.62.2/MODULE.bazel | 197 +++ .../1.62.2/patches/add_module_bazel.patch | 203 +++ .../1.62.2/patches/maven_lockfile.patch | 1142 +++++++++++++++++ .../1.62.2/patches/update_labels.patch | 683 ++++++++++ modules/grpc-java/1.62.2/presubmit.yml | 9 + modules/grpc-java/1.62.2/source.json | 11 + modules/grpc-java/metadata.json | 16 + 12 files changed, 2424 insertions(+) create mode 100644 modules/googleapis/0.0.0-20240326-1c8d509c5/MODULE.bazel create mode 100644 modules/googleapis/0.0.0-20240326-1c8d509c5/patches/add_module_bazel.patch create mode 100644 modules/googleapis/0.0.0-20240326-1c8d509c5/presubmit.yml create mode 100644 modules/googleapis/0.0.0-20240326-1c8d509c5/source.json create mode 100644 modules/googleapis/metadata.json create mode 100644 modules/grpc-java/1.62.2/MODULE.bazel create mode 100644 modules/grpc-java/1.62.2/patches/add_module_bazel.patch create mode 100644 modules/grpc-java/1.62.2/patches/maven_lockfile.patch create mode 100644 modules/grpc-java/1.62.2/patches/update_labels.patch create mode 100644 modules/grpc-java/1.62.2/presubmit.yml create mode 100644 modules/grpc-java/1.62.2/source.json create mode 100644 modules/grpc-java/metadata.json diff --git a/modules/googleapis/0.0.0-20240326-1c8d509c5/MODULE.bazel b/modules/googleapis/0.0.0-20240326-1c8d509c5/MODULE.bazel new file mode 100644 index 00000000000..169133e4376 --- /dev/null +++ b/modules/googleapis/0.0.0-20240326-1c8d509c5/MODULE.bazel @@ -0,0 +1,29 @@ +module( + name = "googleapis", + version = "0.0.0-20240326-1c8d509c5", + repo_name = "com_google_googleapis", +) + +bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "grpc-java", version = "1.62.2", repo_name = "io_grpc_grpc_java") +bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_go", version = "0.46.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") +bazel_dep(name = "rules_python", version = "0.31.0") + +switched_rules = use_extension("//:extensions.bzl", "switched_rules") + +# TODO: Enable support for other languages with bzlmod +switched_rules.use_languages( + cc = True, + # csharp = True, + # gapic = True, + go = True, + grpc = True, + java = True, + # nodejs = True, + # php = True, + python = True, + # ruby = True, +) +use_repo(switched_rules, "com_google_googleapis_imports") diff --git a/modules/googleapis/0.0.0-20240326-1c8d509c5/patches/add_module_bazel.patch b/modules/googleapis/0.0.0-20240326-1c8d509c5/patches/add_module_bazel.patch new file mode 100644 index 00000000000..30e0e7baa31 --- /dev/null +++ b/modules/googleapis/0.0.0-20240326-1c8d509c5/patches/add_module_bazel.patch @@ -0,0 +1,100 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 000000000..169133e43 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,29 @@ ++module( ++ name = "googleapis", ++ version = "0.0.0-20240326-1c8d509c5", ++ repo_name = "com_google_googleapis", ++) ++ ++bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") ++bazel_dep(name = "grpc-java", version = "1.62.2", repo_name = "io_grpc_grpc_java") ++bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") ++bazel_dep(name = "rules_go", version = "0.46.0", repo_name = "io_bazel_rules_go") ++bazel_dep(name = "rules_proto", version = "5.3.0-21.7") ++bazel_dep(name = "rules_python", version = "0.31.0") ++ ++switched_rules = use_extension("//:extensions.bzl", "switched_rules") ++ ++# TODO: Enable support for other languages with bzlmod ++switched_rules.use_languages( ++ cc = True, ++ # csharp = True, ++ # gapic = True, ++ go = True, ++ grpc = True, ++ java = True, ++ # nodejs = True, ++ # php = True, ++ python = True, ++ # ruby = True, ++) ++use_repo(switched_rules, "com_google_googleapis_imports") +diff --git a/extensions.bzl b/extensions.bzl +new file mode 100644 +index 000000000..9aa161841 +--- /dev/null ++++ b/extensions.bzl +@@ -0,0 +1,59 @@ ++load(":repository_rules.bzl", "switched_rules_by_language") ++ ++_use_languages_tag = tag_class( ++ attrs = { ++ "cc": attr.bool(default = False), ++ "csharp": attr.bool(default = False), ++ "gapic": attr.bool(default = False), ++ "go": attr.bool(default = False), ++ "go_test": attr.bool(default = False), ++ "grpc": attr.bool(default = False), ++ "java": attr.bool(default = False), ++ "nodejs": attr.bool(default = False), ++ "php": attr.bool(default = False), ++ "python": attr.bool(default = False), ++ "ruby": attr.bool(default = False), ++ }, ++) ++ ++def _switched_rules_impl(ctx): ++ attrs = {} ++ for module in ctx.modules: ++ if not module.is_root: ++ continue ++ ++ is_tag_set = False ++ set_tag_name = "" ++ ++ for t in module.tags.use_languages: ++ if is_tag_set: ++ fail("Multiple use_language tags are set in the root module: '{}' and '{}'. Only one is allowed.".format(set_tag_name, module.name)) ++ ++ is_tag_set = True ++ set_tag_name = module.name ++ ++ attrs = { ++ "cc": t.cc, ++ "csharp": t.csharp, ++ "gapic": t.gapic, ++ "go": t.go, ++ "go_test": t.go_test, ++ "grpc": t.grpc, ++ "java": t.java, ++ "nodejs": t.nodejs, ++ "php": t.php, ++ "python": t.python, ++ "ruby": t.ruby, ++ } ++ ++ switched_rules_by_language( ++ name = "com_google_googleapis_imports", ++ **attrs ++ ) ++ ++switched_rules = module_extension( ++ implementation = _switched_rules_impl, ++ tag_classes = { ++ "use_languages": _use_languages_tag, ++ }, ++) diff --git a/modules/googleapis/0.0.0-20240326-1c8d509c5/presubmit.yml b/modules/googleapis/0.0.0-20240326-1c8d509c5/presubmit.yml new file mode 100644 index 00000000000..5579de0b95d --- /dev/null +++ b/modules/googleapis/0.0.0-20240326-1c8d509c5/presubmit.yml @@ -0,0 +1,9 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@googleapis//google/devtools/source/v1:source_proto' diff --git a/modules/googleapis/0.0.0-20240326-1c8d509c5/source.json b/modules/googleapis/0.0.0-20240326-1c8d509c5/source.json new file mode 100644 index 00000000000..d385e6a8283 --- /dev/null +++ b/modules/googleapis/0.0.0-20240326-1c8d509c5/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-uFSuF925M8JJUw90PbjXjfgJBd+0JoElVWSh0ZId/Dw=", + "strip_prefix": "googleapis-1c8d509c574aeab7478be1bfd4f2e8f0931cfead", + "url": "https://github.com/googleapis/googleapis/archive/1c8d509c574aeab7478be1bfd4f2e8f0931cfead.tar.gz", + "patch_strip": 1, + "patches": { + "add_module_bazel.patch": "sha256-fyl8LjxecJdTeeCNtpG4rfZMDiSOPTUi7HvJGDWvP1o=" + } +} diff --git a/modules/googleapis/metadata.json b/modules/googleapis/metadata.json new file mode 100644 index 00000000000..9ce0da135c8 --- /dev/null +++ b/modules/googleapis/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/googleapis/googleapis", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:googleapis/googleapis" + ], + "versions": [ + "0.0.0-20240326-1c8d509c5" + ], + "yanked_versions": {} +} diff --git a/modules/grpc-java/1.62.2/MODULE.bazel b/modules/grpc-java/1.62.2/MODULE.bazel new file mode 100644 index 00000000000..46bbe69f581 --- /dev/null +++ b/modules/grpc-java/1.62.2/MODULE.bazel @@ -0,0 +1,197 @@ +module( + name = "grpc-java", + version = "1.62.2", + compatibility_level = 0, + repo_name = "io_grpc_grpc_java", +) + +bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5", repo_name = "com_google_googleapis") +bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "rules_go", version = "0.46.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "rules_jvm_external", version = "6.0") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") + +non_module_deps = use_extension("//:repositories.bzl", "grpc_java_repositories_extension") +use_repo( + non_module_deps, + "com_github_cncf_xds", + "envoy_api", + "io_grpc_grpc_proto", +) + +grpc_repo_deps_ext = use_extension("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_repo_deps_ext") +use_repo( + grpc_repo_deps_ext, + "com_envoyproxy_protoc_gen_validate", + "com_github_cncf_udpa", + "opencensus_proto", +) + +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") +maven.install( + name = "grpc_java_maven", + artifacts = [ + "com.google.android:annotations:4.1.1.4", + "com.google.api.grpc:proto-google-common-protos:2.29.0", + "com.google.auth:google-auth-library-credentials:1.4.0", + "com.google.auth:google-auth-library-oauth2-http:1.4.0", + "com.google.auto.value:auto-value-annotations:1.10.4", + "com.google.auto.value:auto-value:1.10.4", + "com.google.code.findbugs:jsr305:3.0.2", + "com.google.code.gson:gson:2.10.1", + "com.google.errorprone:error_prone_annotations:2.23.0", + "com.google.guava:failureaccess:1.0.1", + "com.google.guava:guava:32.1.3-android", + "com.google.re2j:re2j:1.7", + "com.google.truth:truth:1.1.5", + "com.squareup.okhttp:okhttp:2.7.5", + "com.squareup.okio:okio:2.10.0", # 3.0+ needs swapping to -jvm; need work to avoid flag-day + "io.netty:netty-buffer:4.1.100.Final", + "io.netty:netty-codec-http2:4.1.100.Final", + "io.netty:netty-codec-http:4.1.100.Final", + "io.netty:netty-codec-socks:4.1.100.Final", + "io.netty:netty-codec:4.1.100.Final", + "io.netty:netty-common:4.1.100.Final", + "io.netty:netty-handler-proxy:4.1.100.Final", + "io.netty:netty-handler:4.1.100.Final", + "io.netty:netty-resolver:4.1.100.Final", + "io.netty:netty-tcnative-boringssl-static:2.0.61.Final", + "io.netty:netty-tcnative-classes:2.0.61.Final", + "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.100.Final", + "io.netty:netty-transport-native-unix-common:4.1.100.Final", + "io.netty:netty-transport:4.1.100.Final", + "io.opencensus:opencensus-api:0.31.0", + "io.opencensus:opencensus-contrib-grpc-metrics:0.31.0", + "io.perfmark:perfmark-api:0.26.0", + "junit:junit:4.13.2", + "org.apache.tomcat:annotations-api:6.0.53", + "org.codehaus.mojo:animal-sniffer-annotations:1.23", + ], + lock_file = "//:maven_install.json", + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], +) +use_repo(maven, "grpc_java_maven", "unpinned_grpc_java_maven") +maven.override( + name = "grpc_java_maven", + coordinates = "com.google.protobuf:protobuf-java", + target = "@com_google_protobuf//:protobuf_java", +) +maven.override( + name = "grpc_java_maven", + coordinates = "com.google.protobuf:protobuf-java-util", + target = "@com_google_protobuf//:protobuf_java_util", +) +maven.override( + name = "grpc_java_maven", + coordinates = "com.google.protobuf:protobuf-javalite", + target = "@com_google_protobuf_javalite//:protobuf_javalite", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-alts", + target = "@io_grpc_grpc_java//alts", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-api", + target = "@io_grpc_grpc_java//api", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-auth", + target = "@io_grpc_grpc_java//auth", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-census", + target = "@io_grpc_grpc_java//census", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-context", + target = "@io_grpc_grpc_java//context", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-core", + target = "@io_grpc_grpc_java//core:core_maven", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-googleapis", + target = "@io_grpc_grpc_java//googleapis", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-grpclb", + target = "@io_grpc_grpc_java//grpclb", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-inprocess", + target = "@io_grpc_grpc_java//inprocess", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-netty", + target = "@io_grpc_grpc_java//netty", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-netty-shaded", + target = "@io_grpc_grpc_java//netty:shaded_maven", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-okhttp", + target = "@io_grpc_grpc_java//okhttp", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-protobuf", + target = "@io_grpc_grpc_java//protobuf", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-protobuf-lite", + target = "@io_grpc_grpc_java//protobuf-lite", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-rls", + target = "@io_grpc_grpc_java//rls", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-services", + target = "@io_grpc_grpc_java//services:services_maven", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-stub", + target = "@io_grpc_grpc_java//stub", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-testing", + target = "@io_grpc_grpc_java//testing", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-xds", + target = "@io_grpc_grpc_java//xds:xds_maven", +) +maven.override( + name = "grpc_java_maven", + coordinates = "io.grpc:grpc-util", + target = "@io_grpc_grpc_java//util", +) + +switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") +switched_rules.use_languages(java = True) +use_repo(switched_rules, "com_google_googleapis_imports") diff --git a/modules/grpc-java/1.62.2/patches/add_module_bazel.patch b/modules/grpc-java/1.62.2/patches/add_module_bazel.patch new file mode 100644 index 00000000000..49fbd849e0c --- /dev/null +++ b/modules/grpc-java/1.62.2/patches/add_module_bazel.patch @@ -0,0 +1,203 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 000000000..46bbe69f5 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,197 @@ ++module( ++ name = "grpc-java", ++ version = "1.62.2", ++ compatibility_level = 0, ++ repo_name = "io_grpc_grpc_java", ++) ++ ++bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5", repo_name = "com_google_googleapis") ++bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") ++bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") ++bazel_dep(name = "rules_cc", version = "0.0.9") ++bazel_dep(name = "rules_go", version = "0.46.0", repo_name = "io_bazel_rules_go") ++bazel_dep(name = "rules_jvm_external", version = "6.0") ++bazel_dep(name = "rules_proto", version = "5.3.0-21.7") ++ ++non_module_deps = use_extension("//:repositories.bzl", "grpc_java_repositories_extension") ++use_repo( ++ non_module_deps, ++ "com_github_cncf_xds", ++ "envoy_api", ++ "io_grpc_grpc_proto", ++) ++ ++grpc_repo_deps_ext = use_extension("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_repo_deps_ext") ++use_repo( ++ grpc_repo_deps_ext, ++ "com_envoyproxy_protoc_gen_validate", ++ "com_github_cncf_udpa", ++ "opencensus_proto", ++) ++ ++maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") ++maven.install( ++ name = "grpc_java_maven", ++ artifacts = [ ++ "com.google.android:annotations:4.1.1.4", ++ "com.google.api.grpc:proto-google-common-protos:2.29.0", ++ "com.google.auth:google-auth-library-credentials:1.4.0", ++ "com.google.auth:google-auth-library-oauth2-http:1.4.0", ++ "com.google.auto.value:auto-value-annotations:1.10.4", ++ "com.google.auto.value:auto-value:1.10.4", ++ "com.google.code.findbugs:jsr305:3.0.2", ++ "com.google.code.gson:gson:2.10.1", ++ "com.google.errorprone:error_prone_annotations:2.23.0", ++ "com.google.guava:failureaccess:1.0.1", ++ "com.google.guava:guava:32.1.3-android", ++ "com.google.re2j:re2j:1.7", ++ "com.google.truth:truth:1.1.5", ++ "com.squareup.okhttp:okhttp:2.7.5", ++ "com.squareup.okio:okio:2.10.0", # 3.0+ needs swapping to -jvm; need work to avoid flag-day ++ "io.netty:netty-buffer:4.1.100.Final", ++ "io.netty:netty-codec-http2:4.1.100.Final", ++ "io.netty:netty-codec-http:4.1.100.Final", ++ "io.netty:netty-codec-socks:4.1.100.Final", ++ "io.netty:netty-codec:4.1.100.Final", ++ "io.netty:netty-common:4.1.100.Final", ++ "io.netty:netty-handler-proxy:4.1.100.Final", ++ "io.netty:netty-handler:4.1.100.Final", ++ "io.netty:netty-resolver:4.1.100.Final", ++ "io.netty:netty-tcnative-boringssl-static:2.0.61.Final", ++ "io.netty:netty-tcnative-classes:2.0.61.Final", ++ "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.100.Final", ++ "io.netty:netty-transport-native-unix-common:4.1.100.Final", ++ "io.netty:netty-transport:4.1.100.Final", ++ "io.opencensus:opencensus-api:0.31.0", ++ "io.opencensus:opencensus-contrib-grpc-metrics:0.31.0", ++ "io.perfmark:perfmark-api:0.26.0", ++ "junit:junit:4.13.2", ++ "org.apache.tomcat:annotations-api:6.0.53", ++ "org.codehaus.mojo:animal-sniffer-annotations:1.23", ++ ], ++ lock_file = "//:maven_install.json", ++ repositories = [ ++ "https://repo1.maven.org/maven2", ++ "https://maven.google.com", ++ ], ++) ++use_repo(maven, "grpc_java_maven", "unpinned_grpc_java_maven") ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "com.google.protobuf:protobuf-java", ++ target = "@com_google_protobuf//:protobuf_java", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "com.google.protobuf:protobuf-java-util", ++ target = "@com_google_protobuf//:protobuf_java_util", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "com.google.protobuf:protobuf-javalite", ++ target = "@com_google_protobuf_javalite//:protobuf_javalite", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-alts", ++ target = "@io_grpc_grpc_java//alts", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-api", ++ target = "@io_grpc_grpc_java//api", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-auth", ++ target = "@io_grpc_grpc_java//auth", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-census", ++ target = "@io_grpc_grpc_java//census", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-context", ++ target = "@io_grpc_grpc_java//context", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-core", ++ target = "@io_grpc_grpc_java//core:core_maven", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-googleapis", ++ target = "@io_grpc_grpc_java//googleapis", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-grpclb", ++ target = "@io_grpc_grpc_java//grpclb", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-inprocess", ++ target = "@io_grpc_grpc_java//inprocess", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-netty", ++ target = "@io_grpc_grpc_java//netty", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-netty-shaded", ++ target = "@io_grpc_grpc_java//netty:shaded_maven", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-okhttp", ++ target = "@io_grpc_grpc_java//okhttp", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-protobuf", ++ target = "@io_grpc_grpc_java//protobuf", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-protobuf-lite", ++ target = "@io_grpc_grpc_java//protobuf-lite", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-rls", ++ target = "@io_grpc_grpc_java//rls", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-services", ++ target = "@io_grpc_grpc_java//services:services_maven", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-stub", ++ target = "@io_grpc_grpc_java//stub", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-testing", ++ target = "@io_grpc_grpc_java//testing", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-xds", ++ target = "@io_grpc_grpc_java//xds:xds_maven", ++) ++maven.override( ++ name = "grpc_java_maven", ++ coordinates = "io.grpc:grpc-util", ++ target = "@io_grpc_grpc_java//util", ++) ++ ++switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") ++switched_rules.use_languages(java = True) ++use_repo(switched_rules, "com_google_googleapis_imports") diff --git a/modules/grpc-java/1.62.2/patches/maven_lockfile.patch b/modules/grpc-java/1.62.2/patches/maven_lockfile.patch new file mode 100644 index 00000000000..f94a06b2441 --- /dev/null +++ b/modules/grpc-java/1.62.2/patches/maven_lockfile.patch @@ -0,0 +1,1142 @@ +diff --git a/maven_install.json b/maven_install.json +new file mode 100755 +index 000000000..9b94b5ea6 +--- /dev/null ++++ b/maven_install.json +@@ -0,0 +1,1136 @@ ++{ ++ "__AUTOGENERATED_FILE_DO_NOT_MODIFY_THIS_FILE_MANUALLY": "THERE_IS_NO_DATA_ONLY_ZUUL", ++ "__INPUT_ARTIFACTS_HASH": 1473377632, ++ "__RESOLVED_ARTIFACTS_HASH": 452421059, ++ "artifacts": { ++ "com.google.android:annotations": { ++ "shasums": { ++ "jar": "ba734e1e84c09d615af6a09d33034b4f0442f8772dec120efb376d86a565ae15" ++ }, ++ "version": "4.1.1.4" ++ }, ++ "com.google.api.grpc:proto-google-common-protos": { ++ "shasums": { ++ "jar": "ee9c751f06b112e92b37f75e4f73a17d03ef2c3302c6e8d986adbcc721b63cb0" ++ }, ++ "version": "2.29.0" ++ }, ++ "com.google.auth:google-auth-library-credentials": { ++ "shasums": { ++ "jar": "6ad4416d9360a1df3a660c43493e9605416ddd4de953ffbb14dd582a591b09a1" ++ }, ++ "version": "1.4.0" ++ }, ++ "com.google.auth:google-auth-library-oauth2-http": { ++ "shasums": { ++ "jar": "bbf99bba3394c699c48b2e67257dfa96b84c6ee54c348bd426c94207b84254ba" ++ }, ++ "version": "1.4.0" ++ }, ++ "com.google.auto.value:auto-value": { ++ "shasums": { ++ "jar": "f3c438d1f82904bbcb452084d488b660f3c7488e9274c3a58f049e121632d434" ++ }, ++ "version": "1.10.4" ++ }, ++ "com.google.auto.value:auto-value-annotations": { ++ "shasums": { ++ "jar": "e1c45e6beadaef9797cb0d9afd5a45621ad061cd8632012f85582853a3887825" ++ }, ++ "version": "1.10.4" ++ }, ++ "com.google.code.findbugs:jsr305": { ++ "shasums": { ++ "jar": "766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7" ++ }, ++ "version": "3.0.2" ++ }, ++ "com.google.code.gson:gson": { ++ "shasums": { ++ "jar": "4241c14a7727c34feea6507ec801318a3d4a90f070e4525681079fb94ee4c593" ++ }, ++ "version": "2.10.1" ++ }, ++ "com.google.errorprone:error_prone_annotations": { ++ "shasums": { ++ "jar": "ec6f39f068b6ff9ac323c68e28b9299f8c0a80ca512dccb1d4a70f40ac3ec054" ++ }, ++ "version": "2.23.0" ++ }, ++ "com.google.guava:failureaccess": { ++ "shasums": { ++ "jar": "a171ee4c734dd2da837e4b16be9df4661afab72a41adaf31eb84dfdaf936ca26" ++ }, ++ "version": "1.0.1" ++ }, ++ "com.google.guava:guava": { ++ "shasums": { ++ "jar": "20e6ac8902ddf49e7806cc70f3054c8d91accb5eefdc10f3207e80e0a336b263" ++ }, ++ "version": "32.1.3-android" ++ }, ++ "com.google.guava:listenablefuture": { ++ "shasums": { ++ "jar": "b372a037d4230aa57fbeffdef30fd6123f9c0c2db85d0aced00c91b974f33f99" ++ }, ++ "version": "9999.0-empty-to-avoid-conflict-with-guava" ++ }, ++ "com.google.http-client:google-http-client": { ++ "shasums": { ++ "jar": "4a42d2c383373bf61c798f1882745989b9836bb032a8a4019890ecb6cd903ef3" ++ }, ++ "version": "1.41.0" ++ }, ++ "com.google.http-client:google-http-client-gson": { ++ "shasums": { ++ "jar": "18766d1bbeb6d363763ef725bc82ed3c8c45f88eadbf149965e6e8c8d9b70d9f" ++ }, ++ "version": "1.41.0" ++ }, ++ "com.google.j2objc:j2objc-annotations": { ++ "shasums": { ++ "jar": "f02a95fa1a5e95edb3ed859fd0fb7df709d121a35290eff8b74dce2ab7f4d6ed" ++ }, ++ "version": "2.8" ++ }, ++ "com.google.protobuf:protobuf-java": { ++ "shasums": { ++ "jar": "48a8e58a1a8f82eff141a7a388d38dfe77d7a48d5e57c9066ee37f19147e20df" ++ }, ++ "version": "3.25.1" ++ }, ++ "com.google.re2j:re2j": { ++ "shasums": { ++ "jar": "4f657af51ab8bb0909bcc3eb40862d26125af8cbcf92aaaba595fed77f947bc0" ++ }, ++ "version": "1.7" ++ }, ++ "com.google.truth:truth": { ++ "shasums": { ++ "jar": "7f6d50d6f43a102942ef2c5a05f37a84f77788bb448cf33cceebf86d34e575c0" ++ }, ++ "version": "1.1.5" ++ }, ++ "com.squareup.okhttp:okhttp": { ++ "shasums": { ++ "jar": "88ac9fd1bb51f82bcc664cc1eb9c225c90dc4389d660231b4cc737bebfe7d0aa" ++ }, ++ "version": "2.7.5" ++ }, ++ "com.squareup.okio:okio": { ++ "shasums": { ++ "jar": "a27f091d34aa452e37227e2cfa85809f29012a8ef2501a9b5a125a978e4fcbc1" ++ }, ++ "version": "2.10.0" ++ }, ++ "commons-codec:commons-codec": { ++ "shasums": { ++ "jar": "e599d5318e97aa48f42136a2927e6dfa4e8881dff0e6c8e3109ddbbff51d7b7d" ++ }, ++ "version": "1.11" ++ }, ++ "commons-logging:commons-logging": { ++ "shasums": { ++ "jar": "daddea1ea0be0f56978ab3006b8ac92834afeefbd9b7e4e6316fca57df0fa636" ++ }, ++ "version": "1.2" ++ }, ++ "io.grpc:grpc-context": { ++ "shasums": { ++ "jar": "bcbf9055dff453fd6508bd7cca2a0aa2d5f059a9c94beed1f5fda1dc015607b8" ++ }, ++ "version": "1.27.2" ++ }, ++ "io.netty:netty-buffer": { ++ "shasums": { ++ "jar": "462874b44ee782fbefec64078cda6eb8e7bf9f0e0af71a928ef4c1f2d564f7ee" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-codec": { ++ "shasums": { ++ "jar": "180a01ed67af399602e24ff1c32864e7f57f57c4a0fa5e9ab3fe9b0e5e9cf051" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-codec-http": { ++ "shasums": { ++ "jar": "326811d249cb0e5555e78e026e877834e792261c38f0666d80464426695d9590" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-codec-http2": { ++ "shasums": { ++ "jar": "23b4a74350f4cf8d41b93fb93d52b5050667d8d53fffc385672c86eab83b8749" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-codec-socks": { ++ "shasums": { ++ "jar": "608a453b90f8384ba4efcdc6db7f899a1f10b9ea1890954696e6cfac45ff1ba9" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-common": { ++ "shasums": { ++ "jar": "d2908301f1ac6f2910900742473c15d701765d3d4467acdb1eebb9df3aa82885" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-handler": { ++ "shasums": { ++ "jar": "0e10e584c2e7fdf7f4804e14760ed987003f1b62ab982f62eaf13a9892793d3a" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-handler-proxy": { ++ "shasums": { ++ "jar": "686dbc2e61407f216d6cb267dd7954896f851dd34b58be3e757c5a89f20a5e67" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-resolver": { ++ "shasums": { ++ "jar": "c42c481c776e9d367a45cc3a67a06f65897d280334eb30b2362b8c55b7523f4f" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-tcnative-boringssl-static": { ++ "shasums": { ++ "jar": "b6f974972c44cd6f9cecabc255290286faac40b6393c66c3c3c0db7f421cc28e", ++ "linux-aarch_64": "3614395218ae379cec22ccaa089c4f27b9329a660e0d53c93e7cb12b7a2cee46", ++ "linux-x86_64": "4ff9d14f1ec6ccee35b78f53a6f3d9c7c54535aa2a76138311c2f619c5e150e1", ++ "osx-aarch_64": "58e0302c9fde3db984c3ff7ee7ec7159dc0320bdb91533cc290e12e40911cd1a", ++ "osx-x86_64": "fcfea887f4f0802d363c699b444d504b7109a7cb198ae6845eeff63745e5b0ba", ++ "windows-x86_64": "17cd2fa3c63b7ed23edea01c945e55cb7baed1faa0f553732c3f5f56da90b3e0" ++ }, ++ "version": "2.0.61.Final" ++ }, ++ "io.netty:netty-tcnative-classes": { ++ "shasums": { ++ "jar": "9b970eccd844bfae175a5cbbf7bf94891894add06d6ccbe1abf2250cd64080f6" ++ }, ++ "version": "2.0.61.Final" ++ }, ++ "io.netty:netty-transport": { ++ "shasums": { ++ "jar": "b1deeceedab3734cdb959c55f4be5ab4a667a8aed59121ff93763f49470f5470" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-transport-classes-epoll": { ++ "shasums": { ++ "jar": "9abc4b17b1212b33666eae4e8013d0bb78a9a2bcd0a9a621b9bd06a7e5fc0050" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-transport-native-epoll": { ++ "shasums": { ++ "linux-x86_64": "a108fb47babb7678b5b2abb1fc8b34510bd2f705faa450447860647f2de4ebaa" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.netty:netty-transport-native-unix-common": { ++ "shasums": { ++ "jar": "5d888230a04c4a3e647c64e933cefb64fd49056f969bfb734c8a3fcedf0bea8a" ++ }, ++ "version": "4.1.100.Final" ++ }, ++ "io.opencensus:opencensus-api": { ++ "shasums": { ++ "jar": "702ba55d78f39d55195dcf041fdfaab7a7490a9ac45013542487ed9e4d3a4d23" ++ }, ++ "version": "0.31.0" ++ }, ++ "io.opencensus:opencensus-contrib-grpc-metrics": { ++ "shasums": { ++ "jar": "b28fc72490edd49c4c40a3c216b709200833fb361f7f602f1c7c9a527f7b7f63" ++ }, ++ "version": "0.31.0" ++ }, ++ "io.opencensus:opencensus-contrib-http-util": { ++ "shasums": { ++ "jar": "49c3db2a29f1fdb2f73928cbea969bd1d40fab7cc5bb6273022babd96f7a789b" ++ }, ++ "version": "0.28.0" ++ }, ++ "io.perfmark:perfmark-api": { ++ "shasums": { ++ "jar": "b7d23e93a34537ce332708269a0d1404788a5b5e1949e82f5535fce51b3ea95b" ++ }, ++ "version": "0.26.0" ++ }, ++ "junit:junit": { ++ "shasums": { ++ "jar": "8e495b634469d64fb8acfa3495a065cbacc8a0fff55ce1e31007be4c16dc57d3" ++ }, ++ "version": "4.13.2" ++ }, ++ "org.apache.httpcomponents:httpclient": { ++ "shasums": { ++ "jar": "6fe9026a566c6a5001608cf3fc32196641f6c1e5e1986d1037ccdbd5f31ef743" ++ }, ++ "version": "4.5.13" ++ }, ++ "org.apache.httpcomponents:httpcore": { ++ "shasums": { ++ "jar": "3cbaed088c499a10f96dde58f39dc0e7985171abd88138ca1655a872011bb142" ++ }, ++ "version": "4.4.15" ++ }, ++ "org.apache.tomcat:annotations-api": { ++ "shasums": { ++ "jar": "253829d3c12b7381d1044fc22c6436cff025fe0d459e4a329413e560a7d0dd13" ++ }, ++ "version": "6.0.53" ++ }, ++ "org.checkerframework:checker-qual": { ++ "shasums": { ++ "jar": "e4ce1376cc2735e1dde220b62ad0913f51297704daad155a33f386bc5db0d9f7" ++ }, ++ "version": "3.37.0" ++ }, ++ "org.codehaus.mojo:animal-sniffer-annotations": { ++ "shasums": { ++ "jar": "9ffe526bf43a6348e9d8b33b9cd6f580a7f5eed0cf055913007eda263de974d0" ++ }, ++ "version": "1.23" ++ }, ++ "org.hamcrest:hamcrest-core": { ++ "shasums": { ++ "jar": "66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9" ++ }, ++ "version": "1.3" ++ }, ++ "org.jetbrains.kotlin:kotlin-stdlib": { ++ "shasums": { ++ "jar": "b8ab1da5cdc89cb084d41e1f28f20a42bd431538642a5741c52bbfae3fa3e656" ++ }, ++ "version": "1.4.20" ++ }, ++ "org.jetbrains.kotlin:kotlin-stdlib-common": { ++ "shasums": { ++ "jar": "a7112c9b3cefee418286c9c9372f7af992bd1e6e030691d52f60cb36dbec8320" ++ }, ++ "version": "1.4.20" ++ }, ++ "org.jetbrains:annotations": { ++ "shasums": { ++ "jar": "ace2a10dc8e2d5fd34925ecac03e4988b2c0f851650c94b8cef49ba1bd111478" ++ }, ++ "version": "13.0" ++ }, ++ "org.ow2.asm:asm": { ++ "shasums": { ++ "jar": "b62e84b5980729751b0458c534cf1366f727542bb8d158621335682a460f0353" ++ }, ++ "version": "9.5" ++ } ++ }, ++ "dependencies": { ++ "com.google.api.grpc:proto-google-common-protos": [ ++ "com.google.protobuf:protobuf-java" ++ ], ++ "com.google.auth:google-auth-library-oauth2-http": [ ++ "com.google.auth:google-auth-library-credentials", ++ "com.google.auto.value:auto-value-annotations", ++ "com.google.code.findbugs:jsr305", ++ "com.google.guava:guava", ++ "com.google.http-client:google-http-client", ++ "com.google.http-client:google-http-client-gson" ++ ], ++ "com.google.guava:guava": [ ++ "com.google.code.findbugs:jsr305", ++ "com.google.errorprone:error_prone_annotations", ++ "com.google.guava:failureaccess", ++ "com.google.guava:listenablefuture", ++ "com.google.j2objc:j2objc-annotations", ++ "org.checkerframework:checker-qual" ++ ], ++ "com.google.http-client:google-http-client": [ ++ "com.google.code.findbugs:jsr305", ++ "com.google.guava:guava", ++ "com.google.j2objc:j2objc-annotations", ++ "io.opencensus:opencensus-api", ++ "io.opencensus:opencensus-contrib-http-util", ++ "org.apache.httpcomponents:httpclient", ++ "org.apache.httpcomponents:httpcore" ++ ], ++ "com.google.http-client:google-http-client-gson": [ ++ "com.google.code.gson:gson", ++ "com.google.http-client:google-http-client" ++ ], ++ "com.google.truth:truth": [ ++ "com.google.auto.value:auto-value-annotations", ++ "com.google.errorprone:error_prone_annotations", ++ "com.google.guava:guava", ++ "junit:junit", ++ "org.checkerframework:checker-qual", ++ "org.ow2.asm:asm" ++ ], ++ "com.squareup.okhttp:okhttp": [ ++ "com.squareup.okio:okio" ++ ], ++ "com.squareup.okio:okio": [ ++ "org.jetbrains.kotlin:kotlin-stdlib", ++ "org.jetbrains.kotlin:kotlin-stdlib-common" ++ ], ++ "io.netty:netty-buffer": [ ++ "io.netty:netty-common" ++ ], ++ "io.netty:netty-codec": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-common", ++ "io.netty:netty-transport" ++ ], ++ "io.netty:netty-codec-http": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-common", ++ "io.netty:netty-handler", ++ "io.netty:netty-transport" ++ ], ++ "io.netty:netty-codec-http2": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-codec-http", ++ "io.netty:netty-common", ++ "io.netty:netty-handler", ++ "io.netty:netty-transport" ++ ], ++ "io.netty:netty-codec-socks": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-common", ++ "io.netty:netty-transport" ++ ], ++ "io.netty:netty-handler": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-common", ++ "io.netty:netty-resolver", ++ "io.netty:netty-transport", ++ "io.netty:netty-transport-native-unix-common" ++ ], ++ "io.netty:netty-handler-proxy": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-codec-http", ++ "io.netty:netty-codec-socks", ++ "io.netty:netty-common", ++ "io.netty:netty-transport" ++ ], ++ "io.netty:netty-resolver": [ ++ "io.netty:netty-common" ++ ], ++ "io.netty:netty-tcnative-boringssl-static": [ ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes" ++ ], ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64": [ ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes" ++ ], ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64": [ ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes" ++ ], ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64": [ ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes" ++ ], ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64": [ ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes" ++ ], ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64": [ ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-classes" ++ ], ++ "io.netty:netty-transport": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-common", ++ "io.netty:netty-resolver" ++ ], ++ "io.netty:netty-transport-classes-epoll": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-common", ++ "io.netty:netty-transport", ++ "io.netty:netty-transport-native-unix-common" ++ ], ++ "io.netty:netty-transport-native-epoll:jar:linux-x86_64": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-common", ++ "io.netty:netty-transport", ++ "io.netty:netty-transport-classes-epoll", ++ "io.netty:netty-transport-native-unix-common" ++ ], ++ "io.netty:netty-transport-native-unix-common": [ ++ "io.netty:netty-buffer", ++ "io.netty:netty-common", ++ "io.netty:netty-transport" ++ ], ++ "io.opencensus:opencensus-api": [ ++ "io.grpc:grpc-context" ++ ], ++ "io.opencensus:opencensus-contrib-grpc-metrics": [ ++ "com.google.guava:guava", ++ "io.opencensus:opencensus-api" ++ ], ++ "io.opencensus:opencensus-contrib-http-util": [ ++ "com.google.guava:guava", ++ "io.opencensus:opencensus-api" ++ ], ++ "junit:junit": [ ++ "org.hamcrest:hamcrest-core" ++ ], ++ "org.apache.httpcomponents:httpclient": [ ++ "commons-codec:commons-codec", ++ "commons-logging:commons-logging", ++ "org.apache.httpcomponents:httpcore" ++ ], ++ "org.jetbrains.kotlin:kotlin-stdlib": [ ++ "org.jetbrains.kotlin:kotlin-stdlib-common", ++ "org.jetbrains:annotations" ++ ] ++ }, ++ "packages": { ++ "com.google.android:annotations": [ ++ "android.annotation" ++ ], ++ "com.google.api.grpc:proto-google-common-protos": [ ++ "com.google.api", ++ "com.google.cloud", ++ "com.google.cloud.audit", ++ "com.google.cloud.location", ++ "com.google.geo.type", ++ "com.google.logging.type", ++ "com.google.longrunning", ++ "com.google.rpc", ++ "com.google.rpc.context", ++ "com.google.type" ++ ], ++ "com.google.auth:google-auth-library-credentials": [ ++ "com.google.auth" ++ ], ++ "com.google.auth:google-auth-library-oauth2-http": [ ++ "com.google.auth.http", ++ "com.google.auth.oauth2" ++ ], ++ "com.google.auto.value:auto-value": [ ++ "autovalue.shaded.com.google.auto.common", ++ "autovalue.shaded.com.google.auto.service", ++ "autovalue.shaded.com.google.common.annotations", ++ "autovalue.shaded.com.google.common.base", ++ "autovalue.shaded.com.google.common.cache", ++ "autovalue.shaded.com.google.common.collect", ++ "autovalue.shaded.com.google.common.escape", ++ "autovalue.shaded.com.google.common.eventbus", ++ "autovalue.shaded.com.google.common.graph", ++ "autovalue.shaded.com.google.common.hash", ++ "autovalue.shaded.com.google.common.html", ++ "autovalue.shaded.com.google.common.io", ++ "autovalue.shaded.com.google.common.math", ++ "autovalue.shaded.com.google.common.net", ++ "autovalue.shaded.com.google.common.primitives", ++ "autovalue.shaded.com.google.common.reflect", ++ "autovalue.shaded.com.google.common.util.concurrent", ++ "autovalue.shaded.com.google.common.xml", ++ "autovalue.shaded.com.google.errorprone.annotations", ++ "autovalue.shaded.com.google.errorprone.annotations.concurrent", ++ "autovalue.shaded.com.google.escapevelocity", ++ "autovalue.shaded.com.google.j2objc.annotations", ++ "autovalue.shaded.com.squareup.javapoet", ++ "autovalue.shaded.kotlin", ++ "autovalue.shaded.kotlin.annotation", ++ "autovalue.shaded.kotlin.collections", ++ "autovalue.shaded.kotlin.collections.builders", ++ "autovalue.shaded.kotlin.collections.unsigned", ++ "autovalue.shaded.kotlin.comparisons", ++ "autovalue.shaded.kotlin.contracts", ++ "autovalue.shaded.kotlin.coroutines", ++ "autovalue.shaded.kotlin.coroutines.intrinsics", ++ "autovalue.shaded.kotlin.coroutines.jvm.internal", ++ "autovalue.shaded.kotlin.enums", ++ "autovalue.shaded.kotlin.experimental", ++ "autovalue.shaded.kotlin.internal", ++ "autovalue.shaded.kotlin.internal.jdk7", ++ "autovalue.shaded.kotlin.internal.jdk8", ++ "autovalue.shaded.kotlin.jvm", ++ "autovalue.shaded.kotlin.jvm.functions", ++ "autovalue.shaded.kotlin.jvm.internal", ++ "autovalue.shaded.kotlin.jvm.internal.markers", ++ "autovalue.shaded.kotlin.random", ++ "autovalue.shaded.kotlin.random.jdk8", ++ "autovalue.shaded.kotlin.ranges", ++ "autovalue.shaded.kotlin.reflect", ++ "autovalue.shaded.kotlin.sequences", ++ "autovalue.shaded.kotlin.text", ++ "autovalue.shaded.kotlinx.metadata", ++ "autovalue.shaded.kotlinx.metadata.internal", ++ "autovalue.shaded.kotlinx.metadata.internal.common", ++ "autovalue.shaded.kotlinx.metadata.internal.extensions", ++ "autovalue.shaded.kotlinx.metadata.internal.metadata", ++ "autovalue.shaded.kotlinx.metadata.internal.metadata.deserialization", ++ "autovalue.shaded.kotlinx.metadata.internal.metadata.jvm", ++ "autovalue.shaded.kotlinx.metadata.internal.metadata.jvm.deserialization", ++ "autovalue.shaded.kotlinx.metadata.internal.metadata.jvm.serialization", ++ "autovalue.shaded.kotlinx.metadata.internal.metadata.serialization", ++ "autovalue.shaded.kotlinx.metadata.internal.protobuf", ++ "autovalue.shaded.kotlinx.metadata.jvm", ++ "autovalue.shaded.kotlinx.metadata.jvm.internal", ++ "autovalue.shaded.net.ltgt.gradle.incap", ++ "autovalue.shaded.org.checkerframework.checker.nullness.qual", ++ "autovalue.shaded.org.checkerframework.framework.qual", ++ "autovalue.shaded.org.jetbrains.annotations", ++ "autovalue.shaded.org.objectweb.asm", ++ "com.google.auto.value.extension", ++ "com.google.auto.value.extension.memoized.processor", ++ "com.google.auto.value.extension.serializable.processor", ++ "com.google.auto.value.extension.serializable.serializer", ++ "com.google.auto.value.extension.serializable.serializer.impl", ++ "com.google.auto.value.extension.serializable.serializer.interfaces", ++ "com.google.auto.value.extension.serializable.serializer.runtime", ++ "com.google.auto.value.extension.toprettystring.processor", ++ "com.google.auto.value.processor" ++ ], ++ "com.google.auto.value:auto-value-annotations": [ ++ "com.google.auto.value", ++ "com.google.auto.value.extension.memoized", ++ "com.google.auto.value.extension.serializable", ++ "com.google.auto.value.extension.toprettystring" ++ ], ++ "com.google.code.findbugs:jsr305": [ ++ "javax.annotation", ++ "javax.annotation.concurrent", ++ "javax.annotation.meta" ++ ], ++ "com.google.code.gson:gson": [ ++ "com.google.gson", ++ "com.google.gson.annotations", ++ "com.google.gson.internal", ++ "com.google.gson.internal.bind", ++ "com.google.gson.internal.bind.util", ++ "com.google.gson.internal.reflect", ++ "com.google.gson.internal.sql", ++ "com.google.gson.reflect", ++ "com.google.gson.stream" ++ ], ++ "com.google.errorprone:error_prone_annotations": [ ++ "com.google.errorprone.annotations", ++ "com.google.errorprone.annotations.concurrent" ++ ], ++ "com.google.guava:failureaccess": [ ++ "com.google.common.util.concurrent.internal" ++ ], ++ "com.google.guava:guava": [ ++ "com.google.common.annotations", ++ "com.google.common.base", ++ "com.google.common.base.internal", ++ "com.google.common.cache", ++ "com.google.common.collect", ++ "com.google.common.escape", ++ "com.google.common.eventbus", ++ "com.google.common.graph", ++ "com.google.common.hash", ++ "com.google.common.html", ++ "com.google.common.io", ++ "com.google.common.math", ++ "com.google.common.net", ++ "com.google.common.primitives", ++ "com.google.common.reflect", ++ "com.google.common.util.concurrent", ++ "com.google.common.xml", ++ "com.google.thirdparty.publicsuffix" ++ ], ++ "com.google.http-client:google-http-client": [ ++ "com.google.api.client.http", ++ "com.google.api.client.http.apache", ++ "com.google.api.client.http.javanet", ++ "com.google.api.client.http.json", ++ "com.google.api.client.json", ++ "com.google.api.client.json.rpc2", ++ "com.google.api.client.json.webtoken", ++ "com.google.api.client.testing.http", ++ "com.google.api.client.testing.http.apache", ++ "com.google.api.client.testing.http.javanet", ++ "com.google.api.client.testing.json", ++ "com.google.api.client.testing.json.webtoken", ++ "com.google.api.client.testing.util", ++ "com.google.api.client.util", ++ "com.google.api.client.util.escape", ++ "com.google.api.client.util.store" ++ ], ++ "com.google.http-client:google-http-client-gson": [ ++ "com.google.api.client.json.gson" ++ ], ++ "com.google.j2objc:j2objc-annotations": [ ++ "com.google.j2objc.annotations" ++ ], ++ "com.google.protobuf:protobuf-java": [ ++ "com.google.protobuf", ++ "com.google.protobuf.compiler" ++ ], ++ "com.google.re2j:re2j": [ ++ "com.google.re2j" ++ ], ++ "com.google.truth:truth": [ ++ "com.google.common.truth" ++ ], ++ "com.squareup.okhttp:okhttp": [ ++ "com.squareup.okhttp", ++ "com.squareup.okhttp.internal", ++ "com.squareup.okhttp.internal.framed", ++ "com.squareup.okhttp.internal.http", ++ "com.squareup.okhttp.internal.io", ++ "com.squareup.okhttp.internal.tls" ++ ], ++ "com.squareup.okio:okio": [ ++ "okio", ++ "okio.internal" ++ ], ++ "commons-codec:commons-codec": [ ++ "org.apache.commons.codec", ++ "org.apache.commons.codec.binary", ++ "org.apache.commons.codec.cli", ++ "org.apache.commons.codec.digest", ++ "org.apache.commons.codec.language", ++ "org.apache.commons.codec.language.bm", ++ "org.apache.commons.codec.net" ++ ], ++ "commons-logging:commons-logging": [ ++ "org.apache.commons.logging", ++ "org.apache.commons.logging.impl" ++ ], ++ "io.grpc:grpc-context": [ ++ "io.grpc" ++ ], ++ "io.netty:netty-buffer": [ ++ "io.netty.buffer", ++ "io.netty.buffer.search" ++ ], ++ "io.netty:netty-codec": [ ++ "io.netty.handler.codec", ++ "io.netty.handler.codec.base64", ++ "io.netty.handler.codec.bytes", ++ "io.netty.handler.codec.compression", ++ "io.netty.handler.codec.json", ++ "io.netty.handler.codec.marshalling", ++ "io.netty.handler.codec.protobuf", ++ "io.netty.handler.codec.serialization", ++ "io.netty.handler.codec.string", ++ "io.netty.handler.codec.xml" ++ ], ++ "io.netty:netty-codec-http": [ ++ "io.netty.handler.codec.http", ++ "io.netty.handler.codec.http.cookie", ++ "io.netty.handler.codec.http.cors", ++ "io.netty.handler.codec.http.multipart", ++ "io.netty.handler.codec.http.websocketx", ++ "io.netty.handler.codec.http.websocketx.extensions", ++ "io.netty.handler.codec.http.websocketx.extensions.compression", ++ "io.netty.handler.codec.rtsp", ++ "io.netty.handler.codec.spdy" ++ ], ++ "io.netty:netty-codec-http2": [ ++ "io.netty.handler.codec.http2" ++ ], ++ "io.netty:netty-codec-socks": [ ++ "io.netty.handler.codec.socks", ++ "io.netty.handler.codec.socksx", ++ "io.netty.handler.codec.socksx.v4", ++ "io.netty.handler.codec.socksx.v5" ++ ], ++ "io.netty:netty-common": [ ++ "io.netty.util", ++ "io.netty.util.collection", ++ "io.netty.util.concurrent", ++ "io.netty.util.internal", ++ "io.netty.util.internal.logging", ++ "io.netty.util.internal.shaded.org.jctools.queues", ++ "io.netty.util.internal.shaded.org.jctools.queues.atomic", ++ "io.netty.util.internal.shaded.org.jctools.util", ++ "io.netty.util.internal.svm" ++ ], ++ "io.netty:netty-handler": [ ++ "io.netty.handler.address", ++ "io.netty.handler.flow", ++ "io.netty.handler.flush", ++ "io.netty.handler.ipfilter", ++ "io.netty.handler.logging", ++ "io.netty.handler.pcap", ++ "io.netty.handler.ssl", ++ "io.netty.handler.ssl.ocsp", ++ "io.netty.handler.ssl.util", ++ "io.netty.handler.stream", ++ "io.netty.handler.timeout", ++ "io.netty.handler.traffic" ++ ], ++ "io.netty:netty-handler-proxy": [ ++ "io.netty.handler.proxy" ++ ], ++ "io.netty:netty-resolver": [ ++ "io.netty.resolver" ++ ], ++ "io.netty:netty-tcnative-classes": [ ++ "io.netty.internal.tcnative" ++ ], ++ "io.netty:netty-transport": [ ++ "io.netty.bootstrap", ++ "io.netty.channel", ++ "io.netty.channel.embedded", ++ "io.netty.channel.group", ++ "io.netty.channel.internal", ++ "io.netty.channel.local", ++ "io.netty.channel.nio", ++ "io.netty.channel.oio", ++ "io.netty.channel.pool", ++ "io.netty.channel.socket", ++ "io.netty.channel.socket.nio", ++ "io.netty.channel.socket.oio" ++ ], ++ "io.netty:netty-transport-classes-epoll": [ ++ "io.netty.channel.epoll" ++ ], ++ "io.netty:netty-transport-native-unix-common": [ ++ "io.netty.channel.unix" ++ ], ++ "io.opencensus:opencensus-api": [ ++ "io.opencensus.common", ++ "io.opencensus.internal", ++ "io.opencensus.metrics", ++ "io.opencensus.metrics.data", ++ "io.opencensus.metrics.export", ++ "io.opencensus.resource", ++ "io.opencensus.stats", ++ "io.opencensus.tags", ++ "io.opencensus.tags.propagation", ++ "io.opencensus.tags.unsafe", ++ "io.opencensus.trace", ++ "io.opencensus.trace.config", ++ "io.opencensus.trace.export", ++ "io.opencensus.trace.internal", ++ "io.opencensus.trace.propagation", ++ "io.opencensus.trace.samplers", ++ "io.opencensus.trace.unsafe" ++ ], ++ "io.opencensus:opencensus-contrib-grpc-metrics": [ ++ "io.opencensus.contrib.grpc.metrics" ++ ], ++ "io.opencensus:opencensus-contrib-http-util": [ ++ "io.opencensus.contrib.http", ++ "io.opencensus.contrib.http.util" ++ ], ++ "io.perfmark:perfmark-api": [ ++ "io.perfmark" ++ ], ++ "junit:junit": [ ++ "junit.extensions", ++ "junit.framework", ++ "junit.runner", ++ "junit.textui", ++ "org.junit", ++ "org.junit.experimental", ++ "org.junit.experimental.categories", ++ "org.junit.experimental.max", ++ "org.junit.experimental.results", ++ "org.junit.experimental.runners", ++ "org.junit.experimental.theories", ++ "org.junit.experimental.theories.internal", ++ "org.junit.experimental.theories.suppliers", ++ "org.junit.function", ++ "org.junit.internal", ++ "org.junit.internal.builders", ++ "org.junit.internal.management", ++ "org.junit.internal.matchers", ++ "org.junit.internal.requests", ++ "org.junit.internal.runners", ++ "org.junit.internal.runners.model", ++ "org.junit.internal.runners.rules", ++ "org.junit.internal.runners.statements", ++ "org.junit.matchers", ++ "org.junit.rules", ++ "org.junit.runner", ++ "org.junit.runner.manipulation", ++ "org.junit.runner.notification", ++ "org.junit.runners", ++ "org.junit.runners.model", ++ "org.junit.runners.parameterized", ++ "org.junit.validator" ++ ], ++ "org.apache.httpcomponents:httpclient": [ ++ "org.apache.http.auth", ++ "org.apache.http.auth.params", ++ "org.apache.http.client", ++ "org.apache.http.client.config", ++ "org.apache.http.client.entity", ++ "org.apache.http.client.methods", ++ "org.apache.http.client.params", ++ "org.apache.http.client.protocol", ++ "org.apache.http.client.utils", ++ "org.apache.http.conn", ++ "org.apache.http.conn.params", ++ "org.apache.http.conn.routing", ++ "org.apache.http.conn.scheme", ++ "org.apache.http.conn.socket", ++ "org.apache.http.conn.ssl", ++ "org.apache.http.conn.util", ++ "org.apache.http.cookie", ++ "org.apache.http.cookie.params", ++ "org.apache.http.impl.auth", ++ "org.apache.http.impl.client", ++ "org.apache.http.impl.conn", ++ "org.apache.http.impl.conn.tsccm", ++ "org.apache.http.impl.cookie", ++ "org.apache.http.impl.execchain" ++ ], ++ "org.apache.httpcomponents:httpcore": [ ++ "org.apache.http", ++ "org.apache.http.annotation", ++ "org.apache.http.concurrent", ++ "org.apache.http.config", ++ "org.apache.http.entity", ++ "org.apache.http.impl", ++ "org.apache.http.impl.bootstrap", ++ "org.apache.http.impl.entity", ++ "org.apache.http.impl.io", ++ "org.apache.http.impl.pool", ++ "org.apache.http.io", ++ "org.apache.http.message", ++ "org.apache.http.params", ++ "org.apache.http.pool", ++ "org.apache.http.protocol", ++ "org.apache.http.ssl", ++ "org.apache.http.util" ++ ], ++ "org.apache.tomcat:annotations-api": [ ++ "javax.annotation", ++ "javax.annotation.security", ++ "javax.ejb", ++ "javax.persistence", ++ "javax.xml.ws" ++ ], ++ "org.checkerframework:checker-qual": [ ++ "org.checkerframework.checker.builder.qual", ++ "org.checkerframework.checker.calledmethods.qual", ++ "org.checkerframework.checker.compilermsgs.qual", ++ "org.checkerframework.checker.fenum.qual", ++ "org.checkerframework.checker.formatter.qual", ++ "org.checkerframework.checker.guieffect.qual", ++ "org.checkerframework.checker.i18n.qual", ++ "org.checkerframework.checker.i18nformatter.qual", ++ "org.checkerframework.checker.index.qual", ++ "org.checkerframework.checker.initialization.qual", ++ "org.checkerframework.checker.interning.qual", ++ "org.checkerframework.checker.lock.qual", ++ "org.checkerframework.checker.mustcall.qual", ++ "org.checkerframework.checker.nullness.qual", ++ "org.checkerframework.checker.optional.qual", ++ "org.checkerframework.checker.propkey.qual", ++ "org.checkerframework.checker.regex.qual", ++ "org.checkerframework.checker.signature.qual", ++ "org.checkerframework.checker.signedness.qual", ++ "org.checkerframework.checker.tainting.qual", ++ "org.checkerframework.checker.units.qual", ++ "org.checkerframework.common.aliasing.qual", ++ "org.checkerframework.common.initializedfields.qual", ++ "org.checkerframework.common.reflection.qual", ++ "org.checkerframework.common.returnsreceiver.qual", ++ "org.checkerframework.common.subtyping.qual", ++ "org.checkerframework.common.util.report.qual", ++ "org.checkerframework.common.value.qual", ++ "org.checkerframework.dataflow.qual", ++ "org.checkerframework.framework.qual" ++ ], ++ "org.codehaus.mojo:animal-sniffer-annotations": [ ++ "org.codehaus.mojo.animal_sniffer" ++ ], ++ "org.hamcrest:hamcrest-core": [ ++ "org.hamcrest", ++ "org.hamcrest.core", ++ "org.hamcrest.internal" ++ ], ++ "org.jetbrains.kotlin:kotlin-stdlib": [ ++ "kotlin", ++ "kotlin.annotation", ++ "kotlin.collections", ++ "kotlin.collections.builders", ++ "kotlin.collections.unsigned", ++ "kotlin.comparisons", ++ "kotlin.concurrent", ++ "kotlin.contracts", ++ "kotlin.coroutines", ++ "kotlin.coroutines.cancellation", ++ "kotlin.coroutines.intrinsics", ++ "kotlin.coroutines.jvm.internal", ++ "kotlin.experimental", ++ "kotlin.internal", ++ "kotlin.io", ++ "kotlin.js", ++ "kotlin.jvm", ++ "kotlin.jvm.functions", ++ "kotlin.jvm.internal", ++ "kotlin.jvm.internal.markers", ++ "kotlin.jvm.internal.unsafe", ++ "kotlin.math", ++ "kotlin.properties", ++ "kotlin.random", ++ "kotlin.ranges", ++ "kotlin.reflect", ++ "kotlin.sequences", ++ "kotlin.system", ++ "kotlin.text", ++ "kotlin.time" ++ ], ++ "org.jetbrains:annotations": [ ++ "org.intellij.lang.annotations", ++ "org.jetbrains.annotations" ++ ], ++ "org.ow2.asm:asm": [ ++ "org.objectweb.asm", ++ "org.objectweb.asm.signature" ++ ] ++ }, ++ "repositories": { ++ "https://repo1.maven.org/maven2/": [ ++ "com.google.android:annotations", ++ "com.google.api.grpc:proto-google-common-protos", ++ "com.google.auth:google-auth-library-credentials", ++ "com.google.auth:google-auth-library-oauth2-http", ++ "com.google.auto.value:auto-value", ++ "com.google.auto.value:auto-value-annotations", ++ "com.google.code.findbugs:jsr305", ++ "com.google.code.gson:gson", ++ "com.google.errorprone:error_prone_annotations", ++ "com.google.guava:failureaccess", ++ "com.google.guava:guava", ++ "com.google.guava:listenablefuture", ++ "com.google.http-client:google-http-client", ++ "com.google.http-client:google-http-client-gson", ++ "com.google.j2objc:j2objc-annotations", ++ "com.google.protobuf:protobuf-java", ++ "com.google.re2j:re2j", ++ "com.google.truth:truth", ++ "com.squareup.okhttp:okhttp", ++ "com.squareup.okio:okio", ++ "commons-codec:commons-codec", ++ "commons-logging:commons-logging", ++ "io.grpc:grpc-context", ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-codec-http", ++ "io.netty:netty-codec-http2", ++ "io.netty:netty-codec-socks", ++ "io.netty:netty-common", ++ "io.netty:netty-handler", ++ "io.netty:netty-handler-proxy", ++ "io.netty:netty-resolver", ++ "io.netty:netty-tcnative-boringssl-static", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes", ++ "io.netty:netty-transport", ++ "io.netty:netty-transport-classes-epoll", ++ "io.netty:netty-transport-native-epoll:jar:linux-x86_64", ++ "io.netty:netty-transport-native-unix-common", ++ "io.opencensus:opencensus-api", ++ "io.opencensus:opencensus-contrib-grpc-metrics", ++ "io.opencensus:opencensus-contrib-http-util", ++ "io.perfmark:perfmark-api", ++ "junit:junit", ++ "org.apache.httpcomponents:httpclient", ++ "org.apache.httpcomponents:httpcore", ++ "org.apache.tomcat:annotations-api", ++ "org.checkerframework:checker-qual", ++ "org.codehaus.mojo:animal-sniffer-annotations", ++ "org.hamcrest:hamcrest-core", ++ "org.jetbrains.kotlin:kotlin-stdlib", ++ "org.jetbrains.kotlin:kotlin-stdlib-common", ++ "org.jetbrains:annotations", ++ "org.ow2.asm:asm" ++ ], ++ "https://maven.google.com/": [ ++ "com.google.android:annotations", ++ "com.google.api.grpc:proto-google-common-protos", ++ "com.google.auth:google-auth-library-credentials", ++ "com.google.auth:google-auth-library-oauth2-http", ++ "com.google.auto.value:auto-value", ++ "com.google.auto.value:auto-value-annotations", ++ "com.google.code.findbugs:jsr305", ++ "com.google.code.gson:gson", ++ "com.google.errorprone:error_prone_annotations", ++ "com.google.guava:failureaccess", ++ "com.google.guava:guava", ++ "com.google.guava:listenablefuture", ++ "com.google.http-client:google-http-client", ++ "com.google.http-client:google-http-client-gson", ++ "com.google.j2objc:j2objc-annotations", ++ "com.google.protobuf:protobuf-java", ++ "com.google.re2j:re2j", ++ "com.google.truth:truth", ++ "com.squareup.okhttp:okhttp", ++ "com.squareup.okio:okio", ++ "commons-codec:commons-codec", ++ "commons-logging:commons-logging", ++ "io.grpc:grpc-context", ++ "io.netty:netty-buffer", ++ "io.netty:netty-codec", ++ "io.netty:netty-codec-http", ++ "io.netty:netty-codec-http2", ++ "io.netty:netty-codec-socks", ++ "io.netty:netty-common", ++ "io.netty:netty-handler", ++ "io.netty:netty-handler-proxy", ++ "io.netty:netty-resolver", ++ "io.netty:netty-tcnative-boringssl-static", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64", ++ "io.netty:netty-tcnative-classes", ++ "io.netty:netty-transport", ++ "io.netty:netty-transport-classes-epoll", ++ "io.netty:netty-transport-native-epoll:jar:linux-x86_64", ++ "io.netty:netty-transport-native-unix-common", ++ "io.opencensus:opencensus-api", ++ "io.opencensus:opencensus-contrib-grpc-metrics", ++ "io.opencensus:opencensus-contrib-http-util", ++ "io.perfmark:perfmark-api", ++ "junit:junit", ++ "org.apache.httpcomponents:httpclient", ++ "org.apache.httpcomponents:httpcore", ++ "org.apache.tomcat:annotations-api", ++ "org.checkerframework:checker-qual", ++ "org.codehaus.mojo:animal-sniffer-annotations", ++ "org.hamcrest:hamcrest-core", ++ "org.jetbrains.kotlin:kotlin-stdlib", ++ "org.jetbrains.kotlin:kotlin-stdlib-common", ++ "org.jetbrains:annotations", ++ "org.ow2.asm:asm" ++ ] ++ }, ++ "version": "2" ++} diff --git a/modules/grpc-java/1.62.2/patches/update_labels.patch b/modules/grpc-java/1.62.2/patches/update_labels.patch new file mode 100644 index 00000000000..4ddf3767fb9 --- /dev/null +++ b/modules/grpc-java/1.62.2/patches/update_labels.patch @@ -0,0 +1,683 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index 40c040226..89de9e40e 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -33,9 +33,9 @@ java_library( + "//protobuf", + "//stub", + "//stub:javax_annotation", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", + "@com_google_protobuf//:protobuf_java", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) + +@@ -47,8 +47,8 @@ java_library( + "//protobuf-lite", + "//stub", + "//stub:javax_annotation", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) + +@@ -56,7 +56,7 @@ java_plugin( + name = "auto_value", + generates_api = 1, + processor_class = "com.google.auto.value.processor.AutoValueProcessor", +- deps = ["@com_google_auto_value_auto_value//jar"], ++ deps = ["@grpc_java_maven//:com_google_auto_value_auto_value"], + ) + + java_library( +@@ -65,7 +65,7 @@ java_library( + neverlink = 1, + visibility = ["//:__subpackages__"], + exports = [ +- "@com_google_auto_value_auto_value_annotations//jar", +- "@org_apache_tomcat_annotations_api//jar", # @Generated for Java 9+ ++ "@grpc_java_maven//:com_google_auto_value_auto_value_annotations", ++ "@grpc_java_maven//:org_apache_tomcat_annotations_api", # @Generated for Java 9+ + ], + ) +diff --git a/alts/BUILD.bazel b/alts/BUILD.bazel +index c99689bac..2264c1023 100644 +--- a/alts/BUILD.bazel ++++ b/alts/BUILD.bazel +@@ -14,16 +14,16 @@ java_library( + "//grpclb", + "//netty", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", + "@com_google_protobuf//:protobuf_java", + "@com_google_protobuf//:protobuf_java_util", +- "@io_netty_netty_buffer//jar", +- "@io_netty_netty_codec//jar", +- "@io_netty_netty_common//jar", +- "@io_netty_netty_handler//jar", +- "@io_netty_netty_transport//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:io_netty_netty_buffer", ++ "@grpc_java_maven//:io_netty_netty_codec", ++ "@grpc_java_maven//:io_netty_netty_common", ++ "@grpc_java_maven//:io_netty_netty_handler", ++ "@grpc_java_maven//:io_netty_netty_transport", + ], + ) + +@@ -35,19 +35,19 @@ java_library( + visibility = ["//visibility:public"], + deps = [ + ":alts_internal", +- ":handshaker_java_proto", + ":handshaker_java_grpc", ++ ":handshaker_java_proto", + "//api", + "//auth", + "//core:internal", + "//netty", +- "@com_google_auth_google_auth_library_oauth2_http//jar", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", +- "@io_netty_netty_common//jar", +- "@io_netty_netty_handler//jar", +- "@io_netty_netty_transport//jar", ++ "@grpc_java_maven//:com_google_auth_google_auth_library_oauth2_http", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:io_netty_netty_common", ++ "@grpc_java_maven//:io_netty_netty_handler", ++ "@grpc_java_maven//:io_netty_netty_transport", + ], + ) + +diff --git a/api/BUILD.bazel b/api/BUILD.bazel +index efd1e8d96..ab6782304 100644 +--- a/api/BUILD.bazel ++++ b/api/BUILD.bazel +@@ -7,10 +7,10 @@ java_library( + javacopts = ["-Xep:DoNotCall:OFF"], # Remove once requiring Bazel 3.4.0+; allows non-final + visibility = ["//visibility:public"], + deps = [ +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_failureaccess//jar", # future transitive dep of Guava. See #5214 +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_failureaccess", # future transitive dep of Guava. See #5214 ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + ], + ) +diff --git a/auth/BUILD.bazel b/auth/BUILD.bazel +index cc923dce2..66863ade3 100644 +--- a/auth/BUILD.bazel ++++ b/auth/BUILD.bazel +@@ -6,9 +6,9 @@ java_library( + visibility = ["//visibility:public"], + deps = [ + "//api", +- "@com_google_auth_google_auth_library_credentials//jar", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", ++ "@grpc_java_maven//:com_google_auth_google_auth_library_credentials", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + ], + ) +diff --git a/census/BUILD.bazel b/census/BUILD.bazel +index c0bf29b3f..1b1b8dba2 100644 +--- a/census/BUILD.bazel ++++ b/census/BUILD.bazel +@@ -5,11 +5,11 @@ java_library( + ]), + visibility = ["//visibility:public"], + deps = [ +- "//api", +- "//context", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@io_opencensus_opencensus_api//jar", +- "@io_opencensus_opencensus_contrib_grpc_metrics//jar", ++ "//api", ++ "//context", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:io_opencensus_opencensus_api", ++ "@grpc_java_maven//:io_opencensus_opencensus_contrib_grpc_metrics", + ], + ) +diff --git a/compiler/BUILD.bazel b/compiler/BUILD.bazel +index f88075c0e..81c91ac55 100644 +--- a/compiler/BUILD.bazel ++++ b/compiler/BUILD.bazel +@@ -22,9 +22,9 @@ java_library( + "//protobuf", + "//stub", + "//stub:javax_annotation", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", + "@com_google_protobuf//:protobuf_java", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) + +@@ -35,8 +35,8 @@ java_library( + "//protobuf-lite", + "//stub", + "//stub:javax_annotation", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) + +diff --git a/core/BUILD.bazel b/core/BUILD.bazel +index ebe5b64c2..fa499a01c 100644 +--- a/core/BUILD.bazel ++++ b/core/BUILD.bazel +@@ -23,14 +23,14 @@ java_library( + deps = [ + "//api", + "//context", +- "@com_google_android_annotations//jar", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_code_gson_gson//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", +- "@io_perfmark_perfmark_api//jar", +- "@org_codehaus_mojo_animal_sniffer_annotations//jar", ++ "@grpc_java_maven//:com_google_android_annotations", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_code_gson_gson", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:io_perfmark_perfmark_api", ++ "@grpc_java_maven//:org_codehaus_mojo_animal_sniffer_annotations", + ], + ) + +diff --git a/googleapis/BUILD.bazel b/googleapis/BUILD.bazel +index 77b0bcd93..758be86c4 100644 +--- a/googleapis/BUILD.bazel ++++ b/googleapis/BUILD.bazel +@@ -9,6 +9,6 @@ java_library( + "//api", + "//core:internal", + "//xds", +- "@com_google_guava_guava//jar", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) +diff --git a/grpclb/BUILD.bazel b/grpclb/BUILD.bazel +index e82d8022b..c58a36a9f 100644 +--- a/grpclb/BUILD.bazel ++++ b/grpclb/BUILD.bazel +@@ -14,12 +14,12 @@ java_library( + "//api", + "//context", + "//core:internal", +- "//util", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", ++ "//util", + "@com_google_protobuf//:protobuf_java_util", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + "@io_grpc_grpc_proto//:grpclb_load_balancer_java_proto", + ], + ) +diff --git a/inprocess/BUILD.bazel b/inprocess/BUILD.bazel +index 65f2adced..92112ebb3 100644 +--- a/inprocess/BUILD.bazel ++++ b/inprocess/BUILD.bazel +@@ -5,12 +5,12 @@ java_library( + ]), + visibility = ["//visibility:public"], + deps = [ +- "//core:internal", + "//api", + "//context", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", ++ "//core:internal", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + ], + ) +diff --git a/netty/BUILD.bazel b/netty/BUILD.bazel +index d2497d065..4fb1809c7 100644 +--- a/netty/BUILD.bazel ++++ b/netty/BUILD.bazel +@@ -10,22 +10,22 @@ java_library( + deps = [ + "//api", + "//core:internal", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", +- "@io_netty_netty_buffer//jar", +- "@io_netty_netty_codec//jar", +- "@io_netty_netty_codec_http//jar", +- "@io_netty_netty_codec_http2//jar", +- "@io_netty_netty_codec_socks//jar", +- "@io_netty_netty_common//jar", +- "@io_netty_netty_handler//jar", +- "@io_netty_netty_handler_proxy//jar", +- "@io_netty_netty_resolver//jar", +- "@io_netty_netty_transport//jar", +- "@io_netty_netty_transport_native_unix_common//jar", +- "@io_perfmark_perfmark_api//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:io_netty_netty_buffer", ++ "@grpc_java_maven//:io_netty_netty_codec", ++ "@grpc_java_maven//:io_netty_netty_codec_http", ++ "@grpc_java_maven//:io_netty_netty_codec_http2", ++ "@grpc_java_maven//:io_netty_netty_codec_socks", ++ "@grpc_java_maven//:io_netty_netty_common", ++ "@grpc_java_maven//:io_netty_netty_handler", ++ "@grpc_java_maven//:io_netty_netty_handler_proxy", ++ "@grpc_java_maven//:io_netty_netty_resolver", ++ "@grpc_java_maven//:io_netty_netty_transport", ++ "@grpc_java_maven//:io_netty_netty_transport_native_unix_common", ++ "@grpc_java_maven//:io_perfmark_perfmark_api", + ], + ) + +diff --git a/netty/shaded/BUILD.bazel b/netty/shaded/BUILD.bazel +index 657bf6aaf..9ce69760a 100644 +--- a/netty/shaded/BUILD.bazel ++++ b/netty/shaded/BUILD.bazel +@@ -4,9 +4,9 @@ java_library( + visibility = ["//netty:__pkg__"], + runtime_deps = [ + "//netty", +- "@io_netty_netty_tcnative_boringssl_static//jar", +- "@io_netty_netty_tcnative_classes//jar", +- "@io_netty_netty_transport_native_unix_common//jar", +- "@io_netty_netty_transport_native_epoll_linux_x86_64//jar", ++ "@grpc_java_maven//:io_netty_netty_tcnative_boringssl_static", ++ "@grpc_java_maven//:io_netty_netty_tcnative_classes", ++ "@grpc_java_maven//:io_netty_netty_transport_native_unix_common", ++ "@grpc_java_maven//:io_netty_netty_transport_native_epoll_linux_x86_64", + ], + ) +diff --git a/okhttp/BUILD.bazel b/okhttp/BUILD.bazel +index 30a77b114..b7ede3995 100644 +--- a/okhttp/BUILD.bazel ++++ b/okhttp/BUILD.bazel +@@ -12,12 +12,12 @@ java_library( + "//api", + "//core:internal", + "//util", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", +- "@com_squareup_okhttp_okhttp//jar", +- "@com_squareup_okio_okio//jar", +- "@io_perfmark_perfmark_api//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:com_squareup_okhttp_okhttp", ++ "@grpc_java_maven//:com_squareup_okio_okio", ++ "@grpc_java_maven//:io_perfmark_perfmark_api", + ], + ) +diff --git a/protobuf-lite/BUILD.bazel b/protobuf-lite/BUILD.bazel +index 85cd9669e..73ecf34c6 100644 +--- a/protobuf-lite/BUILD.bazel ++++ b/protobuf-lite/BUILD.bazel +@@ -6,9 +6,9 @@ java_library( + visibility = ["//visibility:public"], + deps = [ + "//api", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + ] + select({ + ":android": ["@com_google_protobuf_javalite//:protobuf_javalite"], + "//conditions:default": ["@com_google_protobuf//:protobuf_java"], +diff --git a/protobuf/BUILD.bazel b/protobuf/BUILD.bazel +index 42085eea5..a7acceeb7 100644 +--- a/protobuf/BUILD.bazel ++++ b/protobuf/BUILD.bazel +@@ -7,10 +7,10 @@ java_library( + deps = [ + "//api", + "//protobuf-lite", +- "@com_google_api_grpc_proto_google_common_protos//jar", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", + "@com_google_protobuf//:protobuf_java", ++ "@grpc_java_maven//:com_google_api_grpc_proto_google_common_protos", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + ], + ) +diff --git a/repositories.bzl b/repositories.bzl +index 942a347cb..100014fc0 100644 +--- a/repositories.bzl ++++ b/repositories.bzl +@@ -83,7 +83,7 @@ IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS = { + "io.grpc:grpc-util": "@io_grpc_grpc_java//util", + } + +-def grpc_java_repositories(): ++def grpc_java_repositories(bzlmod = False): + """Imports dependencies for grpc-java.""" + if not native.existing_rule("com_github_cncf_xds"): + http_archive( +@@ -94,7 +94,7 @@ def grpc_java_repositories(): + "https://github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7.tar.gz", + ], + ) +- if not native.existing_rule("com_github_grpc_grpc"): ++ if not bzlmod and not native.existing_rule("com_github_grpc_grpc"): + http_archive( + name = "com_github_grpc_grpc", + strip_prefix = "grpc-1.46.0", +@@ -103,11 +103,11 @@ def grpc_java_repositories(): + "https://github.com/grpc/grpc/archive/v1.46.0.tar.gz", + ], + ) +- if not native.existing_rule("com_google_protobuf"): ++ if not bzlmod and not native.existing_rule("com_google_protobuf"): + com_google_protobuf() +- if not native.existing_rule("com_google_protobuf_javalite"): ++ if not bzlmod and not native.existing_rule("com_google_protobuf_javalite"): + com_google_protobuf_javalite() +- if not native.existing_rule("com_google_googleapis"): ++ if not bzlmod and not native.existing_rule("com_google_googleapis"): + http_archive( + name = "com_google_googleapis", + sha256 = "49930468563dd48283e8301e8d4e71436bf6d27ac27c235224cc1a098710835d", +@@ -116,7 +116,7 @@ def grpc_java_repositories(): + "https://github.com/googleapis/googleapis/archive/ca1372c6d7bcb199638ebfdb40d2b2660bab7b88.tar.gz", + ], + ) +- if not native.existing_rule("io_bazel_rules_go"): ++ if not bzlmod and not native.existing_rule("io_bazel_rules_go"): + http_archive( + name = "io_bazel_rules_go", + sha256 = "ab21448cef298740765f33a7f5acee0607203e4ea321219f2a4c85a6e0fb0a27", +@@ -164,3 +164,8 @@ def io_grpc_grpc_proto(): + strip_prefix = "grpc-proto-08911e9d585cbda3a55eb1dcc4b99c89aebccff8", + urls = ["https://github.com/grpc/grpc-proto/archive/08911e9d585cbda3a55eb1dcc4b99c89aebccff8.zip"], + ) ++ ++def _grpc_java_repositories_extension(_): ++ grpc_java_repositories(bzlmod = True) ++ ++grpc_java_repositories_extension = module_extension(implementation = _grpc_java_repositories_extension) +diff --git a/rls/BUILD.bazel b/rls/BUILD.bazel +index c67c7cd56..0be74a662 100644 +--- a/rls/BUILD.bazel ++++ b/rls/BUILD.bazel +@@ -12,11 +12,11 @@ java_library( + "//api", + "//core", + "//core:internal", +- "//util", + "//stub", +- "@com_google_auto_value_auto_value_annotations//jar", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", ++ "//util", ++ "@grpc_java_maven//:com_google_auto_value_auto_value_annotations", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + "@io_grpc_grpc_proto//:rls_config_java_proto", + "@io_grpc_grpc_proto//:rls_java_proto", + ], +diff --git a/services/BUILD.bazel b/services/BUILD.bazel +index fa708dd04..fbf34d485 100644 +--- a/services/BUILD.bazel ++++ b/services/BUILD.bazel +@@ -26,7 +26,7 @@ java_library( + deps = [ + ":channelz", + "//api", +- "@com_google_code_findbugs_jsr305//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", + ], + ) + +@@ -35,15 +35,15 @@ java_library( + srcs = [ + "src/main/java/io/grpc/services/CallMetricRecorder.java", + "src/main/java/io/grpc/services/MetricRecorder.java", +- "src/main/java/io/grpc/services/MetricReport.java", + "src/main/java/io/grpc/services/MetricRecorderHelper.java", ++ "src/main/java/io/grpc/services/MetricReport.java", + ], + deps = [ + "//api", + "//context", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_guava//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) + +@@ -72,10 +72,10 @@ java_library( + ":_channelz_java_grpc", + "//api", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", + "@com_google_protobuf//:protobuf_java", + "@com_google_protobuf//:protobuf_java_util", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + "@io_grpc_grpc_proto//:channelz_java_proto", + ], + ) +@@ -90,10 +90,10 @@ java_library( + "//api", + "//protobuf", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", + "@com_google_protobuf//:protobuf_java", + "@com_google_protobuf//:protobuf_java_util", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + "@io_grpc_grpc_proto//:reflection_java_proto_deprecated", + ], + ) +@@ -110,8 +110,8 @@ java_library( + "//api", + "//context", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + "@io_grpc_grpc_proto//:health_java_proto", + ], + ) +@@ -131,8 +131,8 @@ java_library( + "//api", + "//core:internal", + "//util", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + "@io_grpc_grpc_proto//:health_java_proto", + ], + ) +diff --git a/stub/BUILD.bazel b/stub/BUILD.bazel +index c65b01a23..3131a3632 100644 +--- a/stub/BUILD.bazel ++++ b/stub/BUILD.bazel +@@ -7,10 +7,10 @@ java_library( + deps = [ + "//api", + "//context", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_errorprone_error_prone_annotations//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", + ], + ) + +@@ -20,5 +20,5 @@ java_library( + name = "javax_annotation", + neverlink = 1, # @Generated is source-retention + visibility = ["//visibility:public"], +- exports = ["@org_apache_tomcat_annotations_api//jar"], ++ exports = ["@grpc_java_maven//:org_apache_tomcat_annotations_api"], + ) +diff --git a/testing/BUILD.bazel b/testing/BUILD.bazel +index 974cb32f7..69ee8b651 100644 +--- a/testing/BUILD.bazel ++++ b/testing/BUILD.bazel +@@ -12,12 +12,12 @@ java_library( + "//api", + "//context", + "//inprocess", +- "//util", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", +- "@com_google_truth_truth//jar", +- "@junit_junit//jar", ++ "//util", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:com_google_truth_truth", ++ "@grpc_java_maven//:junit_junit", + ], + ) +diff --git a/util/BUILD.bazel b/util/BUILD.bazel +index b95e428f4..cd1402886 100644 +--- a/util/BUILD.bazel ++++ b/util/BUILD.bazel +@@ -10,9 +10,9 @@ java_library( + deps = [ + "//api", + "//core:internal", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", +- "@com_google_j2objc_j2objc_annotations//jar", +- "@org_codehaus_mojo_animal_sniffer_annotations//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_j2objc_j2objc_annotations", ++ "@grpc_java_maven//:org_codehaus_mojo_animal_sniffer_annotations", + ], + ) +diff --git a/xds/BUILD.bazel b/xds/BUILD.bazel +index d3b746e39..e5349ebbe 100644 +--- a/xds/BUILD.bazel ++++ b/xds/BUILD.bazel +@@ -31,31 +31,31 @@ java_library( + ":envoy_service_load_stats_v2_java_grpc", + ":envoy_service_load_stats_v3_java_grpc", + ":envoy_service_status_v3_java_grpc", +- ":xds_protos_java", + ":orca", ++ ":xds_protos_java", + "//:auto_value_annotations", + "//alts", + "//api", + "//context", + "//core:internal", +- "//util", + "//netty", +- "//stub", + "//services:metrics", + "//services:metrics_internal", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_code_gson_gson//jar", +- "@com_google_errorprone_error_prone_annotations//jar", ++ "//stub", ++ "//util", + "@com_google_googleapis//google/rpc:rpc_java_proto", +- "@com_google_guava_guava//jar", + "@com_google_protobuf//:protobuf_java", + "@com_google_protobuf//:protobuf_java_util", +- "@com_google_re2j_re2j//jar", +- "@io_netty_netty_buffer//jar", +- "@io_netty_netty_codec//jar", +- "@io_netty_netty_common//jar", +- "@io_netty_netty_handler//jar", +- "@io_netty_netty_transport//jar", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_code_gson_gson", ++ "@grpc_java_maven//:com_google_errorprone_error_prone_annotations", ++ "@grpc_java_maven//:com_google_guava_guava", ++ "@grpc_java_maven//:com_google_re2j_re2j", ++ "@grpc_java_maven//:io_netty_netty_buffer", ++ "@grpc_java_maven//:io_netty_netty_codec", ++ "@grpc_java_maven//:io_netty_netty_common", ++ "@grpc_java_maven//:io_netty_netty_handler", ++ "@grpc_java_maven//:io_netty_netty_transport", + ], + ) + +@@ -145,14 +145,14 @@ java_library( + "//api", + "//context", + "//core:internal", +- "//util", + "//protobuf", + "//services:metrics", + "//services:metrics_internal", + "//stub", +- "@com_google_code_findbugs_jsr305//jar", +- "@com_google_guava_guava//jar", ++ "//util", + "@com_google_protobuf//:protobuf_java_util", ++ "@grpc_java_maven//:com_google_code_findbugs_jsr305", ++ "@grpc_java_maven//:com_google_guava_guava", + ], + ) + diff --git a/modules/grpc-java/1.62.2/presubmit.yml b/modules/grpc-java/1.62.2/presubmit.yml new file mode 100644 index 00000000000..777eadca061 --- /dev/null +++ b/modules/grpc-java/1.62.2/presubmit.yml @@ -0,0 +1,9 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@grpc-java//:java_grpc_library__external_repo_test' diff --git a/modules/grpc-java/1.62.2/source.json b/modules/grpc-java/1.62.2/source.json new file mode 100644 index 00000000000..4600fba5693 --- /dev/null +++ b/modules/grpc-java/1.62.2/source.json @@ -0,0 +1,11 @@ +{ + "integrity": "sha256-MM/JVMIXRJOCJgGnS4doN5hsRE2bnpFwgplLXjQ0jzQ=", + "strip_prefix": "grpc-java-1.62.2", + "url": "https://github.com/grpc/grpc-java/archive/refs/tags/v1.62.2.tar.gz", + "patch_strip": 1, + "patches": { + "add_module_bazel.patch": "sha256-CBDMVs47Z5StAQx+xSGGJCVqkmz9WtK0flsU9rb4MkE=", + "maven_lockfile.patch": "sha256-VSRs53yvnCbNzxLFLSvf2FmBCGnJrD+ArNMN2QKLBbs=", + "update_labels.patch": "sha256-22pO7tCUdPKjo4xOasAdrU2N50aHAH2bYAoSkPN4HeU=" + } +} diff --git a/modules/grpc-java/metadata.json b/modules/grpc-java/metadata.json new file mode 100644 index 00000000000..28a45cad92a --- /dev/null +++ b/modules/grpc-java/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/grpc/grpc-java", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:grpc/grpc-java" + ], + "versions": [ + "1.62.2" + ], + "yanked_versions": {} +} From e7b3fad60cdad422f5e0fd15782b3db28602a729 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:26:18 +0000 Subject: [PATCH 50/62] rules_apple@3.4.0 (#1705) --- modules/rules_apple/3.4.0/MODULE.bazel | 31 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_apple/3.4.0/presubmit.yml | 12 +++++++ modules/rules_apple/3.4.0/source.json | 9 ++++++ modules/rules_apple/metadata.json | 3 +- 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 modules/rules_apple/3.4.0/MODULE.bazel create mode 100644 modules/rules_apple/3.4.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_apple/3.4.0/presubmit.yml create mode 100644 modules/rules_apple/3.4.0/source.json diff --git a/modules/rules_apple/3.4.0/MODULE.bazel b/modules/rules_apple/3.4.0/MODULE.bazel new file mode 100644 index 00000000000..c2c67868612 --- /dev/null +++ b/modules/rules_apple/3.4.0/MODULE.bazel @@ -0,0 +1,31 @@ +module( + name = "rules_apple", + version = "3.4.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + repo_name = "build_bazel_rules_apple", +) + +bazel_dep(name = "apple_support", version = "1.14.0", repo_name = "build_bazel_apple_support") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_swift", version = "1.17.0", repo_name = "build_bazel_rules_swift") + +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +non_module_deps = use_extension("//apple:extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "xctestrunner", +) + +provisioning_profile_repository = use_extension("//apple:apple.bzl", "provisioning_profile_repository_extension") +use_repo(provisioning_profile_repository, "local_provisioning_profiles") + +apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension") +use_repo(apple_cc_configure, "local_config_apple_cc") diff --git a/modules/rules_apple/3.4.0/patches/module_dot_bazel_version.patch b/modules/rules_apple/3.4.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..507c7a4ce10 --- /dev/null +++ b/modules/rules_apple/3.4.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_apple", +- version = "0", ++ version = "3.4.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + repo_name = "build_bazel_rules_apple", + ) diff --git a/modules/rules_apple/3.4.0/presubmit.yml b/modules/rules_apple/3.4.0/presubmit.yml new file mode 100644 index 00000000000..d367baad8a4 --- /dev/null +++ b/modules/rules_apple/3.4.0/presubmit.yml @@ -0,0 +1,12 @@ +matrix: + bazel: ["7.x", "rolling"] + +tasks: + verify_targets: + name: Verify build targets + platform: macos_arm64 + bazel: ${{ bazel }} + test_targets: + - '@rules_apple//examples/macos/CommandLine:ExamplesBuildTest' + test_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_apple/3.4.0/source.json b/modules/rules_apple/3.4.0/source.json new file mode 100644 index 00000000000..102be6ccc2e --- /dev/null +++ b/modules/rules_apple/3.4.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-7UMqLVkpRSdIvVOk/55lLyMyKD6z1/+tbLY6q5agYwE=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_apple/releases/download/3.4.0/rules_apple.3.4.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-fW0+D+y0075SOfLjvKBA7IA0LxgeZHIWw4yxTEc2aMg=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_apple/metadata.json b/modules/rules_apple/metadata.json index 52494906865..900f51dda56 100644 --- a/modules/rules_apple/metadata.json +++ b/modules/rules_apple/metadata.json @@ -46,7 +46,8 @@ "3.1.1", "3.2.0", "3.2.1", - "3.3.0" + "3.3.0", + "3.4.0" ], "yanked_versions": {} } From 86f43d2881cceb72d3c4ed9ed0e3fa83a816ebe1 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Thu, 28 Mar 2024 11:59:32 -0400 Subject: [PATCH 51/62] Add libarchive@3.7.2 (#1662) --- modules/libarchive/3.7.2/MODULE.bazel | 9 + .../3.7.2/patches/build_with_bazel.patch | 300 ++++++++++++++++++ modules/libarchive/3.7.2/presubmit.yml | 17 + modules/libarchive/3.7.2/source.json | 9 + modules/libarchive/metadata.json | 15 + 5 files changed, 350 insertions(+) create mode 100644 modules/libarchive/3.7.2/MODULE.bazel create mode 100644 modules/libarchive/3.7.2/patches/build_with_bazel.patch create mode 100644 modules/libarchive/3.7.2/presubmit.yml create mode 100644 modules/libarchive/3.7.2/source.json create mode 100644 modules/libarchive/metadata.json diff --git a/modules/libarchive/3.7.2/MODULE.bazel b/modules/libarchive/3.7.2/MODULE.bazel new file mode 100644 index 00000000000..8045919abca --- /dev/null +++ b/modules/libarchive/3.7.2/MODULE.bazel @@ -0,0 +1,9 @@ +module( + name = "libarchive", + version = "3.7.2", + compatibility_level = 1, +) +bazel_dep(name = "platforms", version = "0.0.9") +bazel_dep(name = "xz", version = "5.4.5.bcr.1") +bazel_dep(name = "zlib", version = "1.3.1") +bazel_dep(name = "zstd", version = "1.5.5.bcr.1") diff --git a/modules/libarchive/3.7.2/patches/build_with_bazel.patch b/modules/libarchive/3.7.2/patches/build_with_bazel.patch new file mode 100644 index 00000000000..7e8fe45c2f5 --- /dev/null +++ b/modules/libarchive/3.7.2/patches/build_with_bazel.patch @@ -0,0 +1,300 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 00000000..a8f0858c +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,37 @@ ++cc_library( ++ name = "config_h", ++ hdrs = ["xplat_config.h"], ++ defines = select({ ++ "@platforms//os:linux": [ ++ "HAVE_PATHS_H", ++ "HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC", ++ ], ++ "//conditions:default": [], ++ }) + select({ ++ "@platforms//os:windows": [ ++ "gid_t=short", ++ "id_t=\"unsigned long\"", ++ "uid_t=short", ++ ], ++ "//conditions:default": [ ++ "HAVE_SYS_TYPES_H", ++ ], ++ }) + select({ ++ "@platforms//os:windows": ["HAVE_WINCRYPT_H"], ++ "//conditions:default": [], ++ }) + select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": [ ++ "HAVE_FORK", ++ "HAVE_PIPE", ++ "HAVE_POLL", ++ "HAVE_POLL_H", ++ "HAVE_PWD_H", ++ "HAVE_SYS_WAIT_H", ++ ], ++ }) + select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": ["HAVE_GRP_H"], ++ }), ++ visibility = ["//visibility:public"], ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 00000000..402b6f96 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,9 @@ ++module( ++ name = "libarchive", ++ version = "3.7.2", ++ compatibility_level = 1, ++) ++bazel_dep(name = "platforms", version = "0.0.9") ++bazel_dep(name = "xz", version = "5.4.5.bcr.1") ++bazel_dep(name = "zlib", version = "1.3.1") ++bazel_dep(name = "zstd", version = "1.5.5.bcr.1") +diff --git a/WORKSPACE b/WORKSPACE +new file mode 100644 +index 00000000..e69de29b +diff --git a/libarchive/BUILD.bazel b/libarchive/BUILD.bazel +new file mode 100644 +index 00000000..85b9b37b +--- /dev/null ++++ b/libarchive/BUILD.bazel +@@ -0,0 +1,41 @@ ++PUBLIC_HEADERS = [ ++ "archive.h", ++ "archive_entry.h", ++] ++ ++WINDOWS_SRCS = glob(["*_windows.*"]) + ["archive_entry_copy_bhfi.c"] ++ ++cc_library( ++ name = "libarchive", ++ srcs = glob( ++ [ ++ "*.c", ++ "*.h", ++ ], ++ exclude = PUBLIC_HEADERS + WINDOWS_SRCS + [ ++ "archive_disk_acl_*.c", ++ ], ++ ) + select({ ++ "@platforms//os:windows": WINDOWS_SRCS, ++ "@platforms//os:macos": ["archive_disk_acl_darwin.c"], ++ "@platforms//os:linux": ["archive_disk_acl_linux.c"], ++ "//conditions:default": [], ++ }), ++ hdrs = PUBLIC_HEADERS, ++ local_defines = [ ++ "HAVE_CONFIG_H", ++ # ZSTD support ++ "HAVE_ZSTD_H", ++ "HAVE_LIBZSTD", ++ "HAVE_LIBZSTD_COMPRESSOR", ++ # LZMA support ++ "HAVE_LZMA_H", ++ "HAVE_LZMA_STREAM_ENCODER_MT", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ "@xz//:lzma", ++ "@zstd", ++ ], ++) +diff --git a/libarchive/archive_hmac_private.h b/libarchive/archive_hmac_private.h +index d0fda7f9..e41c944d 100644 +--- a/libarchive/archive_hmac_private.h ++++ b/libarchive/archive_hmac_private.h +@@ -40,12 +40,13 @@ + */ + int __libarchive_hmac_build_hack(void); + +-#ifdef __APPLE__ +-# include +-# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 +-# define ARCHIVE_HMAC_USE_Apple_CommonCrypto +-# endif +-#endif ++// Don't compile against CommonCrypto. ++// #ifdef __APPLE__ ++// # include ++// # if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 ++// # define ARCHIVE_HMAC_USE_Apple_CommonCrypto ++// # endif ++// #endif + + #ifdef ARCHIVE_HMAC_USE_Apple_CommonCrypto + #include +diff --git a/libarchive/config.h b/libarchive/config.h +new file mode 100644 +index 00000000..1bb06802 +--- /dev/null ++++ b/libarchive/config.h +@@ -0,0 +1,13 @@ ++ ++#ifndef LIBARCHIVE_CONFIG_H ++#define LIBARCHIVE_CONFIG_H ++ ++#include ++#include ++ ++#include "xplat_config.h" ++ ++#define __LIBARCHIVE_CONFIG_H_INCLUDED 1 ++ ++#endif // LIBARCHIVE_CONFIG_H ++ +diff --git a/libarchive_fe/BUILD.bazel b/libarchive_fe/BUILD.bazel +new file mode 100644 +index 00000000..51a75a64 +--- /dev/null ++++ b/libarchive_fe/BUILD.bazel +@@ -0,0 +1,9 @@ ++cc_library( ++ name = "libarchive_fe", ++ srcs = glob(["*.c"]), ++ hdrs = glob(["*.h"]), ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ ], ++) +diff --git a/libarchive_fe/config.h b/libarchive_fe/config.h +new file mode 100644 +index 00000000..1f484ee0 +--- /dev/null ++++ b/libarchive_fe/config.h +@@ -0,0 +1,6 @@ ++#ifndef LIBARCHIVE_FE_CONFIG_H ++#define LIBARCHIVE_FE_CONFIG_H ++ ++#include "xplat_config.h" ++ ++#endif // LIBARCHIVE_FE_CONFIG_H +\ No newline at end of file +diff --git a/tar/BUILD.bazel b/tar/BUILD.bazel +new file mode 100644 +index 00000000..39fc5330 +--- /dev/null ++++ b/tar/BUILD.bazel +@@ -0,0 +1,33 @@ ++cc_binary( ++ name = "tar", ++ srcs = select({ ++ "@platforms//os:windows": glob([ ++ "*.c", ++ "*.h", ++ ]), ++ "//conditions:default": glob( ++ [ ++ "*.c", ++ "*.h", ++ ], ++ exclude = ["bsdtar_windows.*"], ++ ), ++ }), ++ copts = [ ++ "-Wno-implicit-function-declaration", ++ "-Wno-int-conversion", ++ ], ++ defines = [ ++ 'BSDTAR_VERSION_STRING=\\"3.7.2\\"', ++ ], ++ includes = [ ++ "../libarchive", ++ "../libarchive_fe", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) +diff --git a/tar/bsdtar.c b/tar/bsdtar.c +index 64115198..c6698a08 100644 +--- a/tar/bsdtar.c ++++ b/tar/bsdtar.c +@@ -196,7 +196,7 @@ main(int argc, char **argv) + #endif + + /* Set lafe_progname before calling lafe_warnc. */ +- lafe_setprogname(*argv, "bsdtar"); ++ lafe_setprogname("tar", "bsdtar"); + + #if HAVE_SETLOCALE + if (setlocale(LC_ALL, "") == NULL) +@@ -1070,7 +1070,7 @@ static const char *long_help_msg = + " -c Create -r Add/Replace -t List -u Update -x Extract\n" + "Common Options:\n" + " -b # Use # 512-byte records per I/O block\n" +- " -f Location of archive (default " _PATH_DEFTAPE ")\n" ++ " -f Location of archive\n" + " -v Verbose\n" + " -w Interactive\n" + "Create: %p -c [options] [ | | @ | -C ]\n" +diff --git a/tar/config.h b/tar/config.h +new file mode 100644 +index 00000000..f0a39c7e +--- /dev/null ++++ b/tar/config.h +@@ -0,0 +1,7 @@ ++#ifndef TAR_CONFIG_H ++#define TAR_CONFIG_H ++ ++#include "xplat_config.h" ++ ++#endif // TAR_CONFIG_H ++ +diff --git a/xplat_config.h b/xplat_config.h +new file mode 100644 +index 00000000..7598c496 +--- /dev/null ++++ b/xplat_config.h +@@ -0,0 +1,41 @@ ++#ifndef XPLAT_CONFIG_H ++#define XPLAT_CONFIG_H ++ ++#define HAVE_DECL_SIZE_MAX 1 ++#define HAVE_DECL_SSIZE_MAX 1 ++#define HAVE_DECL_UINT32_MAX 1 ++#define HAVE_DECL_INT32_MAX 1 ++#define HAVE_DECL_INT32_MIN 1 ++#define HAVE_DECL_UINT64_MAX 1 ++#define HAVE_DECL_INT64_MAX 1 ++#define HAVE_DECL_INT64_MIN 1 ++#define HAVE_DECL_UINTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MIN 1 ++ ++#define HAVE_DIRENT_H 1 ++#define HAVE_ERRNO_H 1 ++#define HAVE_FCHDIR 1 ++#define HAVE_FCNTL 1 ++#define HAVE_FCNTL_H 1 ++#define HAVE_INTTYPES_H 1 ++#define HAVE_LIMITS_H 1 ++#define HAVE_PTHREAD_H 1 ++#define HAVE_STDARG_H 1 ++#define HAVE_STDLIB_H 1 ++#define HAVE_STDINT_H 1 ++#define HAVE_STRING_H 1 ++#define HAVE_SYS_STAT_H 1 ++#define HAVE_SYS_TIME_H 1 ++#define HAVE_TIME_H ++#define HAVE_UINTMAX_T 1 ++#define HAVE_UNISTD_H 1 ++#define HAVE_UNSIGNED_LONG_LONG 1 ++#define HAVE_WCTYPE_H 1 ++#define HAVE_WCSCPY 1 ++#define HAVE_WCSLEN 1 ++ ++#define MAC_OS_X_VERSION_MIN_REQUIRED 1060 ++#define MAC_OS_X_VERSION_MAX_ALLOWED 1070 ++ ++#endif // XPLAT_CONFIG_H diff --git a/modules/libarchive/3.7.2/presubmit.yml b/modules/libarchive/3.7.2/presubmit.yml new file mode 100644 index 00000000000..272aa42a7b4 --- /dev/null +++ b/modules/libarchive/3.7.2/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2004_arm64 + - ubuntu2204 + - macos + - macos_arm64 + bazel: [6.x, 7.x, rolling] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@libarchive//tar' diff --git a/modules/libarchive/3.7.2/source.json b/modules/libarchive/3.7.2/source.json new file mode 100644 index 00000000000..e9f989bc0b2 --- /dev/null +++ b/modules/libarchive/3.7.2/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://www.libarchive.org/downloads/libarchive-3.7.2.tar.xz", + "integrity": "sha256-BDV2YeZxe2lBaCzeAq10GuSBnGeiYFk9+yQxhhslGss=", + "strip_prefix": "libarchive-3.7.2", + "patches": { + "build_with_bazel.patch": "sha256-fVxd36wUvLVFUv85ebJiQ5jaFhKksVMm6x34kgdy7xs=" + }, + "patch_strip": 1 +} diff --git a/modules/libarchive/metadata.json b/modules/libarchive/metadata.json new file mode 100644 index 00000000000..61280d1e4e6 --- /dev/null +++ b/modules/libarchive/metadata.json @@ -0,0 +1,15 @@ +{ + "homepage": "https://www.libarchive.org/", + "maintainers": [ + { + "email": "dzbarsky@gmail.com", + "github": "dzbarsky", + "name": "David Zbarsky" + } + ], + "repository": [], + "versions": [ + "3.7.2" + ], + "yanked_versions": {} +} From a0a67c5a3e4fc3a13ddedd80eb343c4daf296a83 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 17:30:40 +0000 Subject: [PATCH 52/62] buildozer@7.1.0 (#1707) Release: https://github.com/fmeum/buildozer/releases/tag/v7.1.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Fabian Meumertzheim --- modules/buildozer/7.1.0/MODULE.bazel | 20 ++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++++++ modules/buildozer/7.1.0/presubmit.yml | 24 +++++++++++++++++++ modules/buildozer/7.1.0/source.json | 9 +++++++ modules/buildozer/metadata.json | 3 ++- 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 modules/buildozer/7.1.0/MODULE.bazel create mode 100644 modules/buildozer/7.1.0/patches/module_dot_bazel_version.patch create mode 100644 modules/buildozer/7.1.0/presubmit.yml create mode 100644 modules/buildozer/7.1.0/source.json diff --git a/modules/buildozer/7.1.0/MODULE.bazel b/modules/buildozer/7.1.0/MODULE.bazel new file mode 100644 index 00000000000..81a7da31a9d --- /dev/null +++ b/modules/buildozer/7.1.0/MODULE.bazel @@ -0,0 +1,20 @@ +module( + name = "buildozer", + version = "7.1.0", + bazel_compatibility = [">=6.2.0"], +) + +buildozer_binary = use_extension("//:buildozer_binary.bzl", "buildozer_binary") +buildozer_binary.buildozer( + sha256 = { + "darwin-amd64": "d2688d3b4b0ee5c6f14d30201cdbefa91d9dcaeb6066734bc3ff3739f0d27ee2", + "darwin-arm64": "07b48894c7ec4f144df90d19b2a7eccd8dd70268e5c3fdf23967529b4e10dfa2", + "linux-amd64": "d043fa1ca7822832dcb157e2b3a8cd24a21e7aeafb2b4501c28908ac6f8be561", + "linux-arm64": "655d3b268f42b7370dc82f22b5c36974409ff2032d18ac94d8b1d56583ef896d", + "windows-amd64": "0665eb97b10d78ff80d06c8df51a4b6e8484be79716687cecb96a89f3a535b30", + }, + version = "7.1.0", +) +use_repo(buildozer_binary, "buildozer_binary") + +bazel_dep(name = "platforms", version = "0.0.7", dev_dependency = True) diff --git a/modules/buildozer/7.1.0/patches/module_dot_bazel_version.patch b/modules/buildozer/7.1.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..fae64e53d5a --- /dev/null +++ b/modules/buildozer/7.1.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "buildozer", +- version = "0.0.0", ++ version = "7.1.0", + bazel_compatibility = [">=6.2.0"], + ) + + buildozer_binary = use_extension("//:buildozer_binary.bzl", "buildozer_binary") diff --git a/modules/buildozer/7.1.0/presubmit.yml b/modules/buildozer/7.1.0/presubmit.yml new file mode 100644 index 00000000000..8d45d458ee8 --- /dev/null +++ b/modules/buildozer/7.1.0/presubmit.yml @@ -0,0 +1,24 @@ +bcr_test_module: + module_path: tests/bcr + matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: [6.x, 7.x] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + batch_commands: + # Workaround for https://github.com/bazelbuild/bazel/issues/3268 + - echo bazel-bcr/>> .bazelignore + run_targets: + - //:run_buildozer + build_targets: + - //... + test_targets: + - //... diff --git a/modules/buildozer/7.1.0/source.json b/modules/buildozer/7.1.0/source.json new file mode 100644 index 00000000000..22687669be0 --- /dev/null +++ b/modules/buildozer/7.1.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-0Jr7rm5zuD4BJVCsVYTCA3vfBlwOXjDoaOIi0pfdUIU=", + "strip_prefix": "buildozer-7.1.0", + "url": "https://github.com/fmeum/buildozer/releases/download/v7.1.0/buildozer-v7.1.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-94F4yBMt8TejwC+uojt/E7GCp7VPcXVxFnHfxMXv2MU=" + }, + "patch_strip": 1 +} diff --git a/modules/buildozer/metadata.json b/modules/buildozer/metadata.json index db39f4d6f7e..5e1a179fa13 100644 --- a/modules/buildozer/metadata.json +++ b/modules/buildozer/metadata.json @@ -12,7 +12,8 @@ ], "versions": [ "6.4.0", - "6.4.0.2" + "6.4.0.2", + "7.1.0" ], "yanked_versions": {} } From 9712dcc44ba9ecd6d4065be951094eca53b02cfe Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 28 Mar 2024 11:32:21 -0700 Subject: [PATCH 53/62] Add copybara (#1703) Fixes: https://github.com/bazelbuild/bazel-central-registry/issues/1368 --- .../0.0.0-20240326-6485af6/MODULE.bazel | 191 +++++++++++++ .../patches/add_module_bazel.patch | 197 +++++++++++++ .../patches/update_labels.patch | 270 ++++++++++++++++++ .../patches/update_repos.patch | 109 +++++++ .../0.0.0-20240326-6485af6/presubmit.yml | 13 + .../0.0.0-20240326-6485af6/source.json | 11 + modules/copybara/metadata.json | 16 ++ 7 files changed, 807 insertions(+) create mode 100644 modules/copybara/0.0.0-20240326-6485af6/MODULE.bazel create mode 100644 modules/copybara/0.0.0-20240326-6485af6/patches/add_module_bazel.patch create mode 100644 modules/copybara/0.0.0-20240326-6485af6/patches/update_labels.patch create mode 100644 modules/copybara/0.0.0-20240326-6485af6/patches/update_repos.patch create mode 100644 modules/copybara/0.0.0-20240326-6485af6/presubmit.yml create mode 100644 modules/copybara/0.0.0-20240326-6485af6/source.json create mode 100644 modules/copybara/metadata.json diff --git a/modules/copybara/0.0.0-20240326-6485af6/MODULE.bazel b/modules/copybara/0.0.0-20240326-6485af6/MODULE.bazel new file mode 100644 index 00000000000..8283c06d9ef --- /dev/null +++ b/modules/copybara/0.0.0-20240326-6485af6/MODULE.bazel @@ -0,0 +1,191 @@ +module( + name = "copybara", + version = "0.0.0-20240326-6485af6", + compatibility_level = 0, +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_java", version = "7.5.0") +bazel_dep(name = "rules_jvm_external", version = "6.0") +bazel_dep(name = "rules_license", version = "0.0.8") +bazel_dep(name = "rules_pkg", version = "0.10.1") +bazel_dep(name = "rules_python", version = "0.31.0") + +non_module_deps = use_extension("//:repositories.bzl", "non_module_deps") +use_repo(non_module_deps, "JCommander", "io_bazel") + +bazel_dep(name = "buildozer", version = "6.4.0.2") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0") + +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") +maven.install( + name = "copybara_maven", + artifacts = [ + "com.github.stephenc.jcip:jcip-annotations:1.0-1", + "com.google.auto.service:auto-service-annotations:1.1.1", + "com.google.auto.service:auto-service:1.1.1", + "com.google.auto.value:auto-value-annotations:1.10.2", + "com.google.auto.value:auto-value:1.10.2", + "com.google.auto:auto-common:1.2.2", + "com.google.code.findbugs:jsr305:3.0.2", + "com.google.code.gson:gson:2.10.1", + "com.google.errorprone:error_prone_type_annotations:2.20.0", + "com.google.flogger:flogger-system-backend:0.7.4", + "com.google.flogger:flogger:0.7.4", + "com.google.flogger:google-extensions:0.7.4", + "com.google.guava:failureaccess:1.0.1", + "com.google.guava:guava-testlib:33.0.0-jre", + "com.google.guava:guava:33.0.0-jre", + "com.google.http-client:google-http-client-gson:1.43.3", + "com.google.http-client:google-http-client-test:1.43.3", + "com.google.http-client:google-http-client:1.43.3", + "com.google.jimfs:jimfs:1.2", + "com.google.re2j:re2j:1.7", + "com.google.testparameterinjector:test-parameter-injector:1.8", + "com.google.truth.extensions:truth-java8-extension:1.3.0", + "com.google.truth:truth:1.3.0", + "com.googlecode.java-diff-utils:diffutils:1.3.0", + "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", + "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", + "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", + "com.sun.mail:javax.mail:1.5.6", + "commons-codec:commons-codec:1.16.0", + "junit:junit:4.13.2", + "net.bytebuddy:byte-buddy-agent:1.14.5", + "net.bytebuddy:byte-buddy:1.14.5", + "org.apache.commons:commons-compress:1.25.0", + "org.apache.tomcat:tomcat-annotations-api:8.0.5", + "org.apache.velocity:velocity:1.7", + "org.jsoup:jsoup:1.16.1", + "org.mockito:mockito-core:4.5.1", + "org.objenesis:objenesis:1.0", + "org.tomlj:tomlj:1.1.1", + ], + fail_if_repin_required = True, + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], +) +use_repo(maven, "copybara_maven") + +# Copied from bazelbuild/bazel/MODULE.bazel, has to be kept in sync +maven.install( + artifacts = [ + "com.beust:jcommander:1.82", + "com.github.ben-manes.caffeine:caffeine:3.0.5", + "com.github.kevinstern:software-and-algorithms:1.0", + "com.github.stephenc.jcip:jcip-annotations:1.0-1", + "com.google.api-client:google-api-client-gson:1.35.2", + "com.google.api-client:google-api-client:1.35.2", + "com.google.auth:google-auth-library-credentials:1.6.0", + "com.google.auth:google-auth-library-oauth2-http:1.6.0", + "com.google.auto.service:auto-service-annotations:1.0.1", + "com.google.auto.service:auto-service:1.0", + "com.google.auto.value:auto-value-annotations:1.9", + "com.google.auto.value:auto-value:1.8.2", + "com.google.auto:auto-common:1.2.1", + "com.google.code.findbugs:jsr305:3.0.2", + "com.google.code.gson:gson:2.9.0", + "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0", + "com.google.errorprone:error_prone_annotation:2.23.0", + "com.google.errorprone:error_prone_annotations:2.23.0", + "com.google.errorprone:error_prone_check_api:2.23.0", + "com.google.errorprone:error_prone_core:2.23.0", + "com.google.errorprone:error_prone_type_annotations:2.23.0", + "com.google.flogger:flogger-system-backend:0.5.1", + "com.google.flogger:flogger:0.5.1", + "com.google.flogger:google-extensions:0.5.1", + "com.google.guava:failureaccess:1.0.1", + "com.google.guava:guava:33.0.0-jre", + "com.google.http-client:google-http-client-gson:1.42.0", + "com.google.http-client:google-http-client:1.42.0", + "com.google.j2objc:j2objc-annotations:1.3", + "com.google.turbine:turbine:0.5.0", + "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", + "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", + "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", + "com.squareup:javapoet:1.12.0", + "commons-collections:commons-collections:3.2.2", + "commons-lang:commons-lang:2.6", + "io.github.java-diff-utils:java-diff-utils:4.12", + "io.grpc:grpc-api:1.48.1", + "io.grpc:grpc-auth:1.48.1", + "io.grpc:grpc-context:1.48.1", + "io.grpc:grpc-core:1.48.1", + "io.grpc:grpc-netty:1.48.1", + "io.grpc:grpc-protobuf-lite:1.48.1", + "io.grpc:grpc-protobuf:1.48.1", + "io.grpc:grpc-stub:1.48.1", + "io.netty:netty-buffer:4.1.93.Final", + "io.netty:netty-codec-http2:4.1.93.Final", + "io.netty:netty-codec-http:4.1.93.Final", + "io.netty:netty-codec:4.1.93.Final", + "io.netty:netty-common:4.1.93.Final", + "io.netty:netty-handler-proxy:4.1.93.Final", + "io.netty:netty-handler:4.1.93.Final", + "io.netty:netty-resolver-dns:4.1.93.Final", + "io.netty:netty-resolver:4.1.93.Final", + "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final", + "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final", + "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final", + "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final", + "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final", + "io.netty:netty-tcnative-classes:2.0.56.Final", + "io.netty:netty-transport-classes-epoll:4.1.93.Final", + "io.netty:netty-transport-classes-kqueue:4.1.93.Final", + "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.93.Final", + "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.93.Final", + "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.93.Final", + "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.93.Final", + "io.netty:netty-transport-native-unix-common:4.1.93.Final", + "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.93.Final", + "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.93.Final", + "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.93.Final", + "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.93.Final", + "io.netty:netty-transport:4.1.93.Final", + "io.reactivex.rxjava3:rxjava:3.1.2", + "it.unimi.dsi:fastutil:7.2.1", + "javax.activation:javax.activation-api:1.2.0", + "javax.annotation:javax.annotation-api:1.3.2", + "javax.inject:javax.inject:1", + "net.bytebuddy:byte-buddy-agent:1.14.5", + "net.bytebuddy:byte-buddy:1.14.5", + "org.apache.commons:commons-compress:1.20", + "org.apache.commons:commons-pool2:2.8.0", + "org.apache.tomcat:tomcat-annotations-api:8.0.5", + "org.apache.velocity:velocity:1.7", + "org.checkerframework:checker-qual:3.19.0", + "org.ow2.asm:asm-analysis:9.2", + "org.ow2.asm:asm-commons:9.2", + "org.ow2.asm:asm-tree:9.2", + "org.ow2.asm:asm-util:9.2", + "org.ow2.asm:asm:9.2", + "org.pcollections:pcollections:3.1.4", + "org.threeten:threeten-extra:1.5.0", + "org.tukaani:xz:1.9", + "org.yaml:snakeyaml:1.28", + "tools.profiler:async-profiler:3.0", + # The following jars are for testing. + # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner, + # and hamcrest is a dependency of junit. + "junit:junit:4.13.2", + "org.hamcrest:hamcrest-core:1.3", + ], + excluded_artifacts = [ + # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit + # require java.security.jgss module to be embedded in the Bazel binary. + "org.apache.httpcomponents:httpclient", + "org.apache.httpcomponents:httpcore", + "org.eclipse.jgit:org.eclipse.jgit", + # We build protobuf Java library from source, exclude protobuf jars to be safe. + "com.google.protobuf:protobuf-java", + "com.google.protobuf:protobuf-javalite", + ], + repositories = [ + "https://repo1.maven.org/maven2", + ], + strict_visibility = True, +) +use_repo(maven, "maven") diff --git a/modules/copybara/0.0.0-20240326-6485af6/patches/add_module_bazel.patch b/modules/copybara/0.0.0-20240326-6485af6/patches/add_module_bazel.patch new file mode 100644 index 00000000000..34e1520e5de --- /dev/null +++ b/modules/copybara/0.0.0-20240326-6485af6/patches/add_module_bazel.patch @@ -0,0 +1,197 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 00000000..8283c06d +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,191 @@ ++module( ++ name = "copybara", ++ version = "0.0.0-20240326-6485af6", ++ compatibility_level = 0, ++) ++ ++bazel_dep(name = "bazel_skylib", version = "1.5.0") ++bazel_dep(name = "platforms", version = "0.0.8") ++bazel_dep(name = "rules_java", version = "7.5.0") ++bazel_dep(name = "rules_jvm_external", version = "6.0") ++bazel_dep(name = "rules_license", version = "0.0.8") ++bazel_dep(name = "rules_pkg", version = "0.10.1") ++bazel_dep(name = "rules_python", version = "0.31.0") ++ ++non_module_deps = use_extension("//:repositories.bzl", "non_module_deps") ++use_repo(non_module_deps, "JCommander", "io_bazel") ++ ++bazel_dep(name = "buildozer", version = "6.4.0.2") ++bazel_dep(name = "buildifier_prebuilt", version = "6.4.0") ++ ++maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") ++maven.install( ++ name = "copybara_maven", ++ artifacts = [ ++ "com.github.stephenc.jcip:jcip-annotations:1.0-1", ++ "com.google.auto.service:auto-service-annotations:1.1.1", ++ "com.google.auto.service:auto-service:1.1.1", ++ "com.google.auto.value:auto-value-annotations:1.10.2", ++ "com.google.auto.value:auto-value:1.10.2", ++ "com.google.auto:auto-common:1.2.2", ++ "com.google.code.findbugs:jsr305:3.0.2", ++ "com.google.code.gson:gson:2.10.1", ++ "com.google.errorprone:error_prone_type_annotations:2.20.0", ++ "com.google.flogger:flogger-system-backend:0.7.4", ++ "com.google.flogger:flogger:0.7.4", ++ "com.google.flogger:google-extensions:0.7.4", ++ "com.google.guava:failureaccess:1.0.1", ++ "com.google.guava:guava-testlib:33.0.0-jre", ++ "com.google.guava:guava:33.0.0-jre", ++ "com.google.http-client:google-http-client-gson:1.43.3", ++ "com.google.http-client:google-http-client-test:1.43.3", ++ "com.google.http-client:google-http-client:1.43.3", ++ "com.google.jimfs:jimfs:1.2", ++ "com.google.re2j:re2j:1.7", ++ "com.google.testparameterinjector:test-parameter-injector:1.8", ++ "com.google.truth.extensions:truth-java8-extension:1.3.0", ++ "com.google.truth:truth:1.3.0", ++ "com.googlecode.java-diff-utils:diffutils:1.3.0", ++ "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", ++ "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", ++ "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", ++ "com.sun.mail:javax.mail:1.5.6", ++ "commons-codec:commons-codec:1.16.0", ++ "junit:junit:4.13.2", ++ "net.bytebuddy:byte-buddy-agent:1.14.5", ++ "net.bytebuddy:byte-buddy:1.14.5", ++ "org.apache.commons:commons-compress:1.25.0", ++ "org.apache.tomcat:tomcat-annotations-api:8.0.5", ++ "org.apache.velocity:velocity:1.7", ++ "org.jsoup:jsoup:1.16.1", ++ "org.mockito:mockito-core:4.5.1", ++ "org.objenesis:objenesis:1.0", ++ "org.tomlj:tomlj:1.1.1", ++ ], ++ fail_if_repin_required = True, ++ repositories = [ ++ "https://repo1.maven.org/maven2", ++ "https://maven.google.com", ++ ], ++) ++use_repo(maven, "copybara_maven") ++ ++# Copied from bazelbuild/bazel/MODULE.bazel, has to be kept in sync ++maven.install( ++ artifacts = [ ++ "com.beust:jcommander:1.82", ++ "com.github.ben-manes.caffeine:caffeine:3.0.5", ++ "com.github.kevinstern:software-and-algorithms:1.0", ++ "com.github.stephenc.jcip:jcip-annotations:1.0-1", ++ "com.google.api-client:google-api-client-gson:1.35.2", ++ "com.google.api-client:google-api-client:1.35.2", ++ "com.google.auth:google-auth-library-credentials:1.6.0", ++ "com.google.auth:google-auth-library-oauth2-http:1.6.0", ++ "com.google.auto.service:auto-service-annotations:1.0.1", ++ "com.google.auto.service:auto-service:1.0", ++ "com.google.auto.value:auto-value-annotations:1.9", ++ "com.google.auto.value:auto-value:1.8.2", ++ "com.google.auto:auto-common:1.2.1", ++ "com.google.code.findbugs:jsr305:3.0.2", ++ "com.google.code.gson:gson:2.9.0", ++ "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0", ++ "com.google.errorprone:error_prone_annotation:2.23.0", ++ "com.google.errorprone:error_prone_annotations:2.23.0", ++ "com.google.errorprone:error_prone_check_api:2.23.0", ++ "com.google.errorprone:error_prone_core:2.23.0", ++ "com.google.errorprone:error_prone_type_annotations:2.23.0", ++ "com.google.flogger:flogger-system-backend:0.5.1", ++ "com.google.flogger:flogger:0.5.1", ++ "com.google.flogger:google-extensions:0.5.1", ++ "com.google.guava:failureaccess:1.0.1", ++ "com.google.guava:guava:33.0.0-jre", ++ "com.google.http-client:google-http-client-gson:1.42.0", ++ "com.google.http-client:google-http-client:1.42.0", ++ "com.google.j2objc:j2objc-annotations:1.3", ++ "com.google.turbine:turbine:0.5.0", ++ "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", ++ "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", ++ "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", ++ "com.squareup:javapoet:1.12.0", ++ "commons-collections:commons-collections:3.2.2", ++ "commons-lang:commons-lang:2.6", ++ "io.github.java-diff-utils:java-diff-utils:4.12", ++ "io.grpc:grpc-api:1.48.1", ++ "io.grpc:grpc-auth:1.48.1", ++ "io.grpc:grpc-context:1.48.1", ++ "io.grpc:grpc-core:1.48.1", ++ "io.grpc:grpc-netty:1.48.1", ++ "io.grpc:grpc-protobuf-lite:1.48.1", ++ "io.grpc:grpc-protobuf:1.48.1", ++ "io.grpc:grpc-stub:1.48.1", ++ "io.netty:netty-buffer:4.1.93.Final", ++ "io.netty:netty-codec-http2:4.1.93.Final", ++ "io.netty:netty-codec-http:4.1.93.Final", ++ "io.netty:netty-codec:4.1.93.Final", ++ "io.netty:netty-common:4.1.93.Final", ++ "io.netty:netty-handler-proxy:4.1.93.Final", ++ "io.netty:netty-handler:4.1.93.Final", ++ "io.netty:netty-resolver-dns:4.1.93.Final", ++ "io.netty:netty-resolver:4.1.93.Final", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final", ++ "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final", ++ "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final", ++ "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final", ++ "io.netty:netty-tcnative-classes:2.0.56.Final", ++ "io.netty:netty-transport-classes-epoll:4.1.93.Final", ++ "io.netty:netty-transport-classes-kqueue:4.1.93.Final", ++ "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.93.Final", ++ "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.93.Final", ++ "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.93.Final", ++ "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.93.Final", ++ "io.netty:netty-transport-native-unix-common:4.1.93.Final", ++ "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.93.Final", ++ "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.93.Final", ++ "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.93.Final", ++ "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.93.Final", ++ "io.netty:netty-transport:4.1.93.Final", ++ "io.reactivex.rxjava3:rxjava:3.1.2", ++ "it.unimi.dsi:fastutil:7.2.1", ++ "javax.activation:javax.activation-api:1.2.0", ++ "javax.annotation:javax.annotation-api:1.3.2", ++ "javax.inject:javax.inject:1", ++ "net.bytebuddy:byte-buddy-agent:1.14.5", ++ "net.bytebuddy:byte-buddy:1.14.5", ++ "org.apache.commons:commons-compress:1.20", ++ "org.apache.commons:commons-pool2:2.8.0", ++ "org.apache.tomcat:tomcat-annotations-api:8.0.5", ++ "org.apache.velocity:velocity:1.7", ++ "org.checkerframework:checker-qual:3.19.0", ++ "org.ow2.asm:asm-analysis:9.2", ++ "org.ow2.asm:asm-commons:9.2", ++ "org.ow2.asm:asm-tree:9.2", ++ "org.ow2.asm:asm-util:9.2", ++ "org.ow2.asm:asm:9.2", ++ "org.pcollections:pcollections:3.1.4", ++ "org.threeten:threeten-extra:1.5.0", ++ "org.tukaani:xz:1.9", ++ "org.yaml:snakeyaml:1.28", ++ "tools.profiler:async-profiler:3.0", ++ # The following jars are for testing. ++ # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner, ++ # and hamcrest is a dependency of junit. ++ "junit:junit:4.13.2", ++ "org.hamcrest:hamcrest-core:1.3", ++ ], ++ excluded_artifacts = [ ++ # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit ++ # require java.security.jgss module to be embedded in the Bazel binary. ++ "org.apache.httpcomponents:httpclient", ++ "org.apache.httpcomponents:httpcore", ++ "org.eclipse.jgit:org.eclipse.jgit", ++ # We build protobuf Java library from source, exclude protobuf jars to be safe. ++ "com.google.protobuf:protobuf-java", ++ "com.google.protobuf:protobuf-javalite", ++ ], ++ repositories = [ ++ "https://repo1.maven.org/maven2", ++ ], ++ strict_visibility = True, ++) ++use_repo(maven, "maven") diff --git a/modules/copybara/0.0.0-20240326-6485af6/patches/update_labels.patch b/modules/copybara/0.0.0-20240326-6485af6/patches/update_labels.patch new file mode 100644 index 00000000000..f0f416e5183 --- /dev/null +++ b/modules/copybara/0.0.0-20240326-6485af6/patches/update_labels.patch @@ -0,0 +1,270 @@ +diff --git a/third_party/BUILD b/third_party/BUILD +index b29dbe2d..99771f48 100644 +--- a/third_party/BUILD ++++ b/third_party/BUILD +@@ -15,8 +15,8 @@ package( + java_library( + name = "guava", + exports = [ +- "@maven//:com_google_guava_failureaccess", +- "@maven//:com_google_guava_guava", ++ "@copybara_maven//:com_google_guava_failureaccess", ++ "@copybara_maven//:com_google_guava_guava", + ], + ) + +@@ -24,21 +24,21 @@ java_library( + name = "guava_testlib", + testonly = 1, + exports = [ +- "@maven//:com_google_guava_guava_testlib", ++ "@copybara_maven//:com_google_guava_guava_testlib", + ], + ) + + java_library( + name = "apache_commons_compress", + exports = [ +- "@maven//:org_apache_commons_commons_compress", ++ "@copybara_maven//:org_apache_commons_commons_compress", + ], + ) + + java_library( + name = "autocommon", + exports = [ +- "@maven//:com_google_auto_auto_common", ++ "@copybara_maven//:com_google_auto_auto_common", + ], + ) + +@@ -46,8 +46,8 @@ java_plugin( + name = "autovalue_plugin", + processor_class = "com.google.auto.value.processor.AutoValueProcessor", + deps = [ +- "@maven//:com_google_auto_value_auto_value", +- "@maven//:com_google_auto_value_auto_value_annotations", ++ "@copybara_maven//:com_google_auto_value_auto_value", ++ "@copybara_maven//:com_google_auto_value_auto_value_annotations", + ], + ) + +@@ -59,8 +59,8 @@ java_library( + # TODO(matvore): What to export to give access to @AutoValue annotation + # without depending on the processor at runtime? + exports = [ +- "@maven//:com_google_auto_value_auto_value", +- "@maven//:com_google_auto_value_auto_value_annotations", ++ "@copybara_maven//:com_google_auto_value_auto_value", ++ "@copybara_maven//:com_google_auto_value_auto_value_annotations", + ], + ) + +@@ -74,7 +74,7 @@ java_library( + java_library( + name = "jimfs", + exports = [ +- "@maven//:com_google_jimfs_jimfs", ++ "@copybara_maven//:com_google_jimfs_jimfs", + ], + ) + +@@ -82,7 +82,7 @@ java_library( + name = "junit", + testonly = 1, + exports = [ +- "@maven//:junit_junit", ++ "@copybara_maven//:junit_junit", + ], + ) + +@@ -90,14 +90,14 @@ java_library( + name = "testparameterinjector", + testonly = 1, + exports = [ +- "@maven//:com_google_testparameterinjector_test_parameter_injector", ++ "@copybara_maven//:com_google_testparameterinjector_test_parameter_injector", + ], + ) + + java_library( + name = "re2j", + exports = [ +- "@maven//:com_google_re2j_re2j", ++ "@copybara_maven//:com_google_re2j_re2j", + ], + ) + +@@ -112,16 +112,16 @@ java_library( + name = "truth", + testonly = 1, + exports = [ +- "@maven//:com_google_truth_extensions_truth_java8_extension", +- "@maven//:com_google_truth_truth", +- "@maven//:com_googlecode_java_diff_utils_diffutils", ++ "@copybara_maven//:com_google_truth_extensions_truth_java8_extension", ++ "@copybara_maven//:com_google_truth_truth", ++ "@copybara_maven//:com_googlecode_java_diff_utils_diffutils", + ], + ) + + java_library( + name = "google_code_gson", + exports = [ +- "@maven//:com_google_code_gson_gson", ++ "@copybara_maven//:com_google_code_gson_gson", + ], + ) + +@@ -129,9 +129,9 @@ java_library( + name = "google_http_client", + exports = [ + ":google_code_gson", +- "@maven//:com_google_http_client_google_http_client", +- "@maven//:com_google_http_client_google_http_client_gson", +- "@maven//:commons_codec_commons_codec", ++ "@copybara_maven//:com_google_http_client_google_http_client", ++ "@copybara_maven//:com_google_http_client_google_http_client_gson", ++ "@copybara_maven//:commons_codec_commons_codec", + ], + ) + +@@ -139,7 +139,7 @@ java_library( + name = "google_http_client_test", + testonly = 1, + exports = [ +- "@maven//:com_google_http_client_google_http_client_test", ++ "@copybara_maven//:com_google_http_client_google_http_client_test", + ], + ) + +@@ -147,19 +147,19 @@ java_library( + name = "mockito", + testonly = 1, + exports = [ +- "@maven//:org_mockito_mockito_core", ++ "@copybara_maven//:org_mockito_mockito_core", + ], + runtime_deps = [ +- "@maven//:net_bytebuddy_byte_buddy", +- "@maven//:net_bytebuddy_byte_buddy_agent", +- "@maven//:org_objenesis_objenesis", ++ "@copybara_maven//:net_bytebuddy_byte_buddy", ++ "@copybara_maven//:net_bytebuddy_byte_buddy_agent", ++ "@copybara_maven//:org_objenesis_objenesis", + ], + ) + + java_library( + name = "jsr305", + exports = [ +- "@maven//:com_google_code_findbugs_jsr305", ++ "@copybara_maven//:com_google_code_findbugs_jsr305", + ], + ) + +@@ -176,10 +176,10 @@ java_library( + java_library( + name = "flogger", + exports = [ +- "@maven//:com_google_flogger_flogger", ++ "@copybara_maven//:com_google_flogger_flogger", + ], + runtime_deps = [ +- "@maven//:com_google_flogger_flogger_system_backend", ++ "@copybara_maven//:com_google_flogger_flogger_system_backend", + ], + ) + +@@ -201,28 +201,28 @@ java_library( + java_library( + name = "tomlj", + exports = [ +- "@maven//:org_tomlj_tomlj", ++ "@copybara_maven//:org_tomlj_tomlj", + ], + ) + + java_library( + name = "jsoup", + exports = [ +- "@maven//:org_jsoup_jsoup", ++ "@copybara_maven//:org_jsoup_jsoup", + ], + ) + + java_library( + name = "sun_mail", + exports = [ +- "@maven//:com_sun_mail_javax_mail", ++ "@copybara_maven//:com_sun_mail_javax_mail", + ], + ) + + java_library( + name = "protobuf_lite", + exports = [ +- "@maven//:com_google_protobuf_protobuf_lite", ++ "@copybara_maven//:com_google_protobuf_protobuf_lite", + ], + ) + +diff --git a/third_party/bazel/BUILD b/third_party/bazel/BUILD +index 12b3cf49..0a19ed09 100644 +--- a/third_party/bazel/BUILD ++++ b/third_party/bazel/BUILD +@@ -9,5 +9,5 @@ package( + java_library( + name = "shell", + srcs = glob(["main/**/*.java"]), +- deps = ["@maven//:com_google_guava_guava"], ++ deps = ["@copybara_maven//:com_google_guava_guava"], + ) +diff --git a/java/com/google/copybara/buildozer/testing/BUILD b/java/com/google/copybara/buildozer/testing/BUILD +index b841dd9c..fcfe6305 100644 +--- a/java/com/google/copybara/buildozer/testing/BUILD ++++ b/java/com/google/copybara/buildozer/testing/BUILD +@@ -19,7 +19,7 @@ licenses(["notice"]) + genrule( + name = "normalised_buildozer", + testonly = 1, +- srcs = ["@buildtools//buildozer"], ++ srcs = ["@buildifier_prebuilt//:buildozer"], + outs = ["buildozer"], + cmd = "cp $(SRCS) $@", + ) +@@ -27,7 +27,7 @@ genrule( + genrule( + name = "normalised_buildifier", + testonly = 1, +- srcs = ["@buildtools//buildifier"], ++ srcs = ["@buildifier_prebuilt//:buildifier"], + outs = ["buildifier"], + cmd = "cp $(SRCS) $@", + ) +diff --git a/javatests/com/google/copybara/format/BUILD b/javatests/com/google/copybara/format/BUILD +index 8bb1772e..22d1461e 100644 +--- a/javatests/com/google/copybara/format/BUILD ++++ b/javatests/com/google/copybara/format/BUILD +@@ -21,7 +21,7 @@ licenses(["notice"]) + genrule( + name = "normalised_buildifier", + testonly = 1, +- srcs = ["@buildtools//buildifier"], ++ srcs = ["@buildifier_prebuilt//:buildifier"], + outs = ["buildifier"], + cmd = "cp $(SRCS) $@", + ) +diff --git a/javatests/com/google/copybara/onboard/BUILD b/javatests/com/google/copybara/onboard/BUILD +index ee650260..c55e8f29 100644 +--- a/javatests/com/google/copybara/onboard/BUILD ++++ b/javatests/com/google/copybara/onboard/BUILD +@@ -23,7 +23,7 @@ licenses(["notice"]) + genrule( + name = "normalised_buildifier", + testonly = 1, +- srcs = ["@buildtools//buildifier"], ++ srcs = ["@buildifier_prebuilt//:buildifier"], + outs = ["buildifier"], + cmd = "cp $(SRCS) $@", + ) diff --git a/modules/copybara/0.0.0-20240326-6485af6/patches/update_repos.patch b/modules/copybara/0.0.0-20240326-6485af6/patches/update_repos.patch new file mode 100644 index 00000000000..efb4bb63ec0 --- /dev/null +++ b/modules/copybara/0.0.0-20240326-6485af6/patches/update_repos.patch @@ -0,0 +1,109 @@ +diff --git a/repositories.bzl b/repositories.bzl +index 7912c917..ed04ebc8 100644 +--- a/repositories.bzl ++++ b/repositories.bzl +@@ -15,7 +15,6 @@ + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + load("//third_party:bazel.bzl", "bazel_sha256", "bazel_version") +-load("//third_party:bazel_buildtools.bzl", "buildtools_sha256", "buildtools_version") + load("//third_party:bazel_skylib.bzl", "skylib_sha256", "skylib_version") + + def copybara_repositories(): +@@ -39,27 +38,6 @@ def copybara_repositories(): + # sha256 = RULES_JVM_EXTERNAL_SHA, + strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, + url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, +- patches = ["@io_bazel//third_party:rules_jvm_external_6.0.patch"], +- patch_args = ["-p1"], +- ) +- +- # LICENSE: The Apache Software License, Version 2.0 +- maybe( +- http_archive, +- name = "io_bazel", +- sha256 = bazel_sha256, +- strip_prefix = "bazel-" + bazel_version, +- url = "https://github.com/bazelbuild/bazel/archive/" + bazel_version + ".zip", +- ) +- +- # LICENSE: The Apache Software License, Version 2.0 +- # Buildifier and friends: +- maybe( +- http_archive, +- name = "buildtools", +- sha256 = buildtools_sha256, +- strip_prefix = "buildtools-" + buildtools_version, +- url = "https://github.com/bazelbuild/buildtools/archive/" + buildtools_version + ".zip", + ) + + # LICENSE: The Apache Software License, Version 2.0 +@@ -173,6 +151,33 @@ def copybara_repositories(): + ], + ) + ++ # LICENSE: MIT ++ maybe( ++ http_archive, ++ name = "buildifier_prebuilt", ++ sha256 = "8ada9d88e51ebf5a1fdff37d75ed41d51f5e677cdbeafb0a22dda54747d6e07e", ++ strip_prefix = "buildifier-prebuilt-6.4.0", ++ urls = [ ++ "http://github.com/keith/buildifier-prebuilt/archive/6.4.0.tar.gz", ++ ], ++ ) ++ ++ _non_module_deps(None) ++ ++def _non_module_deps(_): ++ # LICENSE: The Apache Software License, Version 2.0 ++ maybe( ++ http_archive, ++ name = "io_bazel", ++ sha256 = bazel_sha256, ++ strip_prefix = "bazel-" + bazel_version, ++ url = "https://github.com/bazelbuild/bazel/archive/" + bazel_version + ".zip", ++ patch_args = ["-p1"], ++ patches = [ ++ "//third_party/bazel:bazel.patch", ++ ], ++ ) ++ + # LICENSE: The Apache Software License, Version 2.0 + maybe( + http_archive, +@@ -183,3 +188,5 @@ def copybara_repositories(): + ], + build_file = Label("//external/third_party:jcommander.BUILD"), + ) ++ ++non_module_deps = module_extension(implementation = _non_module_deps) +diff --git a/third_party/bazel/bazel.patch b/third_party/bazel/bazel.patch +new file mode 100644 +index 00000000..9ad790ca +--- /dev/null ++++ b/third_party/bazel/bazel.patch +@@ -0,0 +1,23 @@ ++diff --git a/third_party/BUILD b/third_party/BUILD ++index 262577182a..6300c8f25a 100644 ++--- a/third_party/BUILD +++++ b/third_party/BUILD ++@@ -353,15 +353,13 @@ filegroup( ++ # TODO(https://github.com/bazelbuild/bazel/issues/18214): After fixing Guava leak ++ # in test-runner, the guava target can be reverted back to java_library ++-java_import( +++java_library( ++ name = "guava", ++ applicable_licenses = [":guava_license"], ++- jars = [ ++- "@maven//:com_google_guava_guava_file", ++- "@maven//:com_google_guava_failureaccess_file", ++- ], ++ exports = [ ++ ":error_prone_annotations", ++ ":jcip_annotations", ++ ":jsr305", +++ "@maven//:com_google_guava_failureaccess", +++ "@maven//:com_google_guava_guava", ++ ], ++ ) diff --git a/modules/copybara/0.0.0-20240326-6485af6/presubmit.yml b/modules/copybara/0.0.0-20240326-6485af6/presubmit.yml new file mode 100644 index 00000000000..dc56897f22c --- /dev/null +++ b/modules/copybara/0.0.0-20240326-6485af6/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x"] + +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--java_language_version=11" + - "--tool_java_language_version=11" + build_targets: + - "@copybara//java/com/google/copybara:copybara" diff --git a/modules/copybara/0.0.0-20240326-6485af6/source.json b/modules/copybara/0.0.0-20240326-6485af6/source.json new file mode 100644 index 00000000000..9f1791f3c21 --- /dev/null +++ b/modules/copybara/0.0.0-20240326-6485af6/source.json @@ -0,0 +1,11 @@ +{ + "integrity": "sha256-KCQwTlvXFmbrxpkjlpbBiFGqgjVWPDjI7kIrzPVUYo0=", + "strip_prefix": "copybara-6485af6a5c662d5549d2f4d229c239d401132e58", + "url": "https://github.com/google/copybara/archive/6485af6a5c662d5549d2f4d229c239d401132e58.tar.gz", + "patch_strip": 1, + "patches": { + "add_module_bazel.patch": "sha256-vFWdPyr8tW4qvlpoE/f3uKiUwcBL3lNWw6eUafvOvoA=", + "update_labels.patch": "sha256-NgVZLFARwepmslzc13t8NDoZRFv8nxdXqOH9grEr4VM=", + "update_repos.patch": "sha256-l/GcBEsFIYHst3TIG8765eSFxvr3LjzZlWr2W3Xtb9o=" + } +} diff --git a/modules/copybara/metadata.json b/modules/copybara/metadata.json new file mode 100644 index 00000000000..687f5b01c0a --- /dev/null +++ b/modules/copybara/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/google/copybara", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:google/copybara" + ], + "versions": [ + "0.0.0-20240326-6485af6" + ], + "yanked_versions": {} +} From e27117c46aec372af966250d9bdb66863cf36a5a Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 13:01:46 -0700 Subject: [PATCH 54/62] rules_distroless@0.3.0 (#1708) Release: https://github.com/GoogleContainerTools/rules_distroless/releases/tag/v0.3.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_distroless/0.3.0/MODULE.bazel | 26 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++++ modules/rules_distroless/0.3.0/presubmit.yml | 12 +++++++++ modules/rules_distroless/0.3.0/source.json | 9 +++++++ modules/rules_distroless/metadata.json | 3 ++- 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 modules/rules_distroless/0.3.0/MODULE.bazel create mode 100644 modules/rules_distroless/0.3.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_distroless/0.3.0/presubmit.yml create mode 100644 modules/rules_distroless/0.3.0/source.json diff --git a/modules/rules_distroless/0.3.0/MODULE.bazel b/modules/rules_distroless/0.3.0/MODULE.bazel new file mode 100644 index 00000000000..17a9cc8a6b0 --- /dev/null +++ b/modules/rules_distroless/0.3.0/MODULE.bazel @@ -0,0 +1,26 @@ +"Bazel dependencies" + +module( + name = "rules_distroless", + version = "0.3.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "aspect_bazel_lib", version = "2.6.0") +bazel_dep(name = "container_structure_test", version = "1.16.0") +bazel_dep(name = "rules_oci", version = "1.7.4") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains") +use_repo(bazel_lib_toolchains, "yq_darwin_amd64") +use_repo(bazel_lib_toolchains, "yq_darwin_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_amd64") +use_repo(bazel_lib_toolchains, "yq_linux_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_ppc64le") +use_repo(bazel_lib_toolchains, "yq_linux_s390x") +use_repo(bazel_lib_toolchains, "yq_windows_amd64") + +bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) diff --git a/modules/rules_distroless/0.3.0/patches/module_dot_bazel_version.patch b/modules/rules_distroless/0.3.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..d52ff46f4ce --- /dev/null +++ b/modules/rules_distroless/0.3.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "rules_distroless", +- version = "0.0.0", ++ version = "0.3.0", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.5.0") diff --git a/modules/rules_distroless/0.3.0/presubmit.yml b/modules/rules_distroless/0.3.0/presubmit.yml new file mode 100644 index 00000000000..83b72c80366 --- /dev/null +++ b/modules/rules_distroless/0.3.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_distroless/0.3.0/source.json b/modules/rules_distroless/0.3.0/source.json new file mode 100644 index 00000000000..b55b1450a0a --- /dev/null +++ b/modules/rules_distroless/0.3.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-Ju8k3L7+ljDoj+dzIB/0FJeY5OSCvxZsnm3gY8aH5qE=", + "strip_prefix": "rules_distroless-0.3.0", + "url": "https://github.com/GoogleContainerTools/rules_distroless/releases/download/v0.3.0/rules_distroless-v0.3.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-U+/UeE4W3bbbm9mtqkcfCYEtk94Vw1Yx8zK6EvKR9Ho=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_distroless/metadata.json b/modules/rules_distroless/metadata.json index d0bca5d3b3b..b1681021968 100644 --- a/modules/rules_distroless/metadata.json +++ b/modules/rules_distroless/metadata.json @@ -20,7 +20,8 @@ "0.1.3", "0.1.8", "0.2.0", - "0.2.1" + "0.2.1", + "0.3.0" ], "yanked_versions": {} } From 00b1b78f378004d7c83573775f438620d97a7cb6 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:01:06 +0100 Subject: [PATCH 55/62] rules_ios@4.2.1 (#1709) Release: https://github.com/bazel-ios/rules_ios/releases/tag/4.2.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_ios/4.2.1/MODULE.bazel | 107 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++ modules/rules_ios/4.2.1/presubmit.yml | 9 ++ modules/rules_ios/4.2.1/source.json | 9 ++ modules/rules_ios/metadata.json | 3 +- 5 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ios/4.2.1/MODULE.bazel create mode 100644 modules/rules_ios/4.2.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ios/4.2.1/presubmit.yml create mode 100644 modules/rules_ios/4.2.1/source.json diff --git a/modules/rules_ios/4.2.1/MODULE.bazel b/modules/rules_ios/4.2.1/MODULE.bazel new file mode 100644 index 00000000000..49a9110686e --- /dev/null +++ b/modules/rules_ios/4.2.1/MODULE.bazel @@ -0,0 +1,107 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.2.1", + bazel_compatibility = [ + ">=6.0.0", + # Temporarily limit the usage of Bazel 7+ until + # https://github.com/bazel-ios/rules_ios/issues/795 + # is complete. + "<7.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.11.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.1.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.13.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.2.1/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.2.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..da96cf51cda --- /dev/null +++ b/modules/rules_ios/4.2.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.2.1", + bazel_compatibility = [ + ">=6.0.0", + # Temporarily limit the usage of Bazel 7+ until + # https://github.com/bazel-ios/rules_ios/issues/795 diff --git a/modules/rules_ios/4.2.1/presubmit.yml b/modules/rules_ios/4.2.1/presubmit.yml new file mode 100644 index 00000000000..3a425c6ef78 --- /dev/null +++ b/modules/rules_ios/4.2.1/presubmit.yml @@ -0,0 +1,9 @@ +matrix: + bazel: ["6.x"] +tasks: + verify_build_targets: + name: Verify Build targets on macOS + platform: macos_arm64 + bazel: ${{ bazel }} + build_targets: + - "@rules_ios//rules/..." diff --git a/modules/rules_ios/4.2.1/source.json b/modules/rules_ios/4.2.1/source.json new file mode 100644 index 00000000000..a7d4361c68d --- /dev/null +++ b/modules/rules_ios/4.2.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-i3rYJIRLboUx7PU3hqAXHwrJN+ZZtTca7v0kzaLTgt4=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.2.1/rules_ios.4.2.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-klNV1GRn0P3PUTpfjQ4KWwF1zBJR0r37uUIgPxlx9rg=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index 2dabf10c154..c870289c416 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -25,7 +25,8 @@ "3.2.2", "4.0.0", "4.1.0", - "4.2.0" + "4.2.0", + "4.2.1" ], "yanked_versions": {} } From b1d2e0fc7e5de0d50e8dfbac8096526f22913bd6 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Thu, 28 Mar 2024 18:45:43 -0400 Subject: [PATCH 56/62] Libarchive@3.7.2.bcr.1 (#1710) --- modules/libarchive/3.7.2.bcr.1/MODULE.bazel | 11 + .../patches/build_with_bazel.patch | 314 ++++++++++++++++++ .../patches/fix_bzip2_includes.patch | 117 +++++++ modules/libarchive/3.7.2.bcr.1/presubmit.yml | 17 + modules/libarchive/3.7.2.bcr.1/source.json | 10 + modules/libarchive/metadata.json | 3 +- 6 files changed, 471 insertions(+), 1 deletion(-) create mode 100644 modules/libarchive/3.7.2.bcr.1/MODULE.bazel create mode 100644 modules/libarchive/3.7.2.bcr.1/patches/build_with_bazel.patch create mode 100644 modules/libarchive/3.7.2.bcr.1/patches/fix_bzip2_includes.patch create mode 100644 modules/libarchive/3.7.2.bcr.1/presubmit.yml create mode 100644 modules/libarchive/3.7.2.bcr.1/source.json diff --git a/modules/libarchive/3.7.2.bcr.1/MODULE.bazel b/modules/libarchive/3.7.2.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..18d6594cba9 --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.1/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "libarchive", + version = "3.7.2.bcr.1", + compatibility_level = 1, +) +bazel_dep(name = "bzip2", version = "1.0.8") +bazel_dep(name = "lz4", version = "1.9.4") +bazel_dep(name = "platforms", version = "0.0.9") +bazel_dep(name = "xz", version = "5.4.5.bcr.1") +bazel_dep(name = "zlib", version = "1.3.1") +bazel_dep(name = "zstd", version = "1.5.5.bcr.1") diff --git a/modules/libarchive/3.7.2.bcr.1/patches/build_with_bazel.patch b/modules/libarchive/3.7.2.bcr.1/patches/build_with_bazel.patch new file mode 100644 index 00000000000..0fee974216e --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.1/patches/build_with_bazel.patch @@ -0,0 +1,314 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 00000000..4e8176eb +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,38 @@ ++cc_library( ++ name = "config_h", ++ hdrs = ["xplat_config.h"], ++ defines = select({ ++ "@platforms//os:linux": [ ++ "HAVE_PATHS_H", ++ "HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC", ++ ], ++ "//conditions:default": [], ++ }) + select({ ++ "@platforms//os:windows": [ ++ "gid_t=short", ++ "id_t=\"unsigned long\"", ++ "uid_t=short", ++ ], ++ "//conditions:default": [ ++ "HAVE_SYS_TYPES_H", ++ ], ++ }) + select({ ++ "@platforms//os:windows": ["HAVE_WINCRYPT_H"], ++ "//conditions:default": [], ++ }) + select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": [ ++ "HAVE_FORK", ++ "HAVE_PIPE", ++ "HAVE_POLL", ++ "HAVE_POLL_H", ++ "HAVE_PWD_H", ++ "HAVE_SYS_WAIT_H", ++ "HAVE_UNISTD_H", ++ ], ++ }) + select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": ["HAVE_GRP_H"], ++ }), ++ visibility = ["//visibility:public"], ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 00000000..8045919a +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,11 @@ ++module( ++ name = "libarchive", ++ version = "3.7.2.bcr.1", ++ compatibility_level = 1, ++) ++bazel_dep(name = "bzip2", version = "1.0.8") ++bazel_dep(name = "lz4", version = "1.9.4") ++bazel_dep(name = "platforms", version = "0.0.9") ++bazel_dep(name = "xz", version = "5.4.5.bcr.1") ++bazel_dep(name = "zlib", version = "1.3.1") ++bazel_dep(name = "zstd", version = "1.5.5.bcr.1") +diff --git a/WORKSPACE b/WORKSPACE +new file mode 100644 +index 00000000..e69de29b +diff --git a/libarchive/BUILD.bazel b/libarchive/BUILD.bazel +new file mode 100644 +index 00000000..85b9b37b +--- /dev/null ++++ b/libarchive/BUILD.bazel +@@ -0,0 +1,49 @@ ++PUBLIC_HEADERS = [ ++ "archive.h", ++ "archive_entry.h", ++] ++ ++WINDOWS_SRCS = glob(["*_windows.*"]) + ["archive_entry_copy_bhfi.c"] ++ ++cc_library( ++ name = "libarchive", ++ srcs = glob( ++ [ ++ "*.c", ++ "*.h", ++ ], ++ exclude = PUBLIC_HEADERS + WINDOWS_SRCS + [ ++ "archive_disk_acl_*.c", ++ ], ++ ) + select({ ++ "@platforms//os:windows": WINDOWS_SRCS, ++ "@platforms//os:macos": ["archive_disk_acl_darwin.c"], ++ "@platforms//os:linux": ["archive_disk_acl_linux.c"], ++ "//conditions:default": [], ++ }), ++ hdrs = PUBLIC_HEADERS, ++ local_defines = [ ++ "HAVE_CONFIG_H", ++ # ZSTD support ++ "HAVE_ZSTD_H", ++ "HAVE_LIBZSTD", ++ "HAVE_LIBZSTD_COMPRESSOR", ++ # LZMA support ++ "HAVE_LZMA_H", ++ "HAVE_LZMA_STREAM_ENCODER_MT", ++ # BZIP2 support ++ "HAVE_LIBBZ2", ++ "HAVE_BZLIB_H", ++ # LZ4 support ++ "HAVE_LIBLZ4", ++ "HAVE_LZ4_H", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ "@bzip2//:bz2", ++ "@lz4", ++ "@xz//:lzma", ++ "@zstd", ++ ], ++) +diff --git a/libarchive/archive_hmac_private.h b/libarchive/archive_hmac_private.h +index d0fda7f9..e41c944d 100644 +--- a/libarchive/archive_hmac_private.h ++++ b/libarchive/archive_hmac_private.h +@@ -40,12 +40,13 @@ + */ + int __libarchive_hmac_build_hack(void); + +-#ifdef __APPLE__ +-# include +-# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 +-# define ARCHIVE_HMAC_USE_Apple_CommonCrypto +-# endif +-#endif ++// Don't compile against CommonCrypto. ++// #ifdef __APPLE__ ++// # include ++// # if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 ++// # define ARCHIVE_HMAC_USE_Apple_CommonCrypto ++// # endif ++// #endif + + #ifdef ARCHIVE_HMAC_USE_Apple_CommonCrypto + #include +diff --git a/libarchive/config.h b/libarchive/config.h +new file mode 100644 +index 00000000..1bb06802 +--- /dev/null ++++ b/libarchive/config.h +@@ -0,0 +1,13 @@ ++ ++#ifndef LIBARCHIVE_CONFIG_H ++#define LIBARCHIVE_CONFIG_H ++ ++#include ++#include ++ ++#include "xplat_config.h" ++ ++#define __LIBARCHIVE_CONFIG_H_INCLUDED 1 ++ ++#endif // LIBARCHIVE_CONFIG_H ++ +diff --git a/libarchive_fe/BUILD.bazel b/libarchive_fe/BUILD.bazel +new file mode 100644 +index 00000000..51a75a64 +--- /dev/null ++++ b/libarchive_fe/BUILD.bazel +@@ -0,0 +1,9 @@ ++cc_library( ++ name = "libarchive_fe", ++ srcs = glob(["*.c"]), ++ hdrs = glob(["*.h"]), ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ ], ++) +diff --git a/libarchive_fe/config.h b/libarchive_fe/config.h +new file mode 100644 +index 00000000..1f484ee0 +--- /dev/null ++++ b/libarchive_fe/config.h +@@ -0,0 +1,6 @@ ++#ifndef LIBARCHIVE_FE_CONFIG_H ++#define LIBARCHIVE_FE_CONFIG_H ++ ++#include "xplat_config.h" ++ ++#endif // LIBARCHIVE_FE_CONFIG_H +\ No newline at end of file +diff --git a/tar/BUILD.bazel b/tar/BUILD.bazel +new file mode 100644 +index 00000000..39fc5330 +--- /dev/null ++++ b/tar/BUILD.bazel +@@ -0,0 +1,36 @@ ++cc_binary( ++ name = "tar", ++ srcs = select({ ++ "@platforms//os:windows": glob([ ++ "*.c", ++ "*.h", ++ ]), ++ "//conditions:default": glob( ++ [ ++ "*.c", ++ "*.h", ++ ], ++ exclude = ["bsdtar_windows.*"], ++ ), ++ }), ++ copts = select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": [ ++ "-Wno-implicit-function-declaration", ++ "-Wno-int-conversion", ++ ], ++ }), ++ defines = [ ++ 'BSDTAR_VERSION_STRING=\\"3.7.2\\"', ++ ], ++ includes = [ ++ "../libarchive", ++ "../libarchive_fe", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) +diff --git a/tar/bsdtar.c b/tar/bsdtar.c +index 75249d10..a8f79db4 100644 +--- a/tar/bsdtar.c ++++ b/tar/bsdtar.c +@@ -197,7 +197,7 @@ main(int argc, char **argv) + #endif + + /* Set lafe_progname before calling lafe_warnc. */ +- lafe_setprogname(*argv, "bsdtar"); ++ lafe_setprogname("tar", "bsdtar"); + + #if HAVE_SETLOCALE + if (setlocale(LC_ALL, "") == NULL) +@@ -1013,7 +1013,7 @@ static const char *long_help_msg = + " -c Create -r Add/Replace -t List -u Update -x Extract\n" + "Common Options:\n" + " -b # Use # 512-byte records per I/O block\n" +- " -f Location of archive (default " _PATH_DEFTAPE ")\n" ++ " -f Location of archive\n" + " -v Verbose\n" + " -w Interactive\n" + "Create: %p -c [options] [ | | @ | -C ]\n" +diff --git a/tar/config.h b/tar/config.h +new file mode 100644 +index 00000000..f0a39c7e +--- /dev/null ++++ b/tar/config.h +@@ -0,0 +1,7 @@ ++#ifndef TAR_CONFIG_H ++#define TAR_CONFIG_H ++ ++#include "xplat_config.h" ++ ++#endif // TAR_CONFIG_H ++ +diff --git a/xplat_config.h b/xplat_config.h +new file mode 100644 +index 00000000..3daebe37 +--- /dev/null ++++ b/xplat_config.h +@@ -0,0 +1,41 @@ ++#ifndef XPLAT_CONFIG_H ++#define XPLAT_CONFIG_H ++ ++#define HAVE_DECL_SIZE_MAX 1 ++#define HAVE_DECL_SSIZE_MAX 1 ++#define HAVE_DECL_UINT32_MAX 1 ++#define HAVE_DECL_INT32_MAX 1 ++#define HAVE_DECL_INT32_MIN 1 ++#define HAVE_DECL_UINT64_MAX 1 ++#define HAVE_DECL_INT64_MAX 1 ++#define HAVE_DECL_INT64_MIN 1 ++#define HAVE_DECL_UINTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MIN 1 ++ ++#define HAVE_DIRENT_H 1 ++#define HAVE_ERRNO_H 1 ++#define HAVE_FCHDIR 1 ++#define HAVE_FCNTL 1 ++#define HAVE_FCNTL_H 1 ++#define HAVE_INTTYPES_H 1 ++#define HAVE_LIMITS_H 1 ++#define HAVE_PTHREAD_H 1 ++#define HAVE_REGEX_H 1 ++#define HAVE_STDARG_H 1 ++#define HAVE_STDLIB_H 1 ++#define HAVE_STDINT_H 1 ++#define HAVE_STRING_H 1 ++#define HAVE_SYS_STAT_H 1 ++#define HAVE_SYS_TIME_H 1 ++#define HAVE_TIME_H ++#define HAVE_UINTMAX_T 1 ++#define HAVE_UNSIGNED_LONG_LONG 1 ++#define HAVE_WCTYPE_H 1 ++#define HAVE_WCSCPY 1 ++#define HAVE_WCSLEN 1 ++ ++#define MAC_OS_X_VERSION_MIN_REQUIRED 1060 ++#define MAC_OS_X_VERSION_MAX_ALLOWED 1070 ++ ++#endif // XPLAT_CONFIG_H diff --git a/modules/libarchive/3.7.2.bcr.1/patches/fix_bzip2_includes.patch b/modules/libarchive/3.7.2.bcr.1/patches/fix_bzip2_includes.patch new file mode 100644 index 00000000000..1903f1d70e0 --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.1/patches/fix_bzip2_includes.patch @@ -0,0 +1,117 @@ +diff --git a/libarchive/archive_read_support_filter_bzip2.c b/libarchive/archive_read_support_filter_bzip2.c +index 9158e668..1c199c4e 100644 +--- a/libarchive/archive_read_support_filter_bzip2.c ++++ b/libarchive/archive_read_support_filter_bzip2.c +@@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + + #include "archive.h" +diff --git a/libarchive/archive_read_support_format_7zip.c b/libarchive/archive_read_support_format_7zip.c +index 051082bf..fba21f55 100644 +--- a/libarchive/archive_read_support_format_7zip.c ++++ b/libarchive/archive_read_support_format_7zip.c +@@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZMA_H + #include +diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c +index ec9cb198..9813391a 100644 +--- a/libarchive/archive_read_support_format_xar.c ++++ b/libarchive/archive_read_support_format_xar.c +@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #if HAVE_LZMA_H + #include +diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c +index c3b9b575..3b72dc53 100644 +--- a/libarchive/archive_read_support_format_zip.c ++++ b/libarchive/archive_read_support_format_zip.c +@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_zip.c 201102 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZMA_H + #include +diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c +index 40603c48..2af6cd8a 100644 +--- a/libarchive/archive_util.c ++++ b/libarchive/archive_util.c +@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_util.c 201098 2009-12-28 02:58:1 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZ4_H + #include +diff --git a/libarchive/archive_version_details.c b/libarchive/archive_version_details.c +index bfb20eab..41b7cc4e 100644 +--- a/libarchive/archive_version_details.c ++++ b/libarchive/archive_version_details.c +@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_util.c 201098 2009-12-28 02:58:1 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZ4_H + #include +diff --git a/libarchive/archive_write_add_filter_bzip2.c b/libarchive/archive_write_add_filter_bzip2.c +index 3e5c0891..792c50d9 100644 +--- a/libarchive/archive_write_add_filter_bzip2.c ++++ b/libarchive/archive_write_add_filter_bzip2.c +@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_write_set_compression_bzip2.c 20 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + + #include "archive.h" +diff --git a/libarchive/archive_write_set_format_7zip.c b/libarchive/archive_write_set_format_7zip.c +index bca48ba9..8c6c7301 100644 +--- a/libarchive/archive_write_set_format_7zip.c ++++ b/libarchive/archive_write_set_format_7zip.c +@@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); + #endif + #include + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #if HAVE_LZMA_H + #include +diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c +index 7307757d..066067f7 100644 +--- a/libarchive/archive_write_set_format_xar.c ++++ b/libarchive/archive_write_set_format_xar.c +@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #if HAVE_LZMA_H + #include diff --git a/modules/libarchive/3.7.2.bcr.1/presubmit.yml b/modules/libarchive/3.7.2.bcr.1/presubmit.yml new file mode 100644 index 00000000000..272aa42a7b4 --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.1/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2004_arm64 + - ubuntu2204 + - macos + - macos_arm64 + bazel: [6.x, 7.x, rolling] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@libarchive//tar' diff --git a/modules/libarchive/3.7.2.bcr.1/source.json b/modules/libarchive/3.7.2.bcr.1/source.json new file mode 100644 index 00000000000..99c15f282ff --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://www.libarchive.org/downloads/libarchive-3.7.2.tar.xz", + "integrity": "sha256-BDV2YeZxe2lBaCzeAq10GuSBnGeiYFk9+yQxhhslGss=", + "strip_prefix": "libarchive-3.7.2", + "patches": { + "build_with_bazel.patch": "sha256-qFIiuOZF4tpIIVtwDtI4VPUANkP8Hu72SVtkeQULZ7w=", + "fix_bzip2_includes.patch": "sha256-JtGB1Oc43lLgG1D1ipTL4E4RMKJgZrKVmSvi/GWsDiY=" + }, + "patch_strip": 1 +} diff --git a/modules/libarchive/metadata.json b/modules/libarchive/metadata.json index 61280d1e4e6..5c1905d2424 100644 --- a/modules/libarchive/metadata.json +++ b/modules/libarchive/metadata.json @@ -9,7 +9,8 @@ ], "repository": [], "versions": [ - "3.7.2" + "3.7.2", + "3.7.2.bcr.1" ], "yanked_versions": {} } From e586cc239bab96ada2d7bbf7058cb80b3e5a3da0 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Fri, 29 Mar 2024 10:01:38 -0400 Subject: [PATCH 57/62] libarchive@3.7.2.bcr.2 (#1715) I had skimped on the #defines so some functionality was not compiled in. --- modules/libarchive/3.7.2.bcr.2/MODULE.bazel | 12 + .../patches/build_with_bazel.patch | 435 ++++++++++++++++++ .../patches/fix_bzip2_includes.patch | 117 +++++ modules/libarchive/3.7.2.bcr.2/presubmit.yml | 17 + modules/libarchive/3.7.2.bcr.2/source.json | 10 + modules/libarchive/metadata.json | 3 +- 6 files changed, 593 insertions(+), 1 deletion(-) create mode 100644 modules/libarchive/3.7.2.bcr.2/MODULE.bazel create mode 100644 modules/libarchive/3.7.2.bcr.2/patches/build_with_bazel.patch create mode 100644 modules/libarchive/3.7.2.bcr.2/patches/fix_bzip2_includes.patch create mode 100644 modules/libarchive/3.7.2.bcr.2/presubmit.yml create mode 100644 modules/libarchive/3.7.2.bcr.2/source.json diff --git a/modules/libarchive/3.7.2.bcr.2/MODULE.bazel b/modules/libarchive/3.7.2.bcr.2/MODULE.bazel new file mode 100644 index 00000000000..ce1a5ee539f --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.2/MODULE.bazel @@ -0,0 +1,12 @@ +module( + name = "libarchive", + version = "3.7.2.bcr.2", + compatibility_level = 1, +) + +bazel_dep(name = "bzip2", version = "1.0.8") +bazel_dep(name = "lz4", version = "1.9.4") +bazel_dep(name = "platforms", version = "0.0.9") +bazel_dep(name = "xz", version = "5.4.5.bcr.1") +bazel_dep(name = "zlib", version = "1.3.1") +bazel_dep(name = "zstd", version = "1.5.5.bcr.1") diff --git a/modules/libarchive/3.7.2.bcr.2/patches/build_with_bazel.patch b/modules/libarchive/3.7.2.bcr.2/patches/build_with_bazel.patch new file mode 100644 index 00000000000..72468f839ee --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.2/patches/build_with_bazel.patch @@ -0,0 +1,435 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 00000000..d4337df3 +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,123 @@ ++cc_library( ++ name = "config_h", ++ hdrs = ["xplat_config.h"], ++ defines = select({ ++ "@platforms//os:linux": [ ++ "HAVE_FUTIMESAT", ++ "HAVE_LINUX_FS_H", ++ "HAVE_LINUX_MAGIC_H", ++ "HAVE_LINUX_TYPES_H", ++ "HAVE_PATHS_H", ++ "HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC", ++ "HAVE_SYS_XATTR_H", ++ ], ++ "//conditions:default": [], ++ }) + select({ ++ "@platforms//os:windows": [ ++ "gid_t=short", ++ "id_t=\"unsigned long\"", ++ "uid_t=short", ++ ], ++ "//conditions:default": [ ++ "HAVE_SYS_TYPES_H", ++ ], ++ }) + select({ ++ "@platforms//os:windows": [ ++ "HAVE__FSEEKI64", ++ "HAVE_CTIME_S", ++ "HAVE_IO_H", ++ "HAVE_LOCALTIME_S", ++ "HAVE_LSTAT_EMPTY_STRING_BUG", ++ "HAVE_STAT_EMPTY_STRING_BUG", ++ "HAVE_STRNCPY_S", ++ "HAVE_SYS_UTIME_H", ++ "HAVE_WINCRYPT_H", ++ "HAVE_WINDOWS_H", ++ "HAVE_WINIOCTL_H", ++ ], ++ "//conditions:default": [], ++ }) + select({ ++ "@platforms//os:windows": [], ++ "//conditions:default": [ ++ "HAVE_CHROOT", ++ "HAVE_CTIME_R", ++ "HAVE_DIRFD", ++ "HAVE_FCHDIR", ++ "HAVE_FCHMOD", ++ "HAVE_FCHOWN", ++ "HAVE_FCNTL", ++ "HAVE_FDOPENDIR", ++ "HAVE_FGETXATTR", ++ "HAVE_FLISTXATTR", ++ "HAVE_FORK", ++ "HAVE_FSETXATTR", ++ "HAVE_FSTATAT", ++ "HAVE_FSTATFS", ++ "HAVE_FSTATVFS", ++ "HAVE_FUTIMENS", ++ "HAVE_FUTIMES", ++ "HAVE_GETEUID", ++ "HAVE_GETGRGID_R", ++ "HAVE_GETGRNAM_R", ++ "HAVE_GETPWNAM_R", ++ "HAVE_GETPWUID_R", ++ "HAVE_GETXATTR", ++ "HAVE_GMTIME_R", ++ "HAVE_GRP_H", ++ "HAVE_LANGINFO_H", ++ "HAVE_LCHOWN", ++ "HAVE_LGETXATTR", ++ "HAVE_LINK", ++ "HAVE_LISTXATTR", ++ "HAVE_LLISTXATTR", ++ "HAVE_LOCALTIME_R", ++ "HAVE_LSETXATTR", ++ "HAVE_LSTAT", ++ "HAVE_LUTIMES", ++ "HAVE_MKFIFO", ++ "HAVE_MKNOD", ++ "HAVE_MKSTEMP", ++ "HAVE_NL_LANGINFO", ++ "HAVE_OPENAT", ++ "HAVE_PIPE", ++ "HAVE_POLL", ++ "HAVE_POLL_H", ++ "HAVE_POSIX_SPAWNP", ++ "HAVE_PWD_H", ++ "HAVE_READLINK", ++ "HAVE_READLINKAT", ++ "HAVE_REGEX_H", ++ "HAVE_SELECT", ++ "HAVE_SIGACTION", ++ "HAVE_SPAWN_H", ++ "HAVE_STATFS", ++ "HAVE_STAVTFS", ++ "HAVE_STRERROR_R", ++ "HAVE_STRUCT_STAT_ST_BLKSIZE", ++ "HAVE_STRUCT_TM_TM_GMTOFF", ++ "HAVE_SYMLINK", ++ "HAVE_SYS_IOCTL_H", ++ "HAVE_SYS_MOUNT_H", ++ "HAVE_SYS_POLL_H", ++ "HAVE_SYS_SELECT_H", ++ "HAVE_SYS_UTSNAME_H", ++ "HAVE_SYS_VFS_H", ++ "HAVE_SYS_WAIT_H", ++ "HAVE_TIMEGM", ++ "HAVE_UNISTD_H", ++ "HAVE_UNSETENV", ++ "HAVE_UTIMENSAT", ++ "HAVE_UTIMES", ++ "HAVE_VFORK", ++ "LSTAT_FOLLOWS_SLASHED_SYMLINK", ++ "STRERROR_R_CHAR_P", ++ ], ++ }) + select({ ++ "@platforms//os:osx": [ ++ "HAVE_STRUCT_STAT_ST_BIRTHTIME", ++ "HAVE_SYS_CDEFS_H", ++ ], ++ "//conditions:default": [], ++ }), ++ visibility = ["//visibility:public"], ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 00000000..114b5527 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,12 @@ ++module( ++ name = "libarchive", ++ version = "3.7.2.bcr.2", ++ compatibility_level = 1, ++) ++ ++bazel_dep(name = "bzip2", version = "1.0.8") ++bazel_dep(name = "lz4", version = "1.9.4") ++bazel_dep(name = "platforms", version = "0.0.9") ++bazel_dep(name = "xz", version = "5.4.5.bcr.1") ++bazel_dep(name = "zlib", version = "1.3.1") ++bazel_dep(name = "zstd", version = "1.5.5.bcr.1") +diff --git a/WORKSPACE b/WORKSPACE +new file mode 100644 +index 00000000..e69de29b +diff --git a/libarchive/BUILD.bazel b/libarchive/BUILD.bazel +new file mode 100644 +index 00000000..8c8be38b +--- /dev/null ++++ b/libarchive/BUILD.bazel +@@ -0,0 +1,49 @@ ++PUBLIC_HEADERS = [ ++ "archive.h", ++ "archive_entry.h", ++] ++ ++WINDOWS_SRCS = glob(["*_windows.*"]) + ["archive_entry_copy_bhfi.c"] ++ ++cc_library( ++ name = "libarchive", ++ srcs = glob( ++ [ ++ "*.c", ++ "*.h", ++ ], ++ exclude = PUBLIC_HEADERS + WINDOWS_SRCS + [ ++ "archive_disk_acl_*.c", ++ ], ++ ) + select({ ++ "@platforms//os:windows": WINDOWS_SRCS, ++ "@platforms//os:macos": ["archive_disk_acl_darwin.c"], ++ "@platforms//os:linux": ["archive_disk_acl_linux.c"], ++ "//conditions:default": [], ++ }), ++ hdrs = PUBLIC_HEADERS, ++ local_defines = [ ++ "HAVE_CONFIG_H", ++ # ZSTD support ++ "HAVE_ZSTD_H", ++ "HAVE_LIBZSTD", ++ "HAVE_LIBZSTD_COMPRESSOR", ++ # LZMA support ++ "HAVE_LZMA_H", ++ "HAVE_LZMA_STREAM_ENCODER_MT", ++ # BZIP2 support ++ "HAVE_LIBBZ2", ++ "HAVE_BZLIB_H", ++ # LZ4 support ++ "HAVE_LIBLZ4", ++ "HAVE_LZ4_H", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ "@bzip2//:bz2", ++ "@lz4", ++ "@xz//:lzma", ++ "@zstd", ++ ], ++) +diff --git a/libarchive/archive_hmac_private.h b/libarchive/archive_hmac_private.h +index d0fda7f9..e41c944d 100644 +--- a/libarchive/archive_hmac_private.h ++++ b/libarchive/archive_hmac_private.h +@@ -40,12 +40,13 @@ + */ + int __libarchive_hmac_build_hack(void); + +-#ifdef __APPLE__ +-# include +-# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 +-# define ARCHIVE_HMAC_USE_Apple_CommonCrypto +-# endif +-#endif ++// Don't compile against CommonCrypto. ++// #ifdef __APPLE__ ++// # include ++// # if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 ++// # define ARCHIVE_HMAC_USE_Apple_CommonCrypto ++// # endif ++// #endif + + #ifdef ARCHIVE_HMAC_USE_Apple_CommonCrypto + #include +diff --git a/libarchive/config.h b/libarchive/config.h +new file mode 100644 +index 00000000..0902d8f5 +--- /dev/null ++++ b/libarchive/config.h +@@ -0,0 +1,12 @@ ++#ifndef LIBARCHIVE_CONFIG_H ++#define LIBARCHIVE_CONFIG_H ++ ++#include ++#include ++ ++#include "xplat_config.h" ++ ++#define __LIBARCHIVE_CONFIG_H_INCLUDED 1 ++ ++#endif // LIBARCHIVE_CONFIG_H ++ +diff --git a/libarchive_fe/BUILD.bazel b/libarchive_fe/BUILD.bazel +new file mode 100644 +index 00000000..51a75a64 +--- /dev/null ++++ b/libarchive_fe/BUILD.bazel +@@ -0,0 +1,9 @@ ++cc_library( ++ name = "libarchive_fe", ++ srcs = glob(["*.c"]), ++ hdrs = glob(["*.h"]), ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ ], ++) +diff --git a/libarchive_fe/config.h b/libarchive_fe/config.h +new file mode 100644 +index 00000000..31457b10 +--- /dev/null ++++ b/libarchive_fe/config.h +@@ -0,0 +1,7 @@ ++#ifndef LIBARCHIVE_FE_CONFIG_H ++#define LIBARCHIVE_FE_CONFIG_H ++ ++#include "xplat_config.h" ++ ++#endif // LIBARCHIVE_FE_CONFIG_H ++ +diff --git a/tar/BUILD.bazel b/tar/BUILD.bazel +new file mode 100644 +index 00000000..39fc5330 +--- /dev/null ++++ b/tar/BUILD.bazel +@@ -0,0 +1,33 @@ ++cc_binary( ++ name = "tar", ++ srcs = select({ ++ "@platforms//os:windows": glob([ ++ "*.c", ++ "*.h", ++ ]), ++ "//conditions:default": glob( ++ [ ++ "*.c", ++ "*.h", ++ ], ++ exclude = ["bsdtar_windows.*"], ++ ), ++ }), ++ copts = [ ++ "-Wno-implicit-function-declaration", ++ "-Wno-int-conversion", ++ ], ++ defines = [ ++ 'BSDTAR_VERSION_STRING=\\"3.7.2\\"', ++ ], ++ includes = [ ++ "../libarchive", ++ "../libarchive_fe", ++ ], ++ visibility = ["//visibility:public"], ++ deps = [ ++ "//:config_h", ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) +diff --git a/tar/bsdtar.c b/tar/bsdtar.c +index 75249d10..a8f79db4 100644 +--- a/tar/bsdtar.c ++++ b/tar/bsdtar.c +@@ -197,7 +197,7 @@ main(int argc, char **argv) + #endif + + /* Set lafe_progname before calling lafe_warnc. */ +- lafe_setprogname(*argv, "bsdtar"); ++ lafe_setprogname("tar", "bsdtar"); + + #if HAVE_SETLOCALE + if (setlocale(LC_ALL, "") == NULL) +@@ -1013,7 +1013,7 @@ static const char *long_help_msg = + " -c Create -r Add/Replace -t List -u Update -x Extract\n" + "Common Options:\n" + " -b # Use # 512-byte records per I/O block\n" +- " -f Location of archive (default " _PATH_DEFTAPE ")\n" ++ " -f Location of archive\n" + " -v Verbose\n" + " -w Interactive\n" + "Create: %p -c [options] [ | | @ | -C ]\n" +diff --git a/tar/config.h b/tar/config.h +new file mode 100644 +index 00000000..f0a39c7e +--- /dev/null ++++ b/tar/config.h +@@ -0,0 +1,7 @@ ++#ifndef TAR_CONFIG_H ++#define TAR_CONFIG_H ++ ++#include "xplat_config.h" ++ ++#endif // TAR_CONFIG_H ++ +diff --git a/xplat_config.h b/xplat_config.h +new file mode 100644 +index 00000000..d7b551eb +--- /dev/null ++++ b/xplat_config.h +@@ -0,0 +1,80 @@ ++#ifndef XPLAT_CONFIG_H ++#define XPLAT_CONFIG_H ++ ++#define HAVE_DECL_SIZE_MAX 1 ++#define HAVE_DECL_SSIZE_MAX 1 ++#define HAVE_DECL_UINT32_MAX 1 ++#define HAVE_DECL_INT32_MAX 1 ++#define HAVE_DECL_INT32_MIN 1 ++#define HAVE_DECL_UINT64_MAX 1 ++#define HAVE_DECL_INT64_MAX 1 ++#define HAVE_DECL_INT64_MIN 1 ++#define HAVE_DECL_UINTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MIN 1 ++ ++#define HAVE_CHOWN 1 ++#define HAVE_CTYPE_H 1 ++#define HAVE_DIRENT_H 1 ++#define HAVE_DLFCN_H 1 ++#define HAVE_EILSEQ 1 ++#define HAVE_ERRNO_H 1 ++#define HAVE_FCNTL_H 1 ++#define HAVE_FSEEKO 1 ++#define HAVE_FSTAT 1 ++#define HAVE_FTRUNCATE 1 ++#define HAVE_GETPID 1 ++#define HAVE_INTMAX_T 1 ++#define HAVE_INTTYPES_H 1 ++#define HAVE_LIMITS_H 1 ++#define HAVE_LOCALE_H 1 ++#define HAVE_LONG_LONG_INT 1 ++#define HAVE_MBRTOWC 1 ++#define HAVE_MEMMOVE 1 ++#define HAVE_MEMORY_H 1 ++#define HAVE_MEMSET 1 ++#define HAVE_MKDIR 1 ++#define HAVE_PTHREAD_H 1 ++#define HAVE_READDIR_R 1 ++#define HAVE_SETLOCALE 1 ++#define HAVE_SIGNAL_H 1 ++#define HAVE_STDARG_H 1 ++#define HAVE_STDINT_H 1 ++#define HAVE_STDLIB_H 1 ++#define HAVE_STRCHR 1 ++#define HAVE_STRDUP 1 ++#define HAVE_STRERROR 1 ++#define HAVE_STRFTIME 1 ++#define HAVE_STRINGS_H 1 ++#define HAVE_STRING_H 1 ++#define HAVE_STRRCHR 1 ++#define HAVE_SYS_PARAM_H 1 ++#define HAVE_SYS_STAT_H 1 ++#define HAVE_SYS_TIME_H 1 ++#define HAVE_SYS_TYPES_H 1 ++#define HAVE_TIME_H ++#define HAVE_TZSET 1 ++#define HAVE_UINTMAX_T 1 ++#define HAVE_UNSIGNED_LONG_LONG 1 ++#define HAVE_UNSIGNED_LONG_LONG_INT 1 ++#define HAVE_UTIME 1 ++#define HAVE_UTIME_H 1 ++#define HAVE_VPRINTF 1 ++#define HAVE_WCHAR_H 1 ++#define HAVE_WCHAR_T 1 ++#define HAVE_WCRTOMB 1 ++#define HAVE_WCSCMP 1 ++#define HAVE_WCSCPY 1 ++#define HAVE_WCSLEN 1 ++#define HAVE_WCTOMB 1 ++#define HAVE_WCTYPE_H 1 ++#define HAVE_WMEMCMP 1 ++#define HAVE_WMEMCPY 1 ++ ++#define STDC_HEADERS 1 ++#define HAVE_SYS_TIME_H 1 ++ ++#define MAC_OS_X_VERSION_MIN_REQUIRED 1060 ++#define MAC_OS_X_VERSION_MAX_ALLOWED 1070 ++ ++#endif // XPLAT_CONFIG_H diff --git a/modules/libarchive/3.7.2.bcr.2/patches/fix_bzip2_includes.patch b/modules/libarchive/3.7.2.bcr.2/patches/fix_bzip2_includes.patch new file mode 100644 index 00000000000..1903f1d70e0 --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.2/patches/fix_bzip2_includes.patch @@ -0,0 +1,117 @@ +diff --git a/libarchive/archive_read_support_filter_bzip2.c b/libarchive/archive_read_support_filter_bzip2.c +index 9158e668..1c199c4e 100644 +--- a/libarchive/archive_read_support_filter_bzip2.c ++++ b/libarchive/archive_read_support_filter_bzip2.c +@@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + + #include "archive.h" +diff --git a/libarchive/archive_read_support_format_7zip.c b/libarchive/archive_read_support_format_7zip.c +index 051082bf..fba21f55 100644 +--- a/libarchive/archive_read_support_format_7zip.c ++++ b/libarchive/archive_read_support_format_7zip.c +@@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZMA_H + #include +diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c +index ec9cb198..9813391a 100644 +--- a/libarchive/archive_read_support_format_xar.c ++++ b/libarchive/archive_read_support_format_xar.c +@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #if HAVE_LZMA_H + #include +diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c +index c3b9b575..3b72dc53 100644 +--- a/libarchive/archive_read_support_format_zip.c ++++ b/libarchive/archive_read_support_format_zip.c +@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_zip.c 201102 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZMA_H + #include +diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c +index 40603c48..2af6cd8a 100644 +--- a/libarchive/archive_util.c ++++ b/libarchive/archive_util.c +@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_util.c 201098 2009-12-28 02:58:1 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZ4_H + #include +diff --git a/libarchive/archive_version_details.c b/libarchive/archive_version_details.c +index bfb20eab..41b7cc4e 100644 +--- a/libarchive/archive_version_details.c ++++ b/libarchive/archive_version_details.c +@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_util.c 201098 2009-12-28 02:58:1 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #ifdef HAVE_LZ4_H + #include +diff --git a/libarchive/archive_write_add_filter_bzip2.c b/libarchive/archive_write_add_filter_bzip2.c +index 3e5c0891..792c50d9 100644 +--- a/libarchive/archive_write_add_filter_bzip2.c ++++ b/libarchive/archive_write_add_filter_bzip2.c +@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_write_set_compression_bzip2.c 20 + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + + #include "archive.h" +diff --git a/libarchive/archive_write_set_format_7zip.c b/libarchive/archive_write_set_format_7zip.c +index bca48ba9..8c6c7301 100644 +--- a/libarchive/archive_write_set_format_7zip.c ++++ b/libarchive/archive_write_set_format_7zip.c +@@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); + #endif + #include + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #if HAVE_LZMA_H + #include +diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c +index 7307757d..066067f7 100644 +--- a/libarchive/archive_write_set_format_xar.c ++++ b/libarchive/archive_write_set_format_xar.c +@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); + #include + #endif + #ifdef HAVE_BZLIB_H +-#include ++#include "bzlib.h" + #endif + #if HAVE_LZMA_H + #include diff --git a/modules/libarchive/3.7.2.bcr.2/presubmit.yml b/modules/libarchive/3.7.2.bcr.2/presubmit.yml new file mode 100644 index 00000000000..272aa42a7b4 --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.2/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2004_arm64 + - ubuntu2204 + - macos + - macos_arm64 + bazel: [6.x, 7.x, rolling] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@libarchive//tar' diff --git a/modules/libarchive/3.7.2.bcr.2/source.json b/modules/libarchive/3.7.2.bcr.2/source.json new file mode 100644 index 00000000000..f55ed83be69 --- /dev/null +++ b/modules/libarchive/3.7.2.bcr.2/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://www.libarchive.org/downloads/libarchive-3.7.2.tar.xz", + "integrity": "sha256-BDV2YeZxe2lBaCzeAq10GuSBnGeiYFk9+yQxhhslGss=", + "strip_prefix": "libarchive-3.7.2", + "patches": { + "build_with_bazel.patch": "sha256-8bSqtnpMYla5XWXcK+ldOZnXk/aKgIxgD1IZPXPxPzg=", + "fix_bzip2_includes.patch": "sha256-JtGB1Oc43lLgG1D1ipTL4E4RMKJgZrKVmSvi/GWsDiY=" + }, + "patch_strip": 1 +} diff --git a/modules/libarchive/metadata.json b/modules/libarchive/metadata.json index 5c1905d2424..fe5351fca53 100644 --- a/modules/libarchive/metadata.json +++ b/modules/libarchive/metadata.json @@ -10,7 +10,8 @@ "repository": [], "versions": [ "3.7.2", - "3.7.2.bcr.1" + "3.7.2.bcr.1", + "3.7.2.bcr.2" ], "yanked_versions": {} } From af388884b09337938e31cc0109770af528162fd5 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 18:40:51 +0100 Subject: [PATCH 58/62] rules_kotlin@1.9.4 (#1716) Release: https://github.com/bazelbuild/rules_kotlin/releases/tag/v1.9.4 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Ben Lee --- modules/rules_kotlin/1.9.4/MODULE.bazel | 31 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_kotlin/1.9.4/presubmit.yml | 13 ++++++++ modules/rules_kotlin/1.9.4/source.json | 8 +++++ modules/rules_kotlin/metadata.json | 3 +- 5 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 modules/rules_kotlin/1.9.4/MODULE.bazel create mode 100644 modules/rules_kotlin/1.9.4/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_kotlin/1.9.4/presubmit.yml create mode 100644 modules/rules_kotlin/1.9.4/source.json diff --git a/modules/rules_kotlin/1.9.4/MODULE.bazel b/modules/rules_kotlin/1.9.4/MODULE.bazel new file mode 100644 index 00000000000..3ef2a94a201 --- /dev/null +++ b/modules/rules_kotlin/1.9.4/MODULE.bazel @@ -0,0 +1,31 @@ +module( + name = "rules_kotlin", + version = "1.9.4", + repo_name = "rules_kotlin", +) + +bazel_dep(name = "platforms", version = "0.0.6") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "rules_java", version = "7.2.0") +bazel_dep(name = "rules_python", version = "0.23.1") +bazel_dep(name = "rules_cc", version = "0.0.8") + +rules_kotlin_extensions = use_extension( + "//src/main/starlark/core/repositories:bzlmod_setup.bzl", + "rules_kotlin_extensions", +) +use_repo( + rules_kotlin_extensions, + "com_github_google_ksp", + "com_github_jetbrains_kotlin", + "com_github_pinterest_ktlint", + "rules_android", +) + +register_toolchains("//kotlin/internal:default_toolchain") + +# TODO(bencodes) We should be able to remove this once rules_android has rolled out official Bzlmod support +remote_android_extensions = use_extension("@bazel_tools//tools/android:android_extensions.bzl", "remote_android_tools_extensions") +use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools") + +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") diff --git a/modules/rules_kotlin/1.9.4/patches/module_dot_bazel_version.patch b/modules/rules_kotlin/1.9.4/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..d5981f575cf --- /dev/null +++ b/modules/rules_kotlin/1.9.4/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_kotlin", +- version = "1.9.0", ++ version = "1.9.4", + repo_name = "rules_kotlin", + ) + + bazel_dep(name = "platforms", version = "0.0.6") diff --git a/modules/rules_kotlin/1.9.4/presubmit.yml b/modules/rules_kotlin/1.9.4/presubmit.yml new file mode 100644 index 00000000000..84e5a8b0f29 --- /dev/null +++ b/modules/rules_kotlin/1.9.4/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x", "rolling"] +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--enable_bzlmod=true" + build_targets: + - "@rules_kotlin//kotlin/..." + - "@rules_kotlin//src/..." diff --git a/modules/rules_kotlin/1.9.4/source.json b/modules/rules_kotlin/1.9.4/source.json new file mode 100644 index 00000000000..ab0c6446535 --- /dev/null +++ b/modules/rules_kotlin/1.9.4/source.json @@ -0,0 +1,8 @@ +{ + "integrity": "sha256-dsD8wsI+33NjIK3tGs2d3guuQY5XMd8Skz2IbLqGt5U=", + "url": "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.9.4/rules_kotlin-v1.9.4.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-8Fu6NiXzckWm8oaVY/rPonGEqWG5ijV0r2GUf7ajKHM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_kotlin/metadata.json b/modules/rules_kotlin/metadata.json index c4702a3a3d7..2c93f77cfbd 100644 --- a/modules/rules_kotlin/metadata.json +++ b/modules/rules_kotlin/metadata.json @@ -22,7 +22,8 @@ ], "versions": [ "1.9.0", - "1.9.1" + "1.9.1", + "1.9.4" ], "yanked_versions": {} } From 4f4d4d5a27d1fc6ad7871fd3eacbbe956b505cce Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:54:50 -0700 Subject: [PATCH 59/62] aspect_bazel_lib@1.42.2 (#1717) Release: https://github.com/aspect-build/bazel-lib/releases/tag/v1.42.2 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Derek Cormier --- modules/aspect_bazel_lib/1.42.2/MODULE.bazel | 68 +++++++++++++++++++ .../1.42.2/patches/go_dev_dep.patch | 27 ++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_bazel_lib/1.42.2/presubmit.yml | 12 ++++ modules/aspect_bazel_lib/1.42.2/source.json | 10 +++ modules/aspect_bazel_lib/metadata.json | 1 + 6 files changed, 132 insertions(+) create mode 100644 modules/aspect_bazel_lib/1.42.2/MODULE.bazel create mode 100644 modules/aspect_bazel_lib/1.42.2/patches/go_dev_dep.patch create mode 100644 modules/aspect_bazel_lib/1.42.2/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_bazel_lib/1.42.2/presubmit.yml create mode 100644 modules/aspect_bazel_lib/1.42.2/source.json diff --git a/modules/aspect_bazel_lib/1.42.2/MODULE.bazel b/modules/aspect_bazel_lib/1.42.2/MODULE.bazel new file mode 100644 index 00000000000..0f1dca945d0 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.2/MODULE.bazel @@ -0,0 +1,68 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "1.42.2", + compatibility_level = 1, +) + +# Lower-bound versions of our dependencies +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.tar() +bazel_lib_toolchains.expand_template() +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", + "@bsd_tar_toolchains//:all", +) + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.33.0", + dev_dependency = True +) +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +# Development-only dependencies + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.1.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/1.42.2/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/1.42.2/patches/go_dev_dep.patch new file mode 100644 index 00000000000..99b1bc48a9f --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.2/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 07a6eff..26702ad 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -34,19 +34,19 @@ register_toolchains( + bazel_dep( + name = "gazelle", + version = "0.33.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/1.42.2/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/1.42.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..6fa1abf6506 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "1.42.2", + compatibility_level = 1, + ) + + # Lower-bound versions of our dependencies diff --git a/modules/aspect_bazel_lib/1.42.2/presubmit.yml b/modules/aspect_bazel_lib/1.42.2/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.2/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/1.42.2/source.json b/modules/aspect_bazel_lib/1.42.2/source.json new file mode 100644 index 00000000000..40f6282350d --- /dev/null +++ b/modules/aspect_bazel_lib/1.42.2/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-+aC7ByrvcZhZquWtN3Iul4Ev//smP9VqNs2GFKLl0Zk=", + "strip_prefix": "bazel-lib-1.42.2", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v1.42.2/bazel-lib-v1.42.2.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-dEFxvx2hBB/tOWlknfRHRXNCdvYpvrxsYHWaMGF2QgA=", + "module_dot_bazel_version.patch": "sha256-GFwlPy5bRdgEyWOp+JQSOtLusb8v/YF4Na4sCqyM/ls=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index e5ed6637588..f87e13a7dd4 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -96,6 +96,7 @@ "1.41.0", "1.42.0", "1.42.1", + "1.42.2", "2.0.0-beta0", "2.0.0-beta1", "2.0.0-rc0", From b5a9360408ae4b398a007abbf1035ecd3148d6e9 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:34:29 -0700 Subject: [PATCH 60/62] aspect_bazel_lib@2.6.1 (#1719) Release: https://github.com/aspect-build/bazel-lib/releases/tag/v2.6.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Derek Cormier --- modules/aspect_bazel_lib/2.6.1/MODULE.bazel | 75 +++++++++++++++++++ .../2.6.1/patches/go_dev_dep.patch | 27 +++++++ .../patches/module_dot_bazel_version.patch | 14 ++++ modules/aspect_bazel_lib/2.6.1/presubmit.yml | 12 +++ modules/aspect_bazel_lib/2.6.1/source.json | 10 +++ modules/aspect_bazel_lib/metadata.json | 3 +- 6 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_bazel_lib/2.6.1/MODULE.bazel create mode 100644 modules/aspect_bazel_lib/2.6.1/patches/go_dev_dep.patch create mode 100644 modules/aspect_bazel_lib/2.6.1/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_bazel_lib/2.6.1/presubmit.yml create mode 100644 modules/aspect_bazel_lib/2.6.1/source.json diff --git a/modules/aspect_bazel_lib/2.6.1/MODULE.bazel b/modules/aspect_bazel_lib/2.6.1/MODULE.bazel new file mode 100644 index 00000000000..70ee846ab7d --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.1/MODULE.bazel @@ -0,0 +1,75 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "2.6.1", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +# Lower-bound versions of our dependencies +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.tar() +bazel_lib_toolchains.expand_template() +bazel_lib_toolchains.bats() +use_repo(bazel_lib_toolchains, "bats_toolchains", "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", + "@bats_toolchains//:all", + "@bsd_tar_toolchains//:all", +) + +host = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "host", dev_dependency = True) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.33.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True, +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True, +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +# Development-only dependencies + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.2.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/2.6.1/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/2.6.1/patches/go_dev_dep.patch new file mode 100644 index 00000000000..1ade7b2c6d7 --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.1/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index e63fa5b..9d78a88 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -50,19 +50,19 @@ use_repo(host, "aspect_bazel_lib_host") + bazel_dep( + name = "gazelle", + version = "0.33.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + bazel_dep( + name = "rules_go", + version = "0.41.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/2.6.1/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/2.6.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..14df1d9dc4c --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "2.6.1", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/aspect_bazel_lib/2.6.1/presubmit.yml b/modules/aspect_bazel_lib/2.6.1/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.1/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/2.6.1/source.json b/modules/aspect_bazel_lib/2.6.1/source.json new file mode 100644 index 00000000000..aa2d4c55d0d --- /dev/null +++ b/modules/aspect_bazel_lib/2.6.1/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-rGOSy+XhzHcBu9gcr5QBa65vJIeA4Sr0SF1KcSe0yys=", + "strip_prefix": "bazel-lib-2.6.1", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v2.6.1/bazel-lib-v2.6.1.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-KgABwDzOT+DugUHn9tHLOz05osnk2FLsS10d5zqG/M0=", + "module_dot_bazel_version.patch": "sha256-r3FpxKOavsO+o14ftCfrxOoLIdy1bw4eyxS4SR3esao=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index f87e13a7dd4..14f1469354f 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -115,7 +115,8 @@ "2.5.1", "2.5.2", "2.5.3", - "2.6.0" + "2.6.0", + "2.6.1" ], "yanked_versions": { "1.31.0": "1.31.0 has a breaking change to the default yq version", From c00c1cf644806ef901e7a19e1377cb1aa60a83c5 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:46:29 -0700 Subject: [PATCH 61/62] aspect_rules_js@1.40.0 (#1698) Release: https://github.com/aspect-build/rules_js/releases/tag/v1.40.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Co-authored-by: Jason Bedard Co-authored-by: Alex Eagle --- modules/aspect_rules_js/1.40.0/MODULE.bazel | 246 ++++++++++++++++++ .../1.40.0/patches/bump_bazel_lib.patch | 13 + .../patches/module_dot_bazel_version.patch | 19 ++ modules/aspect_rules_js/1.40.0/presubmit.yml | 12 + modules/aspect_rules_js/1.40.0/source.json | 10 + modules/aspect_rules_js/metadata.json | 3 +- 6 files changed, 302 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_js/1.40.0/MODULE.bazel create mode 100644 modules/aspect_rules_js/1.40.0/patches/bump_bazel_lib.patch create mode 100644 modules/aspect_rules_js/1.40.0/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_js/1.40.0/presubmit.yml create mode 100644 modules/aspect_rules_js/1.40.0/source.json diff --git a/modules/aspect_rules_js/1.40.0/MODULE.bazel b/modules/aspect_rules_js/1.40.0/MODULE.bazel new file mode 100644 index 00000000000..131e5092b38 --- /dev/null +++ b/modules/aspect_rules_js/1.40.0/MODULE.bazel @@ -0,0 +1,246 @@ +"aspect-build/rules_js" + +module( + name = "aspect_rules_js", + version = "1.40.0", + compatibility_level = 1, +) + +# Lower-bounds for runtime dependencies. +# Do not bump these unless rules_js requires a newer version to function. +bazel_dep(name = "aspect_bazel_lib", version = "1.42.2") +bazel_dep(name = "aspect_rules_lint", version = "0.12.0") +bazel_dep(name = "bazel_features", version = "0.1.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") + +# Keep v5 in to avoid breaking changes. +# TODO(2.0): change minimum to v6 +bazel_dep(name = "rules_nodejs", version = "5.8.2") + +# Override rules_nodejs to v6 to test the latest and recommended version internally. +single_version_override( + module_name = "rules_nodejs", + version = "6.0.5", +) + +bazel_dep(name = "platforms", version = "0.0.5") + +node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") +use_repo(node, "nodejs_darwin_amd64") +use_repo(node, "nodejs_darwin_arm64") +use_repo(node, "nodejs_linux_amd64") +use_repo(node, "nodejs_linux_arm64") +use_repo(node, "nodejs_linux_ppc64le") +use_repo(node, "nodejs_linux_s390x") +use_repo(node, "nodejs_windows_amd64") + +pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") +pnpm.pnpm( + name = "pnpm", + pnpm_version = "8.6.7", + pnpm_version_integrity = "sha512-vRIWpD/L4phf9Bk2o/O2TDR8fFoJnpYrp2TKqTIZF/qZ2/rgL3qKXzHofHgbXsinwMoSEigz28sqk3pQ+yMEQQ==", +) +use_repo(pnpm, "pnpm", "pnpm__links") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.tar() +use_repo(bazel_lib_toolchains, "coreutils_toolchains") +use_repo(bazel_lib_toolchains, "yq_darwin_amd64") +use_repo(bazel_lib_toolchains, "yq_darwin_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_amd64") +use_repo(bazel_lib_toolchains, "yq_linux_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_ppc64le") +use_repo(bazel_lib_toolchains, "yq_linux_s390x") +use_repo(bazel_lib_toolchains, "yq_windows_amd64") +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains") + +####### Dev dependencies ######## + +bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "rules_go", version = "0.41.0", dev_dependency = True) + +host = use_extension( + "@aspect_bazel_lib//lib:extensions.bzl", + "host", + dev_dependency = True, +) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +node_dev = use_extension( + "@rules_nodejs//nodejs:extensions.bzl", + "node", + dev_dependency = True, +) +use_repo(node_dev, "nodejs_toolchains") +use_repo(node_dev, "node20_linux_amd64") +use_repo(node_dev, "node20_darwin_arm64") +use_repo(node_dev, "node20_darwin_amd64") +use_repo(node_dev, "node20_linux_arm64") +use_repo(node_dev, "node20_linux_s390x") +use_repo(node_dev, "node20_linux_ppc64le") +use_repo(node_dev, "node20_windows_amd64") +use_repo(node_dev, "node18_linux_amd64") +use_repo(node_dev, "node18_darwin_arm64") +use_repo(node_dev, "node18_darwin_amd64") +use_repo(node_dev, "node18_linux_arm64") +use_repo(node_dev, "node18_linux_s390x") +use_repo(node_dev, "node18_linux_ppc64le") +use_repo(node_dev, "node18_windows_amd64") +use_repo(node_dev, "node16_linux_amd64") +use_repo(node_dev, "node16_darwin_arm64") +use_repo(node_dev, "node16_darwin_amd64") +use_repo(node_dev, "node16_linux_arm64") +use_repo(node_dev, "node16_linux_s390x") +use_repo(node_dev, "node16_linux_ppc64le") +use_repo(node_dev, "node16_windows_amd64") +node_dev.toolchain(node_version = "16.14.2") +node_dev.toolchain( + name = "node16", + node_version = "16.13.1", +) +node_dev.toolchain( + name = "node18", + node_version = "18.13.0", +) +node_dev.toolchain( + name = "node20", + node_version = "20.11.1", +) + +############################################ +# npm dependencies used by examples + +npm = use_extension( + "@aspect_rules_js//npm:extensions.bzl", + "npm", + dev_dependency = True, +) +npm.npm_translate_lock( + name = "npm", + bins = { + # derived from "bin" attribute in node_modules/typescript/package.json + "typescript": [ + "tsc=./bin/tsc", + "tsserver=./bin/tsserver", + ], + }, + custom_postinstalls = { + "@aspect-test/c": "echo moo > cow.txt", + "@aspect-test/c@2.0.2": "echo mooo >> cow.txt", + }, + data = [ + "//:examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch", + "//:package.json", + "//:pnpm-workspace.yaml", + "//examples/js_binary:package.json", + "//examples/macro:package.json", + "//examples/npm_deps:package.json", + "//examples/npm_package/libs/lib_a:package.json", + "//examples/npm_package/packages/pkg_a:package.json", + "//examples/npm_package/packages/pkg_b:package.json", + "//examples/webpack_cli:package.json", + "//js/private/coverage/bundle:package.json", + "//js/private/worker/src:package.json", + "//npm/private/test:package.json", + "//npm/private/test:vendored/lodash-4.17.21.tgz", + "//npm/private/test/npm_package:package.json", + "//npm/private/test/vendored/is-odd:package.json", + "//npm/private/test/vendored/semver-max:package.json", + ], + generate_bzl_library_targets = True, + lifecycle_hooks = { + # We fetch @kubernetes/client-node from source and it has a `prepare` lifecycle hook that needs to be run + # which runs the `build` package.json script: https://github.com/kubernetes-client/javascript/blob/fc681991e61c6808dd26012a2331f83671a11218/package.json#L28. + # Here we run run build so we just run `tsc` instead of `npm run build` which ends up just running `tsc`. + "@kubernetes/client-node": ["build"], + # 'install' hook fails as it assumes the following path to `node-pre-gyp`: ./node_modules/.bin/node-pre-gyp + # https://github.com/stultuss/protoc-gen-grpc-ts/blob/53d52a9d0e1fe3cbe930dec5581eca89b3dde807/package.json#L28 + "protoc-gen-grpc@2.0.3": [], + }, + lifecycle_hooks_execution_requirements = { + "*": [ + "no-sandbox", + ], + # If @kubernetes/client-node is not sandboxed, will fail with + # ``` + # src/azure_auth.ts(97,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/azure_auth.ts(98,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(93,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(94,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # ``` + # since a `jsonpath-plus@7.2.0` that is newer then the transitive dep `jsonpath-plus@0.19.0` is found outside of the sandbox that + # includes typings that don't match the 0.19.0 "any" usage. + "@kubernetes/client-node": [], + "@figma/nodegit": [ + "no-sandbox", + "requires-network", + ], + "esbuild": [ + "no-sandbox", + "requires-network", + ], + "segfault-handler": [ + "no-sandbox", + "requires-network", + ], + "puppeteer": [ + "no-sandbox", + "requires-network", + ], + }, + npmrc = "//:.npmrc", + package_visibility = { + "unused": ["//visibility:private"], + "@mycorp/pkg-a": ["//examples:__subpackages__"], + }, + patch_args = { + "*": ["-p1"], + }, + patches = { + "meaning-of-life@1.0.0": ["//examples/npm_deps:patches/meaning-of-life@1.0.0-after_pnpm.patch"], + }, + pnpm_lock = "//:pnpm-lock.yaml", + public_hoist_packages = { + # Instructs the linker to hoist the ms@2.1.3 npm package to `node_modules/ms` in the `examples/npm_deps` package. + # Similar to adding `public-hoist-pattern[]=ms` in .npmrc but with control over which version to hoist and where + # to hoist it. This hoisted package can be referenced by the label `//examples/npm_deps:node_modules/ms` same as + # other direct dependencies in the `examples/npm_deps/package.json`. + "ms@2.1.3": ["examples/npm_deps"], + }, + replace_packages = { + "chalk@5.0.1": "@chalk_501//:pkg", + }, + update_pnpm_lock = True, + verify_node_modules_ignored = "//:.bazelignore", + verify_patches = "//examples/npm_deps/patches:patches", +) +use_repo(npm, "npm", "npm__rollup__2.70.2", "npm__webpack-bundle-analyzer__4.5.0__bufferutil_4.0.7") + +# As an example, manually import a package using explicit coordinates. +# Just a demonstration of the syntax de-sugaring. +npm.npm_import( + name = "acorn__8.4.0", + bins = {"acorn": "./bin/acorn"}, + integrity = "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + package = "acorn", + # Root package where to link the virtual store + root_package = "", + version = "8.4.0", +) +use_repo(npm, "acorn__8.4.0") +use_repo(npm, "acorn__8.4.0__links") + +# Used by formatter +go_sdk = use_extension( + "@rules_go//go:extensions.bzl", + "go_sdk", + dev_dependency = True, +) +go_sdk.download( + name = "go_sdk", + version = "1.20.3", +) +use_repo(go_sdk, "go_sdk") diff --git a/modules/aspect_rules_js/1.40.0/patches/bump_bazel_lib.patch b/modules/aspect_rules_js/1.40.0/patches/bump_bazel_lib.patch new file mode 100644 index 00000000000..3b3a71baad4 --- /dev/null +++ b/modules/aspect_rules_js/1.40.0/patches/bump_bazel_lib.patch @@ -0,0 +1,13 @@ +diff --git a/e2e/bzlmod/MODULE.bazel b/e2e/bzlmod/MODULE.bazel +index 5c69fe9..5c355d0 100644 +--- a/e2e/bzlmod/MODULE.bazel ++++ b/e2e/bzlmod/MODULE.bazel +@@ -5,7 +5,7 @@ module( + ) + + bazel_dep(name = "aspect_rules_js", version = "0.0.0") +-bazel_dep(name = "aspect_bazel_lib", version = "2.6.0") ++bazel_dep(name = "aspect_bazel_lib", version = "2.6.1") + bazel_dep(name = "bazel_skylib", version = "1.4.1") + + local_path_override( diff --git a/modules/aspect_rules_js/1.40.0/patches/module_dot_bazel_version.patch b/modules/aspect_rules_js/1.40.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..330ffb72335 --- /dev/null +++ b/modules/aspect_rules_js/1.40.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,19 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,13 +2,13 @@ + + module( + name = "aspect_rules_js", +- version = "0.0.0", ++ version = "1.40.0", + compatibility_level = 1, + ) + + # Lower-bounds for runtime dependencies. + # Do not bump these unless rules_js requires a newer version to function. +-bazel_dep(name = "aspect_bazel_lib", version = "1.42.0") ++bazel_dep(name = "aspect_bazel_lib", version = "1.42.2") + bazel_dep(name = "aspect_rules_lint", version = "0.12.0") + bazel_dep(name = "bazel_features", version = "0.1.0") + bazel_dep(name = "bazel_skylib", version = "1.5.0") diff --git a/modules/aspect_rules_js/1.40.0/presubmit.yml b/modules/aspect_rules_js/1.40.0/presubmit.yml new file mode 100644 index 00000000000..38cdbbbea03 --- /dev/null +++ b/modules/aspect_rules_js/1.40.0/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/bzlmod' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_js/1.40.0/source.json b/modules/aspect_rules_js/1.40.0/source.json new file mode 100644 index 00000000000..12763224433 --- /dev/null +++ b/modules/aspect_rules_js/1.40.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-QRKbF8CVG2Y6MMVXEKCEJ2fNFiE3t806IA9D4yFhzno=", + "strip_prefix": "rules_js-1.40.0", + "url": "https://github.com/aspect-build/rules_js/releases/download/v1.40.0/rules_js-v1.40.0.tar.gz", + "patches": { + "bump_bazel_lib.patch": "sha256-gQWUo1yMJguy+GyKFMOUtvdnjle7J4SBlHacdteDN7Q=", + "module_dot_bazel_version.patch": "sha256-Ay7rVykToXYELKtm7wXn68qy7soL8uPllD6SOZ1fOz4=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_js/metadata.json b/modules/aspect_rules_js/metadata.json index 45e7197a6e1..02aaf7e6b82 100644 --- a/modules/aspect_rules_js/metadata.json +++ b/modules/aspect_rules_js/metadata.json @@ -92,7 +92,8 @@ "1.37.1", "1.38.0", "1.39.0", - "1.39.1" + "1.39.1", + "1.40.0" ], "yanked_versions": {} } From 973833244dcd99e5cb80147833a9361a6c4f14a3 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:50:21 -0700 Subject: [PATCH 62/62] aspect_rules_rollup@1.0.2 (#1614) Release: https://github.com/aspect-build/rules_rollup/releases/tag/v1.0.2 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Greg Magolan --- .../aspect_rules_rollup/1.0.2/MODULE.bazel | 49 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++ .../aspect_rules_rollup/1.0.2/presubmit.yml | 12 +++++ modules/aspect_rules_rollup/1.0.2/source.json | 9 ++++ modules/aspect_rules_rollup/metadata.json | 3 +- 5 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_rollup/1.0.2/MODULE.bazel create mode 100644 modules/aspect_rules_rollup/1.0.2/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_rollup/1.0.2/presubmit.yml create mode 100644 modules/aspect_rules_rollup/1.0.2/source.json diff --git a/modules/aspect_rules_rollup/1.0.2/MODULE.bazel b/modules/aspect_rules_rollup/1.0.2/MODULE.bazel new file mode 100644 index 00000000000..cdf069e75b3 --- /dev/null +++ b/modules/aspect_rules_rollup/1.0.2/MODULE.bazel @@ -0,0 +1,49 @@ +"aspect-build/rules_rollup" + +module( + name = "aspect_rules_rollup", + version = "1.0.2", + compatibility_level = 1, +) + +# Lower-bound (minimum) versions of direct dependencies +bazel_dep(name = "bazel_skylib", version = "1.3.0") + +# Need feat: backport 2.x features for interoperability by @kormide in #657 +bazel_dep(name = "aspect_bazel_lib", version = "1.38.0") + +# Need feat: import toolchains to use for copy actions by @kormide in #1355 +bazel_dep(name = "aspect_rules_js", version = "1.34.0") +bazel_dep(name = "rules_nodejs", version = "5.5.3") +bazel_dep(name = "platforms", version = "0.0.5") + +rollup = use_extension("@aspect_rules_rollup//rollup:extensions.bzl", "rollup") +rollup.toolchain( + name = "rollup", + rollup_version = "v2.70.2", +) +use_repo(rollup, "rollup") + +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True) + +npm = use_extension( + "@aspect_rules_js//npm:extensions.bzl", + "npm", + dev_dependency = True, +) +npm.npm_translate_lock( + name = "npm", + npmrc = "//:.npmrc", + pnpm_lock = "//:pnpm-lock.yaml", + verify_node_modules_ignored = "//:.bazelignore", +) +use_repo(npm, "npm") + +# We want the stardoc handling from bazel-lib 2.x for dev use here, +# but not force users to upgrade yet. +archive_override( + module_name = "aspect_bazel_lib", + integrity = "sha256-9ep2aCsgnMC9kND1o7JtL3pqKIXwxfYV5ykT9IBduw0=", + strip_prefix = "bazel-lib-2.5.0", + urls = ["https://github.com/aspect-build/bazel-lib/releases/download/v2.5.0/bazel-lib-v2.5.0.tar.gz"], +) diff --git a/modules/aspect_rules_rollup/1.0.2/patches/module_dot_bazel_version.patch b/modules/aspect_rules_rollup/1.0.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e45a545175e --- /dev/null +++ b/modules/aspect_rules_rollup/1.0.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/rules_rollup" + + module( + name = "aspect_rules_rollup", +- version = "0.0.0", ++ version = "1.0.2", + compatibility_level = 1, + ) + + # Lower-bound (minimum) versions of direct dependencies diff --git a/modules/aspect_rules_rollup/1.0.2/presubmit.yml b/modules/aspect_rules_rollup/1.0.2/presubmit.yml new file mode 100644 index 00000000000..d03792f12db --- /dev/null +++ b/modules/aspect_rules_rollup/1.0.2/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/smoke' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004', 'windows'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_rollup/1.0.2/source.json b/modules/aspect_rules_rollup/1.0.2/source.json new file mode 100644 index 00000000000..264b08a34ca --- /dev/null +++ b/modules/aspect_rules_rollup/1.0.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-ZpSkLJm4tGqHiFdVl0GdMc32wWP+dzVHMOsatAB/tqo=", + "strip_prefix": "rules_rollup-1.0.2", + "url": "https://github.com/aspect-build/rules_rollup/releases/download/v1.0.2/rules_rollup-v1.0.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-n3ZMU8UfwRvc0PaXTC6kVji02etdiH+RL4JMI5dkEI4=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_rollup/metadata.json b/modules/aspect_rules_rollup/metadata.json index fe139b00895..60aa76b094b 100644 --- a/modules/aspect_rules_rollup/metadata.json +++ b/modules/aspect_rules_rollup/metadata.json @@ -13,7 +13,8 @@ "versions": [ "0.15.0", "0.15.2", - "1.0.0" + "1.0.0", + "1.0.2" ], "yanked_versions": {} }