Package: exim
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> /usr/bin/make
> make[1]: Entering directory `/build/buildd/exim-3.36'
> 
> >>> Creating links to source files...
> 
> *** Sorry - operating system GNUkFreeBSD is not supported
> *** See OS/Makefile-* for supported systems
> 
> make[1]: *** [configure] Error 1
> make[1]: Leaving directory `/build/buildd/exim-3.36'
> make: *** [build] Error 2

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=exim>.

Please find attached a patch to make your package build on GNU/kFreeBSD.

Cheers,

-- 
Cyril Brulebois
--- exim-3.36/scripts/os-type   2007-03-11 09:19:49.033652000 +0100
+++ exim-3.36/scripts/os-type   2007-03-11 09:21:16.000000000 +0100
@@ -75,6 +75,7 @@
 linux)      os=Linux;;
 linux-*)    os=Linux;;
 Linux-*)    os=Linux;;
+GNUkFreeBSD)os=Linux;;
 netbsd*)    os=NetBSD;;
 openbsd*)   os=OpenBSD;;
 osf1)       os=OSF1;;
@@ -123,7 +124,7 @@
 # easy enough to do a better check, and check the symlink destination or the
 # control file contents and make sure.
 
-Linux)  if [ -L /usr/lib/libc.so ]; then
+Linux|GNUkFreeBSD)  if [ -L /usr/lib/libc.so ]; then
             if [ x"$(file /usr/lib/libc.so | grep "libc.so.5")"x != xx ]; then
                     os=Linux-libc5
             fi
--- exim-3.36/OS/os.c-Linux     2007-03-11 09:22:01.008006000 +0100
+++ exim-3.36/OS/os.c-Linux     2007-03-11 09:24:43.000000000 +0100
@@ -38,11 +38,15 @@
 static int
 linux_slow_getloadavg(void)
 {
+#if !defined(__FreeBSD_kernel__)
 struct sysinfo s;
 double avg;
 if (sysinfo(&s) < 0) return -1;
 avg = (double) (s.loads[0]) / (1<<SI_LOAD_SHIFT);
 return (int)(avg * 1000.0);
+#else
+return 0;
+#endif
 }
 
 int

Reply via email to