aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2011-09-19mirror support: Add testCharlie Sharpsteen
2011-09-19mirror support: Add mirror method to Formula.rbCharlie Sharpsteen
Mirrors can now be declared using the `mirror` method which works similar to `depends_on` and takes the same arguments as `url`. The formula class now has a public `fetch` method that cycles through the mirror list if the downloader for the primary URL throws a `DownloadError`. Other brew commands, like brew-fetch, also benefit from mirror support by using this method. Closes Homebrew/homebrew#7574.
2011-09-19exceptions.rb: Add DownloadErrorCharlie Sharpsteen
`DownloadError` is an exception that download stratigies can throw to indicate that a fetch was incomplete due to a failure in communication. The `curl` method in `utils.rb` has been upgraded to throw a `DownloadError` if something bad happens to `curl` execution.
2011-09-16doctor: restore some line breaksAdam Vandenberg
2011-09-16brew-upgrade: Fix installation of dependenciesCharlie Sharpsteen
Fixes Homebrew/homebrew#7528. Closes Homebrew/homebrew#7572.
2011-09-16Return Formula objects from `outdated_brews`Charlie Sharpsteen
Previously, `outdated_brews` returned a list of lists---each containing three components of a Formula object: - f.rack - f.name - f.version Frequently more information is required which necessitates back-casting from `name` to a Formula object---simpy returning formula objects removes this step.
2011-09-16Centralize definition of `rack` in formula.rbCharlie Sharpsteen
`rack` is a commonly used alias for `formula.prefix.parent`---so common that it gets defined and used quite a bit. This patch makes `rack` an official method of the `Formula` class.
2011-09-15Check Cellar can be made before installing stuffMax Howell
Refs Homebrew/homebrew#5188.
2011-09-13audit: improve GNU url checkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-13audit: correctly match SourceForge https URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-13Reset to remote master when updating git clonesJack Nagel
When installing with --HEAD, cached repo clones do "git fetch origin" followed by "git reset --hard". This will only reset the working tree and index to the state of the local HEAD, but Homebrew will think it's updated and install anyway. "git reset --hard origin/master" will achieve the desired result. Should fix Homebrew/homebrew#7613. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-13formula_installer.rb: Call link before check_PATHCharlie Sharpsteen
Otherwise, for formula that making the very first install into `sbin`, the following line will fail with a critical error: bin = (HOMEBREW_PREFIX/bin.basename).realpath.to_s Because `sbin` will not exist until after `link` runs. This isn't very clean as it moves `check_PATH` away from the other checks in `caveats`, but I couldn't think of a better hotfix that did not require a bit of code shuffling and re-writing.
2011-09-12brew-options: add --installed flagJack Nagel
`brew options --installed` will print options for formulae that are already installed. Closes Homebrew/homebrew#7565. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-12audit: check GNU urlsJack Nagel
We now prefer "ftpmirror.gnu.org" over the main FTP site. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-11brew-options: actually skip formulae with no optionsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-11Python easy_install just needs the packageKevin Moore
adding 'install' to the command line breaks things Closes Homebrew/homebrew#7489. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-11UnsatisfiedExternalDependencyError: init errorKevin Moore
Pass message and formula to super so useful output occurs. Closes Homebrew/homebrew#7507. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-11doctor: be more robust about git status checkJack Nagel
`git status -s` would spit out "fatal: not a git repository" when not in HOMEBREW_PREFIX or a child directory of HOMEBREW_PREFIX. Specify a git-dir and work-tree to fix this. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-10Use HTTPS during `brew update`Jack Nagel
Closes Homebrew/homebrew#7527. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-10With xcodebuild don't set CC, CXX, etc.Max Howell
The compiler setting in the xcodeproj is overridden by the CC setting in the environment. This is a bit insane IMO since the xcodeproj itself has detailed decisions about what tools to use. Fixes Homebrew/homebrew#6406.
2011-09-09Tune optimisations for sandybridgeMax Howell
2011-09-09The doctor notices modifications to Homebrew coreMax Howell
Refs Homebrew/homebrew#7525.
2011-09-08Add :sandybridge to hardware_family testChris Ledet
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-07Check that /usr/bin/cc exists in `brew doctor`Max Howell
Refs Homebrew/homebrew#7454.
2011-09-06If LLVM isn't installed then fails_with_llvm? is trueMax Howell
This makes sense, I assure you. Fixes Homebrew/homebrew#7458.
2011-09-06MacOS.default_compiler should return something alwaysMax Howell
Even though we are just guessing if it doesn't correspond to any of the others…
2011-09-06Allow :force for ENV.gccMax Howell
This is used with fails_with_llvm so that if GCC cannot be found (and we suspect this is the case with Xcode 4.2) the build will fail. Quite possibly it should be the default.
2011-09-06Remember compiler setting when it is changed via eg. ENV.gccMax Howell
Thus it will be correct after the setting is changed.
2011-09-05Check even more carefully for xcode_versionMax Howell
Refs Homebrew/homebrew#7236, though honestly I just think @dsarch hasn't updated.
2011-09-05Fix nil handling in `brew versions`Max Howell
Fixes Homebrew/homebrew#7392.
2011-09-05Use proper issue URLMax Howell
2011-09-04Don't look for llvm-gcc in xcode_prefixMax Howell
Look in /usr/bin because all versions of Xcode install it to /usr/bin now and this allows us to support Xcode-less installs of Apple's developer tools.
2011-09-02tests: actually use bzip for test tarballJack Nagel
I inadvertently gzipped it last night. That in itself doesn't cause any tests to fail because the download strategy code is robust, but it's fixed here anyway to be consistent. Basically, I'm dumb. I also took the opportunity to remove the other resource fork file, so the tarball is clean. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02Fix typo in `brew doctor`Daemian Mack
Fixes Homebrew/homebrew#7383. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02Allow 'brew link' to work with URL-based formulaeJustin Hileman
Closes Homebrew/homebrew#7373. Signed-off-by: Max Howell <max@methylblue.com> I added some comments.
2011-09-02Handle brew upgrade ARGV errors properlyMax Howell
Fixes Homebrew/homebrew#7304.
2011-09-02Guess Xcode version if `xcodebuild` doesn't existMax Howell
2011-09-02Remove Xcode dependence from ENV.rbMax Howell
Fixes Homebrew/homebrew#7329. Fixes Homebrew/homebrew#7269. Fixes Homebrew/homebrew#7236. Also quite a lot of tidy. This should all work fine. I think we only started referring into xcode_prefix because LLVM used to not be linked into /usr/bin. But for sure this is no longer true. If someone out there doesn't link cc etc. into /usr/bin then I guess we can revise this patch but it's not something we officially supported before, it was just an accident. I added a test step in the init code so that a working compiler will always be selected. This is mainly a fallback for old Xcodes. Though a comment in another area of the code suggested Xcode 3 on 10.5 doesn't have LLVM so…
2011-09-02tests: fix failing test_a_basic_installJack Nagel
The test_a_basic_install was failing because it expected libexec.children.length to be 1, when in fact there were two files in the untarred libexec: NOOP, and the Mac OS X resource fork file ._NOOP. That file is now removed, and the test passes. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02update: bring tests up-to-dateJack Nagel
The tests for update have been neglected during the last few rounds of changes, so fix them up. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-01fetch: fix '--force' for pathnamesJack Nagel
`brew fetch --force` was a no-op for formula pathnames when that formula did not exist in Library/Formula, because `brew --cache #{f.name}` results in an error for that case. Fix it by always using f.cached_download. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-01Edit port/fink warningAdam Vandenberg
2011-09-01Edit port/fink warningAdam Vandenberg
2011-09-01Fix stripping of keg-only reasons during installAdam Vandenberg
2011-09-01add brew doctor check for spaces in Xcode pathAdam Vandenberg
2011-09-01Use GCC if we tested against the latest LLVMMax Howell
Latest is hardcoded, so we'll have to update as new Xcode's come along.
2011-09-01Actually obey --use-gcc flagMax Howell
Schoolboy error.
2011-09-01fix: svn update doesn't take url argumentDave Bayer
`svn up` doesn't take url argument; compare `svn help up` to `svn help checkout` Apparently `svn up` can ignore this argument (not documented), but providing this argument could confuse code readers into believing that changing the url will switch the branch. It doesn't; the argument is ignored. This fix was relayed to me, but I've studied it further before posting. It is related to the bug where --HEAD installs reuse the wrong cache. Reading the former code, one might hope that providing a changed URL would have `svn up` change branches. It doesn't; the url was ignored. Closes Homebrew/homebrew#7159. Signed-off-by: Max Howell <max@methylblue.com>
2011-09-01Fixes Homebrew/homebrew#7114; Cache confuses --HEAD and non--HEAD svn installsDave Bayer
Signed-off-by: Max Howell <max@methylblue.com>
2011-09-01Be future proof, output from file becomes more verboseMax Howell
New versions of file return `script, ASCII text executable`. Apple may ship the newer version with 10.8 so we may as well be ready for it.