Subject: toolchain/25952: missing MAKE in environment breaks tools/texinfo configure
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 06/17/2004 14:40:21
>Number:         25952
>Category:       toolchain
>Synopsis:       missing MAKE in environment breaks tools/texinfo configure when no make installed
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 17 12:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        Linux 2.4.25
>Organization:
>Environment:
System: Linux 2.4.25
Architecture: i386
Machine: i386
>Description:

unset MAKE variable in configure environment for GNU configure breaks
tools/texinfo build when there is no make installed in the system:

  make  -f /www/src/NetBSD/src/tools/texinfo/../Makefile.gnuwrap  all-recursive
  nbmake: exec(make) failed (No such file or directory)

  *** Failed target:  all
  *** Failed command: make -f /www/src/NetBSD/src/tools/texinfo/../Makefile.gnuwrap all-recursive
  *** Error code 1

  Stop.
  nbmake: stopped in /www/src/obj/tools/texinfo/build

configure sets MAKE variable to 'make' if not already set and @SET_MAKE@
in texinfo's Makefile.in is replaced with:

  MAKE=make

in OBJDIR/tools/texinfo/build/Makefile (and subsequent directories).

>How-To-Repeat:

try to build -current (netbsd-2-0 and netbsd-1-6 not verified) on a Linux
box without make installed, see it failing in tools/texinfo.

>Fix:

i verified that tools build correctly on Linux and NetBSD-current host
with this patch:

Index: Makefile.gnuhost
===================================================================
RCS file: /cvsroot/src/tools/Makefile.gnuhost,v
retrieving revision 1.27
diff -u -r1.27 Makefile.gnuhost
--- Makefile.gnuhost	12 Jun 2004 14:56:30 -0000	1.27
+++ Makefile.gnuhost	17 Jun 2004 12:26:48 -0000
@@ -52,6 +52,7 @@
 		INSTALL=${HOST_INSTALL_FILE:Q} \
 		LDFLAGS=${HOST_LDFLAGS:Q} \
 		LEX=${LEX:Q} \
+		MAKE=${MAKE:Q} \
 		PATH="${TOOLDIR}/bin:$$PATH" \
 		YACC=${YACC:Q}
 
>Release-Note:
>Audit-Trail:
>Unformatted: