aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-03-16Improve CLI tools suggestion doctor textMax Howell
2012-03-16xcode_version works for Xcode 4.3 without CLIToolsMax Howell
Also correct heinous error when I put `case nil` in the code. Also outputs "dunno" if we really can't figure it out. I think this is safe.
2012-03-16Let's print the full pathMax Howell
2012-03-16Tell user to `brew update' if no .gitMax Howell
2012-03-16Warn about broken symlinks in HOMEBREW_PREFIXMax Howell
Refs Homebrew/homebrew#10874.
2012-03-15Remove invalid character for UTF-8Michael Nygard
Closes Homebrew/homebrew#10962. Signed-off-by: Max Howell <max@methylblue.com>
2012-03-15Explicitly tell people not to xcode-select /Max Howell
Fed up dealing with this bug in xcode-select.
2012-03-15ohai'ing this is ugly IMOMax Howell
I wanted to make it possible to not do the additional newline (in brew) if this code path is hit. But I didn't see a way to do it without overriding the Interrupt exception and throwing a new one. “Never add more code than necessary for aesthetics in error handling.” — mxcl
2012-03-15Abort installs if reps are installed but not linkedMax Howell
Except for keg-only reps of course. I suspect quite a few bug reports we receive are due to this sort of thing. Ideally we'd not do this check for deps, since they have already been checked. I fear some weird consequences. But this check *should* be done before unlinking the previously installed brew in the case of upgrades. And the ignore_deps flag is set after the initialiser. There are ways round this but the code would be less nice.
2012-03-13`brew test` now gets a compilation environmentAdam Vandenberg
2012-03-13Remove libiconv duplicateCamillo Lugaresi
Commit ee2c3ab ("Remove spurious libiconv dependencies") pruned all existing "depends_on 'libiconv'" usages from Homebrew in preparation for removing the libiconv dupe itself. Now that is done, and we can remove and blacklist it. It can be obtained from Homebrew-alt. Closes Homebrew/homebrew#10464. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-14Use /Library/Caches/HomebrewMax Howell
We don't penalise existing users; if ~/Library/Caches/Homebrew already exists and is writable, we select that. This is the correct choice, the cache should be the same directory whichever user is used and whatever instance of brew is invoked. The Cache directory is set to 0777 this allows any user to write to it and fixes Homebrew/homebrew#10857.
2012-03-13Adjust compat's fails_with_llvm callJack Nagel
handle_llvm_failure was moved into FailsWithLLVM and renamed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-13Quote the .xz path in case of spacesAdam Vandenberg
2012-03-12brew doctor: check for DYLD_INSERT_LIBRARIESAdam Vandenberg
2012-03-11Allow multiple digits in GitHub version partsAdam Vandenberg
2012-03-11Update external deps testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-11Remove redundant versions and update version testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-11keg: don't skip linking based on relative pathnameJack Nagel
ed1a674c ("keg: allow selective linking at the file level") had a regression which caused the link step to skip files with the same name as a directory in the user's CWD. Keg#link_dir yields a relative pathname, so assumptions cannot be made about the nature of that pathname in the block. Instead, introduce ":skip_dir" and ":skip_file" to replace the existing ":skip" directive. This way, we won't skip things marked ":skip_dir" when linking a file, and vice-versa. Fixes Homebrew/homebrew#10860. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-10Add specialty formulase to inheritance checkAdam Vandenberg
2012-03-10Use HOMEBREW_REPOSITORY for freshness checkAdam Vandenberg
Homebrew itself is found under HOMEBREW_REPOSITORY, which *may* be the same HOMEBREW_PREFIX, but does not have to be if you link brew into /usr/local/bin from another location.
2012-03-10roll back stricter version checkAdam Vandenberg
2012-03-10Use new Requirements code in HomebrewAdam Vandenberg
2012-03-10New external dependency implementation.Adam Vandenberg
2012-03-10Revert "Always build bottles universally."Mike McQuaid
This reverts commit 72a477f2734939d4c5805247588c4cdea69b5383.
2012-03-10Always build bottles universally.Mike McQuaid
2012-03-10Move most bottle stuff to a bottles.rb file.Mike McQuaid
2012-03-10Support bottles for non-Lion OSX versions.Mike McQuaid
2012-03-10Make `brew-bottle` an internal command.Mike McQuaid
2012-03-09Tell the user when build logs are copiedAdam Vandenberg
2012-03-09Do a stricter version checkAdam Vandenberg
A version should always be set when going through the constructor so tighten this check. Also do some style clean ups here.
2012-03-09ENV.rb: Set GCC-style CPU flags for GFortranCharlie Sharpsteen
GFortran chokes when it is passed CPU flags specific to Clang. This change ensures the environment variables `FCFLAGS` and `FFLAGS` contain the same CPU flags that would be set for the GCC compiler. Fixes Homebrew/homebrew#10424. Fixes Homebrew/homebrew#10744. Closes Homebrew/homebrew#10774. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-03-09ENV.rb: Generalize method for setting CPU flagsCharlie Sharpsteen
All logic has been copied into a new method `set_cpu_flags` that accepts an additional argument, `flags`, which contains a list of environment variables for which the CPU flags are to be adjusted. `set_cpu_cflags` now recalls `set_cpu_flags` and passes `cflags_flags` as the first argument. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-03-09ENV.rb: Modifier methods accept lists of flagsCharlie Sharpsteen
`ENV` methods that modify environment variables, `prepend`, `append` and `remove`, can now accept lists of flags as well as a single flag. The list of flags affected by `append_to_cflags` and `remove_from_cflags` are now definied in a shortcut method `cc_flag_vars`. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-03-09Remove unnecessary hyphenJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-10Remove bad exit status; need to fix another way.Mike McQuaid
2012-03-09Restore cleaning of lib/charset.aliasJack Nagel
Even though we now prevent linking of this file into the prefix in Keg#link, its presence still triggers a "non-lib in lib" warning during installation. So keep cleaning it, and leave the check in Keg#link so things that skip_clean 'lib' still won't have it linked. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Fix typo in test_arch_for_commandJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Don't cleanup the wrong thingsMax Howell
This still isn't perfect, but it will handle hyphens in formula-names better now. A proper solution is not easy or maybe even possible unless we ban hyphens in versions AND formula names, or use a different character as a separate in downloaded cache files which we then ban from formula-name and version strings. Refs Homebrew/homebrew#2923.
2012-03-09Move install_homebrew into ContributionsMax Howell
2012-03-09Add better Unix exit codes.Mike McQuaid
Closes Homebrew/homebrew#10809.
2012-03-09Run tests from anywhere and provide an exit code.Mike McQuaid
2012-03-09Fix test_ENV on 10.7/Xcode 4.Mike McQuaid
2012-03-09Fix test_arch_for_command on 10.7.Mike McQuaid
2012-03-08Fix gdk-pixbuf module installationJack Nagel
When other packages install gdk-pixbuf modules, they get installed into the gdk-pixbuf keg. To avoid this, we explicitly create the top level lib directories for gdk-pixbuf and hack the pkgconfig file to point at the top-level directories instead of the keg. This results in other packages installing modules into the top-level directory and as such they are "lost" and treated as unbrewed files, but that is still better than losing them during upgrades of gdk-pixbuf itself. If we had a post-link hook, we could keep everything confined to its own keg, linked into the top-level modules directory, and then run gdk-pixbuf-query-loaders --update-cache ourselves. In the abscence of that, I think this is the best compromise. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-07Include vi in list of binaries already in OS XOscar Del Ben
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-07Don't attempt to cleanup source checkoutsMax Howell
Fixes Homebrew/homebrew#10751.
2012-03-07Suggest full path to Xcode 4.3 /DeveloperMax Howell
Some people seem to have an older xcode-select even after installing the CLT from inside Xcode or otherwise. So this is works for both. Now we aren't future-proofed in case Apple change the location, but hopefully they won't, seems unlikely. Refs Homebrew/homebrew#10743. Fixes Homebrew/homebrew#10745.
2012-03-07Remove silly path methodAdam Vandenberg
2012-03-07Allow dependencies to still installMax Howell
Oops bug.