qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0
@ 2020-03-22 12:01 Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-22 12:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, Alex Bennée, Philippe Mathieu-Daudé

Easy fixes for our Docker images.

Since v1:
- Reword gcrypt patch description (requested by Aleksandar)

Philippe Mathieu-Daudé (4):
  tests/docker: Keep package list sorted
  tests/docker: Install gcrypt devel package in Debian image
  tests/docker: Use Python3 PyYAML in the Fedora image
  tests/docker: Add libepoxy and libudev packages to the Fedora image

 tests/docker/dockerfiles/centos7.docker      |  6 ++++--
 tests/docker/dockerfiles/debian-amd64.docker |  1 +
 tests/docker/dockerfiles/fedora.docker       | 10 +++++++---
 3 files changed, 12 insertions(+), 5 deletions(-)

-- 
2.21.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH-for-5.0 v2 1/4] tests/docker: Keep package list sorted
  2020-03-22 12:01 [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
@ 2020-03-22 12:01 ` Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-22 12:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, Alex Bennée, Philippe Mathieu-Daudé

Keep package list sorted, this eases rebase/cherry-pick.

Fixes: 3a6784813
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/docker/dockerfiles/centos7.docker | 6 ++++--
 tests/docker/dockerfiles/fedora.docker  | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/tests/docker/dockerfiles/centos7.docker b/tests/docker/dockerfiles/centos7.docker
index cdd72de7eb..9a2a2e515d 100644
--- a/tests/docker/dockerfiles/centos7.docker
+++ b/tests/docker/dockerfiles/centos7.docker
@@ -2,6 +2,8 @@ FROM centos:7
 RUN yum install -y epel-release centos-release-xen-48
 
 RUN yum -y update
+
+# Please keep this list sorted alphabetically
 ENV PACKAGES \
     bison \
     bzip2 \
@@ -19,6 +21,7 @@ ENV PACKAGES \
     libepoxy-devel \
     libfdt-devel \
     librdmacm-devel \
+    libzstd-devel \
     lzo-devel \
     make \
     mesa-libEGL-devel \
@@ -33,7 +36,6 @@ ENV PACKAGES \
     tar \
     vte-devel \
     xen-devel \
-    zlib-devel \
-    libzstd-devel
+    zlib-devel
 RUN yum install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker
index a6522228c0..019eb12dcb 100644
--- a/tests/docker/dockerfiles/fedora.docker
+++ b/tests/docker/dockerfiles/fedora.docker
@@ -1,4 +1,6 @@
 FROM fedora:30
+
+# Please keep this list sorted alphabetically
 ENV PACKAGES \
     bc \
     bison \
@@ -38,6 +40,7 @@ ENV PACKAGES \
     libubsan \
     libusbx-devel \
     libxml2-devel \
+    libzstd-devel \
     llvm \
     lzo-devel \
     make \
@@ -92,8 +95,7 @@ ENV PACKAGES \
     vte291-devel \
     which \
     xen-devel \
-    zlib-devel \
-    libzstd-devel
+    zlib-devel
 ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3
 
 RUN dnf install -y $PACKAGES
-- 
2.21.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH-for-5.0 v2 2/4] tests/docker: Install gcrypt devel package in Debian image
  2020-03-22 12:01 [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
@ 2020-03-22 12:01 ` Philippe Mathieu-Daudé
  2020-03-23 10:08   ` Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 3/4] tests/docker: Use Python3 PyYAML in the Fedora image Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-22 12:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, Alex Bennée, Philippe Mathieu-Daudé

In commit 6f8bbb374be we enabled building with the gcrypt library
on the the Debian 'x86 host', which was based on Debian Stretch.
Later in commit 698a71edbed we upgraded the Debian base image to
Buster.

Apparently Debian Stretch was listing gcrypt as a QEMU dependency,
but this is not the case anymore in Buster, so we need to install
it manually (it it not listed by 'apt-get -s build-dep qemu' in
the common debian10.docker anymore). This fixes:

 $ ../configure $QEMU_CONFIGURE_OPTS

  ERROR: User requested feature gcrypt
         configure was not able to find it.
         Install gcrypt devel >= 1.5.0

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
v2: Reword description, do not use 'Fixes:' tag (Aleksandar)
---
 tests/docker/dockerfiles/debian-amd64.docker | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/dockerfiles/debian-amd64.docker
index d4849f509f..957f0bc2e7 100644
--- a/tests/docker/dockerfiles/debian-amd64.docker
+++ b/tests/docker/dockerfiles/debian-amd64.docker
@@ -16,6 +16,7 @@ RUN apt update && \
     apt install -y --no-install-recommends \
         libbz2-dev \
         liblzo2-dev \
+        libgcrypt20-dev \
         librdmacm-dev \
         libsasl2-dev \
         libsnappy-dev \
-- 
2.21.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH-for-5.0 v2 3/4] tests/docker: Use Python3 PyYAML in the Fedora image
  2020-03-22 12:01 [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
@ 2020-03-22 12:01 ` Philippe Mathieu-Daudé
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 4/4] tests/docker: Add libepoxy and libudev packages to " Philippe Mathieu-Daudé
  2020-03-23  9:58 ` [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Alex Bennée
  4 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-22 12:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, Alex Bennée, Philippe Mathieu-Daudé

The Python2 PyYAML is now pointless, switch to the Python3 version.

Fixes: bcbf27947 (docker: move tests from python2 to python3)
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker
index 019eb12dcb..174979c7af 100644
--- a/tests/docker/dockerfiles/fedora.docker
+++ b/tests/docker/dockerfiles/fedora.docker
@@ -79,8 +79,8 @@ ENV PACKAGES \
     perl-Test-Harness \
     pixman-devel \
     python3 \
+    python3-PyYAML \
     python3-sphinx \
-    PyYAML \
     rdma-core-devel \
     SDL2-devel \
     snappy-devel \
-- 
2.21.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH-for-5.0 v2 4/4] tests/docker: Add libepoxy and libudev packages to the Fedora image
  2020-03-22 12:01 [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 3/4] tests/docker: Use Python3 PyYAML in the Fedora image Philippe Mathieu-Daudé
@ 2020-03-22 12:01 ` Philippe Mathieu-Daudé
  2020-03-23  9:58 ` [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Alex Bennée
  4 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-22 12:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Alex Bennée, Philippe Mathieu-Daudé, Peter Maydell

Install optional dependencies of QEMU to get better coverage.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/docker/dockerfiles/fedora.docker | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker
index 174979c7af..4bd2c953af 100644
--- a/tests/docker/dockerfiles/fedora.docker
+++ b/tests/docker/dockerfiles/fedora.docker
@@ -29,6 +29,7 @@ ENV PACKAGES \
     libblockdev-mpath-devel \
     libcap-ng-devel \
     libcurl-devel \
+    libepoxy-devel \
     libfdt-devel \
     libiscsi-devel \
     libjpeg-devel \
@@ -38,6 +39,7 @@ ENV PACKAGES \
     libseccomp-devel \
     libssh-devel \
     libubsan \
+    libudev-devel \
     libusbx-devel \
     libxml2-devel \
     libzstd-devel \
-- 
2.21.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0
  2020-03-22 12:01 [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
                   ` (3 preceding siblings ...)
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 4/4] tests/docker: Add libepoxy and libudev packages to " Philippe Mathieu-Daudé
@ 2020-03-23  9:58 ` Alex Bennée
  2020-03-23 10:06   ` Philippe Mathieu-Daudé
  4 siblings, 1 reply; 8+ messages in thread
From: Alex Bennée @ 2020-03-23  9:58 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: Fam Zheng, qemu-devel


Philippe Mathieu-Daudé <philmd@redhat.com> writes:

> Easy fixes for our Docker images.

Queued to testing/next, thanks.

>
> Since v1:
> - Reword gcrypt patch description (requested by Aleksandar)
>
> Philippe Mathieu-Daudé (4):
>   tests/docker: Keep package list sorted
>   tests/docker: Install gcrypt devel package in Debian image
>   tests/docker: Use Python3 PyYAML in the Fedora image
>   tests/docker: Add libepoxy and libudev packages to the Fedora image
>
>  tests/docker/dockerfiles/centos7.docker      |  6 ++++--
>  tests/docker/dockerfiles/debian-amd64.docker |  1 +
>  tests/docker/dockerfiles/fedora.docker       | 10 +++++++---
>  3 files changed, 12 insertions(+), 5 deletions(-)


-- 
Alex Bennée


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0
  2020-03-23  9:58 ` [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Alex Bennée
@ 2020-03-23 10:06   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-23 10:06 UTC (permalink / raw)
  To: Alex Bennée, Aleksandar Markovic; +Cc: qemu-devel

On 3/23/20 10:58 AM, Alex Bennée wrote:
> 
> Philippe Mathieu-Daudé <philmd@redhat.com> writes:
> 
>> Easy fixes for our Docker images.
> 
> Queued to testing/next, thanks.

Thanks, but I think Aleksandar wanted to review patch 2/4 "tests/docker: 
Install gcrypt devel package in Debian image" and now I notice I forgot 
to Cc him, oops...

> 
>>
>> Since v1:
>> - Reword gcrypt patch description (requested by Aleksandar)
>>
>> Philippe Mathieu-Daudé (4):
>>    tests/docker: Keep package list sorted
>>    tests/docker: Install gcrypt devel package in Debian image
>>    tests/docker: Use Python3 PyYAML in the Fedora image
>>    tests/docker: Add libepoxy and libudev packages to the Fedora image
>>
>>   tests/docker/dockerfiles/centos7.docker      |  6 ++++--
>>   tests/docker/dockerfiles/debian-amd64.docker |  1 +
>>   tests/docker/dockerfiles/fedora.docker       | 10 +++++++---
>>   3 files changed, 12 insertions(+), 5 deletions(-)
> 
> 



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH-for-5.0 v2 2/4] tests/docker: Install gcrypt devel package in Debian image
  2020-03-22 12:01 ` [PATCH-for-5.0 v2 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
@ 2020-03-23 10:08   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-23 10:08 UTC (permalink / raw)
  To: qemu-devel, Aleksandar Markovic; +Cc: Fam Zheng, Alex Bennée

On 3/22/20 1:01 PM, Philippe Mathieu-Daudé wrote:
> In commit 6f8bbb374be we enabled building with the gcrypt library
> on the the Debian 'x86 host', which was based on Debian Stretch.
> Later in commit 698a71edbed we upgraded the Debian base image to
> Buster.

Aleksandar, is this updated description OK with you?

> 
> Apparently Debian Stretch was listing gcrypt as a QEMU dependency,
> but this is not the case anymore in Buster, so we need to install
> it manually (it it not listed by 'apt-get -s build-dep qemu' in
> the common debian10.docker anymore). This fixes:
> 
>   $ ../configure $QEMU_CONFIGURE_OPTS
> 
>    ERROR: User requested feature gcrypt
>           configure was not able to find it.
>           Install gcrypt devel >= 1.5.0
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> v2: Reword description, do not use 'Fixes:' tag (Aleksandar)
> ---
>   tests/docker/dockerfiles/debian-amd64.docker | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/dockerfiles/debian-amd64.docker
> index d4849f509f..957f0bc2e7 100644
> --- a/tests/docker/dockerfiles/debian-amd64.docker
> +++ b/tests/docker/dockerfiles/debian-amd64.docker
> @@ -16,6 +16,7 @@ RUN apt update && \
>       apt install -y --no-install-recommends \
>           libbz2-dev \
>           liblzo2-dev \
> +        libgcrypt20-dev \
>           librdmacm-dev \
>           libsasl2-dev \
>           libsnappy-dev \
> 



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-23 10:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-22 12:01 [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
2020-03-22 12:01 ` [PATCH-for-5.0 v2 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
2020-03-22 12:01 ` [PATCH-for-5.0 v2 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
2020-03-23 10:08   ` Philippe Mathieu-Daudé
2020-03-22 12:01 ` [PATCH-for-5.0 v2 3/4] tests/docker: Use Python3 PyYAML in the Fedora image Philippe Mathieu-Daudé
2020-03-22 12:01 ` [PATCH-for-5.0 v2 4/4] tests/docker: Add libepoxy and libudev packages to " Philippe Mathieu-Daudé
2020-03-23  9:58 ` [PATCH-for-5.0 v2 0/4] tests/docker: Fixes for 5.0 Alex Bennée
2020-03-23 10:06   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).