Subject: toolchain/15234: tools has dependency upon makeinfo when building toolchain/gcc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <roskens@elfin.net>
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
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5Y
>Organization:
>Environment:
System: NetBSD hysteria.elfin.net 1.5Y NetBSD 1.5Y (HYSTERIA) #5: Fri Nov 23 01:09:23 CST 2001 root@hysteria.elfin.net:/usr/src/sys/arch/i386/compile/HYSTERIA i386
Architecture: i386
Machine: i386
NetBSD-current source as of 2002-01-11
>Description:
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.
>How-To-Repeat:
mv /usr/bin/makeinfo /usr/bin/makeinfo-
./build.sh -m i386 -r -T${TOOLDIR} -t
watch the build fail because it cannot execute makeinfo.
>Fix:
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 @@
MAKE_ARGS+= LEX=true BISON=true DESTDIR= INSTALL=${HOST_INSTALL_FILE:Q}
+.if (${MODULE} != "texinfo")
+CONFIGURE_ENV+= MAKEINFO=${MAKEINFO:Q}
+MAKE_ARGS+= MAKEINFO=${MAKEINFO:Q}
+.endif
+
ALL_TARGET?= all
INSTALL_TARGET?=install
>Release-Note:
>Audit-Trail:
>Unformatted:
no
tools/toolchain depends upon a system installed makeinfo rather than the tools version.