Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405967 - dev-lang/php-5.4.0_rc7 fails to configure and install
Summary: dev-lang/php-5.4.0_rc7 fails to configure and install
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-26 23:28 UTC by Askar Bektassov
Modified: 2017-11-15 16:53 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info,3.60 KB, text/plain)
2012-02-26 23:28 UTC, Askar Bektassov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Askar Bektassov 2012-02-26 23:28:28 UTC
Created attachment 303425 [details]
emerge --info

Configure stage can be fixed with the following amendment:

--- Gentoo/usr/portage/dev-lang/php/files/eblits/src_configure-v54.eblit.orig	2012-02-26 01:15:43.000000000 +0100
+++ Gentoo/usr/portage/dev-lang/php/files/eblits/src_configure-v54.eblit	2012-02-26 23:46:10.000000000 +0100
@@ -33,11 +33,11 @@
 	$(use_enable fileinfo fileinfo )
 	$(use_enable filter filter )
 	$(use_enable ftp ftp )
-	$(use_with nls gettext )
+	$(use_with nls gettext "${EPREFIX}/usr")
 	$(use_with gmp gmp )
 	$(use_enable hash hash )
 	$(use_with mhash mhash )
-	$(use_with iconv iconv )
+	$(use_with iconv iconv "${EPREFIX}/usr")
 	$(use_enable intl intl )
 	$(use_enable ipv6 ipv6 )
 	$(use_enable json json )
@@ -192,7 +192,7 @@
 
 	# readline/libedit support
 	my_conf+="
-	$(use_with readline readline )
+	$(use_with readline readline "${EPREFIX}/usr")
 	$(use_with libedit libedit )"
 
 	# Session support

However, once ebuild installs the package, it will lament a "double prefix" situation.

>>> Completed installing php-5.4.0_rc7 into /Users/askarbektassov/Library/Gentoo/var/tmp/portage/dev-lang/php-5.4.0_rc7/image/
[...]
 * QA Notice: Users/askarbektassov/Library/Gentoo///Users/askarbektassov/Library/Gentoo/usr/lib/php5.4/bin/php double prefix

which for now I fixed moving by hand php executable into the relevant image directory. I guess there is something to fix in the src_install_v3.eblit, but I don't know where.
Comment 1 Benda Xu gentoo-dev 2012-05-05 04:24:44 UTC
Hi Askar. Thank you very much for reporting the bug. 

Please test =dev-lang/php-5.4.2 in tree now, which is synchronized with gx86 tree, have your patch applied and is without double prefix bug.

@grobian, I have dropped the workaround in bug 343481 (CC -> CXX), could you have a test in macos? if it doesn't work I'll add it back to =dev-lang/php-5.4.2, otherwise we can push these changes back into gx86.

http://overlays.gentoo.org/proj/alt/changeset/60478 (plz ignore src_install-v2.eblit, which I changed by mistake)
Comment 2 Fabian Groffen gentoo-dev 2017-11-15 16:53:18 UTC
It seems these changes have been applied to the current ebuilds, thanks!