Skip to content

Commit d17bb16

Browse files
committed
Add GitHub source for org_lzma_lzma http_archive.
The Fedora URL is sometimes flaky and causes download errors when fetching the dependency for boost. Example errors: google/xls#3254 ``` ERROR: /home/testing/.cache/bazel/_bazel_testing/5eeddc84bceff4fbe76fd8c516cb1790/external/bazel_tools/tools/build_defs/repo/http.bzl:136:45: An error occurred during the fetch of repository 'org_lzma_lzma': Traceback (most recent call last): File "/home/testing/.cache/bazel/_bazel_testing/5eeddc84bceff4fbe76fd8c516cb1790/external/bazel_tools/tools/build_defs/repo/http.bzl", line 136, column 45, in _http_archive_impl download_info = ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://src.fedoraproject.org/lookaside/extras/xz/xz-5.4.6.tar.gz/sha512/b08a61d8d478d3b4675cb1ddacdbbd98dc6941a55bcdd81a28679e54e9367d3a595fa123ac97874a17da571c1b712e2a3e901c2737099a9d268616a1ba3de497/xz-5.4.6.tar.gz] to /home/testing/.cache/bazel/_bazel_testing/5eeddc84bceff4fbe76fd8c516cb1790/external/org_lzma_lzma/temp214682858572773859/xz-5.4.6.tar.gz: Connect timed out ```
1 parent 8cc8977 commit d17bb16

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dependency_support/boost/downgrade_lzma.patch

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ diff --git boost/boost.bzl boost/boost.bzl
22
index 4381996..587a37d 100644
33
--- boost/boost.bzl
44
+++ boost/boost.bzl
5-
@@ -140,9 +140,9 @@ def boost_deps():
5+
@@ -140,9 +140,12 @@ def boost_deps():
66
http_archive,
77
name = "org_lzma_lzma",
88
build_file = "@com_github_nelhage_rules_boost//:lzma.BUILD",
99
- url = "https://github.com/tukaani-project/xz/releases/download/v5.4.3/xz-5.4.3.tar.gz",
1010
- sha256 = "1c382e0bc2e4e0af58398a903dd62fff7e510171d2de47a1ebe06d1528e9b7e9",
1111
- strip_prefix = "xz-5.4.3",
12-
+ url = "https://src.fedoraproject.org/lookaside/extras/xz/xz-5.4.6.tar.gz/sha512/b08a61d8d478d3b4675cb1ddacdbbd98dc6941a55bcdd81a28679e54e9367d3a595fa123ac97874a17da571c1b712e2a3e901c2737099a9d268616a1ba3de497/xz-5.4.6.tar.gz",
12+
+ urls = [
13+
+ "https://github.com/tukaani-project/xz/releases/download/v5.4.6/xz-5.4.6.tar.gz",
14+
+ "https://src.fedoraproject.org/lookaside/extras/xz/xz-5.4.6.tar.gz/sha512/b08a61d8d478d3b4675cb1ddacdbbd98dc6941a55bcdd81a28679e54e9367d3a595fa123ac97874a17da571c1b712e2a3e901c2737099a9d268616a1ba3de497/xz-5.4.6.tar.gz",
15+
+ ],
1316
+ sha256 = "aeba3e03bf8140ddedf62a0a367158340520f6b384f75ca6045ccc6c0d43fd5c",
1417
+ strip_prefix = "xz-5.4.6",
1518
)
16-
19+
1720
maybe(

0 commit comments

Comments
 (0)