Subject: misc/9919: sendmail cf "equipment" in /usr/share/sendmail not working
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Root <root@squooshy.com>
List: netbsd-bugs
Date: 04/17/2000 20:30:11
>Number:         9919
>Category:       misc
>Synopsis:       sendmail cf equipment as distributed is broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 17 20:31:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Brown
>Release:        1.4X from 20000416
>Organization:
	i'm just this guy...see?
>Environment:
System: NetBSD this 1.4X NetBSD 1.4X (THAT) #2: Sun Apr 16 15:13:55 EDT 2000 root@this:/usr/src/sys/arch/i386/compile/THAT i386
(new build as of yesterday...wanna snapshot?)

>Description:

	now that my laptop is presentable (albeit sans sound and x support)
	i thought it might be nice to send-pr my experiences with gre and
	ipip stuff.  so i needed a sendmail that could lie to the outside
	world convincingly enough to get email out.  that means i need a
	better sendmail.cf, so i went to make one.

>How-To-Repeat:

	cd /usr/share/sendmail/cf
	vi local.mc
	make local.cf
	more local.cf

	hmmm.....local.cf is really broken

	oh...wait.  i see.  i need to preload m4/cf.m4.........

	notice that some examples preload it in the .mc file and that
	others (presumably taken directly from the sendmail distribution)
	won't build either.

>Fix:

	the Makefile in /usr/share/sendmail/cf should really pre-load
	the file ../m4/cf.m4 for you.  the examples that already do it
	won't suffer from double inclusion (and, imho, should not do
	so as it violates the principle of least surprise).

--- /usr/src/gnu/usr.sbin/sendmail/cf/cf/Makefile	Tue Feb  8 11:13:26 2000
+++ Makefile	Mon Apr 17 19:07:01 2000
@@ -28,7 +28,7 @@
 
 .mc.cf:
 	${RM} $@
-	(cd ${CFDIR}/cf && ${M4} ${.CURDIR}/${@:R}.mc > ${.OBJDIR}/$@)
+	(cd ${CFDIR}/cf && ${M4} ${CFDIR}/m4/cf.m4 ${.CURDIR}/${@:R}.mc > ${.OBJDIR}/$@)
 	${CHMOD} ${ROMODE} $@
 
 realall: ${ALL}
>Release-Note:
>Audit-Trail:
>Unformatted: