Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194033 - dev-php/PEAR-Benchmark installed to a wrong folder
Summary: dev-php/PEAR-Benchmark installed to a wrong folder
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 19:57 UTC by Steffen 'j0inty' Stollfuß
Modified: 2007-12-31 15:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen 'j0inty' Stollfuß 2007-09-27 19:57:11 UTC
Hi,

at time the Benchmark files will install to /usr/share/php/Benchmark/Benchmark
but it must be /usr/share/php/Benchmark/ .

regards
j0inty.sL

Reproducible: Always

Steps to Reproduce:
1.emerge PEAR-Benchmark
2.php -r "require(\"Benchmark/Timer.php\");"
3.

Actual Results:  
Fatal error: require(): Failed opening required 'Benmark/Timer.php' (include_path='.:/usr/share/php5:/usr/share/php') in Command line code on line 1


Expected Results:  
No Fatal Error ;)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-27 20:09:57 UTC
Because the package.xml thing is broken, report this upstream please.

http://pear.php.net/bugs/report.php?package=Benchmark
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-09-27 20:37:09 UTC
--- PEAR-Benchmark-1.2.7.ebuild	2007-09-26 20:05:49.000000000 +0200
+++ PEAR-Benchmark-1.2.7.ebuild	2007-09-27 22:33:45.000000000 +0200
@@ -10,6 +10,13 @@
 KEYWORDS="~alpha ~amd64 hppa ~ia64 ppc ppc64 ~sparc x86"
 IUSE=""
 
+src_unpack() {
+	unpack ${A}
+	cd "${WORKDIR}"
+	rm -f package.xml
+	cp package2.xml package.xml
+}
+
 pkg_postinst() {
 	has_php
 	if ! built_with_use --missing true =${PHP_PKG} bcmath ; then
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2007-09-27 21:48:17 UTC
Patch applied in PEAR-Benchmark-1.2.7-r1, thanks.

Arches, please mark =dev-php/PEAR-Benchmark-1.2.7-r1 stable (you currently have =dev-php/PEAR-Benchmark-1.2.7 which is broken).
Comment 4 Brent Baude (RETIRED) gentoo-dev 2007-09-27 23:42:51 UTC
ppc64 wins!
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-29 05:06:20 UTC
Stable for HPPA.
Comment 6 Markus Meier gentoo-dev 2007-09-30 15:35:35 UTC
x86 stable, adding amd64 as they stabilised the broken version
Comment 7 Markus Meier gentoo-dev 2007-09-30 15:37:15 UTC
actually add amd64, see comment #5 - sorry for the bugspam
Comment 8 Christoph Mende (RETIRED) gentoo-dev 2007-09-30 16:20:40 UTC
-r1 stable on amd64
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 11:38:32 UTC
CC alpha/sparc here as they've stabilized the broken one for #192247
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2007-10-11 16:18:55 UTC
alpha/sparc stable
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2007-12-31 15:48:51 UTC
Marked ppc stable, closing since we're the last arch.