Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517358 - dev-lang/spidermonkey-24.2.0-r2 - configure: error: Python environment does not appear to be sane.
Summary: dev-lang/spidermonkey-24.2.0-r2 - configure: error: Python environment does n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-17 20:24 UTC by David W Noon
Modified: 2014-10-03 05:11 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.txt,6.46 KB, text/plain)
2014-07-17 20:25 UTC, David W Noon
Details
configuration log (config.log,3.16 KB, text/plain)
2014-07-17 20:26 UTC, David W Noon
Details
ebuild log (dev-lang:spidermonkey-24.2.0-r2:20140717-172652.log,9.49 KB, text/plain)
2014-07-17 20:26 UTC, David W Noon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David W Noon 2014-07-17 20:24:26 UTC
During the configuration phase, the beuild stops with the message:

  configure:4119: checking Python environment is Mozilla virtualenv

Build logs and emerge --info will follow in a few minutes.
Comment 1 David W Noon 2014-07-17 20:25:16 UTC
Created attachment 380914 [details]
emerge --info
Comment 2 David W Noon 2014-07-17 20:26:00 UTC
Created attachment 380916 [details]
configuration log
Comment 3 David W Noon 2014-07-17 20:26:58 UTC
Created attachment 380918 [details]
ebuild log
Comment 4 Daniel Robbins 2014-07-18 21:18:20 UTC
Add "export SHELL=/bin/sh" to src_configure() to fix this.
Comment 5 Daniel Robbins 2014-07-18 21:20:29 UTC
I should note -- put it at the top of src_configure().
Comment 6 David W Noon 2014-07-19 18:07:14 UTC
(In reply to Daniel Robbins from comment #4)
> Add "export SHELL=/bin/sh" to src_configure() to fix this.

Yes, that fixed it.  Many thanks.
Comment 7 Ben Kohler gentoo-dev 2014-09-30 17:07:56 UTC
I just hit this on a new install-- what is triggering this (ie, why isn't EVERYONE seeing the problem), and should a fix be applied for everyone?  Or is there some common configuration problem that needs fixing, independent of spidermonkey itself?

The workaround worked for me as well, I put:

pre_src_configure() {
    export SHELL=/bin/sh
}


..into /etc/portage/bashrc (temporarily) and it builds successfully.
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2014-09-30 17:14:18 UTC
Good question..  I have yet to reproduce it on my systems.  At any rate, adding an export SHELL=/bin/sh is pretty benign, so I've added that in-place.

+  30 Sep 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+  spidermonkey-24.2.0-r2.ebuild:
+  Set SHELL to help ./configure ensure python environment is sane, bug 517358
+
Comment 9 Jory A. Pratt gentoo-dev 2014-10-03 05:11:58 UTC
(In reply to Ian Stakenvicius from comment #8)
> Good question..  I have yet to reproduce it on my systems.  At any rate,
> adding an export SHELL=/bin/sh is pretty benign, so I've added that in-place.
> 
> +  30 Sep 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
> +  spidermonkey-24.2.0-r2.ebuild:
> +  Set SHELL to help ./configure ensure python environment is sane, bug
> 517358
> +

this is not sane, it should be /bin/bash