Subject: Re: sendmail install stage is broken
To: Christos Zoulas <christos@astron.com>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 11/28/2005 01:20:34
This is a cryptographically signed message in MIME format.

--------------ms020706050907060306080400
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Christos Zoulas wrote:
> In article <438A7E47.7020607@berklee.edu>,
> Louis Guillaume  <lguillaume@berklee.edu> wrote:

>>What I noticed, is that there is no statvfs on a netbsd-2 system. Nor is 
>>there closefrom.
>>
>>It looks these are in -current and netbsd-3 but not in any other branches.
>>
>>So this isn't true...
>>
>>#  if defined(__NetBSD__) && defined(__NetBSD_Version__) && 
>>__NetBSD_Version__ >= 200060000
>>#   define HASCLOSEFROM 1       /* closefrom(3) added in 2.0F */
>>#  endif
>>
>>... and this is wrong...
>>
>>#  if defined(__NetBSD__) && defined(__NetBSD_Version__) && 
>>__NetBSD_Version__ >= 200040000
>>#   undef SFS_TYPE
>>#   define SFS_TYPE     SFS_STATVFS
>>#  else
>>#   define SFS_TYPE     SFS_MOUNT       /* use <sys/mount.h> statfs() 
>>impl */
>>#  endif
>>
>>... unless someone pulls up statvfs and closefrom to netbsd-2 branches.
>>
>>How come they didn't come into netbsd-2 when it was branched?
>>Didn't that branch happen after 2.0F?
>>
>
> 2.1 > 2.0F so it breaks. It is better not to depend on __NetBSD_Version__
> but to use autoconf.
> 
> christos
> 

But sendmail doesn't use autoconf.

There's all of this OS-Specific stuff defined in the sendmail sources. 
Particularly this file "include/sm/conf.h", which has a section 
commented like this...

/*
**  DragonFly BSD/ FreeBSD / NetBSD / OpenBSD (all architectures, all 
versions)
**
**  4.3BSD clone, closer to 4.4BSD      for FreeBSD 1.x and NetBSD 0.9x
**  4.4BSD-Lite based                   for FreeBSD 2.x and NetBSD 1.x
**
**      See also BSD defines.
*/


... Really quite ugly. And this is all in the Sendmail tree. I thought 
about doing something like this in pkgsrc...

.if ${OPSYS} == NetBSD && !empty(OS_VERSION:M3*)
         @${ECHO} "APPENDDEF(\`confENVDEF', \`-DHASCLOSEFROM')" 
 >>${SITECONFIG}
         @${ECHO} "APPENDDEF(\`confENVDEF', \`-DSFS_TYPE=SFS_STATVFS')" 
 >>${SITECONFIG}
.else
         @${ECHO} "APPENDDEF(\`confENVDEF', \`-DSFS_TYPE=SFS_MOUNT')" 
 >>${SITECONFIG}
.endif

... and removing a bunch of that stuff from the sendmail tree. But I 
don't really know what I'm doing :)

Wouldn't that would break any non-pkgsrc methods of building? (unless 
you "knew" which options to set in the "site config".)

So I don't know what to think at this point. Sendmail is probably an 
important package for pkgsrc no matter how I look at it.

I won't mind working on this with someone who knows what they're doing 
but I'll need some direction.

Louis




--------------ms020706050907060306080400
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII/TCC
AtkwggJCoAMCAQICAw5BgDANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDUwMzEzMDQxNDUwWhcNMDYwMzEzMDQxNDUw
WjBIMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSUwIwYJKoZIhvcNAQkBFhZs
Z3VpbGxhdW1lQGJlcmtsZWUuZWR1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
7oKaqOBxvzmsqFBmyM/OW13GZwrHIWZsChw3Bg8pqCqFKoJZ2v1Z86Q6mlqXk63ctPanfLo6
Js6TQy/25POsGnglILts6amQLnE1C4fkqVc7gApM12R3VaPopWDl+Tn+cVJxsjsUvpj2OY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