Package: clucene-core
Version: 0.9.20-3
Severity: important
Tags: patch


Coin,

Please consider applying this small patch which fix a POSIX incompatibility (as programs should not rely on having PATH_MAX defined on all systems) and causes FTBFS on Hurd. This is a work around, as doing dynamic allocation would be better, but this would need major rewrites of the code, so this should be enough to have it work well.

Regards.

--
Marc Dequènes (Duck)
diff -Nur orig/clucene-core-0.9.20/debian/changelog clucene-core-0.9.20/debian/changelog
--- orig/clucene-core-0.9.20/debian/changelog	2009-05-24 01:00:56.000000000 +0200
+++ clucene-core-0.9.20/debian/changelog	2009-05-24 00:59:22.000000000 +0200
@@ -1,3 +1,10 @@
+clucene-core (0.9.20-3+hurdfr1) unreleased; urgency=low
+
+  * Added 'posixness_fix' patch to fix POSIX incompatibilities causing
+    FTBFS on hurd-i386.
+
+ -- Marc Dequènes (Duck) <d...@hurdfr.org>  Sun, 24 May 2009 00:59:15 +0200
+
 clucene-core (0.9.20-3) unstable; urgency=low
 
   * Lower compat/debhelper to 5.
diff -Nur orig/clucene-core-0.9.20/debian/patches/posixness_fix clucene-core-0.9.20/debian/patches/posixness_fix
--- orig/clucene-core-0.9.20/debian/patches/posixness_fix	1970-01-01 01:00:00.000000000 +0100
+++ clucene-core-0.9.20/debian/patches/posixness_fix	2009-05-24 00:39:31.000000000 +0200
@@ -0,0 +1,15 @@
+Index: clucene-core-0.9.20/src/CLucene/config/compiler.h
+===================================================================
+--- clucene-core-0.9.20.orig/src/CLucene/config/compiler.h	2009-05-24 00:11:19.000000000 +0200
++++ clucene-core-0.9.20/src/CLucene/config/compiler.h	2009-05-24 00:39:21.000000000 +0200
+@@ -133,6 +133,10 @@
+ #define LUCENE_INT32_MAX_SHOULDBE 0x7FFFFFFFL
+ #define LUCENE_UINT8_MAX_SHOULDBE 0xff
+ 
++#if defined(__GNU__)
++ #define PATH_MAX 4096
++#endif
++
+ //maximum path length. only used for buffers that use fullpath.
+ //anything else should use a dynamic length.
+ #if defined(CL_MAX_PATH)
diff -Nur orig/clucene-core-0.9.20/debian/patches/series clucene-core-0.9.20/debian/patches/series
--- orig/clucene-core-0.9.20/debian/patches/series	2009-05-24 01:00:56.000000000 +0200
+++ clucene-core-0.9.20/debian/patches/series	2009-05-24 00:11:15.000000000 +0200
@@ -1 +1,2 @@
 01_stack_fix.diff
+posixness_fix

Attachment: pgpoooNDc8mFQ.pgp
Description: PGP Digital Signature

Reply via email to