Skip to content

Commit c31e85f

Browse files
authored
Merge pull request #1669 from JohnTitor/focal
Update Ubuntu images to 19.10
2 parents 0a51042 + eee027b commit c31e85f

File tree

29 files changed

+44
-30
lines changed

29 files changed

+44
-30
lines changed

ci/azure.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pr: ["master"]
1212
jobs:
1313
- job: DockerLinuxTier1
1414
pool:
15-
vmImage: ubuntu-16.04
15+
vmImage: ubuntu-18.04
1616
steps:
1717
- template: azure-install-rust.yml
1818
- bash: LIBC_CI=1 sh ./ci/run-docker.sh $TARGET
@@ -27,7 +27,7 @@ jobs:
2727
- job: DockerLinuxTier2
2828
#dependsOn: DockerLinuxTier1
2929
pool:
30-
vmImage: ubuntu-16.04
30+
vmImage: ubuntu-18.04
3131
steps:
3232
- template: azure-install-rust.yml
3333
- bash: LIBC_CI=1 sh ./ci/run-docker.sh $TARGET

ci/docker/aarch64-linux-android/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN dpkg --add-architecture i386 && \
44
apt-get update && \

ci/docker/aarch64-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22
RUN apt-get update && apt-get install -y --no-install-recommends \
33
gcc libc6-dev ca-certificates \
44
gcc-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user

ci/docker/aarch64-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc make libc6-dev git curl ca-certificates \

ci/docker/arm-linux-androideabi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN dpkg --add-architecture i386 && \
44
apt-get update && \

ci/docker/arm-unknown-linux-gnueabihf/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22
RUN apt-get update && apt-get install -y --no-install-recommends \
33
gcc libc6-dev ca-certificates \
44
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user

ci/docker/arm-unknown-linux-musleabihf/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc make libc6-dev git curl ca-certificates \

ci/docker/asmjs-unknown-emscripten/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends \

ci/docker/i686-linux-android/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN dpkg --add-architecture i386 && \
44
apt-get update && \

ci/docker/i686-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22
RUN apt-get update
33
RUN apt-get install -y --no-install-recommends \
44
gcc-multilib libc6-dev ca-certificates

ci/docker/i686-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN dpkg --add-architecture i386
44
RUN apt-get update

ci/docker/mips-unknown-linux-gnu/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# FIXME: Ubuntu 19.10 is missing gcc-mips-linux-gnu.
12
FROM ubuntu:19.04
23

34
RUN apt-get update && apt-get install -y --no-install-recommends \

ci/docker/mips-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates qemu-system-mips curl \

ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \

ci/docker/mips64-unknown-linux-muslabi64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc make libc6-dev git curl ca-certificates \

ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# FIXME: Ubuntu 19.10 is missing gcc-mips-linux-gnu.
12
FROM ubuntu:19.04
23

34
RUN apt-get update && apt-get install -y --no-install-recommends \

ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc make libc6-dev git curl ca-certificates \

ci/docker/mipsel-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates qemu-system-mipsel curl \

ci/docker/powerpc-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \

ci/docker/powerpc64-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \

ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \

ci/docker/s390x-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
curl ca-certificates \

ci/docker/sparc64-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
curl ca-certificates \

ci/docker/wasm32-unknown-emscripten/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends \

ci/docker/x86_64-linux-android/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends \

ci/docker/x86_64-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22
RUN apt-get update
33
RUN apt-get install -y --no-install-recommends \
44
gcc libc6-dev ca-certificates linux-headers-generic

ci/docker/x86_64-unknown-linux-gnux32/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22
RUN apt-get update
33
RUN apt-get install -y --no-install-recommends \
44
gcc-multilib libc6-dev ca-certificates

ci/docker/x86_64-unknown-linux-musl/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.04
1+
FROM ubuntu:19.10
22

33
RUN apt-get update
44
RUN apt-get install -y --no-install-recommends \

libc-test/build.rs

+15-3
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,7 @@ fn test_linux(target: &str) {
20852085
let x86_32 = target.contains("i686");
20862086
let x86_64 = target.contains("x86_64");
20872087
let aarch64_musl = target.contains("aarch64") && musl;
2088+
let gnuabihf = target.contains("gnueabihf");
20882089

20892090
let mut cfg = ctest_cfg();
20902091
cfg.define("_GNU_SOURCE", None);
@@ -2182,12 +2183,14 @@ fn test_linux(target: &str) {
21822183
"errno.h",
21832184
// `sys/io.h` is only available on x86*, Alpha, IA64, and 32-bit
21842185
// ARM: https://bugzilla.redhat.com/show_bug.cgi?id=1116162
2185-
[x86_64 || x86_32 || arm]: "sys/io.h",
2186+
// Also unavailable on gnuabihf with glibc 2.30.
2187+
// https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b33f373c7b9199e00ba5fbafd94ac9bfb4337b1
2188+
[(x86_64 || x86_32 || arm) && !gnuabihf]: "sys/io.h",
21862189
// `sys/reg.h` is only available on x86 and x86_64
21872190
[x86_64 || x86_32]: "sys/reg.h",
21882191
// sysctl system call is deprecated and not available on musl
2189-
// It is also unsupported in x32:
2190-
[!(x32 || musl)]: "sys/sysctl.h",
2192+
// It is also unsupported in x32, deprecated since glibc 2.30:
2193+
[!(x32 || musl || gnu)]: "sys/sysctl.h",
21912194
// <execinfo.h> is not supported by musl:
21922195
// https://www.openwall.com/lists/musl/2015/04/09/3
21932196
[!musl]: "execinfo.h",
@@ -2329,6 +2332,12 @@ fn test_linux(target: &str) {
23292332
// glibcs (see https://github.com/rust-lang/libc/issues/1410)
23302333
"ucontext_t" if gnu => true,
23312334

2335+
// FIXME: Somehow we cannot include headers correctly in glibc 2.30.
2336+
// So let's ignore for now and re-visit later.
2337+
// Probably related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91085
2338+
"statx" => true,
2339+
"statx_timestamp" => true,
2340+
23322341
_ => false,
23332342
}
23342343
});
@@ -2426,6 +2435,9 @@ fn test_linux(target: &str) {
24262435
// which use Debian 10.0 is too old.
24272436
"statx" if sparc64 => true,
24282437

2438+
// FIXME: Deprecated since glibc 2.30. Remove fn once upstream does.
2439+
"sysctl" if gnu => true,
2440+
24292441
_ => false,
24302442
}
24312443
});

0 commit comments

Comments
 (0)