aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-10-20brew ln --force is now brew ln --overwriteMisty De Meo
* Renames --force to --overwrite, freeing up brew ln --force for #13349 * Changes --dry-run to preview linking by default, rather than overwriting. An overwrite dry-run can be simulated via both --dry-run --overwrite * Adds some basic Keg tests
2012-10-16Add Jenkins version matching (and test).Mike McQuaid
2012-10-15Reduce code footprint of standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Flatten share_mkpathsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Test coverage for DownloadStrategyDetectorJack Nagel
While at it, make it use class methods instead; no reason to instantiate an object for this. Eventually there should be some functional tests for the individual strategies as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15GitDownloadStrategy: avoid unnecessary checkoutJack Nagel
By default, git checks out the fetched ref after cloning the repo, but this is unnecessary as we explicitly check out the desired ref during staging. This also silences some unnecessarily confusing output. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15GitDownloadStrategy: silence checkout actions in non-verbose modeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15GitDownloadStrategy: silence status checkJack Nagel
"git status -s" is used to detect if the repository was corrupted during an interrupted clone, but it can leak output to the terminal, so use quiet_system. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15Manage Requirements using ComparableSetMisty De Meo
ComparableSet only allows a single object of a given class, choosing the object with the greatest value. This was mainly created for Requirements, so that, e.g., two X11Dependencies of differing strictness don't both end up in the same requirement set. Fixes #15240.
2012-10-11wxwidgets: A more common name for wxmac.samueljohn
- Change the blacklist to hint that we include wxpython with wxwidgets. Closes #15407. Signed-off-by: Max Howell <mxcl@me.com>
2012-10-09Don't munge tapped formula names in Formula.factoryJack Nagel
This started happening as a result of bbc167b, which avoids reloading previously defined formulae. The exception alters its message if the name parameter appears to be a tapped formula, but this is lost if we only pass in the "stem" of the pathname. Long-term this probably needs some restructuring, perhaps with a separate exception for tapped formula, but for now this should re-enable the more useful error message. Fixes #15374. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-06Advise `brew update` before filing issues about compiler versionsJack Nagel
2012-10-05pluralize the word 'Formula' in reportsChristian Schlensker
Closes #15321. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-04Don't count mkpath in ObserverPathnameExtensionMisty De Meo
mkpathed directories aren't really "linked" or "unlinked" per se, and link/unlink handle directories differently. It's easier just to ignore them, which finally synchronizes link/unlink counts.
2012-10-04Keg#unlink: use ObserverPathnameExtensionMisty De Meo
#link was using the extension but #unlink wasn't, so the counting criteria were potentially different and `brew unlink` was ignoring --verbose.
2012-10-04Keg#unlink: check file comes from the right kegMisty De Meo
For real this time. This makes sure that files won't be unlinked if they resolve into other kegs. For example: if fish and fishfish are both installed, with fishfish linked and fish unlinked, `brew unlink fish` would unlink some files that resolve into fishfish's keg.
2012-10-03Add Xcode 4.5.1 to compiler mapJack Nagel
Closes #15282. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-03doctor: fix iconv dylib nameAdam Vandenberg
2012-10-03Fix use of ISSUES_URL.Mike McQuaid
2012-10-02Replace mentions of easy_install by pipsamueljohn
Use this chance to correct minor typos. Closes #15242. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-01superenv: Add brewed-python bin to PATHMax Howell
A required special case since formula that use python can optionally use system python or Homebrew python. We'll probably need more of this sort of thing.
2012-09-30Don't use bottles for HEAD, devel or universal.Mike McQuaid
2012-09-30Add .sh to list of valid library extenions.Jason A. Donenfeld
As discussed with mistym, it's not only compiled code that goes in /usr/lib, but any types of libraries. As such, .pm was added to the valid extensions list a while back. Unfortunately, .sh was not added, even though configuration includes and platform function library shell files are often put in /usr/lib as shellscript libraries. This patch adds .sh to the list of valid library extensions. Closes #14993. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-29tests: set newly-visible global constantsJack Nagel
The changes to error ouput and logging require a few more things to be visible during installation tests. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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 #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 #15139. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-28superenv: reset LDMax Howell
Refs #15090.
2012-09-28Fix ENV.fortran info textsMax Howell
They were being truncated.
2012-09-28_Really_ fix hg strategyJack Nagel
Fixes #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 #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 #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 #14710.
2012-09-26stdenv: stop setting LDMisty De Meo
superenv stopped setting LD in 8e4c0a141171666270529da4be026d529d474467, seems sensible to follow suit in stdenv too. See #14943. Fixes #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 #15103.
2012-09-25Don't unset DEVELOPER_DIR if setMax Howell
2012-09-25MercurialDownloadStrategy can find hg againMax Howell
Was broken after superenv PATH modification. Fixes #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 #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 #15077.
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.