Commit Graph
1812 Commits
Author SHA1 Message Date
Mike McQuaid 3895b9c415 Add modular x11 dependencies.
Fixes #13638.
2012-08-08 18:19:21 +01:00
Mike McQuaid d3f9bfdb4d Remove libpng and freetype blacklist 2012-08-08 18:19:20 +01:00
Jack Nagel e3e8d7072c Simplify conditional
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 15:33:29 -05:00
Jack Nagel 979fdb57f0 Automatically append shell completion caveats
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 15:32:00 -05:00
Jack Nagel 0f19fc4987 Simplify printing conflicts in brew info
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 14:24:54 -05:00
Jack Nagel 3b1a78d84b Fix typo in conflicts_with DSL method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-07 14:24:34 -05:00
Adam Vandenberg 0b568e18e1 fix info command 2012-08-07 12:23:25 -07:00
Max Howell d184e3e340 Fix Xcode.version
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 14:34:27 -04:00
Max Howell 538e36a38a brew tap by itself handles dashes in usernames
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-07 14:24:09 -04:00
Stafford Brunk daf5275be4 Print an appropriate message if the tapped repository appears to be private
Closes #12247.
Closes #12244.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-07 14:24:09 -04:00
Adam Vandenberg d42d796653 Allow multiple unsatisfied fatal requirements
Closes #13335.
2012-08-07 10:49:45 -07:00
Brandon Black 8aa4f9dd3b Fix issues with writable? detection in brew doctor
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-06 22:02:38 -04:00
Max Howell 0bd72cb822 Restore check for broken xcode-select path
How did this get removed? Had a bug today where user had this but no doctor check so I was confused!
2012-08-06 19:28:39 -04:00
Max Howell 1fad18e648 Don't chmod -R 0777 before uninstalling
If the user owns the parent directory we have the rights to rmtree. At least I believe so.

Fixes #13714.
2012-08-06 18:49:14 -04:00
samueljohn 8f126192f5 brew --env: Added missing env vars
Closes #13431.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-06 18:22:45 -04:00
Max Howell 08fddfdbc2 Don't error out if never brew updated
Fixes #12944.
2012-08-06 16:44:11 -04:00
Patrick Lucas 188d3e3781 Suggest git clean -f for untracked changes
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-06 15:59:12 -04:00
Max Howell d9fab93cc8 New command brew irb
Works rather damn well.

I considered `brew -i`, but we aren't a shell.
2012-08-06 14:41:55 -04:00
Max Howell e93477c1b4 Don't blacklist tapped-dupes
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-06 14:22:22 -04:00
Max Howell f3293224f3 Actually cache Xcode.version
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-06 13:46:47 -04:00
samueljohn 1de2b52195 wxmac: 2.9.4
- 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-06 10:33:54 -07:00
Max Howell 5087614a4c Put the CLT advice warning in the right place
Refs #13982.
2012-08-06 13:26:39 -04:00
Max Howell 84bf873aae Don't output Ruby warnings
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-06 13:06:36 -04:00
Max Howell 9957939cd7 Point out to that you may want to install the CLT
You have to hold people's hands, they won't google anything.

Refs #13982.
2012-08-06 13:06:36 -04:00
Jack Nagel 5fee2feb7f Remove X11 doctor check
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-06 00:42:43 -05:00
Jack Nagel 524e42a7e1 Adjust XQuartz/X11 module naming scheme
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06 00:39:06 -05:00
Max Howell 14f73005b7 Some users require hands to be held constantly
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 10:46:35 -04:00
Max Howell eb96465868 brew log works with Tapped formula
Fixes #12446.
2012-08-05 10:34:44 -04:00
Max Howell 12bcd19ee0 Show options for foo with brew info foo
About time right?
2012-08-04 15:40:36 -04:00
Max Howell 5eb06b9dc5 brew tap --repair
Removes dead symlinks in Formula and re-symlinks all Taps.

Closes #11565.
2012-08-04 15:11:47 -04:00
Max Howell 523e21fd6e Tap users can have dashes, adjust regex
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-08-04 15:11:47 -04:00
Mike McQuaid 53d5bfb44e Use LC_CTYPE rather than LANG for most specific ML sed fix.
Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818,
fix #13939.
2012-08-04 10:48:23 +01:00
Mike McQuaid c653f9849b Add better named aliases for macos_version_or_newer? 2012-08-04 10:36:31 +01:00
Adam Vandenberg 2c4f73056e blacklist: update npm location 2012-08-03 19:53:54 -07:00
Mike McQuaid 00ba4dfd1e Fix Mountain Lion sed by setting LANG.
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-02 20:26:01 +01:00
Max Howell 1065a2de0e REPOSITORY not PREFIX when checking for the .git 2012-08-02 10:20:22 -04:00
Max Howell a732c9b991 Error handling for individual taps
Possibly would help diagnose: #13853.
2012-08-01 16:19:25 -04:00
Max Howell bfaa726c28 Warn user not to edit before first update
Because, if you do, your changes will be lost.
2012-08-01 15:59:30 -04:00
Jack Nagel 68b5fe1ca5 Move X11 machinery into MacOS::XQuartz namespace
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-08-01 00:31:38 -05:00
Misty De Meo fc3adf98c4 xquartz_version: escape spaces for mdls 2012-07-31 10:54:25 -03:00
Misty De Meo ba10b456ae mdfind: Check if path is nil as well as empty 2012-07-31 00:14:52 -03:00
Misty De Meo 7fee581c28 mdfind: don't strip
Since we're splitting on newlines, stripping shouldn't be necessary.
2012-07-30 23:36:00 -03:00
Misty De Meo e7d031fa42 mdfind: Handle multiple results
Turns out mdfind can return multiple results on the commandline, if
more than one app bundle matches.

Fixes #13789.
2012-07-30 23:20:05 -03:00
Max Howell a436c86c33 Deprecate adamv/alt from brew search
Add brew/science.
2012-07-30 13:24:53 -04:00
Dean Smith d2ecfb9e51 Invoke non interactive shell from brew edit
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-30 13:23:19 -04:00
Misty De Meo 2814e3a9fa Add conflicts_with DSL method
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-30 13:47:12 -03:00
Misty De Meo c669c6b67d Provide missing .pc files for 10.8
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-29 10:28:41 -03:00
Misty De Meo 305495f70a Synchronize Keg#link and #unlink counts
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-29 10:28:41 -03:00
Jack Nagel 2e215dbf4d Update libpng blacklist message
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-29 00:09:15 -05:00
Charlie Sharpsteen 4e640cba04 brew-audit: Warn against depending on MPI
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-28 09:12:44 -07:00