]> xenbits.xensource.com Git - xen.git/commitdiff
tools: Drop gettext as a build dependency
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Mar 2021 11:25:07 +0000 (11:25 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Apr 2021 09:31:17 +0000 (10:31 +0100)
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 <andrew.cooper3@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
24 files changed:
.cirrus.yml
.travis.yml
README
automation/build/alpine/3.12-arm64v8.dockerfile
automation/build/alpine/3.12.dockerfile
automation/build/centos/7.2.dockerfile
automation/build/centos/7.dockerfile
automation/build/debian/jessie-i386.dockerfile
automation/build/debian/jessie.dockerfile
automation/build/debian/stretch-i386.dockerfile
automation/build/debian/stretch.dockerfile
automation/build/debian/unstable-arm64v8.dockerfile
automation/build/debian/unstable-i386.dockerfile
automation/build/debian/unstable.dockerfile
automation/build/fedora/29.dockerfile
automation/build/suse/opensuse-leap.dockerfile
automation/build/suse/opensuse-tumbleweed.dockerfile
automation/build/ubuntu/bionic.dockerfile
automation/build/ubuntu/focal.dockerfile
automation/build/ubuntu/trusty.dockerfile
automation/build/ubuntu/xenial.dockerfile
automation/tests-artifacts/alpine/3.12-arm64v8.dockerfile
tools/configure
tools/configure.ac

index 0efff6fa9871375a6d28a1515f451d953d9080df..fdb1c9c94d7cc780e72e013a14b90f8e24fe469f 100644 (file)
@@ -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
index 2362475f7a89d3c3facc34ddc05e56116ad59036..f3cd15b79fb75311683bc7680ef8699b224c9050 100644 (file)
@@ -54,7 +54,6 @@ addons:
             - pkg-config
             - flex
             - bison
-            - gettext
             - acpica-tools
             - bin86
             - bcc
diff --git a/README b/README
index fad96672af9b9142b9ef24df23499ee09262cd3a..562b808080332d41d1bcbb26a679233581c902e6 100644 (file)
--- a/README
+++ b/README
@@ -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
index d6cdf5b20097d315fe2f6df6ed09bd7bccc40cbf..a1ac9605959e47998c3a45e56b3a5591a2d7a103 100644 (file)
@@ -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 && \
index 94557e239b3153db932f3765ab802d11d86ae8bf..bb8e5ece741422a25997835901df3e81d0fc03d4 100644 (file)
@@ -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 && \
index af672a0be1ae02045cf62c7af51148d2a46d2ff0..4baa097e315eb05f576714868c3de6d1ab69164a 100644 (file)
@@ -26,6 +26,7 @@ RUN rpm --rebuilddb && \
         python-devel \
         libuuid-devel \
         pkgconfig \
+        # gettext for Xen < 4.13
         gettext \
         flex \
         bison \
index 5f83c97d0cfb38cea127a235d943ca6389f9ed10..e688a4cecee326fab738073f5c038e17976d3250 100644 (file)
@@ -24,6 +24,7 @@ RUN yum -y install \
         python-devel \
         libuuid-devel \
         pkgconfig \
+        # gettext for Xen < 4.13
         gettext \
         flex \
         bison \
index 66a6abb3816ea65132fb877eaf5da49bdb34343e..3f86d91f63c6d1b913fb3da63a97365a155928f4 100644 (file)
@@ -28,6 +28,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 808d6272e4e9b0f474fd1f54e5ac15541d89f05d..2f19adcad395763451bcf0c09151db66cdb00da7 100644 (file)
@@ -26,6 +26,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 7b6f8eff693a4da54713ecd5cc2a723496ab3ee5..c7840d33ab52f3b632863cfb9462c390625973eb 100644 (file)
@@ -29,6 +29,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index e3bace1f872ef259e44304ee1a5ab163183d9d38..e2ee14e2017c0b99b2585b620b06a4b9b78219a2 100644 (file)
@@ -27,6 +27,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 8455d67b7289783571577b40fc1c6c6c5fe5806c..4409f596e1a77546ca99184454398a3eaf1620b9 100644 (file)
@@ -27,6 +27,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         libfdt-dev \
index 86ff3585df051d430080b2bfa2cf19d1d426bb0b..06ffb97384c5749912bd7a50e4c729019f608ce8 100644 (file)
@@ -29,6 +29,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 9a10ee08d682490c7eb2cd5c6c023650b570b384..bd61cd12c25692d652a0d47386bc4e667afb9819 100644 (file)
@@ -27,6 +27,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 54829525236c87ea3571010b08e4d81a0f98bd5b..027b93ceaf4e2c0015e13f18a35dce291cd2f88a 100644 (file)
@@ -17,6 +17,7 @@ RUN dnf -y install \
         python3-devel \
         libuuid-devel \
         pkgconfig \
+        # gettext for Xen < 4.13
         gettext \
         flex \
         bison \
index 685dd5d7fd77a6bebe45a8925e07778abaa248b5..573fbd8ae47ebfea0318d4b445397ac3a3784679 100644 (file)
@@ -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 \
index 061173e7513348a5aca88e0a70c3e2aac075164b..8ff7b9b5ce27e133cd29a03f3030a6aca0eb3983 100644 (file)
@@ -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 \
index 408063698cfc733c09ca0a90e2521f46298d678e..406a97494caf862be1cc19e6ab205a6cce10eca1 100644 (file)
@@ -27,6 +27,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 90b4001a6af58e23c82fb430eb6acba68ce1660f..952a3172aa64769d263e58a43bc18998effed30f 100644 (file)
@@ -26,6 +26,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index fd377d948fc8106582306dd78c8a981c858798fb..b4b2f85e73445074d09b2283759f5d42d91ad07d 100644 (file)
@@ -27,6 +27,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 57a71eb8c6ea5e9654aba0c1f6c8e36d0675f077..82171d856dad8df8f1281c578612a391b647121e 100644 (file)
@@ -27,6 +27,7 @@ RUN apt-get update && \
         pkg-config \
         flex \
         bison \
+        # gettext for Xen < 4.13
         gettext \
         acpica-tools \
         bin86 \
index 94570094526a0cef149798080d754594601fce35..7eb1f22940d6a65e0262e8727a2edcdefb60f770 100644 (file)
@@ -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 && \
index 99d08a4d81b52f3367674431f3d8f53d09a70c65..33814b24b33de309160bcbe3f8e1429a1c301f26 100755 (executable)
@@ -689,7 +689,6 @@ INSTALL_PROGRAM
 SET_MAKE
 AWK
 IASL
-XGETTEXT
 FLEX
 BISON
 PERL
@@ -847,7 +846,6 @@ PYTHON
 PERL
 BISON
 FLEX
-XGETTEXT
 AS86
 LD86
 BCC
@@ -1597,7 +1595,6 @@ Some influential environment variables:
   PERL        Path to Perl parser
   BISON       Path to Bison parser generator
   FLEX        Path to Flex lexical analyser generator
-  XGETTEXT    Path to xgetttext tool
   AS86        Path to as86 tool
   LD86        Path to ld86 tool
   BCC         Path to bcc tool
@@ -4738,7 +4735,6 @@ LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS"
 
 
 
-
 # Checks for programs.
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -7846,51 +7842,6 @@ fi
 
 if ! $rump; then
 
-# Extract the first word of "xgettext", so it can be a program name with args.
-set dummy xgettext; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_XGETTEXT+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $XGETTEXT in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="no"
-  ;;
-esac
-fi
-XGETTEXT=$ac_cv_path_XGETTEXT
-if test -n "$XGETTEXT"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
-$as_echo "$XGETTEXT" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-if test x"${XGETTEXT}" = x"no"
-then
-    as_fn_error $? "Unable to find xgettext, please install xgettext" "$LINENO" 5
-fi
 case "$host_cpu" in
 i[3456]86|x86_64|aarch64)
     # Extract the first word of "iasl", so it can be a program name with args.
index 636e7077bec1546a81b08c4d3bfd2227d63fde0d..6414fcbb445e98aa821ace0e4680fa56e954df21 100644 (file)
@@ -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