diff mbox series

[v1,05/14] docker: disable Xen on CentOS 7

Message ID 20190125140017.6092-6-alex.bennee@linaro.org
State New
Headers show
Series testing/next (binfmt_misc, vm-build and BSD CI) | expand

Commit Message

Alex Bennée Jan. 25, 2019, 2 p.m. UTC
From: Paolo Bonzini <pbonzini@redhat.com>


The Xen repository is failing to install, disable it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 tests/docker/dockerfiles/centos7.docker | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

-- 
2.17.1

Comments

Paolo Bonzini Jan. 25, 2019, 2:04 p.m. UTC | #1
On 25/01/19 15:00, Alex Bennée wrote:
> From: Paolo Bonzini <pbonzini@redhat.com>

> 

> The Xen repository is failing to install, disable it.

> 

> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>


A better version:

--- a/tests/docker/dockerfiles/centos7.docker
+++ b/tests/docker/dockerfiles/centos7.docker
@@ -1,5 +1,6 @@
 FROM centos:7
-RUN yum install -y epel-release centos-release-xen
+RUN yum install -y epel-release centos-release-xen-48
+
 RUN yum -y update
 ENV PACKAGES \
     bison \


I can include it in my pull request too.

Paolo

> ---

>  tests/docker/dockerfiles/centos7.docker | 5 ++---

>  1 file changed, 2 insertions(+), 3 deletions(-)

> 

> diff --git a/tests/docker/dockerfiles/centos7.docker b/tests/docker/dockerfiles/centos7.docker

> index e0f18f5a41..e6fcbf4bcd 100644

> --- a/tests/docker/dockerfiles/centos7.docker

> +++ b/tests/docker/dockerfiles/centos7.docker

> @@ -1,5 +1,5 @@

>  FROM centos:7

> -RUN yum install -y epel-release centos-release-xen

> +RUN yum install -y epel-release

>  RUN yum -y update

>  ENV PACKAGES \

>      bison \

> @@ -8,7 +8,7 @@ ENV PACKAGES \

>      ccache \

>      csnappy-devel \

>      flex \

> -    g++ \

> +    gcc-c++ \

>      gcc \

>      gettext \

>      git \

> @@ -29,7 +29,6 @@ ENV PACKAGES \

>      spice-server-devel \

>      tar \

>      vte-devel \

> -    xen-devel \

>      zlib-devel

>  RUN yum install -y $PACKAGES

>  RUN rpm -q $PACKAGES | sort > /packages.txt

>
Alex Bennée Jan. 25, 2019, 3:26 p.m. UTC | #2
Paolo Bonzini <pbonzini@redhat.com> writes:

> On 25/01/19 15:00, Alex Bennée wrote:

>> From: Paolo Bonzini <pbonzini@redhat.com>

>>

>> The Xen repository is failing to install, disable it.

>>

>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

>

> A better version:

>

> --- a/tests/docker/dockerfiles/centos7.docker

> +++ b/tests/docker/dockerfiles/centos7.docker

> @@ -1,5 +1,6 @@

>  FROM centos:7

> -RUN yum install -y epel-release centos-release-xen

> +RUN yum install -y epel-release centos-release-xen-48

> +


What happens if the upstream project moves to a newer release? Will it
break again?

>  RUN yum -y update

>  ENV PACKAGES \

>      bison \

>

>

> I can include it in my pull request too.


Sure... I mainly pulled it in because it's used by the centos VM. I'm
unlikely to get a PR out today as there are some reviews needed.

>

> Paolo

>

>> ---

>>  tests/docker/dockerfiles/centos7.docker | 5 ++---

>>  1 file changed, 2 insertions(+), 3 deletions(-)

>>

>> diff --git a/tests/docker/dockerfiles/centos7.docker b/tests/docker/dockerfiles/centos7.docker

>> index e0f18f5a41..e6fcbf4bcd 100644

>> --- a/tests/docker/dockerfiles/centos7.docker

>> +++ b/tests/docker/dockerfiles/centos7.docker

>> @@ -1,5 +1,5 @@

>>  FROM centos:7

>> -RUN yum install -y epel-release centos-release-xen

>> +RUN yum install -y epel-release

>>  RUN yum -y update

>>  ENV PACKAGES \

>>      bison \

>> @@ -8,7 +8,7 @@ ENV PACKAGES \

>>      ccache \

>>      csnappy-devel \

>>      flex \

>> -    g++ \

>> +    gcc-c++ \

>>      gcc \

>>      gettext \

>>      git \

>> @@ -29,7 +29,6 @@ ENV PACKAGES \

>>      spice-server-devel \

>>      tar \

>>      vte-devel \

>> -    xen-devel \

>>      zlib-devel

>>  RUN yum install -y $PACKAGES

>>  RUN rpm -q $PACKAGES | sort > /packages.txt

>>



--
Alex Bennée
Paolo Bonzini Jan. 25, 2019, 3:27 p.m. UTC | #3
On 25/01/19 16:26, Alex Bennée wrote:
> Paolo Bonzini <pbonzini@redhat.com> writes:

> 

>> On 25/01/19 15:00, Alex Bennée wrote:

>>> From: Paolo Bonzini <pbonzini@redhat.com>

>>>

>>> The Xen repository is failing to install, disable it.

>>>

>>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

>>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

>> A better version:

>>

>> --- a/tests/docker/dockerfiles/centos7.docker

>> +++ b/tests/docker/dockerfiles/centos7.docker

>> @@ -1,5 +1,6 @@

>>  FROM centos:7

>> -RUN yum install -y epel-release centos-release-xen

>> +RUN yum install -y epel-release centos-release-xen-48

>> +

> What happens if the upstream project moves to a newer release? Will it

> break again?

> 


I don't know. We'll see. :)

Paolo
diff mbox series

Patch

diff --git a/tests/docker/dockerfiles/centos7.docker b/tests/docker/dockerfiles/centos7.docker
index e0f18f5a41..e6fcbf4bcd 100644
--- a/tests/docker/dockerfiles/centos7.docker
+++ b/tests/docker/dockerfiles/centos7.docker
@@ -1,5 +1,5 @@ 
 FROM centos:7
-RUN yum install -y epel-release centos-release-xen
+RUN yum install -y epel-release
 RUN yum -y update
 ENV PACKAGES \
     bison \
@@ -8,7 +8,7 @@  ENV PACKAGES \
     ccache \
     csnappy-devel \
     flex \
-    g++ \
+    gcc-c++ \
     gcc \
     gettext \
     git \
@@ -29,7 +29,6 @@  ENV PACKAGES \
     spice-server-devel \
     tar \
     vte-devel \
-    xen-devel \
     zlib-devel
 RUN yum install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt