[Dovecot] Apple patches 6-8

Andrey Panin pazke at donpac.ru
Wed Dec 17 18:04:12 EET 2008


On 352, 12 17, 2008 at 09:35:16AM -0600, Mike Abbott wrote:
> Here are a few more patches.  Still keeping it easy for now.  Again  
> the basis for these patches is dovecot-1.1.7.
> 
> Patch #6.  Solve a cross-compilation endianness issue.  Currently,  
> Dovecot assumes that the endianness of the build system is the same as  
> the endianness of the runtime system.  This is not necessarily true.   
> We ran into this while compiling for i386 on a ppc machine.  The patch  
> switches to using gcc's __BIG_ENDIAN__ macro; see the comment in the  
> patch to configure.in.  It also removes the related and unused  
> MAIL_INDEX_COMPAT_FLAGS parameter.  This patch may be applicable to  
> other build environments with a little tweaking.

> diff -ur dovecot-1.1.7/src/lib/sha1.c dovecot-patch/src/lib/sha1.c
> --- dovecot-1.1.7/src/lib/sha1.c	2008-10-26 10:03:45.000000000 -0500
> +++ dovecot-patch/src/lib/sha1.c	2008-12-16 20:35:37.000000000 -0600
> @@ -80,7 +80,7 @@
>  	size_t t, s;
>  	uint32_t	tmp;
>  
> -#ifndef WORDS_BIGENDIAN
> +#if !WORDS_BIGENDIAN

Is this change (and similar ones below) really necessary ?


More information about the dovecot mailing list