16336 Commits

Author SHA1 Message Date
Mike McQuaid
bdbaf61304 python_dependency: fix includes location on 10.9.
Fixes Homebrew/homebrew#23837.
Fixes Homebrew/homebrew#23866.
2013-11-01 11:19:23 -07:00
Mike McQuaid
fd254c3874 bottle: improve written bottle output. 2013-10-31 19:03:31 -07:00
Mike McQuaid
3f489e1eed bottle: write to relative path if exists. 2013-10-31 18:21:03 -07:00
Mike McQuaid
b0bf181788 install: search when formula isn't found. 2013-10-31 17:20:00 -07:00
Elliot Saba
c20f6395bb bottle: improve relocatable debugging.
* When Homebrew developer mode is enabled, if a bottle is not found to
  be relocatable attempt to explain why
* Print out paths of each file that still contains the string search for
* If the string searched for was found in an executable, check to see
  if `otool` can explain the string's appearance
* If otool can't explain, see if `strings` can explain

Closes Homebrew/homebrew#23824.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-31 17:12:36 -07:00
Mike McQuaid
d311fe666c Allow configuring HOMEBREW_LOGS. 2013-10-31 17:02:20 -07:00
Mike McQuaid
37e2005e79 Use HOMEBREW_LOGS more consistently. 2013-10-31 17:02:20 -07:00
Jack Nagel
80c7a80a46 Remove duplicate test 2013-10-31 14:49:23 -05:00
Jack Nagel
3f2782e22d fetch: check for existing cache file before downloading 2013-10-31 14:29:48 -05:00
Jack Nagel
d35e465671 fetch: clear partial downloads when --force is given
Fixes Homebrew/homebrew#23764.
2013-10-31 14:29:38 -05:00
Stefan
71f0ad069d Generate logs in verbose mode
Closes Homebrew/homebrew#23654.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-10-31 14:24:48 -05:00
Jack Nagel
643469a17c sh: only activate X11 if it's installed
Fixes Homebrew/homebrew#23835.
2013-10-31 14:20:29 -05:00
Misty De Meo
655c6f79b4 Hardware::CPU: add extmodel helper 2013-10-30 19:14:07 -07:00
Brian Stolz
0f612f8459 Add Hardware::CPU.ssse3? helper method.
Closes Homebrew/homebrew#23796.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-10-30 18:44:03 -07:00
Mike McQuaid
a28b57d3fb git-etc: remove all code.
I've given up on this; too many edge cases.
If someone else wants to pick it up then send me a message and I'll walk
you through the approach.
2013-10-30 16:15:31 -07:00
Mike McQuaid
d9d2443d5d Cleanup use of some global constants. 2013-10-30 13:20:48 -07:00
Mike McQuaid
d6ffd493a6 deps: don't use symbol-like output by default. 2013-10-30 13:13:41 -07:00
Mike McQuaid
8e75e3e043 doctor: strengthen osx-gcc-installer warning.
We hate it and we should tell people why.
Next step may be blocking it altogether.
2013-10-30 11:28:38 -07:00
Mike McQuaid
ce8123badd install: print osx-gcc-installer doctor warning. 2013-10-30 11:28:37 -07:00
Mike McQuaid
d31e069ed3 update: automatically tap migrated formulae.
When a formula is removed from core and installed let's tap it so users
can get updates without caring which tap we want to put things in.

This should allow us to migrate a lot of things to taps.

Closes Homebrew/homebrew#23760.
2013-10-30 11:24:21 -07:00
Mike McQuaid
1c5b1d745e Add tap migrations file. 2013-10-30 11:21:54 -07:00
Mike McQuaid
55947f84a5 exceptions: direct to correct tap on failure.
Closes Homebrew/homebrew#23757.
2013-10-30 11:20:20 -07:00
Mike McQuaid
4c0fd46329 Formula: add tap? method. 2013-10-30 11:20:02 -07:00
Mike McQuaid
202c6ef826 global: add more tap regexes. 2013-10-30 11:19:46 -07:00
Mike McQuaid
868b4f8bea uses: display requirements.
Closes Homebrew/homebrew#23758.
2013-10-30 10:48:53 -07:00
Mike McQuaid
34d836872f deps: display requirements default_formulae. 2013-10-30 10:48:53 -07:00
Mike McQuaid
a252c90a0d doctor: ensure git --version actually matches.
Closes Homebrew/homebrew#23791.
2013-10-30 10:34:04 -07:00
Jack Nagel
9966943a34 Resource: extract unpacking from #stage
Closes Homebrew/homebrew#23768.
2013-10-30 10:43:57 -05:00
Jack Nagel
2dd44f7791 Resource: push conditional down into #verify_download_integrity 2013-10-30 10:16:20 -05:00
Jack Nagel
a5b2814770 Use curl to download list of Apache mirrors
Ruby's OpenURI library is somewhat broken under 1.8 and chokes on
otherwise valid values of http(s)_proxy. Use curl to get the mirror list
instead.

