Bug#388242: cyrus-imapd-2.2: FTBFS on GNU/kFreeBSD

Sven Mueller sven at incase.de
Thu Sep 21 20:48:22 UTC 2006


Petr Salinger wrote on 19/09/2006 12:01:
> the current version fails to build on GNU/kFreeBSD.
> 
> It needs small tweak to configure.in/configure.
> Please find attached patch with tweak for configure.in
> and updated configure.
> 
> It would also be nice if you can ask upstream
> to include this change.

> #! /bin/sh /usr/share/dpatch/dpatch-run
> ## All lines beginning with `## DP:' are a description of the patch.
> ## DP: disable PS_STRINGS for GNU/kFreeBSD
> 
> @DPATCH@
> --- cyrus-imapd-2.2-2.2.13/configure.in
> +++ cyrus-imapd-2.2-2.2.13/configure.in
> @@ -300,7 +284,7 @@
>  	AC_CACHE_VAL(cyrus_cv_sys_psstrings, AC_TRY_CPP([
>  #include <machine/vmparam.h>
>  #include <sys/exec.h>
> -#ifndef PS_STRINGS
> +#if !defined(PS_STRINGS) || defined (__GLIBC__)
>  #include </nonexistent>
>  #endif],cyrus_cv_sys_psstrings=yes,cyrus_cv_sys_psstrings=no))
>  	if test $cyrus_cv_sys_psstrings = yes; then

This seems odd: Why is PS_STRINGS defined by sys/exec.h or
machine/vmparam.h if it isn't actually supported? Are you sure the check
against __GLIBC__ doesn't have any unwanted side effects?

I would include the fix, but I'm really not sure wether it is the right
fix to the problem.

Regards,
Sven




More information about the Pkg-Cyrus-imapd-Debian-devel mailing list