Summary: | net-libs/libkolabxml-0.8.0[php] fails to build: Could NOT find PHP4 (missing: PHP4_INCLUDE_PATH), possible failure in FindPHP4.cmake? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Travis Hansen <travisghansen> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | creffett, dschridde+gentoobugs, grknight |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://public.kitware.com/Bug/view.php?id=13477 | ||
Whiteboard: | tracking upstream | ||
Package list: | Runtime testing required: | --- | |
Attachments: | libkolabxml-0.8.4-php-include-dir.patch |
Description
Travis Hansen
2012-08-11 00:45:44 UTC
Issue here is a failure on the part of the FindPHP4.cmake, since it does not find the PHP includes and such correctly (it looks in /usr/include/php and a couple other places in /usr/include, whereas the includes are located in /usr/lib/php5.4. Not sure if that applies in 5.3. It does. I'm running PHP 5.3: # php --version PHP 5.3.15-pl0-gentoo with Suhosin-Patch (cli) (built: Aug 1 2012 10:46:16) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans I'm getting the same error building libkolabxml. So basically, the FindPHP4 cmake module is completely broken. Excellent. Will put this on the to-do list for the next KDE meeting for opinions on what to do about this. FWIW at least I got libkolabxml to build correctly by adding /usr/lib/php5.4/include/php to SET(PHP4_POSSIBLE_INCLUDE_PATHS in/usr/share/cmake/Modules/FindPHP4.cmake Obviously this is a hack that probably isn't upgrade-safe, but for now it works. Note: libkolab and libkolabxml have php in package.use.mask now to get around this, but leaving this open until there's some sort of fix available. This should be fixed upstream in the next release: http://git.kolab.org/libkolabxml/commit/?h=libkolabxml-0.8&id=4e7f91b63500423565eb346a4f691753626795a9 New version is in tree. + 10 May 2013; Johannes Huber <johu@gentoo.org> +libkolabxml-0.8.4.ebuild, + metadata.xml: + Version bump. I have moved the php use mask for easier testing to stable only. At least it builds with php enabled, but seems not fully fixed: building php bindings CMake Warning at src/php/CMakeLists.txt:72 (message): not building php bindings because php was not found Created attachment 348928 [details, diff]
libkolabxml-0.8.4-php-include-dir.patch
Two steps forward, one step back: this patch makes it build with PHP (basically, it was looking in /usr/include for php includes, but our php includes are in /usr/lib64/php-5.x, so this makes it use php-config to find the right include dir), but it now has a build failure that I can't pin down.
i solved it by adding a symlink ln -s /usr/lib/php/include/php php because cmake's FINDPHP4 method is highly outdated. Best would be to add a line in a cmake specific patch (In reply to Chris Reffett from comment #8) > Created attachment 348928 [details, diff] [details, diff] > libkolabxml-0.8.4-php-include-dir.patch Use execute_process(... OUTPUT_STRIP_TRAILING_WHITESPACE) to get rid of the trailing newline. libkolab an libkolabxml should leverage the php-ext-source-r3 eclass if possible. The PHP slots allow installs of multiple PHP targets and extensions must be built for each independently. Nobody has touched these kolab packages in years I would suggest dropping them once kdepim:4 leaves the tree. kolab is being removed |