[xen staging] stubdom: disable newlib's need for texinfo

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] stubdom: disable newlib's need for texinfo

patchbot
commit 00d21a3c3c7f742e674458b70553a22eae289fdf
Author:     Doug Goldstein <[hidden email]>
AuthorDate: Mon Jul 9 12:05:46 2018 -0500
Commit:     Wei Liu <[hidden email]>
CommitDate: Tue Jul 10 08:14:47 2018 +0100

    stubdom: disable newlib's need for texinfo
   
    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 <[hidden email]>
    Acked-by: Ian Jackson <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
    Reviewed-by: Samuel Thibault <[hidden email]>
---
 stubdom/Makefile                     |  1 +
 stubdom/newlib-disable-texinfo.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/stubdom/Makefile b/stubdom/Makefile
index 34bd9e238b..8cf7131c6a 100644
--- a/stubdom/Makefile
+++ b/stubdom/Makefile
@@ -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
index 0000000000..5ce2e45caa
--- /dev/null
+++ b/stubdom/newlib-disable-texinfo.patch
@@ -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:
+
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog