aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-09-29python goes superenvsamueljohn
- Install a sitecustomize.py that is only executed for brewed python to - Fix the prefix, python thinks it is installed to. (Remember, Python thinks it lives in the Cellar) - Remove "/System/..." stuff from sys.path which caused a lot of install trouble because setuptools has the habbit to inject itself upfront, overwriting our distribute. - Allow --with-poll and don't say, we didn't warn you. - Don't need depends_on :x11 any longer. Yeah, no XQuartz! - Add --with-brewed-openssl - pip 1.2.1 - pip, pip-2.7, easy_install and easy_install-2.7 are installed to prefix, such that they are directly available, even if people have not set their PATH to include $(brew --prefix)/share/python - Caveats shorter and clear. - For Xcode-only: - Patch the distutils buildsystem to use "xcrun cc" etc. - Teach distutils the MacOS.sdk_path (for incs and libs) - superenv.rb add the right python include dir depending on whether a brewed python is installed or not. Closes Homebrew/homebrew#15064. Signed-off-by: Max Howell <mxcl@me.com>
2012-09-28Remove extra newlineJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-28Make VCS download strategies work without user pathsJack Nagel
Closes Homebrew/homebrew#15139. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-28superenv: reset LDMax Howell
Refs Homebrew/homebrew#15090.
2012-09-28Fix ENV.fortran info textsMax Howell
They were being truncated.
2012-09-28_Really_ fix hg strategyJack Nagel
Fixes Homebrew/homebrew#15181. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-28Safer way to redirect puts to a fileMax Howell
2012-09-28Only handle build-errors when it's a build-errorMax Howell
Refs Homebrew/homebrew#15164.
2012-09-27Fix hg strategy under stdenvJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27test_bucket: don't try to clean a non-existent kegJack Nagel
It is a no-op under Ruby 1.8 but Pathname#find raises ENOENT if the directory doesn't exist under 1.9. But we really shouldn't try to clean a non-existent keg anyway, and FormulaInstaller will have bailed out long before the clean step if the keg doesn't exist, so lets just not even test this condition; the cleaner has its own tests anyway. Alternatively we can adjust the cleaner to handle this case, but I don't see much value in that. n.b. with this, the tests now pass under 1.9.3 (for me), which is nice because I often run them on that version inadvertently. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Improve text_executable heuristicJack Nagel
Previously we detected this by reading the first line of the file. However, "first line" is meaningless when dealing with binary files, but IO#readline will happily keep reading until it finds a newline character, which can result in some unnecessarily large buffers. Aside from the performance issue, this causes an additional problem under Ruby 1.9: trying to match the binary string against a pattern will raise ArgumentError (unless the binary string just happens to also be valid UTF-8, heh). Fix both issues: only read the first 1024 bytes, as no sane shebang will ever be that long, and use a plain read(), which returns an ASCII encoded string even on 1.9. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Adjust test expectation for 'LD'Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Make FileUtils extension available globallyJack Nagel
Now that we are monkeypatching copy_metadata, we should load our extension up front for consistency. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Fix conditionalJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27Don't set $VERBOSE when building nonverboselyMisty De Meo
Setting $VERBOSE in the environment makes the haskell-platform build fall down, which is surely one of the odder bugs I've run into. See Homebrew/homebrew#15164.
2012-09-27When builds fail verbosely, be verboseMax Howell
2012-09-27FileUtils: backport #copy_metadata fixMisty De Meo
Entry_#copy_metadata has a nasty bug that makes copying symlinks across filesystems fail. This lasted all the way through 1.9.3p194 before *finally* being fixed. This backports the official fix. Fixes Homebrew/homebrew#14710.
2012-09-26stdenv: stop setting LDMisty De Meo
superenv stopped setting LD in 8e4c0a141171666270529da4be026d529d474467, seems sensible to follow suit in stdenv too. See Homebrew/homebrew#14943. Fixes Homebrew/homebrew#15090.
2012-09-25Update blacklist warningsMisty De Meo
* MacRuby isn't in homebrew-alt anymore * Removed the entire npm warning since it's installed with node.js
2012-09-25ENV.fortran adds back superenv removed PATHsMax Howell
Fixes Homebrew/homebrew#15103.
2012-09-25Don't unset DEVELOPER_DIR if setMax Howell
2012-09-25Determine SUPERBIN correctlyMax Howell
2012-09-25MercurialDownloadStrategy can find hg againMax Howell
Was broken after superenv PATH modification. Fixes Homebrew/homebrew#15078.
2012-09-25Clean up and improve build-error output and logsMax Howell
All logs are now stored from each command executed in Formula.install. Error output is truncated to five lines in an attempt to not overwhelm the user and to encourage users to read the error output and report the bug properly. Maybe we can get that figure up from 70% to 90%.
2012-09-24Fix fixopt and fixopt error handlingMax Howell
The Keg constructor was throwing because we were returning a relative path, and the error-handler was just returning a string rather than raising a string. Worrying because a lot of opts have not been fixed and I thought this was essential for depending on keg-only formula nowadays. Refs Homebrew/homebrew#15077.
2012-09-24Attempt to fix opt-paths for all depsMax Howell
Since we changed superenv to set a PATH without /usr/local, all deps need to have opt paths. Fixes Homebrew/homebrew#15077.
2012-09-24Work even when RUBYLIB='-'Max Howell
Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts. Fixes Homebrew/homebrew-versions/#47.
2012-09-24Assign DEVELOPER_DIR before it is neededMax Howell
On a broken set up, setting DEVELOPER_DIR can fix builds, provided it is set early enough to impact them.
2012-09-24Abort if `xcrun -find foo` returns superbin/fooMax Howell
Fixes Homebrew/homebrew#14691. Rewrite in Ruby to facilitate checking PATHs properly.
2012-09-24Fix doctor hanging if xcode-select is badMax Howell
Also fix typo in the superenv DEVELOPER_DIR set detection code.
2012-09-23superenv: Remove HOMEBREW_PREFIX/bin from PATHMax Howell
We add the bins from all deps instead. Rationale: formula find and use eg. GNU-coreutils versions of things and then break. Only allow formula to use tools that they depend on and expect. I want to go further and only add include paths etc. for dependencies, I have done some work on this, but I fear it may be impossible. If an include path is eg. /usr/local/lib/foo/include, is it possible to know if this path is bad? Not always AFAICT.
2012-09-23Set DEVELOPER_DIR; Fixes bad xcode-select pathMax Howell
In cases where the xcode-select -print-path is '/' xcrun still hangs indefinitely, setting DEVELOPER_DIR to something (preferably the Xcode path) fixes that. So let's.
2012-09-23Always unpack the source tarball, not the bottleMax Howell
2012-09-23brew unpack: support -gpfMax Howell
-g sets up git repo. -f forces even if already there. I found these useful.
2012-09-22brew cleanup -n: less scaryMax Howell
2012-09-21brew --env: Use fetch rather than []Max Howell
Because we mess with the return value from [] in superenv due to many formula assuming CFLAGS etc. would not be nil.
2012-09-21superenv: don't set LDMax Howell
Some compile issue will no doubt elapse, but we can address these on a case-by-case basis. Refs Homebrew/homebrew#14943.
2012-09-20cleanup: look for "HEAD", not "sha" in receiptJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-19Update Xcode.latest_version for 4.5Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-19Update Xcode guess for 4.5Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-18Provide more information about bad sf urlsMax Howell
2012-09-18If we delete stuff in the clean step, make fussMax Howell
/cc @jwheare
2012-09-18Fix building bottles from source.Mike McQuaid
2012-09-18Don't try to fix @rpath install namesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-17info: Add JSON outputMisty De Meo
Output JSON with the --json=v1 option. Output is in an array, and supports one or more formulae (or all, with the --all option). Why 'v1'? The format is unstable, presumably we'll deprecate it someday. It should be solid by Homebrew 1.0. Closes Homebrew/homebrew#13299.
2012-09-17ARGV: add .jsonMisty De Meo
Used by brew info; may be used by other commands in the future.
2012-09-16Make check for stray developer dir more specificMisty De Meo
It looks like there can be harmless stuff leftover in /Developer/Library, even after Xcode uninstalls older versions. The existence of the uninstall-developer-folder script should be a better indicator. Fixes Homebrew/homebrew#14970.
2012-09-15Prevent linkapps from creating duplicate aliasesChristian Höltje
`brew linkapps` was creating `MacVim` on the first run, then `MacVim alias` on the second run. Closes Homebrew/homebrew#14955. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-14Skip standard compilers check for unknown XcodeMisty De Meo
Rescuing false on the StandardCompilers map meant that the doctor check assumed that the compilers were incorrect, not merely unknown. Instead, skip the check and return nil for unknown Xcode; nil should be interpreted as "dunno", instead of "true" or "false", and the doctor check no longer prints on nil.
2012-09-14Add Xcode 4.5 to StandardCompilers mapMisty De Meo
We now have several reports of compiler versions for the GM, e.g. Homebrew/homebrew#14944.