Skip to content

Commit d5c1a5c

Browse files
committed
ci: Bump musl 1.2.5->1.2.6 and Alpine headers 3.20->3.24 (kernel 6.6->7.0)
1 parent da91ee5 commit d5c1a5c

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

ci/install-musl.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -eux
88
arch="$1"
99
version="$2"
1010
old_musl=1.1.24
11-
new_musl=1.2.5
11+
new_musl=1.2.6
1212

1313
case "$arch" in
1414
loongarch64) musl_version="$new_musl" ;;
@@ -108,18 +108,20 @@ rm -rf "$musl"
108108

109109
# Download, configure, build, and install musl-sanitized kernel headers.
110110

111-
# Alpine follows stable kernel releases, 3.20 uses Linux 6.6 headers.
112-
alpine_version=3.20
111+
# Alpine follows stable kernel releases, 3.24 uses Linux 7.0 headers.
112+
alpine_version=3.24
113113
alpine_git=https://git.alpinelinux.org/aports
114114

115-
# This routine piggybacks on: https://git.alpinelinux.org/aports/tree/main/linux-headers?h=3.20-stable
115+
# This routine piggybacks on: https://git.alpinelinux.org/aports/tree/main/linux-headers?h=3.24-stable
116116
git clone -n --depth=1 --filter=tree:0 -b "${alpine_version}-stable" "$alpine_git"
117117
(
118118
cd aports
119119
git sparse-checkout set --no-cone main/linux-headers
120120
git checkout
121-
122121
cd main/linux-headers
122+
123+
# Create a version of APKBUILD that dumps the variables we're interested
124+
# in. This file doesn't retrieve or build anything on its own.
123125
cp APKBUILD APKBUILD.vars
124126
cat <<- EOF >> APKBUILD.vars
125127
echo "\$source" > alpine-source
@@ -129,8 +131,9 @@ git clone -n --depth=1 --filter=tree:0 -b "${alpine_version}-stable" "$alpine_gi
129131
EOF
130132

131133
# Use a mirror since kernel.org can be a bit inconsistent
132-
sed -i 's|https://kernel.org/pub/linux/kernel|https://ci-mirrors.rust-lang.org/linux/kernel|g' \
133-
APKBUILD.vars
134+
# FIXME(ci): re-enable once the mirror URL is fixed
135+
# sed -i 's|https://kernel.org/pub/linux/kernel|https://ci-mirrors.rust-lang.org/linux/kernel|g' \
136+
# APKBUILD.vars
134137

135138
cat APKBUILD.vars
136139

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4257,6 +4257,7 @@ fn test_linux(target: &str) {
42574257

42584258
// Recent additions
42594259
"ptp_sys_offset_extended" if kernel < (6, 12) => true,
4260+
"epoll_params" if old_musl => true,
42604261
"epoll_params" => kernel < (6, 9),
42614262
"mnt_ns_info" => kernel < (6, 12),
42624263

@@ -4772,6 +4773,7 @@ fn test_linux(target: &str) {
47724773
| "PF_RANDOMIZE" | "PF_NO_SETAFFINITY" | "PF_MCE_EARLY" | "PF_MEMALLOC_PIN"
47734774
| "PF_BLOCK_TS" | "PF_SUSPEND_TASK" => true,
47744775

4776+
"EPIOCSPARAMS" | "EPIOCGPARAMS" if old_musl => true,
47754777
"EPIOCSPARAMS" | "EPIOCGPARAMS" => kernel < (6, 9),
47764778
"MAP_DROPPABLE" => kernel < (6, 11),
47774779
"SOF_TIMESTAMPING_OPT_RX_FILTER" => kernel < (6, 12),
@@ -4789,6 +4791,7 @@ fn test_linux(target: &str) {
47894791
"SECURE_ALL_BITS" | "SECURE_ALL_LOCKS" => kernel < (6, 14),
47904792

47914793
// Recent additions
4794+
"AT_HWCAP3" | "AT_HWCAP4" if old_musl => true,
47924795
"AT_HWCAP3" | "AT_HWCAP4" => kernel < (6, 9),
47934796
"PTRACE_SET_SYSCALL_INFO" => kernel < (6, 16),
47944797

0 commit comments

Comments
 (0)