Skip to content

Commit

Permalink
Merge #452
Browse files Browse the repository at this point in the history
452: Bump Ubuntu container version and MUSL-related libs r=therealprof a=brainstorm

Several reasons, including but not limited to:

1) MUSL-compiled OpenSSL benefits from MUSL versions 1.2.0 and up, otherwise it needs to be badly patched, see fornwall/rust-static-builder#3 (comment).
2) DWARFv2 compressed debugging symbols mess up with old toolchains and linkers, see rust-bio/rust-htslib#231.

Co-authored-by: Roman Valls Guimera <[email protected]>
  • Loading branch information
bors[bot] and brainstorm authored Sep 3, 2020
2 parents 5d35b3f + bcad0a2 commit 699f07a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile.armv7-unknown-linux-musleabihf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

COPY common.sh /
RUN /common.sh
Expand All @@ -17,7 +17,8 @@ RUN /musl.sh \
TARGET=arm-linux-musleabihf \
"COMMON_CONFIG += --with-arch=armv7-a \
--with-float=hard \
--with-mode=thumb"
--with-mode=thumb \
--with-fpu=vfp"

# Allows qemu run dynamic linked binaries
RUN ln -sf \
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.x86_64-unknown-linux-musl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

COPY common.sh /
RUN /common.sh
Expand Down
8 changes: 4 additions & 4 deletions docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -euo pipefail
main() {
# arch in the rust target
local arch="${1}" \
kversion=4.9.0-11
kversion=4.19.0-10

local debsource="deb http://http.debian.net/debian/ stretch main"
debsource="${debsource}\ndeb http://security.debian.org/ stretch/updates main"
local debsource="deb http://http.debian.net/debian/ buster main"
debsource="${debsource}\ndeb http://security.debian.org/ buster/updates main"

local dropbear="dropbear-bin"

Expand Down Expand Up @@ -37,7 +37,7 @@ main() {
kernel="${kversion}-5kc-malta"
;;
powerpc)
# there is no stretch powerpc port, so we use jessie
# there is no buster powerpc port, so we use jessie
# use a more recent kernel from backports
kernel=4.9.0-0.bpo.6-powerpc
debsource="deb http://archive.debian.org/debian jessie main"
Expand Down
7 changes: 4 additions & 3 deletions docker/musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ hide_output() {
}

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

local dependencies=(
ca-certificates
Expand All @@ -44,8 +44,9 @@ main() {
tar --strip-components=1 -xzf "v${version}.tar.gz"

hide_output make install "-j$(nproc)" \
GCC_VER=6.4.0 \
MUSL_VER=1.1.22 \
GCC_VER=9.2.0 \
MUSL_VER=1.2.0 \
BINUTILS_VER=2.33.1 \
DL_CMD='curl --retry 3 -sSfL -C - -o' \
OUTPUT=/usr/local/ \
"${@}"
Expand Down

0 comments on commit 699f07a

Please sign in to comment.