Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157446 - [php-overlay] dev-php5/pecl-runkit-0.9 needs php w/ USE=threads for sandbox functionality
Summary: [php-overlay] dev-php5/pecl-runkit-0.9 needs php w/ USE=threads for sandbox f...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-12-07 09:30 UTC by MT
Modified: 2007-07-18 19:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-php5/pecl-runkit-0.9-r2.ebuild (pecl-runkit-0.9-r2.ebuild,1.93 KB, text/plain)
2006-12-07 09:31 UTC, MT
Details
files/zend-api-5.2.patch (zend-api-5.2.patch,410 bytes, patch)
2006-12-07 09:31 UTC, MT
Details | Diff
compile output (compile_process.log,20.22 KB, text/plain)
2007-07-18 19:06 UTC, MT
Details
pecl-runkit-0.9.gcc4.patch (pecl-runkit-0.9.gcc4.patch,338 bytes, patch)
2007-07-18 19:18 UTC, MT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2006-12-07 09:30:14 UTC
attached there is a more efficient ebuild for the PECL runkit that do more checks about apache/php use flags requirements, gcc issues and fixes for PHP5.2.

@attention: the ebuild is for the Gentoo PHP Overlay, not for the official portage tree.
Comment 1 MT 2006-12-07 09:31:00 UTC
Created attachment 103552 [details]
dev-php5/pecl-runkit-0.9-r2.ebuild
Comment 2 MT 2006-12-07 09:31:29 UTC
Created attachment 103554 [details, diff]
files/zend-api-5.2.patch
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-18 17:59:06 UTC
I added the check for USE=threads for PHP. The rest seems to be fixed already by pecl-runkit-0.9-buildfixes.patch so no need to do anything there.
Comment 4 MT 2007-07-18 18:40:21 UTC
i'm not sure if the patch that come from Gentoo PHP Overlay (pecl-runkit-0.9-buildfixes.patch) is a good solution.

i have just discuss this compilation error upstream, suppling a right fix:
http://pecl.php.net/bugs/bug.php?id=8849

Gentoo PHP Overlay patch replace Z_BVAL_P (old boolean type macro) with a Z_LVAL_P (long type macro), the mine instead substitue the old boolean type macro with the new version (ZVAL_BOOL). probably the patch from PHP Overlay fix the compilation issue, but make the resulting code totaly broken because it create a variable as a LONG type instead of a BOOL type (the source code require a BOOL type). It's better if the PHP Overlay apply mine patch, just to be sure to not inject indirect bugs.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-07-18 18:52:46 UTC
(In reply to comment #4)
> the compilation issue, but make the resulting code totaly broken because it
> create a variable as a LONG type instead of a BOOL type (the source code
> require a BOOL type). It's better if the PHP Overlay apply mine patch, just to
> be sure to not inject indirect bugs.

That patch doesn't apply w/ 0.9; provide a proper one please.
Comment 6 MT 2007-07-18 19:06:16 UTC
Created attachment 125280 [details]
compile output

(In reply to comment #5)
> That patch doesn't apply w/ 0.9; provide a proper one please.

it does, see the attached log (just done a few seconds ago).
as AT i have tested it on x86 and amd64 before to supply it upstream.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-07-18 19:11:41 UTC
(In reply to comment #6)
> it does, see the attached log (just done a few seconds ago).
> as AT i have tested it on x86 and amd64 before to supply it upstream.

Well no, sorry, it doesn't...

=====================
patching file runkit_sandbox.c
Hunk #1 FAILED at 1467.
1 out of 1 hunk FAILED -- saving rejects to file runkit_sandbox.c.rej
======================

Comment 8 MT 2007-07-18 19:18:31 UTC
Created attachment 125282 [details, diff]
pecl-runkit-0.9.gcc4.patch

@jakub: try this one.
(probably the php bugzilla have wrongly cutted some blank spaces/lines when i have submitted the patch)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-07-18 19:33:27 UTC
(In reply to comment #8)
> @jakub: try this one.
> (probably the php bugzilla have wrongly cutted some blank spaces/lines when i
> have submitted the patch)

Thanks, this works. Added to dev-php4/pecl-runkit as well.