Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342357 - dev-php/pecl-bcompiler - A bytecode compiler
Summary: dev-php/pecl-bcompiler - A bytecode compiler
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://pecl.php.net/package/bcompiler/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-10-23 16:50 UTC by Peter
Modified: 2024-01-27 12:35 UTC (History)
3 users (show)

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


Attachments
ebuild (pecl-bcompiler-0.9.3.ebuild,445 bytes, text/plain)
2010-10-23 16:51 UTC, Peter
Details
patch (zend_is_callable.patch,300 bytes, patch)
2010-10-23 16:52 UTC, Peter
Details | Diff
ebuild (add homepage) (pecl-bcompiler-0.9.3.ebuild,555 bytes, text/plain)
2010-10-28 06:23 UTC, Peter
Details
ebuild (pecl-bcompiler-0.9.3.ebuild,513 bytes, text/plain)
2010-10-28 13:38 UTC, Peter
Details
ebuild (pecl-bcompiler-0.9.3.ebuild,621 bytes, text/plain)
2010-11-04 18:40 UTC, Peter
Details
ebuild (pecl-bcompiler-0.9.3.ebuild,607 bytes, text/plain)
2010-11-13 13:29 UTC, Peter
Details
ebuild (pecl-bcompiler-0.9.3.ebuild,595 bytes, text/plain)
2010-11-16 14:24 UTC, Peter
Details
ebuild (pecl-bcompiler-0.9.3.ebuild,573 bytes, text/plain)
2010-11-16 17:11 UTC, Peter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2010-10-23 16:50:53 UTC
Ask to add ebuild for pecl-bcompiler in portage tree. Maybe it will look like this:
PHP_EXT_NAME="bcompiler"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"

inherit php-ext-pecl-r1

KEYWORDS="amd64 ppc ppc64 sparc x86"

DESCRIPTION="PHP bytecode Compiler."
LICENSE="PHP-3"
SLOT="0"
IUSE=""

DEPEND=""
RDEPEND=""

need_php_by_category

src_unpack() {
        unpack ${A}
        cd "${S}"

        epatch "${FILESDIR}/zend_is_callable.patch"

        php-ext-source-r1_phpize
}

=====================================

zend_is_callable.patch:
--- bcompiler.c 2010-02-07 00:31:52.000000000 +0300
+++ bcompiler.c.mod     2010-10-23 20:14:58.900710492 +0400
@@ -1492,7 +1492,7 @@
                }
        }
 #else
-       if (!zend_is_callable(func, 0, &name TSRMLS_CC)) {
+       if (!zend_is_callable(func, 0, &name)) {
                if (name && *name == 0) {
                        func = NULL;
                } else {

=====================================

Without a patch it does not compile. May be it's not the best solution, but it works.

Reproducible: Always

Steps to Reproduce:
Comment 1 Peter 2010-10-23 16:51:55 UTC
Created attachment 251723 [details]
ebuild
Comment 2 Peter 2010-10-23 16:52:18 UTC
Created attachment 251725 [details, diff]
patch
Comment 3 Peter 2010-10-28 06:23:47 UTC
Created attachment 252329 [details]
ebuild (add homepage)
Comment 4 Peter 2010-10-28 13:38:29 UTC
Created attachment 252367 [details]
ebuild

Gentoo Sunrise Coding Standards
Comment 5 Peter 2010-11-04 18:40:42 UTC
Created attachment 253205 [details]
ebuild

zend_is_callable.patch not applied if version of php is >= 5.3
Comment 6 Peter 2010-11-13 13:29:41 UTC
Created attachment 254209 [details]
ebuild

Gentoo Sunrise Coding Standards
Comment 7 Peter 2010-11-16 14:24:14 UTC
Created attachment 254501 [details]
ebuild
Comment 8 Peter 2010-11-16 17:11:42 UTC
Created attachment 254519 [details]
ebuild
Comment 9 Peter 2010-11-19 21:08:04 UTC
In sunrise overlay now. After review you can find it at:
http://overlays.gentoo.org/proj/sunrise/browser/reviewed/dev-php5/pecl-bcompiler.
Comment 10 Thomas Sachau gentoo-dev 2015-05-09 15:24:45 UTC
This package has been removed from sunrise overlay because of dependency on php:5.3
Comment 11 Michael Orlitzky gentoo-dev 2024-01-27 12:35:29 UTC
This was last released in 2011, safe to say it's EOL.