Package: libapache-mod-backhand
Version: 1.2.2-15
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> gcc -DGNUKFREEBSD -DEAPI -DTARGET="apache" -DDB_DBM_HSEARCH=1 
> -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -O1  -g -Wall -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -fPIC -DSHARED_MODULE -I/usr/include/apache-1.3  -c 
> back_util.c
> In file included from back_util.c:36:
> platform.c:623:2: error: #error Platform not supported.. patch it and mail 
> me, or mail me `uname -a`
> back_util.c:653:42: warning: trigraph ??) ignored, use -trigraphs to enable
> apxs:Break: Command failed with rc=1
> make[1]: *** [mod_backhand.so] Error 1
> make[1]: Leaving directory `/build/buildd/libapache-mod-backhand-1.2.2'
> make: *** [build-stamp] Error 2

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

Please find attached a tiny patch which makes your package build fine on
GNU/kFreeBSD. Please also note that if upstream is reticent to use the test on
__GLIBC__ (GNU/k*BSD defines it), you might use a test on __FreeBSD_kernel__
instead.

Cheers,

-- 
Cyril Brulebois
--- libapache-mod-backhand-1.2.2/apue.c 2007-03-15 23:26:45.526042000 +0100
+++ libapache-mod-backhand-1.2.2/apue.c 2007-03-15 23:27:02.000000000 +0100
@@ -39,7 +39,7 @@
 #define MAXLINE 4096
 #endif
 
-#ifdef LINUX
+#if defined(LINUX) || defined(__GLIBC__)
 #define _BSDISH
 #endif
 #ifdef __FreeBSD__
--- libapache-mod-backhand-1.2.2/platform.c     2007-03-15 23:25:54.935010000 
+0100
+++ libapache-mod-backhand-1.2.2/platform.c     2007-03-15 23:26:36.000000000 
+0100
@@ -40,7 +40,7 @@
          return aload;
        }
 
-       #ifdef LINUX
+       #if defined(LINUX) || defined(__GLIBC__)
 #ifndef CPUSTATES
 #define CPUSTATES 4
 #endif

Reply via email to