Bug 54418

Summary: RedHat sendmail.mc has no version info.
Product: [Retired] Red Hat Linux Reporter: Jeremy Jackson <jerj>
Component: sendmailAssignee: Florian La Roche <laroche>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: low    
Version: 7.1Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-06 22:51:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Jackson 2001-10-06 22:34:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
/etc/mail/sendmail.mc does not place any useful version information in the
VERSIONID macro.  This makes it difficult to deduce the origin of
/etc/sendmail.cf on systems that have been upgraded many times and/or the
file has been hand edited.  If 
possible, the rpm's verision info (ie 8.11.6-1.7.1), release date,
or CVS $Header$ etc should be included.  Also, the line: "m4 redhat.mc >
redhat.cf" in sendmail.spec could be changed to "m4 -Dunix redhat.mc >
redhat.cf" to enable build logging included in sendmail dist's cf macros.


Version-Release number of selected component (if applicable):
8.11.6-1.7.1

How reproducible:
Always

Steps to Reproduce:
1. Install RedHat 7.1
2. Be pedantic.
3. look at /etc/mail/sendmail.mc and /etc/sendmail.cf
4. also see code condidional on definition of "unix" macro in cfhead.m4

Additional Info:
could m4 package be configured such that it always defined the "unix"
macro?  That way any user rebuild of sendmail.cf would include the useful
logging automatically.

Comment 1 Jeremy Jackson 2001-10-06 22:51:23 UTC
In my haste to post this bug report, I failed to note that GNU m4's manual
states that the "unix" macro is pre-defined (to null), but only when the -G
(disable GNU extensions) switch is used; otherwise it defines (as null)
"__unix__", which could serve the same purpose.  I propose that cfhead.m4 be
patched to detect either macro, the patch possibly being submitted also to
sendmail's maintainer.

Comment 2 Florian La Roche 2002-03-10 07:34:21 UTC
I have changed this to __unix__ in sendmail-8.12.2-7 and higher. Setting VERSIONID
to something useful must be done by people changing the .mc file.

Thanks,

Florian La Roche