stubdom: disable newlib's need for texinfo
authorDoug Goldstein <cardoe@cardoe.com>
Mon, 9 Jul 2018 17:05:46 +0000 (12:05 -0500)
committerWei Liu <wei.liu2@citrix.com>
Tue, 10 Jul 2018 07:14:47 +0000 (08:14 +0100)
newlib has a hardcoded dependency on texinfo, which in turn means that
Xen has this dependency when building the stub domains. The files that
newlib generates are never used or exposed by the Xen build system so
its really a wasted effort to require a heavy (size wise) package for
the build of something that's thrown away. Instead of adding it as a
requirement this patches out the code path in newlib that uses it so
that the files are never generated.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
stubdom/Makefile
stubdom/newlib-disable-texinfo.patch [new file with mode: 0644]

index 34bd9e238bef6020224444a402b26efd2b0fc23e..8cf7131c6a7c760f91d908db8030f3ec7e703fac 100644 (file)
@@ -87,6 +87,7 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz
        patch -d $@ -p0 < newlib.patch
        patch -d $@ -p0 < newlib-chk.patch
        patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch
+       patch -d $@ -p1 < newlib-disable-texinfo.patch
        find $@ -type f | xargs perl -i.bak \
                -pe 's/\b_(tzname|daylight|timezone)\b/$$1/g'
        touch $@
diff --git a/stubdom/newlib-disable-texinfo.patch b/stubdom/newlib-disable-texinfo.patch
new file mode 100644 (file)
index 0000000..5ce2e45
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/etc/Makefile.in  2007-03-27 13:09:32.000000000 -0500
++++ b/etc/Makefile.in  2018-07-09 11:08:50.294183081 -0500
+@@ -63,8 +63,8 @@
+ PDFFILES = standards.pdf configure.pdf
+ HTMLFILES = standards.html configure.html
+-all: info
+-install: install-info
++all:
++install:
+ uninstall: