Subject: Re: sendmail install from build.sh - no submit.cf
To: Martin Weber <Ephaeton@gmx.net>
From: Andrew Brown <firstname.lastname@example.org>
Date: 03/31/2003 15:25:56
>> gah! that submit.cf file gets built wrong. argh!
>> oh. i see. the make process gets confused because there's a
>> submit.cf in the *source* directory, so it removes that one and then
>> totally botches rebuilding it. hrm.
>> go to /usr/share/sendmail/cf, remove the submit.cf you have there (if
>> any), and type "make submit.cf" again. it should be fine.
>Actually, I did not do make submit.cf but m4 submit.mc > submit.cf in
>/usr/share/sendmail/cf, and the result is:
>VERSIONID(Id: submit.mc,v 188.8.131.52 2002/12/29 03:54:34 ca Exp)
okay. yeah, that won't work because you didn't preload ../m4/cf.m4.
if you had instead done:
m4 ../m4/cf.m4 submit.mc > submit.cf
that would have worked.
>Now when I do make submit.cf the result is:
># make submit.cf
>rm -f /usr/src/gnu/dist/sendmail/cf/cf/submit.cf
>(cd /usr/share/sendmail/cf/../cf && m4 /usr/share/sendmail/cf/../m4/cf.m4 /usr/share/sendmail/cf//usr/src/gnu/dist/sendmail/cf/cf/submit.mc > /usr/share/sendmail/cf//usr/src/gnu/dist/sendmail/cf/cf/submit.cf)
>cannot create /usr/share/sendmail/cf//usr/src/gnu/dist/sendmail/cf/cf/submit.cf: directory nonexistent
>*** Error code 2
...which gets it wrong because of the .PATH setting in the makefile.
>make: stopped in /usr/share/sendmail/cf
>then a second make submit.cf works fine and produces a usable submit.cf
>(at least from what I can tell on the first sight).
yup, because the first pass deleted the submit.cf from the source
tree, so now it finds a submit.mc in the local directory which
overrides the out of date target in the source tree.
>Having m4 and make delivering different results is surprising. Until now,
>I've handled sendmail by creating my .mc files and letting m4 do the work.
>that should work for submit.mc, too, imho.
i understand what the problem is here and i have a workaround. i
wanna bounce it off a few people first...
>I'll file the pr for etcupdate, too.
|-----< "CODE WARRIOR" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."