17988 Commits

Author SHA1 Message Date
Adam Vandenberg
ee794cd21a Add command "brew --env"
"brew --env" will set up a build environment and then dump certain ENV
variables (CC, CXX, LD, CFLAGS, CXXFLAGS, MAKEFLAGS).

If any of CC, CXX, LD are symlinks, now also output the target compiler.
(Typically these will be symlinks from eg /usr/bin/cc to /usr/bin/gcc-4.2).

This is a diagnostic command which may be merged into --config, turned
into an external command, or removed if it doesn't turn out to be useful.
2010-07-13 14:20:52 -07:00
Adam Vandenberg
984d0bd05d CurlUnsafeDownloadStrategy
This Download Strategy is provided for use with sites that
only provide HTTPS and also have a broken cert.
Try not to need this, as we probably won't accept the forulae
into trunk.
2010-07-10 12:00:11 -07:00
Adam Vandenberg
b5ba49b90e Usage should mention manpage. 2010-07-09 12:16:06 -07:00
Adam Vandenberg
d637e0a139 brew doctor and GitDownloadStrategy now check for Git.
GitDownloadStrategy now fails if git isn't in the path, same as other
VCS strategies.

`brew doctor` will also warn if Git isn't installed.
2010-07-09 07:15:28 -07:00
Adam Vandenberg
4c2d3e1f7f Improved Subversion support.
Homebrew will now use the svn binary pointed to by HOMEBREW_SVN if set,
use a Homebrew-installed svn if present, finally falling back to the
system-provided svn binary.

If a formula (mplayer) requires a newer version of Subversion than what
Leopard provides, it can use the "StrictSubversionDownloadStrategy"
download strategy to warn the user.

These changes also fix an issue with forcing exports not working on a
stock Leopard subversion, but letting the user either specify a specific
binary or install Subversion via Homebrew and pick that up instead.
2010-07-08 22:45:03 -07:00
Adam Vandenberg
281768cc07 Add some HOMEBREW env vars to the dump 2010-07-08 22:45:01 -07:00
Adam Vandenberg
7c4661edcf Comment the detect_download_strategy patterns. 2010-07-08 22:41:51 -07:00
Adam Vandenberg
41e8245534 Clarify cellar comment 2010-07-08 22:41:51 -07:00
Adam Vandenberg
696e49e87a Move exceptions from global to utils; remove duplicate defintions 2010-07-08 22:41:51 -07:00
Adam Vandenberg
a6b6de63a9 Move method from ObserverPathnameExtension to extend/Pathname
* This method is generally useful, even without the Observer extensions.
2010-07-08 22:41:50 -07:00
Adam Vandenberg
375f8094d3 Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg
4ae8029557 Update version tests 2010-07-06 13:17:43 -07:00
Adam Vandenberg
350aea60dc Pathname - fix RC version detection. 2010-07-04 14:10:04 -07:00
Adam Vandenberg
7d852f10a7 Update Pathname version checks.
* allow capital 'RC'
* allow 'stable' suffix
2010-07-04 11:02:54 -07:00
Adam Vandenberg
f666addeac Remove dupliate 'wxwidgets' entry from blacklist. 2010-07-04 10:46:16 -07:00
Adam Vandenberg
40c8af111f Move data into updater class 2010-07-03 23:22:51 -07:00
Adam Vandenberg
14d84be78e brew doctor - add whitelist to dylibs 2010-07-03 22:58:17 -07:00
Adam Vandenberg
63f6cb03df Blacklist setuptools in favor of distribute. 2010-07-03 21:55:34 -07:00
Adam Vandenberg
c37294e9d3 Allow user to override temp folder with HOMEBREW_TEMP 2010-07-03 21:48:37 -07:00
Adam Vandenberg
ecb5ce103e Remove $PATH from --config and build dumps.
While it is useful to be able to see the user's path in bug reports, it is
perhaps slightly too intrusive to post this without the user's permission.

A path can have usernames or other project sensitive information, and several
Homebrew users were editing their bug reports to omit this information.

