aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-10-25test_cleaner: add missing requireJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25Allow requirements to record tagsJack Nagel
To allow depends_on :x11 => :optional and friends to work as expected, make requirements record any tags and add special handling to the X11Dependency to record both a minimum version and additional tags. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25Move requirement subclasses to a separate fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24FormulaInstaller: disambiguate show_header usageJack Nagel
show_header should default to false (we don't want to display it in the case of installing a single formula without dependencies), but it only worked this way by accident. The assignment "show_header = true" creates a local variable named show_header, and in the case where needed_deps is empty and this assignment is not actually executed, the latter usage evaluates the local variable instead of calling the method. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24Return the block value in ARGV.filter_for_dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24doctor: check that Xcode prefix actually existsAdam Vandenberg
Closes Homebrew/homebrew#14373.
2012-10-24Cleaner: add (commented-out) debugging information for permission changesAdam Vandenberg
The cleaning step changes permissions on files. Added a commented-out block that will show permission changes when doing verbose builds. Since this output is not generally useful for even normal verbose builds, added as commented-out code (I'm sorry) so that maintainers can uncomment it when this functionality is needed for debugging.
2012-10-23Make --ignore-dependencies work againAdam Vandenberg
2012-10-23Fix Keg testsMisty De Meo
* unreverse expected/actuals * don't assume linked file order is guaranteed - it wasn't!
2012-10-22Add relinking instructions.Adam Vandenberg
Closes Homebrew/homebrew#15488.
2012-10-22Latest Xcode is 4.5.1Adam Vandenberg
2012-10-21Allow varags to skip_cleanAdam Vandenberg
2012-10-21audit: loosen ARGV checkAdam Vandenberg
2012-10-20brew ln --force is now brew ln --overwriteMisty De Meo
* Renames --force to --overwrite, freeing up brew ln --force for Homebrew/homebrew#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 Homebrew/homebrew#15240.
2012-10-11wxwidgets: A more common name for wxmac.samueljohn
- Change the blacklist to hint that we include wxpython with wxwidgets. Closes Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 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>