Bug#718371: goldencheetah: FTBFS: CLucene/clucene-config.h not found

2013-07-30 Thread Rene Engelhard
Package: goldencheetah
Version: 3.0-1
Severity: serious

Hi,

While trying to look whether goldencheetah builds with the recently uploaded
clucene 2.x I noticed it unsurprisingly does not ;-(:

[...]
g++ -c -m64 -pipe -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT -DQT_WEBKIT 
-DGC_HAVE_LIBOAUTH -DGC_HAVE_QWTPLOT3D -DGC_HAVE_KML -DGC_HAVE_ICAL 
-DGC_HAVE_VLC -DGC_HAVE_LUCENE -DQXT_STATIC -DGC_HAVE_SOAP -DQT_NO_DEBUG 
-DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XML_LIB 
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql 
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtScript 
-I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I../qwt/src -I../qxt/src 
-I/usr/include -I/usr/include/qwtplot3d-qt4 -I/usr/include 
-I/usr/include/libical -I/usr/include/vlc -I/usr/lib -I../qtsolutions/soap 
-I/usr/X11R6/include -I. -o VideoWindow.o VideoWindow.cpp
g++ -c -m64 -pipe -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT -DQT_WEBKIT 
-DGC_HAVE_LIBOAUTH -DGC_HAVE_QWTPLOT3D -DGC_HAVE_KML -DGC_HAVE_ICAL 
-DGC_HAVE_VLC -DGC_HAVE_LUCENE -DQXT_STATIC -DGC_HAVE_SOAP -DQT_NO_DEBUG 
-DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XML_LIB 
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql 
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtScript 
-I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I../qwt/src -I../qxt/src 
-I/usr/include -I/usr/include/qwtplot3d-qt4 -I/usr/include 
-I/usr/include/libical -I/usr/include/vlc -I/usr/lib -I../qtsolutions/soap 
-I/usr/X11R6/include -I. -o Lucene.o Lucene.cpp
In file included from /usr/include/CLucene/StdHeader.h:20:0,
 from /usr/include/CLucene.h:11,
 from Lucene.h:31,
 from Lucene.cpp:19:
/usr/include/CLucene/SharedHeader.h:18:36: fatal error: 
CLucene/clucene-config.h: No such file or directory
 #include CLucene/clucene-config.h
^
compilation terminated.
make[2]: *** [Lucene.o] Error 1
make[2]: Leaving directory `/tmp/goldencheetah-3.0/src'
make[1]: *** [sub-src-make_default-ordered] Error 2
make[1]: Leaving directory `/tmp/goldencheetah-3.0'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2

This is because clucene-config.h is in
/usr/lib/x86_64-linux-gnu/CLucene/clucene-config.h (or the respective arch dir)
and thus needs explicit -I for that. the /usr/lib in CLUCENE_INCLUDE
doesn't suffice here.
When that is fixed -lclucene doesn't work as it's now -lclucene-core what's
needed.

Complete Patch attached.

Regards,

Rene
diff -Nru goldencheetah-3.0/debian/changelog goldencheetah-3.0/debian/changelog
--- goldencheetah-3.0/debian/changelog	2013-06-08 02:26:17.0 +
+++ goldencheetah-3.0/debian/changelog	2013-07-30 17:51:16.0 +
@@ -1,3 +1,10 @@
+goldencheetah (3.0-2) UNRELEASED; urgency=low
+
+  * fix build with clucene 2.x: set multiarch include dir and use
+-lclucene-core instead of -lclucene 
+
+ -- Rene Engelhard r...@debian.org  Tue, 30 Jul 2013 17:19:34 +
+
 goldencheetah (3.0-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru goldencheetah-3.0/debian/gcconfig.pri goldencheetah-3.0/debian/gcconfig.pri
--- goldencheetah-3.0/debian/gcconfig.pri	2013-06-08 02:26:17.0 +
+++ goldencheetah-3.0/debian/gcconfig.pri	1970-01-01 00:00:00.0 +
@@ -1,221 +0,0 @@
-# To build, copy this file to gcconfig.pri and then fill in the paths.
-
-# You can define the name of the executage file here.
-# If you do not specify anything then we deafult to: GoldenCheetah
-#APP_NAME = 
-
-# We recommend a debug build for development and a release build for deployment
-#CONFIG += debug
-#CONFIG += release
-
-# If you want a console window to appear on Windows machines
-# then uncomment the following two lines.
-#CONFIG += console
-#QMAKE_LFLAGS = -mwindows
-
-# To compile translation you need QT tool - lrelease
-# If it is not found using he defaults in src/src.pro
-# then set the full path and filename here.
-QMAKE_LRELEASE = /usr/bin/lrelease-qt4
-
-# We use g++ on all platforms so switch on auto vectorization amongst other
-# things to speed up looping over ride file points
-#QMAKE_CXXFLAGS += -O3
-
-# Let us know where flex and bison are installed.
-# You may need to specify the full path if things don't work.
-#QMAKE_LEX  = flex
-#QMAKE_YACC = bison

Bug#718371: goldencheetah: FTBFS: CLucene/clucene-config.h not found

2013-07-30 Thread Satoru KURASHIKI
hi,

On Wed, Jul 31, 2013 at 5:54 AM, Rene Engelhard r...@debian.org wrote:

 While trying to look whether goldencheetah builds with the recently
 uploaded
 clucene 2.x I noticed it unsurprisingly does not ;-(:



 This is because clucene-config.h is in
 /usr/lib/x86_64-linux-gnu/CLucene/clucene-config.h (or the respective arch
 dir)
 and thus needs explicit -I for that. the /usr/lib in CLUCENE_INCLUDE
 doesn't suffice here.
 When that is fixed -lclucene doesn't work as it's now -lclucene-core what's
 needed.

 Complete Patch attached.


Thank you digging it, I will pick the fix from your patch.

regards,
-- 
KURASHIKI Satoru