Subject: toolchain/15234: tools has dependency upon makeinfo when building toolchain/gcc
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/13/2002 10:36:20
>Number:         15234
>Category:       toolchain
>Synopsis:       tools has dependency upon makeinfo when building toolchain/gcc
>Confidential:   yes
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 13 08:37:00 PST 2002
>Release:        NetBSD 1.5Y
System: NetBSD 1.5Y NetBSD 1.5Y (HYSTERIA) #5: Fri Nov 23 01:09:23 CST 2001 i386
Architecture: i386
Machine: i386
NetBSD-current source as of 2002-01-11
When building the tools, toolchain/gcc has a dependency upon makeinfo to build
the .info files. If the "text" base package is not installed, then the compile
will fail even though we are already building the texinfo package. To solve this,
we need to move texinfo up in the build process and then export MAKEINFO into
the environment for all followup modules.

mv /usr/bin/makeinfo /usr/bin/makeinfo-
./ -m i386 -r -T${TOOLDIR} -t

watch the build fail because it cannot execute makeinfo.


Apply following patch in tools/. The reason for the ${MODULE} check is 
so that we don't override MAKEINFO during the texinfo build.

Index: Makefile
RCS file: /cvs/NetBSD/basesrc/tools/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile    2002/01/10 17:04:20     1.29
+++ Makefile    2002/01/13 15:43:15
@@ -11,8 +11,9 @@
 .if !defined(NOSUBDIR)
 SUBDIR=        host-mkdep .WAIT compat .WAIT \
        binstall .WAIT \
+       texinfo .WAIT \
                crunchgen gencat lint lint2 lorder mkdep mtree rpcgen \
-               texinfo tsort makewhatis \
+               tsort makewhatis \
        ${TOOLCHAIN_BITS} \
        yacc .WAIT \
                groff \
Index: Makefile.gnuhost
RCS file: /cvs/NetBSD/basesrc/tools/Makefile.gnuhost,v
retrieving revision 1.13
diff -u -r1.13 Makefile.gnuhost
--- Makefile.gnuhost    2002/01/03 16:47:08     1.13
+++ Makefile.gnuhost    2002/01/13 16:08:53
@@ -59,6 +59,11 @@


+.if (${MODULE} != "texinfo")
 ALL_TARGET?=   all

 tools/toolchain depends upon a system installed makeinfo rather than the tools version.