Subject: bin/11298: 1.5A2 sendmail Makefile's should use ${MAKE}
To: None <gnats-bugs@gnats.netbsd.org>
From: None <heas@maple.shrubbery.net>
List: netbsd-bugs
Date: 10/23/2000 12:45:11
>Number:         11298
>Category:       bin
>Synopsis:       1.5A2 sendmail Makefile's failure to use ${MAKE} loses.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 23 12:45:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     john heasley
>Release:        netbsd-1-5-ALPHA2 20001021
>Organization:
	
>Environment:
	
System: NetBSD maple 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (GENERIC) #4: Wed Aug 30 04:29:24 BST 2000 root@dora.int.purplei.com:/files/transient/netbsd/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
	Makefile(s) for sendmail run 'make print-obj' to locate object
	directories for libs.  if the users path includes a non-bsd
	make before /usr/bin/make, you lose.  eg:

	maple [324] /usr/bin/make DESTDIR=/u5/release-1.5A2 BSDSRCDIR=/u5/1.5A2/src BSDOBJDIR=/u5/obj-1.5A2 UPDATE=1
	Makefile:3: *** missing separator.  Stop.
	"/u5/1.5A2/src/gnu/usr.sbin/sendmail/sendmail/Makefile", line 14: warning: "cd /u5/1.5A2/src/gnu/usr.sbin/sendmail/sendmail/../libsmutil; make print-objdir" returned non-zero status
	cc   -o sendmail -nostdlib -Wl,-rpath-link,/u5/release-1.5A2/usr/lib /u5/release-1.5A2/usr/lib/crt0.o /u5/release-1.5A2/usr/lib/crtbegin.o alias.o arpadate.o bf_torek.o clock.o collect.o conf.o control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o mci.o milter.o mime.o parseaddr.o queue.o readcf.o recipient.o savemail.o sfsasl.o shmticklib.o srvrsmtp.o stab.o stats.o sysexits.o timers.o trace.o udb.o usersmtp.o util.o version.o -lwrap -L -lsmutil -L/u5/release-1.5A2/usr/lib -lgcc -lc -lgcc /u5/release-1.5A2/usr/lib/crtend.o
	^Cmake: *** sendmail removed

	[ ps: sorry for the msg to current-users.  gettng situated. ]
>How-To-Repeat:
	with gnu make in /usr/local/bin/make, this should do it:
	setenv PATH /usr/local/bin:${PATH}
	cd /usr/sys/src/gnu/usr.sbin/sendmail; /usr/bin/make
>Fix:
	use make's MAKE variable to run make by FQPN.

	Index: makemap/Makefile
	===================================================================
	RCS file: /cvsroot/gnusrc/gnu/usr.sbin/sendmail/makemap/Makefile,v
	retrieving revision 1.3
	diff -r1.3 Makefile
	10,11c10,11
	< LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; make print-objdir
	< LIBSMDBDIR!=  cd ${.CURDIR}/../libsmdb; make print-objdir
	---
	> LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; ${MAKE} print-objdir
	> LIBSMDBDIR!=  cd ${.CURDIR}/../libsmdb; ${MAKE} print-objdir
	cvs server: Diffing praliases
	Index: praliases/Makefile
	===================================================================
	RCS file: /cvsroot/gnusrc/gnu/usr.sbin/sendmail/praliases/Makefile,v
	retrieving revision 1.2
	diff -r1.2 Makefile
	10,11c10,11
	< LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; make print-objdir
	< LIBSMDBDIR!=  cd ${.CURDIR}/../libsmdb; make print-objdir
	---
	> LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; ${MAKE} print-objdir
	> LIBSMDBDIR!=  cd ${.CURDIR}/../libsmdb; ${MAKE} print-objdir
	cvs server: Diffing sendmail
	Index: sendmail/Makefile
	===================================================================
	RCS file: /cvsroot/gnusrc/gnu/usr.sbin/sendmail/sendmail/Makefile,v
	retrieving revision 1.4
	diff -r1.4 Makefile
	14c14
	< LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; make print-objdir
	---
	> LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; ${MAKE} print-objdir
	cvs server: Diffing smrsh
	Index: smrsh/Makefile
	===================================================================
	RCS file: /cvsroot/gnusrc/gnu/usr.sbin/sendmail/smrsh/Makefile,v
	retrieving revision 1.4
	diff -r1.4 Makefile
	11,12c11,12
	< LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; make print-objdir
	< LIBSMDBDIR!=  cd ${.CURDIR}/../libsmdb; make print-objdir
	---
	> LIBSMUTILDIR!=        cd ${.CURDIR}/../libsmutil; ${MAKE} print-objdir
	> LIBSMDBDIR!=  cd ${.CURDIR}/../libsmdb; ${MAKE} print-objdir
>Release-Note:
>Audit-Trail:
>Unformatted: