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

Easy fixes for our Docker images.

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] 6+ messages in thread

* [PATCH 1/4] tests/docker: Keep package list sorted
  2020-03-20 19:05 [PATCH-for-5.0 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
@ 2020-03-20 19:05 ` Philippe Mathieu-Daudé
  2020-03-20 19:05 ` [PATCH-for-5.0 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-20 19:05 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] 6+ messages in thread

* [PATCH-for-5.0 2/4] tests/docker: Install gcrypt devel package in Debian image
  2020-03-20 19:05 [PATCH-for-5.0 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
  2020-03-20 19:05 ` [PATCH 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
@ 2020-03-20 19:05 ` Philippe Mathieu-Daudé
  2020-03-21 11:48   ` Aleksandar Markovic
  2020-03-20 19:05 ` [PATCH-for-5.0 3/4] tests/docker: Use Python3 PyYAML in the Fedora image Philippe Mathieu-Daudé
  2020-03-20 19:05 ` [PATCH 4/4] tests/docker: Add libepoxy and libudev packages to " Philippe Mathieu-Daudé
  3 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-20 19:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fam Zheng, Alex Bennée, Philippe Mathieu-Daudé

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).

 $ ../configure $QEMU_CONFIGURE_OPTS

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

Fixes: 698a71edbed & 6f8bbb374be
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 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] 6+ messages in thread

* [PATCH-for-5.0 3/4] tests/docker: Use Python3 PyYAML in the Fedora image
  2020-03-20 19:05 [PATCH-for-5.0 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
  2020-03-20 19:05 ` [PATCH 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
  2020-03-20 19:05 ` [PATCH-for-5.0 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
@ 2020-03-20 19:05 ` Philippe Mathieu-Daudé
  2020-03-20 19:05 ` [PATCH 4/4] tests/docker: Add libepoxy and libudev packages to " Philippe Mathieu-Daudé
  3 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-20 19:05 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] 6+ messages in thread

* [PATCH 4/4] tests/docker: Add libepoxy and libudev packages to the Fedora image
  2020-03-20 19:05 [PATCH-for-5.0 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-03-20 19:05 ` [PATCH-for-5.0 3/4] tests/docker: Use Python3 PyYAML in the Fedora image Philippe Mathieu-Daudé
@ 2020-03-20 19:05 ` Philippe Mathieu-Daudé
  3 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-20 19:05 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] 6+ messages in thread

* Re: [PATCH-for-5.0 2/4] tests/docker: Install gcrypt devel package in Debian image
  2020-03-20 19:05 ` [PATCH-for-5.0 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
@ 2020-03-21 11:48   ` Aleksandar Markovic
  0 siblings, 0 replies; 6+ messages in thread
From: Aleksandar Markovic @ 2020-03-21 11:48 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: Fam Zheng, Alex Bennée, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1701 bytes --]

8:06 PM Pet, 20.03.2020. Philippe Mathieu-Daudé <philmd@redhat.com> је
написао/ла:
>
> 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).
>
>  $ ../configure $QEMU_CONFIGURE_OPTS
>
>   ERROR: User requested feature gcrypt
>          configure was not able to find it.
>          Install gcrypt devel >= 1.5.0
>
> Fixes: 698a71edbed & 6f8bbb374be
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---

If the problem is caused by Debian Buster change in behavior, I think you
should not enumerate QEMU commits as something that is fixed by this patch.
That implies that something was wrong with these commits, while they were,
I suppose, fine at the moment of their integration.

Very confusing!

If you think that these commit ids deserve to be mentioned, you should say:
"Related commits are..." or similar.

Regards,
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
>
>

[-- Attachment #2: Type: text/html, Size: 2220 bytes --]

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

end of thread, other threads:[~2020-03-21 11:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 19:05 [PATCH-for-5.0 0/4] tests/docker: Fixes for 5.0 Philippe Mathieu-Daudé
2020-03-20 19:05 ` [PATCH 1/4] tests/docker: Keep package list sorted Philippe Mathieu-Daudé
2020-03-20 19:05 ` [PATCH-for-5.0 2/4] tests/docker: Install gcrypt devel package in Debian image Philippe Mathieu-Daudé
2020-03-21 11:48   ` Aleksandar Markovic
2020-03-20 19:05 ` [PATCH-for-5.0 3/4] tests/docker: Use Python3 PyYAML in the Fedora image Philippe Mathieu-Daudé
2020-03-20 19:05 ` [PATCH 4/4] tests/docker: Add libepoxy and libudev packages to " 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).