`brew doctor` will still report on the path issues that we typically care
about, so dropping automatic posting of PATH.
2010-07-02 09:34:40 -07:00
Adam Vandenberg
8806d91662 Brew doctor now checks that lib/pkgconfig is writable.
If previous non-Homebrew software was installed to /usr/local with "sudo",
then a pkgconfig folder may have been created with restricted permissions.
This will prevent brews (such as glib) from symlinking their .pc files
correctly.
2010-07-01 10:16:15 -07:00
Adam Vandenberg
98f550e946 Use http URL for "brew update".
This allows users behind firewalls to pull down updates to Homebrew itself.
Fixes Homebrew/homebrew#1086
2010-07-01 09:22:55 -07:00
Adam Vandenberg
aac072c47a Tweak CurlPostDownloadStrategy 2010-06-30 10:21:56 -07:00
Adam Vandenberg
4490b739d5 Add flat-.pkg support to CurlDownloadStrategy 2010-06-30 10:14:33 -07:00
Luke Gallagher
551e4efbd6 Fix typo in github_info
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-29 07:02:35 -07:00
Adam Vandenberg
480accdd47 Add brew doctor check for Cellar and TMP on separate volumes.
Add a brew doctor check for this issue:
http://github.com/mxcl/homebrew/issues/issue/1238
2010-06-28 17:26:16 -07:00
Adam Vandenberg
0152384487 brew doctor - warn about symlinked cellars 2010-06-28 16:48:44 -07:00
Adam Vandenberg
ddfd14f8d6 Fix spacing in brew doctor messages. 2010-06-28 16:47:52 -07:00
Adam Vandenberg
501fb844ab Use cp, not mv, to keep download in cache. 2010-06-28 13:14:50 -07:00
Adam Vandenberg
a634dc6a2c Add brew doctor check for DYLD vars. 2010-06-25 19:22:54 -07:00
Adam Vandenberg
55b683b59a Add a download strategy that uses HTTP POST 2010-06-25 19:13:20 -07:00
Adam Vandenberg
cdb5b2e0d5 Extract "brew_install".
This was supposed to go in with the "brew-upgrade" external command,
but must have been lost in the merge.
2010-06-23 12:59:02 -07:00
Patrick Walton
6fbf125970 Create explicit folders for more language libs. 2010-06-23 11:31:52 -07:00
SHIBATA Hiroshi
8fb8c330a6 Exclude "HEAD" formula from outdated list. 2010-06-22 16:19:08 -07:00
Paul O'Neil
40b1ba1c29 cleans only existing directories
The previous code works fine on ruby 1.8.x, but under 1.9 trying
find on a non-existent folder gives:
  ==> No such file or directory
  /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/1.9.1/find.rb:38:in `block in find'

Fixes Homebrew/homebrew#1633
2010-06-18 21:11:43 -07:00
Brett Cannon
3a97b2cf67 Fix LLVM compilation under OS X 10.6 where cflags was not being defined.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Unshare code between ENV.llvm and ENV.setup_build_environment
2010-06-18 16:32:19 -07:00
Adam Vandenberg
43d1f6790b Note how to redownload tarballs on failed checksum.
Fixes Homebrew/homebrew#659
2010-06-18 14:16:20 -07:00
Adam Vandenberg
7850789457 Remove buggy, unsupported TeX-live brew, and suggest MacTex.
The TeX-live 2008 formula was out of date (there's a 2009), buggy,
and doesn't build 64-bit.

The MacTeX package works and is supported, with a 2010 version in the works.
Let's recommend that instead.

Fixes Homebrew/homebrew#1087
2010-06-17 21:33:14 -07:00
Adam Vandenberg
b2ae884e27 Remove unused global define 2010-06-17 16:53:17 -07:00
Adam Vandenberg
d49c6d675e Bug fix for METAFILES that are actually directories.
If a package contains a folder that has the same name as one of our
expected meta files, skip trying to install that folder.

(Otherwise we install an empty folder and can get odd permission errors
when trying to summarize after install.)
2010-06-17 16:35:40 -07:00
Adam Vandenberg
60872bf0c5 Tweak "clean".
The code to try to move man into share didn't seem to be working, since
the code that warns if a top-level man was found was firing off.

Removing this apparently dead code.
2010-06-17 12:40:58 -07:00
Adam Vandenberg
410f633310 filter out aliases when real name was found 2010-06-17 11:42:24 -07:00
Adam Vandenberg
d84b8cf288 Extract search_brews method 2010-06-17 11:42:24 -07:00
Chris Hoffman
6aeb848bd8 Refactor llvm compiler selection so formula can use it
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:55 -07:00
Chris Hoffman
154d0fa92d Fix exception when installing with --use-llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-17 09:39:41 -07:00
Adam Vandenberg
2dbc6b977f Use same LLVM binary to check build # as we do to build with.
Different llvm binaries were used to check build numbers and to compile with.
Normalize this, and normalize the variable name used to hold the xcode location.
(Calling it "prefix" is confusing, since there are already concepts in Homebrew
called "prefx".)
2010-06-16 13:32:09 -07:00
Adam Vandenberg
76168e8e87 Add "fails_with_llvm" to formula to document LLVM build breaks.
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.

Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
2010-06-16 11:50:36 -07:00
Adam Vandenberg
69b9901131 Move code to find outdated brew list 2010-06-16 09:52:20 -07:00
Trevor Stevens
b9bb078642 Modify brew update to show if any formulae were removed. 2010-06-15 21:45:56 -07:00
Adam Vandenberg
6fd0a120f1 External: 'brew fetch' downloads tarballs to cache. 2010-06-15 12:38:04 -07:00