NetBSD Problem Report #9919
Received: (qmail 6832 invoked from network); 18 Apr 2000 03:30:02 -0000
Message-Id: <200004172326.TAA00893@this>
Date: Mon, 17 Apr 2000 19:26:43 -0400 (EDT)
From: Charlie Root <root@squooshy.com>
Reply-To: root@squooshy.com
To: gnats-bugs@gnats.netbsd.org
Subject: sendmail cf "equipment" in /usr/share/sendmail not working
X-Send-Pr-Version: 3.95
>Number: 9919
>Category: misc
>Synopsis: sendmail cf equipment as distributed is broken
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 18 03:31:00 +0000 2000
>Closed-Date: Wed Apr 19 21:49:21 +0000 2000
>Last-Modified: Wed Apr 19 21:49:21 +0000 2000
>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:
From: matthew green <mrg@eterna.com.au>
To: root@squooshy.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: misc/9919: sendmail cf "equipment" in /usr/share/sendmail not working
Date: Tue, 18 Apr 2000 18:03:21 +1000
not that i use or care about sendmail, but this is against the way
".mc" files are supposed to be written -- they are defined as "must
include cf.m4"...
From: Andrew Brown <atatat@atatdot.net>
To: matthew green <mrg@eterna.com.au>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: misc/9919: sendmail cf "equipment" in /usr/share/sendmail not working
Date: Tue, 18 Apr 2000 10:13:09 -0400
>not that i use or care about sendmail, but this is against the way
>".mc" files are supposed to be written -- they are defined as "must
>include cf.m4"...
".mc" files are an aspect of sendmail, not something in general. and
the readme from sendmail (in /usr/share/sendmail/README) says:
Configuration files are contained in the subdirectory "cf", with a
suffix ".mc". They must be run through "m4" to produce a ".cf" file.
You must pre-load "cf.m4":
m4 ${CFDIR}/m4/cf.m4 config.mc > config.cf
the netbsd way here is wrong, as it diverges from the vendor's path,
and with no advantage other than confusion for the end user.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."
From: matthew green <mrg@eterna.com.au>
To: Andrew Brown <atatat@atatdot.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: misc/9919: sendmail cf "equipment" in /usr/share/sendmail not working
Date: Wed, 19 Apr 2000 01:21:35 +1000
".mc" files are an aspect of sendmail, not something in general. and
the readme from sendmail (in /usr/share/sendmail/README) says:
ah. i see. sendmail has changed since i stopped using it, i guess.
From: Andrew Brown <atatat@atatdot.net>
To: matthew green <mrg@eterna.com.au>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: misc/9919: sendmail cf "equipment" in /usr/share/sendmail not working
Date: Tue, 18 Apr 2000 12:23:01 -0400
> ".mc" files are an aspect of sendmail, not something in general. and
> the readme from sendmail (in /usr/share/sendmail/README) says:
>
>ah. i see. sendmail has changed since i stopped using it, i guess.
that musta been a long time ago...that's always the way i've done it.
granted, i haven't been doing the m4 thing for more than three or four
years. hmm...looks like it changed right about there. :)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Wed Apr 19 14:48:56 PDT 2000
State-Changed-Why:
Patch applied, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.