wrong place for cluecene-config.h in package libclucene-dev

Bug #251688 reported by WangLu
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
clucene-core (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: libclucene-dev

after installed that package, I found a file /usr/lib/Clucene/clucene-config.h, is it apparently in the wrong place?

Revision history for this message
djinn (supreet-sethi) wrote :

I think, it is supposed to be at /usr/include/CLucene/clucene-config.h

Revision history for this message
Fathi Boudra (fboudra) wrote :

no, it's in the right place.

Changed in clucene-core (Ubuntu):
status: New → Invalid
Revision history for this message
Gavin Hurlbut (gjhurlbu) wrote :

No it is not. Most definitely not.

Try this (I'm using Jaunty, BTW)

#include <CLucene.h>

int main() {
  _lucene_shutdown();
}

compile that with g++ and see what happens:

It can't find the clucene-config.h file to compile against. This is broken, plain and simple. It needs to be in /usr/include/CLucene for libclucene-dev to be usable. This is a serious bug in the packaging, regardless of how Ubuntu likes to package things. It is not normal to require "-I/usr/lib" as compile options to use a library in development.

Changed in clucene-core (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Gavin Hurlbut (gjhurlbu) wrote :

All that is needed to fix this is to place a symlink to /usr/lib/CLucene/clucene-config.h into /usr/include/CLucene. Without this, libclucene-dev is unusable. I have added it to my build system for beirdobot (on github) so I can use CLucene in that project. Without this change, the system can not compile anything that uses #include <CLucene.h>

I do not have the dpkg expertise (yet) to create the appropriate patch to fix this issue, but it really needs to be fixed ASAP if this package is to be of any use.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.