Skip to content

Commit

Permalink
bump musl to 1.2.3, like done in rust 1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Dec 23, 2023
1 parent a537585 commit 628b95e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .changes/1346.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "bump musl to 1.2.3, like done in rust 1.71",
"type": "changed"
}
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,33 +328,33 @@ terminate.
| `aarch64-linux-android` [1] | 9.0.8 | 9.0.8 || 6.1.0 ||
| `aarch64-unknown-linux-gnu` | 2.31 | 9.4.0 || 6.1.0 ||
| `aarch64-unknown-linux-gnu:centos` [7] | 2.17 | 4.8.5 | | 4.2.1 ||
| `aarch64-unknown-linux-musl` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `aarch64-unknown-linux-musl` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `arm-linux-androideabi` [1] | 9.0.8 | 9.0.8 || 6.1.0 ||
| `arm-unknown-linux-gnueabi` | 2.31 | 9.4.0 || 6.1.0 ||
| `arm-unknown-linux-gnueabihf` | 2.31 | 8.5.0 || 6.1.0 ||
| `arm-unknown-linux-musleabi` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `arm-unknown-linux-musleabihf` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `arm-unknown-linux-musleabi` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `arm-unknown-linux-musleabihf` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `armv5te-unknown-linux-gnueabi` | 2.31 | 9.4.0 || 6.1.0 ||
| `armv5te-unknown-linux-musleabi` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `armv5te-unknown-linux-musleabi` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `armv7-linux-androideabi` [1] | 9.0.8 | 9.0.8 || 6.1.0 ||
| `armv7-unknown-linux-gnueabi` | 2.31 | 9.4.0 || 6.1.0 ||
| `armv7-unknown-linux-gnueabihf` | 2.31 | 9.4.0 || 6.1.0 ||
| `armv7-unknown-linux-musleabi` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `armv7-unknown-linux-musleabihf` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `armv7-unknown-linux-musleabi` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `armv7-unknown-linux-musleabihf` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `i586-unknown-linux-gnu` | 2.31 | 9.4.0 || N/A ||
| `i586-unknown-linux-musl` | 1.1.24 | 9.2.0 || N/A ||
| `i586-unknown-linux-musl` | 1.2.3 | 9.2.0 || N/A ||
| `i686-unknown-freebsd` | 1.5 | 6.4.0 || N/A | |
| `i686-linux-android` [1] | 9.0.8 | 9.0.8 || 6.1.0 ||
| `i686-pc-windows-gnu` | N/A | 9.4 || N/A ||
| `i686-unknown-linux-gnu` | 2.31 | 9.4.0 || 6.1.0 ||
| `mips-unknown-linux-gnu` | 2.30 | 9.4.0 || 6.1.0 ||
| `mips-unknown-linux-musl` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `mips-unknown-linux-musl` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `mips64-unknown-linux-gnuabi64` | 2.30 | 9.4.0 || 6.1.0 ||
| `mips64-unknown-linux-muslabi64` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `mips64-unknown-linux-muslabi64` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `mips64el-unknown-linux-gnuabi64` | 2.30 | 9.4.0 || 6.1.0 ||
| `mips64el-unknown-linux-muslabi64` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `mips64el-unknown-linux-muslabi64` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `mipsel-unknown-linux-gnu` | 2.30 | 9.4.0 || 6.1.0 ||
| `mipsel-unknown-linux-musl` | 1.1.24 | 9.2.0 || 6.1.0 ||
| `mipsel-unknown-linux-musl` | 1.2.3 | 9.2.0 || 6.1.0 ||
| `powerpc-unknown-linux-gnu` | 2.31 | 9.4.0 || 6.1.0 ||
| `powerpc64-unknown-linux-gnu` | 2.31 | 9.4.0 || 6.1.0 ||
| `powerpc64le-unknown-linux-gnu` | 2.31 | 9.4.0 || 6.1.0 ||
Expand All @@ -380,7 +380,7 @@ terminate.
| `x86_64-unknown-illumos` | 1.20.4 | 8.4.0 || N/A | |
| `x86_64-unknown-linux-gnu` | 2.31 | 9.4.0 || 6.1.0 ||
| `x86_64-unknown-linux-gnu:centos` [5] | 2.17 | 4.8.5 || 4.2.1 ||
| `x86_64-unknown-linux-musl` | 1.1.24 | 9.2.0 || N/A ||
| `x86_64-unknown-linux-musl` | 1.2.3 | 9.2.0 || N/A ||
| `x86_64-unknown-netbsd` [3] | 9.2.0 | 9.4.0 || N/A | |
<!--| `asmjs-unknown-emscripten` [7] | 3.1.14 | 15.0.0 | ✓ | N/A | ✓ |-->

Expand Down
11 changes: 6 additions & 5 deletions docker/musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ hide_output() {
}

main() {
local version=0.9.9
local version=fe91582

install_packages ca-certificates curl build-essential

local td
td="$(mktemp -d)"

pushd "${td}"
curl --retry 3 -sSfL "https://github.com/richfelker/musl-cross-make/archive/v${version}.tar.gz" -O
tar --strip-components=1 -xzf "v${version}.tar.gz"
curl --retry 3 -sSfL "https://github.com/richfelker/musl-cross-make/archive/${version}.tar.gz" -O
tar --strip-components=1 -xzf "${version}.tar.gz"

# Don't depend on the mirrors of sabotage linux that musl-cross-make uses.
local linux_headers_site=https://ci-mirrors.rust-lang.org/rustc/sabotage-linux-tarballs
local linux_ver=headers-4.19.88

# alpine GCC is built with `--enable-default-pie`, so we want to
# ensure we use that. we want support for shared runtimes except for
Expand All @@ -44,12 +45,12 @@ main() {
# with popular musl distros.
hide_output make install "-j$(nproc)" \
GCC_VER=9.2.0 \
MUSL_VER=1.1.24 \
MUSL_VER=1.2.3 \
BINUTILS_VER=2.33.1 \
DL_CMD='curl --retry 3 -sSfL -C - -o' \
LINUX_HEADERS_SITE="${linux_headers_site}" \
LINUX_VER="${linux_ver}" \
OUTPUT=/usr/local/ \
"GCC_CONFIG += --enable-default-pie" \
"${@}"

purge_packages
Expand Down

0 comments on commit 628b95e

Please sign in to comment.