Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

spidermonkey formula is missing gawk as a dependency #751

Closed
tisba opened this issue Feb 17, 2010 · 14 comments
Closed

spidermonkey formula is missing gawk as a dependency #751

tisba opened this issue Feb 17, 2010 · 14 comments

Comments

@tisba
Copy link
Contributor

tisba commented Feb 17, 2010

I discovered that the spidermonkey Formula is missing gawk in it's dependencies and this was the reason I was unable to build spidermoneky. After brew install gawk spidermonkey could be installed without any problems.

@mxcl
Copy link
Contributor

mxcl commented Feb 17, 2010

I don't seem to remember needing gawk for Spidermonkey. Can you provide build error output?

@tisba
Copy link
Contributor Author

tisba commented Feb 17, 2010

Sure. See http://gist.github.com/306696

@mxcl
Copy link
Contributor

mxcl commented Feb 17, 2010

Well it's actually autoconf 2.13 that is failing, Spidermonkey doesn't depend on gawk. Its build dependency Autoconf 2.13 does.

But having said that, I just built spidermonkey without installing gawk on both 10.5 and 10.6.

@mxcl
Copy link
Contributor

mxcl commented Feb 17, 2010

Autoconf should be able to use both awk and gawk.

My guess is you have some env variable set that make autoconf choose gawk over awk? Or something like that.

@tisba
Copy link
Contributor Author

tisba commented Feb 17, 2010

hmm, autoconf213 is installed and I don't know what I have done to make it choose gawk over awk.

Sorry for the false alarm, maybe I simply messed something up with my system.

@mxcl
Copy link
Contributor

mxcl commented Feb 17, 2010

np, it's still a bug to solve. My guess could be totally wrong, but it seems like a good first for the investigation. grep over the output from env perhaps?

@tisba
Copy link
Contributor Author

tisba commented Feb 17, 2010

I did grep over env, but I could not find anything suspicious. Is there some options to make the build output more verbose?

@mxcl
Copy link
Contributor

mxcl commented Feb 18, 2010

You will have to add some parameter to the autoconf line in the formula to make autoconf more verbose.

@tisba
Copy link
Contributor Author

tisba commented Feb 22, 2010

It seems gawk is hardcoded in my /usr/local/Cellar/autoconf213/2.13/bin/autoconf213#40: : ${AWK=awk}. Don't ask me why! When I switch it to awk spidermonkey builds successfully.

Any ideas?

@mxcl
Copy link
Contributor

mxcl commented Feb 23, 2010

I don't understand. You say it is hardcoded to gawk but then you show that actually it's hard coded to awk.

@tisba
Copy link
Contributor Author

tisba commented Feb 23, 2010

arg, sorry, c&p mistake. It was : ${AWK=gawk} and I changed it to : ${AWK=awk}

@mxcl
Copy link
Contributor

mxcl commented Feb 23, 2010

OK, so I can see in the autoconf configure:

for ac_prog in mawk gawk nawk awk

Which suggests it is likely you had gawk in your PATH when you installed autoconf213, and that became hardcoded (fuck knows why they would do that!).

Try uninstalling and reinstalling autoconf213.

@mxcl
Copy link
Contributor

mxcl commented Feb 23, 2010

Closed by d688e35; Force autoconf213 to use awk

@tisba
Copy link
Contributor Author

tisba commented Feb 23, 2010

You're right. It's working now. What a nasty "bug"!

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
traymond pushed a commit to traymond/homebrew that referenced this issue Jul 22, 2014
joshua-rutherford pushed a commit to joshua-rutherford/homebrew that referenced this issue Dec 15, 2015
When I rejiggled the args list into a modern format I missed the very
last line. My apologies.

Fixes: https://github.com/Homebrew/homebrew-versions/pull/712#issuecomment-90249936

Closes Homebrew#751.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants