Package: icu
Version: 3.8-5
Severity: important
Tags: patch
icu 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 platform.
Please find this patch below. Could you please apply it to the next
upload, and forward it to upstream? Thanks in advance.
--- icu-3.8.orig/debian/patches/icu-kfreebsd.patch
+++ icu-3.8/debian/patches/icu-kfreebsd.patch
@@ -0,0 +1,49 @@
+--- icu.orig/source/common/putil.c 2007-09-14 01:18:00 +0200
++++ icu/source/common/putil.c 2008-01-20 19:07:45 +0100
+@@ -105,7 +105,7 @@
+ # define ICU_NO_USER_DATA_OVERRIDE 1
+ #elif defined(OS390)
+ #include "unicode/ucnv.h" /* Needed for UCNV_SWAP_LFNL_OPTION_STRING */
+-#elif defined(U_DARWIN) || defined(U_LINUX) || defined(U_BSD)
++#elif defined(U_DARWIN) || defined(U_LINUX) || defined(U_BSD) ||
defined(U_KBSD)
+ #include <limits.h>
+ #include <unistd.h>
+ #elif defined(U_QNX)
+@@ -576,7 +576,7 @@
+ #if !UCONFIG_NO_FILE_IO && (defined(U_DARWIN) || defined(U_LINUX) ||
defined(U_BSD))
+ /* These platforms are likely to use Olson timezone IDs. */
+ #define CHECK_LOCALTIME_LINK 1
+-#if defined(U_LINUX)
++#if defined(U_LINUX) || defined(U_KBSD)
+ #define TZDEFAULT "/etc/localtime"
+ #define TZZONEINFO "/usr/share/zoneinfo/"
+ #else
+@@ -1425,7 +1425,7 @@
+ */
+ name = "eucjis";
+ }
+-#elif defined(U_LINUX)
++#elif defined(U_LINUX) || defined(U_KBSD)
+ if (uprv_strcmp(name, "eucjp") == 0) {
+ /*
+ ibm-1350 is the best match, but unavailable.
+--- icu.orig/source/configure 2007-09-14 01:19:04 +0200
++++ icu/source/configure 2008-01-20 19:07:05 +0100
+@@ -8291,6 +8291,7 @@
+ case "${host}" in
+ *-*-solaris*) platform=U_SOLARIS ;;
+ *-*-linux*) platform=U_LINUX ;;
++ *-*-k*bsd*-gnu*) platform=U_KBSD ;;
+ *-pc-gnu) platform=U_HURD ;;
+ *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
+ *-*-aix*) platform=U_AIX ;;
+--- icu.orig/source/configure.in 2007-09-14 01:19:04 +0200
++++ icu/source/configure.in 2008-01-20 19:06:55 +0100
+@@ -996,6 +996,7 @@
+ case "${host}" in
+ *-*-solaris*) platform=U_SOLARIS ;;
+ *-*-linux*) platform=U_LINUX ;;
++ *-*-k*bsd*-gnu*) platform=U_KBSD ;;
+ *-pc-gnu) platform=U_HURD ;;
+ *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
+ *-*-aix*) platform=U_AIX ;;
-- 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]