Skip to content

Commit

Permalink
fix: coreutils toolchain: Use statically linked linux amd64 variant (#…
Browse files Browse the repository at this point in the history
…706)

* coreutils toolchain: Use statically linked linux amd64 variant

Uutils has a musl release artifact for linux amd64.
In the future, it should probably also be possible to add a
aarch64 musl toolchain. At the moment, this is not an upstream release
artifact.

* coreutils toolchain: temporarily add back old darwin variant

On release 0.0.26 of uutils/coreutils, the darwin x86_64 binary is missing.
Also, any releases between 0.0.23 and 0.0.26 are missing binary artifacts.
Downgrade coreutils toolchain on darwin x86_64 for now.

https://github.com/uutils/coreutils/releases/tag/0.0.26
  • Loading branch information
malt3 authored May 8, 2024
1 parent b15dc31 commit 1697a32
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/repositories.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions lib/private/coreutils_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,33 @@ COREUTILS_PLATFORMS = {
),
}

DEFAULT_COREUTILS_VERSION = "0.0.23"
DEFAULT_COREUTILS_VERSION = "0.0.26"

# https://github.com/uutils/coreutils/releases
#
# The integrity hashes can be automatically fetched for the coreutils releases by running
# `tools/coreutils_mirror_release.sh`.
COREUTILS_VERSIONS = {
"0.0.23": {
"0.0.26": {
"darwin_arm64": {
"filename": "coreutils-0.0.23-aarch64-apple-darwin.tar.gz",
"sha256": "sha256-KP90sjKxtXDbLC+o5f4+gQnvP3Tr7O0RopME4g9QF5E=",
"filename": "coreutils-0.0.26-aarch64-apple-darwin.tar.gz",
"sha256": "sha256-/A6CNYWmvOwPW443pH+wO+VtzDFgussN1hRGuANnFOU="
},
"linux_arm64": {
"filename": "coreutils-0.0.23-aarch64-unknown-linux-gnu.tar.gz",
"sha256": "sha256-8wMVMgAgf8JQ2+2LdoewkyDo416VEsf9RlMJl4jiBjk=",
"filename": "coreutils-0.0.26-aarch64-unknown-linux-musl.tar.gz",
"sha256": "sha256-9zGLFOMDjUDbraDY/hrE5zFJ0O+QYrvx2wHk3Gw3q/A="
},
"darwin_amd64": {
"filename": "coreutils-0.0.23-x86_64-apple-darwin.tar.gz",
"sha256": "sha256-SswetVAuK/hMK1r9uBvNnKj5JpSgD0bzkbsHTxOabCo=",
},
"windows_amd64": {
"filename": "coreutils-0.0.23-x86_64-pc-windows-msvc.zip",
"sha256": "sha256-aglIj5JvFGLm2ABwRzWAsZRTTD3X444V3GxHM9pGJS4=",
"filename": "coreutils-0.0.26-x86_64-pc-windows-msvc.zip",
"sha256": "sha256-6qPkqxQZM4XBBBJ80t1uvzfZiz0gBeT/zoCdfqOO3uk="
},
"linux_amd64": {
"filename": "coreutils-0.0.23-x86_64-unknown-linux-gnu.tar.gz",
"sha256": "sha256-u7OMW43Y46aXRRIKULfKdfUW51WJn6G70s5Xxwb6/1g=",
"filename": "coreutils-0.0.26-x86_64-unknown-linux-musl.tar.gz",
"sha256": "sha256-QpGVp3wmHqpt5Brd/bdj7pyMQNftcihOtaRI8z2uhp0=",
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions tools/coreutils_mirror_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ JQ_FILTER='map({
(.name | contains("i686") | not) and
(
( (.name | contains("windows")) and (.name | contains("gnu") | not) ) or
( (.name | contains("windows") | not) and (.name | contains("gnu") ) and (.name | contains("gnueabihf") | not) ) or
( .name | contains("musl") ) or
( .name | contains("darwin") )
)
))
Expand All @@ -27,7 +27,7 @@ JQ_FILTER='map({
sub("aarch64"; "arm64") |
gsub("\\d+.\\d+.\\d+-"; "") |
rtrimstr("-msvc") |
rtrimstr("-gnu") |
rtrimstr("-musl") |
split("-") |
reverse |
join("_"),
Expand Down

0 comments on commit 1697a32

Please sign in to comment.