Patchwork [1/2] texinfo: new host package

login
register
mail settings
Submitter Thomas Petazzoni
Date March 24, 2013, 10:29 p.m.
Message ID <1364164146-16517-2-git-send-email-thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/230505/
State Accepted
Commit 69aeb066a68108e0f78af34d5baf770c490954d0
Headers show

Comments

Thomas Petazzoni - March 24, 2013, 10:29 p.m.
The makeinfo program from texinfo is needed to get Crosstool-NG to
build properly a toolchain. Long term, it would be great if
Crosstool-NG supported building without texinfo, simply by disabling
the build of documentation.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/texinfo/texinfo.mk |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 package/texinfo/texinfo.mk
Vivien Didelot - March 24, 2013, 10:43 p.m.
Hi Thomas,

> The makeinfo program from texinfo is needed to get Crosstool-NG to
> build properly a toolchain. Long term, it would be great if
> Crosstool-NG supported building without texinfo, simply by disabling
> the build of documentation.

Just curious, isn't possible for the Crosstool-NG build to disable the
doc, with something like Gustavo did here for GCC:

http://git.buildroot.net/buildroot/commit/?id=62322acb2ce186d544ab21fe253ccc8561a68a48

Cheers,
Vivien
Thomas Petazzoni - March 24, 2013, 11 p.m.
Dear Vivien Didelot,

On Sun, 24 Mar 2013 18:43:32 -0400 (EDT), Vivien Didelot wrote:

> Just curious, isn't possible for the Crosstool-NG build to disable the
> doc, with something like Gustavo did here for GCC:
> 
> http://git.buildroot.net/buildroot/commit/?id=62322acb2ce186d544ab21fe253ccc8561a68a48

Yes, it should be possible. Normally, we enabled the "Remove
documentation" option from Crosstool-NG, which should tell Crosstool-NG
to not build the documentation. But in practice, Crosstool-NG
configure script still wants a makeinfo program. Even if you fake it by
passing /bin/true as the makeinfo program, then the build process of
binutils fails during the construction of its info pages. So it looks
like Crosstool-NG does not disable entirely the generation of
documentation, or something else is going one.

Introducing this texinfo package is only a short-term solution, until
the proper way of disabling the documentation generation in
Crosstool-NG is found.

Best regards,

Thomas

Patch

diff --git a/package/texinfo/texinfo.mk b/package/texinfo/texinfo.mk
new file mode 100644
index 0000000..54d18b6
--- /dev/null
+++ b/package/texinfo/texinfo.mk
@@ -0,0 +1,14 @@ 
+#############################################################
+#
+# texinfo
+#
+#############################################################
+
+# We are intentionally not using the latest version 5.x, because it
+# causes issues with the documentation building process when creating
+# a toolchain with the Crosstool-NG backend.
+
+TEXINFO_VERSION = 4.13a
+TEXINFO_SITE = $(BR2_GNU_MIRROR)/texinfo
+
+$(eval $(host-autotools-package))