5008 Commits

Author SHA1 Message Date
Samuel John
a73012def4 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
c968f8302f 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
Samuel John
fe61524e03 python_helper prepends PYTHONPATH
…instead of appending. This should be safer against any
malformed user-defined values in the PYTHONPATH.
2013-08-08 11:48:16 +02:00
Jack Nagel
0456e7e5a5 Use MacOS::X11 path helpers 2013-08-06 19:24:19 -05:00
Jack Nagel
9c300020f8 Eliminate MacSystem module 2013-08-06 19:24:19 -05:00
Jack Nagel
8a14b91d01 MacSystem now just wraps MacOS 2013-08-06 19:24:19 -05:00
Jack Nagel
397ccc9968 Remove more dead code 2013-08-06 19:24:18 -05:00
Jack Nagel
326f50ae3f Don't use exceptions for flow-control 2013-08-06 19:24:18 -05:00
Jack Nagel
e7ee57d5e5 Raise a useful message 2013-08-06 19:24:17 -05:00
Jack Nagel
f6622b06e5 style 2013-08-06 19:24:17 -05:00
Jack Nagel
467419c1f3 Make this logic less confusing 2013-08-06 19:24:17 -05:00
Jack Nagel
3ff3e74438 Remove dead code 2013-08-06 19:24:17 -05:00
Adam Vandenberg
6a6b319a8b update search bash completion 2013-08-06 16:01:28 -07:00
Jack Nagel
3dea341732 Enable connection timeouts when mirrors are available
Closes Homebrew/homebrew#21623.
2013-08-06 12:54:47 -05:00
Adam Vandenberg
5600713bbb Add opensuse package search 2013-08-05 15:05:02 -07:00
Adam Vandenberg
20986e3ff5 ENV: add usage note to ncurses_define 2013-08-05 14:47:02 -07:00
Camillo Lugaresi
6a8387ad4a better debugging of failed formula loading
Closes Homebrew/homebrew#21680.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-05 14:03:20 -07:00
Adam Vandenberg
1540b3aadd Search marcqualie/nginx
Closes Homebrew/homebrew#21678.
2013-08-05 13:32:23 -07:00
Adam Vandenberg
5f6b10f39a fix printing of unexpected bin/lib files 2013-08-05 13:31:35 -07:00
Tijs Zwinkels - TinkerTank
008476940f Add support for the :ssl3 download-strategy.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-05 09:12:32 -07:00
Misty De Meo
db8e8c780e superenv: document O CCCFG flag 2013-08-04 22:37:52 -07:00
Mike McQuaid
5104fd21a5 bottles: update version regex messaging. 2013-08-04 08:25:51 -07:00
Mike McQuaid
98c3d39e65 bottle_versions: add ssh_copy_id bottle detection. 2013-08-03 22:27:42 -07:00
Mike McQuaid
b507536f80 bottle_versions: add perforce bottle detection. 2013-08-03 22:27:42 -07:00
Mike McQuaid
cfdd23b3ef bottles: use dedicated version class. 2013-08-03 22:27:42 -07:00
Mike McQuaid
705a248719 versions: remove perforce bottle detection. 2013-08-03 22:27:42 -07:00
Adam Vandenberg
73547fc750 Remove ARCHFLAGS fixme from Python dependency
This will be handled by env/superenv, not Python.
2013-08-03 10:28:57 -07:00
Adam Vandenberg
71a4b8c6b9 Add comment to superenv ENV to note trailing if 2013-08-03 10:27:52 -07:00
Adam Vandenberg
583dd38b08 Add homebrew-binary to search 2013-08-03 10:27:45 -07:00
Adam Vandenberg
ba0bebd343 regenerate man page 2013-08-03 10:11:52 -07:00
Ches Martin
6f908880d8 man page: fix argument order for brew create
The implementation requires that the URL is the first argument.

Closes Homebrew/homebrew#21597.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-03 10:11:12 -07:00
Ches Martin
7d30e4445e brew-create: don't break when given --set-version
Since 9f2782812cbaf2, specifying a version breaks with:

    Error: undefined method `detected_from_url?' for "1.2.2":String

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-03 10:11:11 -07:00
Jack Nagel
ba96851606 Always load net/https before referencing related constants
I put this require inside the method body, because eager-loading
net/https is slow compared to the rest of Homebrew, and utils.rb is
loaded for each `brew` invocation.

It's probably worth breaking up global.rb a bit, to reduce the amount of
code we are loading unnecessarily, but hopefully also to make inter-file
dependencies a bit more obvious.

Fixes Homebrew/homebrew#21617.
2013-08-02 18:25:17 -05:00
Jack Nagel
faf0a7204a Improve signal-to-noise ratio of brew list --unbrewed
Closes Homebrew/homebrew#21573.
2013-08-01 22:13:46 -05:00
Adam Vandenberg
27c53e5ba8 Document superenv HOMEBREW_CCFG flags 2013-08-01 20:12:23 -07:00
Misty De Meo
ea3861d296 ArchRequirement: support :intel, :ppc 2013-08-01 19:57:05 -07:00
MerelyAPseudonym
1dc2e12f3a fix typo
Closes Homebrew/homebrew#21601.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-01 17:22:51 -07:00
Jack Nagel
36f5452ae3 Handle mkpath of node_modules directory in keg 2013-07-31 13:51:05 -05:00
Samuel John
7aa86d3313 Increase copyright year in LICENSE to 2013 2013-07-31 09:49:03 +02:00
Misty De Meo
0845341de3 cc: delegate cpp to the real tool, not compiler
Fixes Homebrew/homebrew#21527.
2013-07-30 18:41:27 -07:00
Misty De Meo
f274ad3250 superenv: fix locating non-Xcode gcc-4.2 2013-07-29 18:45:03 -07:00
Mike McQuaid
b072da141f audit: don't complain about bottle versions.
`brew bottle` already complains and this is a niche case.

References Homebrew/homebrew#21374.
2013-07-28 16:26:16 -07:00
Jack Nagel
325db99a3c RbConfig::CONFIG['bindir'] is already a string 2013-07-28 16:43:22 -05:00
Jack Nagel
366cb87aec search: silence JSON decode errors
Closes Homebrew/homebrew#21506.
Closes Homebrew/homebrew#21508.
2013-07-28 15:38:46 -05:00
Jack Nagel
bac6533d5c Set close-on-exec on lock file descriptors
The formula locks used by the installer and commands like link and
unlink are backed by open files and flock(). The open file descriptors
are thus leaked to any subprocesses. This can result in weird behavior
in programs spawned from formula that do not expect to inherit these
descriptors.

Fix this by setting close-on-exec on the lock file descriptors.

Fixes Homebrew/homebrew#21486.
2013-07-27 23:57:35 -05:00
Misty De Meo
6242a6d7fa MacOS.locate: search HOMEBREW_PREFIX before xcrun
Since xcrun doesn't work on CLT-only systems. Querying HOMEBREW_PREFIX
first before xcrun is much faster for that case.
2013-07-26 23:22:22 -07:00
Jack Nagel
613546a994 Fix expansion of deps with --build-bottle 2013-07-26 15:05:42 -05:00
Jack Nagel
023aff10c7 Adjust logic to properly sort erlang versions
Fixes Homebrew/homebrew#21417.
2013-07-24 19:48:21 -05:00
Mike McQuaid
4a2817d826 SUPPORTERS: Add £15, cleanup. 2013-07-23 18:41:00 -07:00
Adam Vandenberg
9608c2bfae audit: add TODO 2013-07-23 10:51:07 -07:00