Making PCRE required ? Was: Optional PCRE breaking build?

Alexander Neundorf neundorf at kde.org
Sun Jan 20 20:04:29 GMT 2008


Hi,

On Sunday 20 January 2008, Mauricio Piacentini wrote:
> Got the following message after updating kdelibs today:
>
> ---
>
> -- Could not find OPTIONAL package PCRE
> CMake Error: The PCRE regular expression library has not been found. KJS
> requires PCRE >= 4.5 to function properly. If you for some reason can
> not install it, you can force a build with POSIX regex.h by passing
> -DKJS_FORCE_DISABLE_PCRE=true to cmake. However, be advised that it'll
> result in many websites breaking
>
> ---
>
> After installing the C and C++ dev packages for libpcre the build was
> able to continue.

I had a look at kdelibs/kjs/CMakeLists.txt, and actually the message tells you 
everything.
You can build kjs without PCRE, but then you'll get a kjs, which will not work 
for many websites. 
If somebody does that, it will result in bug reports (which may be even hard 
to recognize, since the user must find out whether his kjs has been built 
with or without PCRE).
I suggest to make PCRE a hard requirement and not supporting the non-PCRE 
build anymore.

Objections ?

Alex




More information about the kde-core-devel mailing list