Package: bibletime
Version: 2.9.1-2
Severity: serious
Tags: patch

Hi,

bibletime fails to build with the recently uploaded clucene 2.x:

[...]
-- Detecting C compiler ABI info - done
-- Setting up build environment for BibleTime version 2.9.1
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.5", minimum required 
is "4.5.0") 
-- Using DBUS
-- Found CLucene library: /usr/lib/x86_64-linux-gnu/libclucene-core.so
-- Found CLucene include dir: /usr/include
-- CLucene library dir not found.
CMake Error at cmake/FindCLucene.cmake:127 (MESSAGE):
  Could not find CLucene.
Call Stack (most recent call first):
  CMakeLists.txt:79 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo returned exit 
code 1
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

This is because it's looking for clucene-config.h and doesn't find it -
and thus is the case because it doesn't look in the multiarch library dir.

Adding /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE} as in the attached patch
fixes it.

Regards,

Rene
diff -Nru bibletime-2.9.1/debian/changelog bibletime-2.9.1/debian/changelog
--- bibletime-2.9.1/debian/changelog	2012-04-17 21:42:03.000000000 +0000
+++ bibletime-2.9.1/debian/changelog	2013-07-30 19:24:21.000000000 +0000
@@ -1,3 +1,10 @@
+bibletime (2.9.1-3) unstable; urgency=low
+
+  * fix FindCLucene.cmake to look in /usr/lib/{CMAKE_LIBRARY_ARCHITECTURE}
+    to find clucene-config.h with multiarched clucene
+
+ -- Rene Engelhard <r...@debian.org>  Tue, 30 Jul 2013 19:23:42 +0000
+
 bibletime (2.9.1-2) unstable; urgency=low
 
   * Disable -Werror to work-around FTBFS with gcc-4.7 (Closes: #667113)
diff -Nru bibletime-2.9.1/debian/patches/find-clucene-config.h.diff bibletime-2.9.1/debian/patches/find-clucene-config.h.diff
--- bibletime-2.9.1/debian/patches/find-clucene-config.h.diff	1970-01-01 00:00:00.000000000 +0000
+++ bibletime-2.9.1/debian/patches/find-clucene-config.h.diff	2013-07-30 19:02:08.000000000 +0000
@@ -0,0 +1,13 @@
+Description: find clucene-config.h in clucene 2.x' multiarch dir
+Author: Rene Engelhard <r...@debian.org>
+
+--- bibletime-2.9.1.orig/cmake/FindCLucene.cmake
++++ bibletime-2.9.1/cmake/FindCLucene.cmake
+@@ -55,6 +55,7 @@ SET(TRIAL_INCLUDE_PATHS
+     ${CMAKE_INSTALL_PREFIX}/include
+     /usr/local/include
+     /usr/include
++    /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}
+     /sw/include
+     /usr/pkg/include
+     ${WIN_CLUCENE_INCLUDE_PATH}
diff -Nru bibletime-2.9.1/debian/patches/series bibletime-2.9.1/debian/patches/series
--- bibletime-2.9.1/debian/patches/series	2012-04-17 21:37:39.000000000 +0000
+++ bibletime-2.9.1/debian/patches/series	2013-07-30 19:00:14.000000000 +0000
@@ -1 +1,2 @@
 gcc4.7-ftbfs.patch
+find-clucene-config.h.diff

Reply via email to