summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-08-20 21:02:53 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-08-20 21:02:53 +0000
commit96d5ac9da218d0c96e6fd0c2b3be65f3012f8d37 (patch)
tree789cf63119a2446dc75589026772bebcc59bf49a /dev-php5
parentPorting from project overlay (diff)
downloadhistorical-96d5ac9da218d0c96e6fd0c2b3be65f3012f8d37.tar.gz
historical-96d5ac9da218d0c96e6fd0c2b3be65f3012f8d37.tar.bz2
historical-96d5ac9da218d0c96e6fd0c2b3be65f3012f8d37.zip
Porting from project overlay
Package-Manager: portage-2.1.3.5
Diffstat (limited to 'dev-php5')
-rw-r--r--dev-php5/eaccelerator/ChangeLog16
-rw-r--r--dev-php5/eaccelerator/Manifest30
-rw-r--r--dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild32
-rw-r--r--dev-php5/eaccelerator/files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch30
4 files changed, 94 insertions, 14 deletions
diff --git a/dev-php5/eaccelerator/ChangeLog b/dev-php5/eaccelerator/ChangeLog
index 327efef34ec1..5b81503a7048 100644
--- a/dev-php5/eaccelerator/ChangeLog
+++ b/dev-php5/eaccelerator/ChangeLog
@@ -1,6 +1,20 @@
# ChangeLog for dev-php5/eaccelerator
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.16 2007/05/12 14:28:32 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.17 2007/08/20 21:02:53 jokey Exp $
+
+ 20 Aug 2007; Markus Ullmann <jokey@gentoo.org>
+ +files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch,
+ eaccelerator-0.9.5.1.ebuild:
+ Porting from project overlay
+
+ 20 Aug 2007; Jakub Moc <jakub@gentoo.org> eaccelerator-0.9.5.1.ebuild:
+ This ebuild mistakenly assumed that apache user and group exist. Make
+ HTTPD_{USER,GROUP} configurable and fix pkg_setup accordingly.
+
+ 20 Aug 2007; Jakub Moc <jakub@gentoo.org>
+ +files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch,
+ +metadata.xml, +eaccelerator-0.9.5.1.ebuild:
+ Add patch for Bug 184439
*eaccelerator-0.9.5.1 (12 May 2007)
diff --git a/dev-php5/eaccelerator/Manifest b/dev-php5/eaccelerator/Manifest
index 4052193181c2..0b0c34efc4ac 100644
--- a/dev-php5/eaccelerator/Manifest
+++ b/dev-php5/eaccelerator/Manifest
@@ -1,12 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX eaccelerator-0.9.5.1-optimize-catch-exceptions.patch 1221 RMD160 1329381073936f6431d43a1f0d0bde12f12c4207 SHA1 709f90356a97af00dd737d7753697a95885c02d4 SHA256 8c6f4fc7b9d00f2964872146ac57fa70b416a8d02fb4d00adf61f04c4b84a79c
+MD5 01415df4ce9bda8fadae187860af4ccc files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch 1221
+RMD160 1329381073936f6431d43a1f0d0bde12f12c4207 files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch 1221
+SHA256 8c6f4fc7b9d00f2964872146ac57fa70b416a8d02fb4d00adf61f04c4b84a79c files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch 1221
DIST eaccelerator-0.9.5.1.tar.bz2 122279 RMD160 871ab91e2fe94bc214ed7dfe927a57289e2e3485 SHA1 2789f56d713549a360871accd9869a6bb4a0b514 SHA256 dadef8cfe4624ea8a42aacd1b7db8eb47672a13ed7f78dd9028ce9edc33c2de2
-EBUILD eaccelerator-0.9.5.1.ebuild 3335 RMD160 b2538210db0a5f597e3da40008dd653910c58a00 SHA1 aede531d42d27f77b3c3896423a813c75adbac34 SHA256 108bd83114b20bbd3513ab5895639faddd5df9de9cbedfaa5ea9ca7be210fb39
-MD5 e445dd13ec55f5f1f093b664670ae672 eaccelerator-0.9.5.1.ebuild 3335
-RMD160 b2538210db0a5f597e3da40008dd653910c58a00 eaccelerator-0.9.5.1.ebuild 3335
-SHA256 108bd83114b20bbd3513ab5895639faddd5df9de9cbedfaa5ea9ca7be210fb39 eaccelerator-0.9.5.1.ebuild 3335
-MISC ChangeLog 2315 RMD160 4210b359c0da9d5fdb7b4a6d7ef2939fd7282965 SHA1 d785eed781ac4f97f26759c8f961839c831fa423 SHA256 8188f813a522aaab540f8f55e899a5572611fcb71d499a5edf709b8c71ac0ba5
-MD5 a4688b63776aedd60b11f333befa60d4 ChangeLog 2315
-RMD160 4210b359c0da9d5fdb7b4a6d7ef2939fd7282965 ChangeLog 2315
-SHA256 8188f813a522aaab540f8f55e899a5572611fcb71d499a5edf709b8c71ac0ba5 ChangeLog 2315
+EBUILD eaccelerator-0.9.5.1.ebuild 4153 RMD160 34a902306e09be90624104ca7fa81f8d4bd6defe SHA1 bbb0c9fa9028def1f264e57d10db87584dd41a21 SHA256 e0e7d23de24292f2fb2702b09955a49c9abe605e339054e34290b45cb5087fa7
+MD5 a30accb4c2f7ea4dedeab58181a098f1 eaccelerator-0.9.5.1.ebuild 4153
+RMD160 34a902306e09be90624104ca7fa81f8d4bd6defe eaccelerator-0.9.5.1.ebuild 4153
+SHA256 e0e7d23de24292f2fb2702b09955a49c9abe605e339054e34290b45cb5087fa7 eaccelerator-0.9.5.1.ebuild 4153
+MISC ChangeLog 2882 RMD160 fce081073a4d4ca09d6902f2e825c9ad662dea33 SHA1 e18e9f828c352d48bc0d770cc3dff641207a7253 SHA256 4340767d591fb4ace77ebbf5871e013d7e73ad982db853ac36c0ec8a101c1d9d
+MD5 f9f6a4b15f333113116ed83b01f11e7d ChangeLog 2882
+RMD160 fce081073a4d4ca09d6902f2e825c9ad662dea33 ChangeLog 2882
+SHA256 4340767d591fb4ace77ebbf5871e013d7e73ad982db853ac36c0ec8a101c1d9d ChangeLog 2882
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157
RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157
@@ -14,3 +21,10 @@ SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 metadata
MD5 869cf9a7bc5378b7d7921f26d2004cfb files/digest-eaccelerator-0.9.5.1 265
RMD160 872fd6918edff8aaff9e802736b60a6ae631af37 files/digest-eaccelerator-0.9.5.1 265
SHA256 227dad023455675a26f04f70f3d0a2ebaad18c065d97a7df9675531ef18eb52b files/digest-eaccelerator-0.9.5.1 265
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.5 (GNU/Linux)
+
+iD8DBQFGygGEz974XjDVpbkRAnd5AKDU/4clazJQi8YgijW38J+xEQ9VEgCdFjnD
+QD499qWWS4W7cI2Z72cvwLU=
+=f0Sx
+-----END PGP SIGNATURE-----
diff --git a/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild b/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild
index c58503d46523..a1934ee1d3fa 100644
--- a/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild
+++ b/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild,v 1.1 2007/05/12 14:28:32 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.5.1.ebuild,v 1.2 2007/08/20 21:02:53 jokey Exp $
PHP_EXT_NAME="eaccelerator"
PHP_EXT_INI="yes"
@@ -8,7 +8,7 @@ PHP_EXT_ZENDEXT="yes"
[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php5/"
-inherit php-ext-source-r1
+inherit php-ext-source-r1 eutils depend.apache
KEYWORDS="~amd64 ~sparc ~x86"
@@ -22,11 +22,12 @@ IUSE="contentcache debug disassembler inode session sharedmem"
DEPEND="!dev-php5/pecl-apc !dev-php5/xcache"
RDEPEND="${DEPEND}"
-# Webserver user and group, here for Apache.
-HTTPD_USER="apache"
-HTTPD_GROUP="apache"
+# Webserver user and group, here for Apache by default
+HTTPD_USER="${HTTPD_USER:-apache}"
+HTTPD_GROUP="${HTTPD_GROUP:-apache}"
need_php_by_category
+want_apache
pkg_setup() {
has_php
@@ -38,6 +39,27 @@ pkg_setup() {
else
require_php_with_use zlib
fi
+
+ if ! use apache2 ; then
+ if [[ ${HTTPD_USER} == "apache" ]] || [[ ${HTTPD_GROUP} == "apache" ]] ; then
+ eerror "You did not enable apache2 USE flag, so you need to define"
+ eerror "the user and group that will be used for ${PN} yourself."
+ eerror
+ eerror "This should (generally) match the user and group that your webserver uses, e.g.:"
+ eerror "HTTPD_USER=\"lighttpd\" HTTPD_GROUP=\"lighttpd\" if using www-servers/lighttpd"
+ eerror
+ die "Either enable USE=\"apache2\" or re-emerge this with HTTPD_USER and HTTPD_GROUP set"
+ else
+ enewgroup ${HTTPD_GROUP}
+ enewuser ${HTTPD_USER} -1 -1 /var/www ${HTTPD_GROUP}
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-optimize-catch-exceptions.patch
}
src_compile() {
diff --git a/dev-php5/eaccelerator/files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch b/dev-php5/eaccelerator/files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch
new file mode 100644
index 000000000000..2add432d630c
--- /dev/null
+++ b/dev-php5/eaccelerator/files/eaccelerator-0.9.5.1-optimize-catch-exceptions.patch
@@ -0,0 +1,30 @@
+Index: eaccelerator/trunk/ChangeLog
+===================================================================
+--- eaccelerator/trunk/ChangeLog (revision 308)
++++ eaccelerator/trunk/ChangeLog (revision 323)
+@@ -1,2 +1,8 @@
++2007-08-14 Hans Rakers <hans at react.nl>
++
++ * Optimizer fix for #242. PHP-5.2.1 introduces a ZEND_JMP before a
++ ZEND_FETCH_CLASS/ZEND_CATCH which the optimizer did not handle
++ correctly, resulting in uncaught exceptions. (Thanks to warwickshaw)
++
+ 2007-05-09 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be>
+
+Index: eaccelerator/trunk/optimize.c
+===================================================================
+--- eaccelerator/trunk/optimize.c (revision 322)
++++ eaccelerator/trunk/optimize.c (revision 323)
+@@ -2976,4 +2976,11 @@
+ op->extended_value = 0;
+ }
++# if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 && PHP_RELEASE_VERSION >= 1) || PHP_MAJOR_VERSION >= 6
++ /* php > 5.2.1 introduces a ZEND_JMP before a ZEND_FETCH_CLASS and ZEND_CATCH
++ this leaves those blocks intact */
++ else if ((op+1)->opcode == ZEND_FETCH_CLASS && (op+2)->opcode == ZEND_CATCH) { /* fix for #242 */
++ p->follow = &bb[line_num];
++ }
++# endif
+ #endif
+ break;
+