aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-08-07Fix Xcode.versionMax Howell
I managed to remove a return while fixing this yesterday. The whitespace changes made the diff unreadable so I missed this regression. Why does this sort of thing still happen?
2012-08-07`brew tap` by itself handles dashes in usernamesMax Howell
This stuff sucks. I'd like to just replace the dash with a directory division or tilde character. But this makes the code even more complicated, unless we can figure out how to migrate the taps.
2012-08-07Print an appropriate message if the tapped repository appears to be privateStafford Brunk
Closes #12247. Closes #12244. Signed-off-by: Max Howell <mxcl@me.com>
2012-08-07Allow multiple unsatisfied fatal requirementsAdam Vandenberg
Closes #13335.
2012-08-06Fix issues with writable? detection in brew doctorBrandon Black
Closes #13689. Signed-off-by: Max Howell <mxcl@me.com> There are subtle distinctions between writable? and writable_real? we don't understand precisely why we need this, but it fixes the bugs :/
2012-08-06Restore check for broken xcode-select pathMax Howell
How did this get removed? Had a bug today where user had this but no doctor check so I was confused!
2012-08-06Don't chmod -R 0777 before uninstallingMax Howell
If the user owns the parent directory we have the rights to rmtree. At least I believe so. Fixes #13714.
2012-08-06brew --env: Added missing env varssamueljohn
Closes #13431. Signed-off-by: Max Howell <mxcl@me.com>
2012-08-06Don't error out if never `brew updated`Max Howell
Fixes #12944.
2012-08-06Suggest git clean -f for untracked changesPatrick Lucas
Currently, if brew doctor detects untracked changes in the local repo, it suggests doing 'git reset --hard', but that doesn't remove untracked files. This change adds an additional suggestion to run 'git clean -f' to remove them. Closes #12814. Signed-off-by: Max Howell <mxcl@me.com> Changed the path to Library as we don't want to clean -f all over the whole /usr/local :P
2012-08-06New command `brew irb`Max Howell
Works rather damn well. I considered `brew -i`, but we aren't a shell.
2012-08-06Don't blacklist tapped-dupesMax Howell
If a formula is in Formula due to tapping or otherwise, don't prohibit installation. Really we should make the blacklist *really* stuff that should be blacklisted and then if it is available still require a --force. But currently with okay stuff like vim in there, and libxml2 being both blacklisted *and* in mxcl/master, we are screwing ourselves. TL;DR we should do some work on this component. Fixes #13234.
2012-08-06Actually cache Xcode.versionMax Howell
The short-circuit returns would cause the caching ||= syntax to be skipped. For me on my CLT-less install, this was noticeably slowing down brew for some operations due to the frequent calls to xcodebuild.
2012-08-06wxmac: 2.9.4samueljohn
- patch no longer needed - blacklist.rb: Removed version number because we forget to update it too often. Closes #13997. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-06Put the CLT advice warning in the right placeMax Howell
Refs #13982.
2012-08-06Don't output Ruby warningsMax Howell
We don't want bug reports about this crap, even though the user REALLY should listen to the warning message. What actually happens is they blame us instead. This kind of warning in particular: warning: Insecure world writable dir /usr/local/bin in PATH
2012-08-06Point out to that you may want to install the CLTMax Howell
You have to hold people's hands, they won't google anything. Refs #13982.
2012-08-06Remove X11 doctor checkJack Nagel
Now that X11 components are specified as dependencies, users will be prompted to install these components when necessary, and this check is no longer needed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06Adjust XQuartz/X11 module naming schemeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-05Some users require hands to be held constantlyMax Howell
Tell user exactly what command to use rather than thinking they'll figure it out by applying some negation logic to the main verb in the sentence they just read. Closes #12790.
2012-08-05`brew log` works with Tapped formulaMax Howell
Fixes #12446.
2012-08-04Show options for foo with `brew info foo`Max Howell
About time right?
2012-08-04`brew tap --repair`Max Howell
Removes dead symlinks in Formula and re-symlinks all Taps. Closes #11565.
2012-08-04Tap users can have dashes, adjust regexMax Howell
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-08-04Use LC_CTYPE rather than LANG for most specific ML sed fix.Mike McQuaid
Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818, fix #13939.
2012-08-04Add better named aliases for macos_version_or_newer?Mike McQuaid
2012-08-03blacklist: update npm locationAdam Vandenberg
2012-08-02Fix Mountain Lion sed by setting LANG.Mike McQuaid
It's also necessary to delete LC_ALL or it overrides the new LANG. LC_COLLATE is the problem variable but is affected by LANG and LC_ALL so just use them instead. Extends the fix made to geoip in dc955c. Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818.
2012-08-02REPOSITORY not PREFIX when checking for the .gitMax Howell
2012-08-01Error handling for individual tapsMax Howell
Possibly would help diagnose: #13853.
2012-08-01Warn user not to edit before first updateMax Howell
Because, if you do, your changes will be lost.
2012-08-01Move X11 machinery into MacOS::XQuartz namespaceJack Nagel
In order to better support Xcode-only systems, where X11 libs and executables live under /usr/X11 but headers live in the SDK, move the x11_* helper methods into a new module. This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz logic hidden from outside code, like ENV.x11. Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-07-31xquartz_version: escape spaces for mdlsMisty De Meo
2012-07-31mdfind: Check if path is nil as well as emptyMisty De Meo
2012-07-30mdfind: don't stripMisty De Meo
Since we're splitting on newlines, stripping shouldn't be necessary.
2012-07-30mdfind: Handle multiple resultsMisty De Meo
Turns out mdfind can return multiple results on the commandline, if more than one app bundle matches. Fixes #13789.
2012-07-30Deprecate adamv/alt from brew searchMax Howell
Add brew/science.
2012-07-30Invoke non interactive shell from brew editDean Smith
Fixes #12779. Closes #12784. utils.rb invokes bash as a non interactive shell to run the editor when you run brew edit. Non-interactive shells are not intended to capture user input and for running scripts. Whilst the invocation of the editor is a script the actual editor is intended for accept user input so this is an issue with brew and not emacs. This causes issues with emacs which has different behaviors when not running under an interactive shell. Signed-off-by: Max Howell <mxcl@me.com>
2012-07-30Add conflicts_with DSL methodMisty De Meo
conflicts_with is a thin wrapper around Requirement which simplifies marking conflicts between formulae. Closes #13687. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-29Provide missing .pc files for 10.8Misty De Meo
10.8 no longer ships four .pc files which were included in previous versions, though it does still include the libraries which they pointed to. This commit provides copies of the .pc files for all of these, and prepends Library/Homebrew/pkgconfig to PKG_CONFIG_PATH on 10.8. The .pc files in question are: lib curl, lubexslt, libxml-2.0, libxslt Fixes #13673. Fixes #13627. Fixes #13652. Fixes #13482. Closes #13572. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-29Synchronize Keg#link and #unlink countsMisty De Meo
Keg#link would sometimes count a linked file when doing mkpath, even if the target directory already exists; #unlink would never count it. This meant that "brew ln" and "brew unlink" counts for the same keg could be out of sync with each other.
2012-07-29Update libpng blacklist messageJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-28brew-audit: Warn against depending on MPICharlie Sharpsteen
Depending on `open-mpi` or `mpich2` will cause problems since both formulae install components with the same names. `brew audit` now recommends using MPIDependency. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-28dependencies.rb: Add MPI compiler RequirementCharlie Sharpsteen
All versions of OS X prior to Lion shipped with some version of Open-MPI, but without working compiler wrappers for Fortran. Homebrew currently has two formulae that can supply this software: open-mpi and mpich2. This commit adds a `MPIDependency` Requirement that can be passed one of four values when constructed: :cc, :cxx, :f90, :f77 This will ensure the `mpi<value>` compiler is available and working. For example, if `depends_on MPIDependency.new(:cc, :f90)` is used, the Requirement will search for working `mpicc` and `mpif90` wrappers. If the required wrappers cannot be found, an error message will be displayed that prompts the user to install one of the Homebrew formulae that provides MPI. For each language passed to a MPIDependency Requirement, environment variables be will set that point to the compilers. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-27Deduplicate requirementsJack Nagel
Because of some quirks in how formulae are loaded, DSL methods invoked in the class definition are called multiple times. This results in, for example, duplicate dependencies and requirements. Code that iterates over requirements and takes some action for each can thus repeat things that shouldn't be repeated, like appending to environment variables. Make DependencyCollector's external_deps a Set, and define eql? and hash on Requirement to prevent these duplicates. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-27Requirement: add modify_build_environment methodJack Nagel
Rather than doing type introspection in build.rb, just define a method to perform the necessary environment setup for Requirements. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-27Un-break MacOS.sdk_pathJack Nagel
MacOS.sdk_path is meant to return the SDK path that matches the version argument, so store the result in a hash. Fixes #13623. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-26Further improve brew doctor issue wiki text.Mike McQuaid
Following feedback from @mxcl on bcda0d.
2012-07-25Fix brew doctor warnings and spurious newline.Mike McQuaid
Fixes the problems discussed in 34c970 to ensure that `brew doctor` does not look like it is broken on user setup problems but still returns a sensible exit code for e.g. BrewBot.
2012-07-25Rename xctools_fucked?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>