Commit Graph
3214 Commits
Author SHA1 Message Date
Jack Nagel ac5e02ccec This is a backreference, not an embedded NUL 2013-08-16 20:50:20 -05:00
Misty De Meo 5a9478e5a8 ENV.universal_binary: use as_arch_flags 2013-08-15 23:04:26 -07:00
Misty De Meo 86e3290ab3 LinuxCPUs: provide stub methods 2013-08-15 22:46:57 -07:00
Misty De Meo 5ca53b0105 superenv: use Hardware::CPU.universal_archs
This defines the new HOMEBREW_ARCHS environment variable, which is
currently only set during universal builds, so that the tool wrappers
no longer need to hardcode i386/x86_64.
2013-08-15 22:46:57 -07:00
Misty De Meo 89eecf2336 Add Hardware::CPU.universal_archs 2013-08-15 22:46:56 -07:00
Misty De Meo 2bd3eac3d1 Mach: improve tests 2013-08-15 22:46:56 -07:00
Misty De Meo 2db0b6adf1 Mach: add as_cmake_arch_flags helper 2013-08-15 22:46:56 -07:00
Misty De Meo 1470fd3f0f Mach: improve PPC arch detection
Also adds some reusable constants into the global Hardware::CPU
namespace, available on both OS X and Linux.
2013-08-15 22:46:56 -07:00
Misty De Meo 7583729b20 Add MacOS.preferred_arch
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
2013-08-15 22:46:56 -07:00
Misty De Meo f3c3a840fe Add Hardware::CPU.arch_(32|64)_bit
This replaces hardcoding of i386/x86_64 all over the code.
2013-08-15 22:46:55 -07:00
Jack Nagel 7c3f2fef3c SubversionDownloadStrategy: fix reference to removed method 2013-08-15 15:46:03 -05:00
Adam Vandenberg 06d45845fc add ubuntu package search 2013-08-14 22:14:35 -07:00
Adam Vandenberg 08c70fd341 audit: show real name for aliases 2013-08-14 21:35:46 -07:00
Samuel John 0b269c3af7 Unlinked brewed python -> use system python
Up to now a brewed Python, even if not linked, was preferred over
and external Python, so that you had to completely `brew rm python`
to have a formula link against external (mostly system) Python.

From now on it is okay to `brew unlink python`.
2013-08-15 02:03:55 +02:00
Samuel John de885ecdb0 brew reinstall: Reuse options from last time
Now, we can finally stop stuggesting to
    `brew rm <foo>` and then `brew install <foo> <with-your-preferred options>

So `brew reinstall` will honor all options that have been recorded
into the INSTALL_RECEIPT.json plus if `--build-bottle` was used.
2013-08-14 22:25:03 +02:00
Samuel John 424c84c565 Keg should link symlinks directly.
If the `src` in the Cellar of a formula is a symlink to another dir
in the same Cellar (for example `Frameworks/QtGui.framework` is a
symlink to `lib/QtGui.framework`), then we should make a symlink
directly instead of possibly creating an empty dir.

This is needed because Ruby's `find` does not follow symlinks (newer
versions can, but we have to support 10.8 for a long time).

Currently this probably only occurs for Qt, where we put symlinks
into the Cellar/Frameworks and the frameworks linking code is a bit
special to create a directory to "merge" together different versions
of the same framework from different formulae. See `python` and
`python3`; both install `Python.framework` and only one can be the
`Current` but the other should still be put into
`Python.framework/Versions`. Therefore `Python.framework` has to
be a dir and no symlink.
2013-08-14 21:46:42 +02:00
Jack Nagel ad867ec625 Correct comment 2013-08-14 14:20:25 -05:00
Jack Nagel 54195b6f6f Use each instead of while loop 2013-08-14 14:13:03 -05:00
Jack Nagel 030ca6adf5 Replace long conditional with guard clauses 2013-08-14 14:13:03 -05:00
Jack Nagel e1695f0e67 Iterate over these directly rather than mapping first 2013-08-14 13:02:50 -05:00
Jack Nagel b6bb9f6a33 Return value of modify_build_environment is unimportant 2013-08-14 13:01:35 -05:00
Jack Nagel 8dcc870e81 Reverse conditional 2013-08-14 12:46:37 -05:00
Jack Nagel 279a077c6c Collapse to one-liner 2013-08-14 12:46:12 -05:00
Jack Nagel ef00a3f3de No need to map, all? takes a block 2013-08-14 12:45:54 -05:00
Jack Nagel 4ff80b4b22 Add missing false 2013-08-14 12:41:52 -05:00
Jack Nagel 792f7aed04 Remove stray space 2013-08-14 12:41:15 -05:00
Adam Vandenberg cbdc8dc58b pathname: remove unused return values
Return value was used only by one test, rewrote test to know expected value.
2013-08-13 20:41:08 -07:00
Jack Nagel 8842d4bf8d Remove outdated comment 2013-08-13 17:09:25 -05:00
Jack Nagel a588753152 Avoid reading whole files into memory during decompression 2013-08-13 16:43:51 -05:00
Jack Nagel f2689d502d Improve checksum perf by providing an output buffer 2013-08-13 15:40:48 -05:00
Misty De Meo 77277da8ff Doctor: missed CLT URL replacement 2013-08-10 22:30:15 -07:00
Misty De Meo 2f147fb8d1 Update URL for CLT download
http://connect.apple.com is still down, but
https://developer.apple.com/downloads has all of the Apple developer
downloads available.

Fixes #21812.
2013-08-10 22:05:18 -07:00
Jack Nagel 3494186615 Check that the cellar exists in Formula.installed
Fixes #21741.
2013-08-10 19:56:29 -05:00
Jack Nagel 99976efeed Make usage of ObserverPathnameExtension more obvious
Remove use of globals.

Closes #21795.
2013-08-10 19:02:00 -05:00
Jack Nagel 8508bdf985 Allow specifying a custom PATH for which method
Closes #21794.
2013-08-10 19:01:50 -05:00
Jack Nagel 11c9eca76b Always prune empty toplevel directories when unlinking
Closes #21750.
2013-08-09 20:55:54 -05:00
Jack Nagel 102f760f9a Keep track of pruned parent directories 2013-08-09 20:50:43 -05:00
Jack Nagel 16f134c14f Add tests to demonstrate failure to prune empty directories 2013-08-09 20:50:43 -05:00
Jack Nagel 2ae78fd9a2 Remove hardcoded paths in keg tests 2013-08-09 20:50:42 -05:00
Jack Nagel a4cc482162 Remove keg test dependency on formula 2013-08-09 20:50:42 -05:00
Jack Nagel 9733e244f9 Move MacOS.xcode43_without_clt? into Xcode module 2013-08-09 20:47:28 -05:00
Adam Vandenberg 2a89cc64da Add fedora to brew search 2013-08-09 09:32:51 -07:00
Adam Vandenberg 7b08093348 alphabetize list 2013-08-08 21:57:13 -07:00
Adam Vandenberg c15b3f9dbf Add SourceForge hg pattern 2013-08-08 21:56:18 -07:00
Jack Nagel d471f96fc5 cleaner: traverse directories in postorder 2013-08-08 20:52:52 -05:00
Adam Vandenberg 1ce1c9162a exception style 2013-08-08 11:17:16 -07:00
Samuel John 14a315e358 Don't hard-code PYTHONPATH for brew test
This rules out any possibility to test Python 3.x software as the
PYTHONPATH is used by any Python and `brew test pyqt --with-python3`
fails because it picks up the `pyqt` module fomr Python 2.x's
site-packages. Upstream tells us not to set the PYTHONPATH and then
starting another (major) python version.
2013-08-08 11:57:51 +02:00
Samuel John d93c0b9caf Improve docs for Formula#python (python_helper) 2013-08-08 11:55:45 +02:00
Samuel John 36ad1d552b Python: Exit if PYTHONPATH is wrong
In our sitecustomize.py we instruct python to exit with an error message
if the PYTHONPATH is pointing to a wrong homebrew site-packages dir.
With wrong meaning another major python version.

If you set the PYTHONPATH to include
    $(brew --prefix)/lib/python2.7/site-packages
and start python3, it may pick up modules from there, wich can result
in errors for non pure python modules (such as PyQt).
2013-08-08 11:54:42 +02:00
Samuel John b024703426 For brewed python, make sure to unset the PYTHONPATH
during building of python software inside of a `python do … end` block.
2013-08-08 11:50:46 +02:00