Fixes Homebrew/homebrew#23708.
2013-10-30 00:11:46 -05:00
Teo Ljungberg
95305e6256 New command: brew unlinkapps
The name is pretty self explanatory, it unlinks all installed
applications found under `brew --prefix` from either `~/Applications` or
`/Applications`

Closes Homebrew/homebrew#22729.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-29 21:04:25 -07:00
Jack Nagel
076df32be3 Add ant dependency
Closes Homebrew/homebrew#23484.
Closes Homebrew/homebrew#23494.
Closes Homebrew/homebrew#23681.
2013-10-28 14:44:20 -05:00
Misty De Meo
64b472788a Mac.prefer_64_bit?: fix conditional for 10.4 2013-10-28 08:41:57 -07:00
Mike McQuaid
42c9ecd665 Bottle: handle legacy bottle OS tags.
Otherwise :mountainlion, :snowleopard in the history for CMake breaks 
bottle_filenames from versions for new CMake bottles.
2013-10-28 10:50:02 +00:00
Mike McQuaid
fdc08424af versions: fix bottle_filenames.
Previously if a bottle had no checksum for a particular platform (i.e.
currently there are no Mavericks bottles) then it would generate a
different revision (and thus filename) to the rest of the bottles being
generated which meant bottles needed to be manually renamed.

Instead check the actual bottle object's checksums to make sure that
we've looked at the previous bottles for all platforms rather than just
the current one.
2013-10-28 10:26:04 +00:00
Jack Nagel
f01a38772a Fix md5 compat layer
Fixes Homebrew/homebrew#23653.
2013-10-27 12:43:14 -05:00
Stefan
0a1df377fb fix build log output
Closes Homebrew/homebrew#23669.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-27 09:48:15 -07:00
Xiyue Deng
ea2dd613a4 Make stdenv handling less intrusive.
* Don't encode "-Qunused-arguments", as this is only supported in Clang
  and will break building when C/C++ compiler is switched during the
  process, e.g. building gcc. The warning is harmless without
  "-Werror".
2013-10-27 06:30:48 -07:00
Xiyue Deng
15e5fe4384 Clang standard library selection.
* Add new ENV function for selecting stdlib for Clang.
  - The selection is no-op for non-system-clang compilers.
  - Both superenv and stdenv are handled.
* Add new HOMEBREW_CCCFG flag and ccwrapper handling.
2013-10-26 22:17:04 -07:00
Xiyue Deng
f2132c47bd C++11 support.
* Add options and ENV method to specify building in C++11 mode.
  - Set C++ compiler flags to enable C++11 mode.
  - To add options to support C++11 mode, a formula can now use

      option :cxx11

    to provide "--c++11" option, and detect and enable C++11 support in
    install method using

      ENV.cxx11 if build.cxx11?

Closes Homebrew/homebrew#22453.
2013-10-26 22:17:04 -07:00
Misty De Meo
0e6df1c3bf detect_cxx_stdlibs: use mach_o_files 2013-10-26 21:54:30 -07:00
Misty De Meo
2775a4b12c Move bottle stdlib tracking post-pour
This allows us to track the actual stdlib in use, and prevents warnings
for bottles with no C++ code.
2013-10-26 21:54:29 -07:00
Misty De Meo
3657393017 Move stdlib tracking postinstall
This moves stdlib tracking after the install completes, which allows
the tracking to have access to the actual stdlib in use.

This unfortunately means that builds can error out *after* a build,
resulting in wasted time; however, it reduces false positives, and the
overall user experience is still likely to be better this way.
2013-10-26 21:54:29 -07:00
Jack Nagel
91dfb60805 create: escape example interpolation
Fixes Homebrew/homebrew#23643.
2013-10-26 18:30:39 -05:00
Adam Vandenberg
6857e2ed34 add note about test path to create template 2013-10-26 15:39:39 -07:00
Jack Nagel
383b321119 Disallow initializing Versions with non-strings
Closes Homebrew/homebrew#23553.
2013-10-25 17:29:45 -05:00
Jack Nagel
e67286369e Stop coercing MACOS_VERSION to a float 2013-10-25 17:29:36 -05:00
Mike McQuaid
ed3343565a doctor: require CLT on 10.9.
Xcode-only setup is badly broken and will remain that way until fixed by
Apple. For many 10.9 issues this fixes things so let's tell the users.
2013-10-25 21:33:26 +01:00
Mike McQuaid
90a630dcad create: detect name from GitHub archives. 2013-10-25 21:12:29 +01:00
David MacMahon
a999ddc002 Add HOMEBREW_NO_GITHUB_API env var.
This patch allows users to "opt out" of using the GitHub API altogether
by setting the HOMEBREW_NO_GITHUB_API environment variable. The
value of the environment variable does not matter (it can even be
empty!).

For Bash/ZSH: export HOMEBREW_NO_GITHUB_API=1

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-25 21:12:28 +01:00