Skip to content

Commit 6bc9e95

Browse files
authored
Try #807:
2 parents 3ded782 + f00faeb commit 6bc9e95

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2929

3030
### Changed
3131

32+
- #807 - update Qemu to 6.1.0 on images using Ubuntu 18.04+.
3233
- #775 - forward Cargo exit code to host
3334
- #762 - re-enabled `x86_64-unknown-dragonfly` target.
3435
- #747 - reduced android image sizes.

docker/qemu.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,15 @@ main() {
170170
libpixman-1-dev \
171171
libselinux1-dev \
172172
zlib1g-dev
173+
174+
# if we have python3.6+, we can install qemu 6.1.0, which needs ninja-build
175+
# ubuntu 16.04 only provides python3.5, so remove when we have a newer qemu.
176+
is_ge_python36=$(python3 -c "import sys; print(int(sys.version_info >= (3, 6)))")
177+
if [[ "${is_ge_python36}" == "1" ]]; then
178+
if_ubuntu version=6.1.0
179+
if_ubuntu install_packages ninja-build
180+
fi
181+
173182
local td
174183
td="$(mktemp -d)"
175184

0 commit comments

Comments
 (0)