]> Git Repo - qemu.git/commitdiff
tests/docker: Use --arch-only when building Debian cross image
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 5 Mar 2021 09:23:28 +0000 (09:23 +0000)
committerAlex Bennée <[email protected]>
Wed, 10 Mar 2021 15:34:11 +0000 (15:34 +0000)
When building a Docker image based on debian10.docker on
a non-x86 host, we get:

 [2/4] RUN apt update &&     DEBIAN_FRONTEND=noninteractive eatmydata     apt build-dep -yy qemu
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:

 The following packages have unmet dependencies:
  builddeps:qemu : Depends: gcc-s390x-linux-gnu but it is not installable
                   Depends: gcc-alpha-linux-gnu but it is not installable
 E: Unable to correct problems, you have held broken packages.

Fix by using the --arch-only option suggested here:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1866032/comments/1

Suggested-by: Christian Ehrhardt <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Message-Id: <20210223211115.2971565[email protected]>
Message-Id: <20210305092328[email protected]>

tests/docker/dockerfiles/debian10.docker

index 9d42b5a4b81ac075dd1f932c6d8d4974df5dd8c7..d034acbd256f90d250b850ac0215ef2e0fa7fc56 100644 (file)
@@ -32,6 +32,6 @@ RUN apt update && \
         psmisc \
         python3 \
         python3-sphinx \
-        $(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\  -f2)
+        $(apt-get -s build-dep --arch-only qemu | egrep ^Inst | fgrep '[all]' | cut -d\  -f2)
 
 ENV FEATURES docs
This page took 0.030018 seconds and 4 git commands to generate.