tools: Drop gettext as a build dependency
PATCH 1/1 tools: Drop gettext as a build dependency
From: Andrew Cooper <[email protected]>
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles, and drop them from CirrusCI and TravisCI.
---
Notes:
As we dropped "gettext" from many containers, build on staging-4.15 starts to fail due to unmet dependency. But that dependency isn't needed, but configure hasn't been updated.
pipeline with many fail due to missing gettext:
https://gitlab.com/xen-project/xen/-/pipelines/793302203
pipeline with that patch backported:
https://gitlab.com/xen-project/people/anthonyper/xen/-/pipelines/794335026
still several build failure, but less, and not due to configure step failing.
Commit can be cherry-picked cleanly to staging-4.15.
That commit would be needed as well on staging-4.14, but it doesn't apply cleanly due to change in configure, and missing dockerfiles.
.cirrus.yml | 2 +- .travis.yml | 1 - README | 1 - .../build/alpine/3.12-arm64v8.dockerfile | 1 + automation/build/alpine/3.12.dockerfile | 1 + automation/build/centos/7.2.dockerfile | 1 + automation/build/centos/7.dockerfile | 1 + .../build/debian/jessie-i386.dockerfile | 1 + automation/build/debian/jessie.dockerfile | 1 + .../build/debian/stretch-i386.dockerfile | 1 + automation/build/debian/stretch.dockerfile | 1 + .../build/debian/unstable-arm64v8.dockerfile | 1 + .../build/debian/unstable-i386.dockerfile | 1 + automation/build/debian/unstable.dockerfile | 1 + automation/build/fedora/29.dockerfile | 1 + .../build/suse/opensuse-leap.dockerfile | 1 + .../build/suse/opensuse-tumbleweed.dockerfile | 1 + automation/build/ubuntu/bionic.dockerfile | 1 + automation/build/ubuntu/focal.dockerfile | 1 + automation/build/ubuntu/trusty.dockerfile | 1 + automation/build/ubuntu/xenial.dockerfile | 1 + .../alpine/3.12-arm64v8.dockerfile | 1 + tools/configure | 49 ------------------- tools/configure.ac | 2 - 24 files changed, 20 insertions(+), 54 deletions(-)
.cirrus.yml +1 -1
@@ -4,7 +4,7 @@ freebsd_template: &FREEBSD_TEMPLATE APPEND_LIB: /usr/local/lib APPEND_INCLUDES: /usr/local/include - install_script: pkg install -y seabios gettext-tools gmake + install_script: pkg install -y seabios gmake pkgconf python libiconv bison perl5 yajl lzo2 pixman argp-standalone libxml2 glib git
.travis.yml +0 -1
@@ -54,7 +54,6 @@ addons: - pkg-config - flex - bison - - gettext - acpica-tools - bin86 - bcc
README +0 -1
@@ -63,7 +63,6 @@ provided by your OS distributor: * bridge-utils package (/sbin/brctl) * iproute package (/sbin/ip) * GNU bison and GNU flex - * GNU gettext * ACPI ASL compiler (iasl) In addition to the above there are a number of optional build
automation/build/alpine/3.12-arm64v8.dockerfile +1 -0
@@ -22,6 +22,7 @@ RUN \ apk add dev86 && \ apk add dtc-dev && \ apk add gcc && \ + # gettext for Xen < 4.13 apk add gettext && \ apk add git && \ apk add iasl && \
automation/build/alpine/3.12.dockerfile +1 -0
@@ -23,6 +23,7 @@ RUN \ apk add gcc && \ apk add g++ && \ apk add clang && \ + # gettext for Xen < 4.13 apk add gettext && \ apk add git && \ apk add iasl && \
automation/build/centos/7.2.dockerfile +1 -0
@@ -26,6 +26,7 @@ RUN rpm --rebuilddb && \ python-devel \ libuuid-devel \ pkgconfig \ + # gettext for Xen < 4.13 gettext \ flex \ bison \
automation/build/centos/7.dockerfile +1 -0
@@ -24,6 +24,7 @@ RUN yum -y install \ python-devel \ libuuid-devel \ pkgconfig \ + # gettext for Xen < 4.13 gettext \ flex \ bison \
automation/build/debian/jessie-i386.dockerfile +1 -0
@@ -28,6 +28,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/jessie.dockerfile +1 -0
@@ -26,6 +26,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/stretch-i386.dockerfile +1 -0
@@ -29,6 +29,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/stretch.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/unstable-arm64v8.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ libfdt-dev \
automation/build/debian/unstable-i386.dockerfile +1 -0
@@ -29,6 +29,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/unstable.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/fedora/29.dockerfile +1 -0
@@ -17,6 +17,7 @@ RUN dnf -y install \ python3-devel \ libuuid-devel \ pkgconfig \ + # gettext for Xen < 4.13 gettext \ flex \ bison \
automation/build/suse/opensuse-leap.dockerfile +1 -0
@@ -22,6 +22,7 @@ RUN zypper install -y --no-recommends \ flex \ gcc \ gcc-c++ \ + # gettext-tools for Xen < 4.13 gettext-tools \ git \ glib2-devel \
automation/build/suse/opensuse-tumbleweed.dockerfile +1 -0
@@ -22,6 +22,7 @@ RUN zypper install -y --no-recommends \ flex \ gcc \ gcc-c++ \ + # gettext-tools for Xen < 4.13 gettext-tools \ git \ glib2-devel \
automation/build/ubuntu/bionic.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/ubuntu/focal.dockerfile +1 -0
@@ -26,6 +26,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/ubuntu/trusty.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/ubuntu/xenial.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/tests-artifacts/alpine/3.12-arm64v8.dockerfile +1 -0
@@ -19,6 +19,7 @@ RUN \ apk add dbus && \ apk add bash && \ apk add python2 && \ + # gettext for Xen < 4.13 apk add gettext && \ apk add zlib && \ apk add ncurses && \
tools/configure +0 -49
79 lines not on this page · raw message
tools/configure.ac +0 -2
@@ -298,7 +298,6 @@ AC_ARG_VAR([PYTHON], [Path to the Python parser]) AC_ARG_VAR([PERL], [Path to Perl parser]) AC_ARG_VAR([BISON], [Path to Bison parser generator]) AC_ARG_VAR([FLEX], [Path to Flex lexical analyser generator]) -AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) AC_ARG_VAR([AS86], [Path to as86 tool]) AC_ARG_VAR([LD86], [Path to ld86 tool]) AC_ARG_VAR([BCC], [Path to bcc tool])
@@ -381,7 +380,6 @@ AS_IF([test "$cross_compiling" != yes], [ if ! $rump; then -AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext]) dnl as86, ld86, bcc and iasl are only required when the host system is x86*. dnl "host" here means the platform on which the hypervisor and tools is dnl going to run, not the platform on which we are building (known as
Signature · 1 line
Anthony PERARD
Quoted 21 lines · Anthony PERARD
From: Andrew Cooper <[email protected]>
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles, and drop them from CirrusCI and TravisCI.
Signed-off-by Andrew Cooper <[email protected]>Acked-by Roger Pau Monné <[email protected]>(cherry picked from commit e21a6a4f966a7e91cb0bb014dbe15d15cc0502ad)---
Notes:
As we dropped "gettext" from many containers, build on staging-4.15 starts to fail due to unmet dependency. But that dependency isn't needed, but configure hasn't been updated.pipeline with many fail due to missing gettext:
https://gitlab.com/xen-project/xen/-/pipelines/793302203
Quoted 8 lines
pipeline with that patch backported:
https://gitlab.com/xen-project/people/anthonyper/xen/-/pipelines/794335026
still several build failure, but less, and not due to configure step failing.Commit can be cherry-picked cleanly to staging-4.15.
That commit would be needed as well on staging-4.14, but it doesn't apply cleanly due to change in configure, and missing dockerfiles.
Urgh - I'm sorry about this. I'd completely forgotten about this mess.
We do need to get CI working reliably, even on all old branches, so we do need to backport this too.
But looking at the diffstat below, I think we also want to backport other things too (the change removing Travis), and I'm not sure we want to re-add the dockerfile comment seeing as we've already dropped it and rebuilt them all, and this patch is the one that stops it being mandatory.
That would simplify this patch a lot, and make it applicable to 4.14 too, I think.
Jan - are you happy for Anthony and I to just go free reign on the older branches until we've got testing into a working state?
~Andrew
Quoted 41 lines · Andrew Cooper
Quoted 21 lines · Anthony PERARD
From: Andrew Cooper <[email protected]>
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles, and drop them from CirrusCI and TravisCI.
Signed-off-by Andrew Cooper <[email protected]>Acked-by Roger Pau Monné <[email protected]>(cherry picked from commit e21a6a4f966a7e91cb0bb014dbe15d15cc0502ad)---
Notes:
As we dropped "gettext" from many containers, build on staging-4.15 starts to fail due to unmet dependency. But that dependency isn't needed, but configure hasn't been updated.pipeline with many fail due to missing gettext:
https://gitlab.com/xen-project/xen/-/pipelines/793302203Quoted 8 lines
pipeline with that patch backported:
https://gitlab.com/xen-project/people/anthonyper/xen/-/pipelines/794335026
still several build failure, but less, and not due to configure step failing.Commit can be cherry-picked cleanly to staging-4.15.
That commit would be needed as well on staging-4.14, but it doesn't apply cleanly due to change in configure, and missing dockerfiles.
Urgh - I'm sorry about this. I'd completely forgotten about this mess.
We do need to get CI working reliably, even on all old branches, so we do need to backport this too.
But looking at the diffstat below, I think we also want to backport other things too (the change removing Travis), and I'm not sure we want to re-add the dockerfile comment seeing as we've already dropped it and rebuilt them all, and this patch is the one that stops it being mandatory.
Quoted 5 lines
That would simplify this patch a lot, and make it applicable to 4.14 too, I think.
Jan - are you happy for Anthony and I to just go free reign on the older branches until we've got testing into a working state?
Sure, as long as it doesn't get really unwieldy.
Jan