Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290245 - dev-php/pear-1.9.0 fails to install
Summary: dev-php/pear-1.9.0 fails to install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 290285
  Show dependency tree
 
Reported: 2009-10-23 14:22 UTC by nietonfir
Modified: 2010-03-21 20:34 UTC (History)
0 users

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 nietonfir 2009-10-23 14:22:59 UTC
It produces the following output:

 * ERROR: dev-php/pear-1.9.0 failed:
 *   cd failed
 * 
 * Call stack:
 *   misc-functions.sh, line 1083:  Called install_qa_check
 *   misc-functions.sh, line   45:  Called die
 * The specific snippet of code:
 *   	cd "${ED}" || die "cd failed"

This seems to be caused by its unnecessary src_install() directive. Removing it works just fine and it finishes.

Reproducible: Always

Steps to Reproduce:




I'm on OS X, but the error should happen on default Gentoo as well. ;)
Comment 1 nietonfir 2009-10-27 22:45:15 UTC
No, it doesn't actually happen on a gentoo system, but I doubt that such a call [1] is needed.

[1]
src_install() {
	:;
}
Comment 2 Wormo (RETIRED) gentoo-dev 2009-10-28 06:58:48 UTC
CC-ing prefix, since they might want to know that a no-op src_install() causes problems on OS X but not linux
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-28 13:21:16 UTC
(In reply to comment #1)
> No, it doesn't actually happen on a gentoo system, but I doubt that such a call
> [1] is needed.
> 
> [1]
> src_install() {
>         :;
> }
> 

A no-op src_install is valid. I've seen this before but can't remember the fix.

Steve (and others on this bug), not your problem so I'll remove you from the bug.
Comment 4 Fabian Groffen gentoo-dev 2009-10-28 13:32:18 UTC
in Prefix Portage, the default src_install creates the directory ${ED} to avoid misc errors in the QA checks from misc-functions.

I should probably try to fix this the proper way by skipping the checks if ${D} and/or ${ED} not exists.
Comment 5 Fabian Groffen gentoo-dev 2009-10-28 21:03:26 UTC
I just made a tentative fix for this in Portage.  I'll have to test it a bit before I'll unleash it.
Comment 6 nietonfir 2010-03-21 20:34:45 UTC
Your fix(In reply to comment #5)
> I just made a tentative fix for this in Portage.  I'll have to test it a bit
> before I'll unleash it.
> 

Your fix seems to do the trick. Marking as fixed, thx.