Package: qbankmanager
Version: 0.9.48-2
Severity: important
Tags: patch

qbankmanager fails to build on GNU/kFreeBSD because it doesn't known about this
platform. The check is for the kernel, but the result is currently used
to decide about userland stuff. It may be a good idea to replace the
check for the Linux kernel by a check for the GNU libc. However, as I
don't know the goal of this check in the future I have written a patch
to add GNU/kFreeBSD in the list of platforms.

Please find this patch below. Could you please apply it to the next
upload, and forward it to upstream? Thanks in advance.


--- qbankmanager-0.9.48.orig/m4/os.m4
+++ qbankmanager-0.9.48/m4/os.m4
@@ -31,6 +31,12 @@
        AC_DEFINE(OS_POSIX,1,[if this is a POSIX system])
        OS_TYPE="posix"
        ;;
+    *-kfreebsd*-gnu*)
+       OSYSTEM="kfreebsd"
+       AC_DEFINE(OS_KFREEBSD,1,[if GNU/kFreeBSD is used])
+       AC_DEFINE(OS_POSIX,1,[if this is a POSIX system])
+       OS_TYPE="posix"
+       ;;
     *-openbsd*)
        OSYSTEM="openbsd"
        AC_DEFINE(OS_OPENBSD,1,[if OpenBSD is used])
--- qbankmanager-0.9.48.orig/config.h.in
+++ qbankmanager-0.9.48/config.h.in
@@ -97,6 +97,9 @@
 /* target system */
 #undef OS_NAME
 
+/* if GNU/kFreeBSD is used */
+#undef OS_KFREEBSD
+
 /* if OpenBSD is used */
 #undef OS_OPENBSD
 
--- qbankmanager-0.9.48.orig/configure
+++ qbankmanager-0.9.48/configure
@@ -20394,6 +20394,20 @@
 
        OS_TYPE="posix"
        ;;
+    *-kfreebsd*-gnu*)
+       OSYSTEM="kfreebsd"
+
+cat >>confdefs.h <<\_ACEOF
+#define OS_KFREEBSD 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define OS_POSIX 1
+_ACEOF
+
+       OS_TYPE="posix"
+       ;;
     *-openbsd*)
        OSYSTEM="openbsd"
 
--- qbankmanager-0.9.48.orig/src/kbanking/libs/prg/app.cpp
+++ qbankmanager-0.9.48/src/kbanking/libs/prg/app.cpp
@@ -2541,7 +2541,7 @@
   else {
     char *outbuf;
     char *pOutbuf;
-#if defined(OS_LINUX) | defined(OS_WIN32)
+#if defined(OS_LINUX) | defined(OS_WIN32) | defined(OS_KFREEBSD)
     char *pInbuf;
 #else
     /* For Mac OSX */


-- System Information:
Debian Release: lenny/sid
Architecture: kfreebsd-i386 (i686)

Kernel: kFreeBSD 6.2-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to