[Qemu-devel] [PATCH 0/4] docker: Improve 'host-cross' image

Philippe Mathieu-Daudé posted 4 patches 7 years, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180717022924.25428-1-f4bug@amsat.org
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
.shippable.yml                                |  4 +-
tests/docker/Makefile.include                 |  2 +-
tests/docker/dockerfiles/debian-amd64.docker  | 39 ---------
.../dockerfiles/debian-host-cross.docker      | 83 +++++++++++++++++++
4 files changed, 86 insertions(+), 42 deletions(-)
delete mode 100644 tests/docker/dockerfiles/debian-amd64.docker
create mode 100644 tests/docker/dockerfiles/debian-host-cross.docker
[Qemu-devel] [PATCH 0/4] docker: Improve 'host-cross' image
Posted by Philippe Mathieu-Daudé 7 years, 3 months ago
Sorry I don't have a better name for this image,
it is meant to cross-build for the same architecture
than the host.

Due to the bad name, explicitely tagged the last 2
patches as 'RFC'.

Tested on x86_64 and aarch64, should also work on
s390x and ppc64le (per the Docker doc).

If they are volunteers for test, the command is as simple as:

  $ make docker-test-quick@debian-host-cross [V=1]

Regards,

Phil.

Philippe Mathieu-Daudé (4):
  docker: Use the host architecture
  docker: Improve how the virgl library is built
  docker: Rename 'amd64' image as 'host-cross'
  docker: Add many libraries to the 'host-cross' image

 .shippable.yml                                |  4 +-
 tests/docker/Makefile.include                 |  2 +-
 tests/docker/dockerfiles/debian-amd64.docker  | 39 ---------
 .../dockerfiles/debian-host-cross.docker      | 83 +++++++++++++++++++
 4 files changed, 86 insertions(+), 42 deletions(-)
 delete mode 100644 tests/docker/dockerfiles/debian-amd64.docker
 create mode 100644 tests/docker/dockerfiles/debian-host-cross.docker

-- 
2.18.0


Re: [Qemu-devel] [PATCH 0/4] docker: Improve 'host-cross' image
Posted by Cornelia Huck 7 years, 3 months ago
On Mon, 16 Jul 2018 23:29:20 -0300
Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:

> Sorry I don't have a better name for this image,
> it is meant to cross-build for the same architecture
> than the host.
> 
> Due to the bad name, explicitely tagged the last 2
> patches as 'RFC'.
> 
> Tested on x86_64 and aarch64, should also work on
> s390x and ppc64le (per the Docker doc).
> 
> If they are volunteers for test, the command is as simple as:
> 
>   $ make docker-test-quick@debian-host-cross [V=1]

On s390x, all looks reasonable until it tries to install libxen-dev:

Step 4/14 : RUN DEBIAN_FRONTEND=noninteractive eatmydata     apt-get install -y --no-install-recommends         libaio-dev         libasound2-dev         libattr1-dev         libbluetooth-dev         libbrlapi-dev         libbz2-dev         libcacard-dev         libcap-dev         libcap-ng-dev         libcapstone-dev         libcurl4-gnutls-dev         libepoxy-dev         libfdt-dev         libibverbs-dev         libiscsi-dev         libjemalloc-dev         libjpeg-dev         liblttng-ust-dev         liblzo2-dev         libncursesw5-dev         libnfs-dev         libnss3-dev         libpixman-1-dev         libpulse-dev         librados-dev         librbd-dev         librdmacm-dev         libseccomp-dev         libsnappy-dev         libspice-protocol-dev         libssh2-1-dev         liburcu-dev         libusb-1.0-0-dev         libusbredirhost-dev         libusbredirparser-dev         libvdeplug-dev         libvte-dev         libxen-dev         uuid-dev         xfslibs-dev
 ---> Running in a7f6ae892a05
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libxen-dev

Re: [Qemu-devel] [PATCH 0/4] docker: Improve 'host-cross' image
Posted by Philippe Mathieu-Daudé 7 years, 3 months ago
Hi Cornelia,

On 07/17/2018 11:12 AM, Cornelia Huck wrote:
> On Mon, 16 Jul 2018 23:29:20 -0300
> Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> 
>> Sorry I don't have a better name for this image,
>> it is meant to cross-build for the same architecture
>> than the host.
>>
>> Due to the bad name, explicitely tagged the last 2
>> patches as 'RFC'.
>>
>> Tested on x86_64 and aarch64, should also work on
>> s390x and ppc64le (per the Docker doc).
>>
>> If they are volunteers for test, the command is as simple as:
>>
>>   $ make docker-test-quick@debian-host-cross [V=1]
> 
> On s390x, all looks reasonable until it tries to install libxen-dev:

https://packages.debian.org/stretch/libxen-dev#pdownload
Oh, no Xen for s390x nor ppc64el... OK.

> Step 4/14 : RUN DEBIAN_FRONTEND=noninteractive eatmydata     apt-get install -y --no-install-recommends         libaio-dev         libasound2-dev         libattr1-dev         libbluetooth-dev         libbrlapi-dev         libbz2-dev         libcacard-dev         libcap-dev         libcap-ng-dev         libcapstone-dev         libcurl4-gnutls-dev         libepoxy-dev         libfdt-dev         libibverbs-dev         libiscsi-dev         libjemalloc-dev         libjpeg-dev         liblttng-ust-dev         liblzo2-dev         libncursesw5-dev         libnfs-dev         libnss3-dev         libpixman-1-dev         libpulse-dev         librados-dev         librbd-dev         librdmacm-dev         libseccomp-dev         libsnappy-dev         libspice-protocol-dev         libssh2-1-dev         liburcu-dev         libusb-1.0-0-dev         libusbredirhost-dev         libusbredirparser-dev         libvdeplug-dev         libvte-dev         libxen-dev         uuid-dev         xfslibs-dev
>  ---> Running in a7f6ae892a05
> Reading package lists...
> Building dependency tree...
> Reading state information...
> E: Unable to locate package libxen-dev

Thanks for testing this, since the first steps passed, the following
shouldn't be a problem now.

Regards,

Phil.