Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.99k stars 11.36k forks source link

smlnj fails to build on OS X 10.11.3 #49524

Closed wolverian closed 8 years ago

wolverian commented 8 years ago

The bottle for this formula works, but I can't build the formula without using the bottle. The error is:

config/install.sh: Installation complete.
Error: No such file or directory - /private/tmp/smlnj20160225-17436-x4a0tz/config

The error happens after the formula is complete, in some cleanup code inside Homebrew. I suspect this weird bit of code in the formula causes something to go very wrong:

    # Build in place
    root = prefix/"SMLNJ_HOME"
    cd ".."
    root.install "config"
    cd root

I tried to run brew gist-logs smlnj, but got an error:

$ brew gist-logs smlnj
Error: HTTP 404 Not Found (expected 201)

Why I'm trying to build the formula: I'm trying to upgrade the formula to smlnj's newest version. I encountered this problem after doing the upgrade edit in the formula, and then realized it happens with the current version too.

bfontaine commented 8 years ago

The issue is that the build directory is moved under the prefix but at the end of the installation we try to find the usual metafiles (e.g. README/LICENSE) in the build directory. It doesn’t exist anymore (because we moved it), hence the failure. #49530 should fix that.

DomT4 commented 8 years ago

Closing in favour of #49530.