Xu Cheng
640109f73d
ARGV#resolved_formulae: auto resolve spec
2015-07-31 19:44:03 +08:00
Xu Cheng
773db6a3ba
ARGV#spec: allow pass default value
2015-07-31 19:44:02 +08:00
Xu Cheng
fd7f3b9496
Pathname#abv: handle the case du
returns empty string
...
This can happen when read permission is denied.
Fixes Homebrew/homebrew#41925 .
Closes Homebrew/homebrew#42011 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22 20:35:01 +08:00
Jack Nagel
5e7edbbd3c
Ask the exception for the formula name
2015-06-22 21:08:27 -04:00
Jack Nagel
87e7735012
Ask the formula object for the opt path
2015-06-22 21:00:40 -04:00
Jack Nagel
f1bf81dd55
Simplify gcc_version_formula
2015-06-21 21:18:24 -04:00
Jack Nagel
1ce04786d6
Inline variable
2015-06-21 21:18:24 -04:00
Jack Nagel
3f11f1a0de
Eliminate special case for core gcc
2015-06-21 21:18:24 -04:00
Jack Nagel
2db59be452
Less code in begin/rescue block
2015-06-21 21:18:23 -04:00
Jack Nagel
1bba5fd88a
Pass full match to warn_about_non_apple_gcc
2015-06-21 21:18:23 -04:00
Jack Nagel
ec1727a1be
Remove backports for Ruby 1.8.6
...
refs. Homebrew/linuxbrew#438 , mistydemeo/tigerbrew#327 ,
mistydemeo/tigerbrew#334
2015-06-19 22:20:47 -04:00
Jack Nagel
09f8c54f83
Move some constants from env to compiler constants
2015-06-19 21:38:39 -04:00
Jack Nagel
7edf3c88f6
Pass formula objects, not strings, into the build environment
2015-06-18 23:13:48 -04:00
Jack Nagel
aad4ed7faa
Undocument return value of ENV.deparallelize
...
It's not clear whether it returns MAKEFLAGS with or without -j<n>, and
neither is particularly useful behavior, given you can easily get the
exact value by calling ENV["MAKEFLAGS"]. So let's not commit to this
API.
2015-06-12 20:14:07 -04:00
Xu Cheng
f2d0a88292
remove Pathname#find_formula
...
Closes Homebrew/homebrew#40486 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-11 15:28:30 +08:00
Xu Cheng
31ca2831f3
Revert "Pathname#version: support bottle version"
...
This reverts commit 02fba8ce25f1e34c981cb30197e2b4711f88b266.
2015-06-07 23:51:15 +08:00
Xu Cheng
ef7eb0750c
Pathname#version: support bottle version
...
Closes Homebrew/homebrew#40365 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-04 20:05:43 +08:00
Xu Cheng
d2f7a2c410
ARGV#kegs: try to load fomrula from rack
2015-05-27 13:53:40 +08:00
Xu Cheng
60383be032
ARGV: add resolved_formulae method
2015-05-27 13:53:40 +08:00
Ryan Hendrickson
798711cade
Use canonical representation of the superenv bin directory
...
The xcrun script should be skipping the ENV directory when it scans
$PATH looking for tools to run. Unfortunately, the script compares the
paths found to the real path of the ENV directory (following symlinks),
but superenv was adding the nominal path to $PATH, not following
symlinks. As a consequence, platforms with Xcode < 4.3 would get into
infinite loops when trying to call non-system versions of gcc, as xcrun
calls the ENV version of gcc-X.X which calls xcrun and so on forever.
This commit changes superenv to follow symlinks when determining the bin
path to use.
Fixes Homebrew/homebrew#33731 .
Closes Homebrew/homebrew#40062 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-25 22:01:12 -04:00
なつき
3649b31765
ENV: Add gcc-5 to compilers support C++11
...
Closes Homebrew/homebrew#39758 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-16 11:16:55 -04:00
Jack Nagel
bf4dc7449b
Clear GOPATH and GOROOT in build environment
...
Fixes Homebrew/homebrew#37936 .
2015-05-14 20:04:45 -04:00
なつき
6181a786c0
compilers: support gcc 5
...
Closes Homebrew/homebrew#39470 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-08 22:23:30 -04:00
Xu Cheng
74ea4bd31c
fileutils: use rm_rf to clean temp dir
...
Honestly, I don't know why git is broken under sandbox. But this seems
fix the problem in Homebrew/homebrew#38978 .
Closes Homebrew/homebrew#39138 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-01 15:21:58 +08:00
Misty De Meo
8fe0b56810
Add support for extracting LHA archives
2015-04-26 11:11:56 -07:00
Misty De Meo
f5d6d80d5b
ENV.deparallelize: add block form for temporary change
...
Closes Homebrew/homebrew#39026 .
2015-04-25 12:45:31 -07:00
Jack Nagel
2fb9890e07
Don't use deprecated API
2015-04-20 20:49:55 -04:00
Tim D. Smith
af57cffeb0
work around missing __debug header in Xcode CLT 6.3
...
uses the LLVM 3.6 debug header from:
http://reviews.llvm.org/diffusion/L/browse/libcxx/tags/RELEASE_360/final/include/__debug
Workaround for Homebrew/homebrew#38514 .
Closes Homebrew/homebrew#38735 .
2015-04-19 13:41:26 -07:00
Xu Cheng
2f529220e7
preliminary write control only sandbox
...
Closes Homebrew/homebrew#38361 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09 17:42:54 +08:00
Dominyk Tiller
2fa87369b3
pathname: prune unnecessary whitespace
...
Closes Homebrew/homebrew#38413 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-07 18:32:29 +01:00
Shaun Jackman
6ca42964cb
pathname: remove hyphen from BOTTLE_EXTNAME_RX
...
A hyphen is not a valid character in a Ruby symbol, and the bottle
tag should be a valid Ruby symbol for its use in the bottle stanza.
Closes Homebrew/homebrew#38235 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-31 18:53:26 +01:00
Shaun Jackman
1ad0de8660
pathname: Add [-0-9] to BOTTLE_EXTNAME_RX
...
Change [a-z_]+(32)? to [-a-z0-9_]+
The Linuxbrew bottle tag is x86_64-linux.
Closes Homebrew/homebrew#32687 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-31 15:07:46 +01:00
Jack Nagel
96f7a8015f
Pass around only pathname objects
2015-03-26 22:22:45 -04:00
Jack Nagel
3721e0be6f
Always yield a path from install_p extension
2015-03-26 22:22:45 -04:00
Jack Nagel
380b8ce46d
Combine assignments
2015-03-25 20:26:04 -04:00
Jack Nagel
1351f67e91
Make install_p and install_symlink_p private
2015-03-24 21:08:12 -04:00
Jack Nagel
ab3d622da2
Always pass basename to install_symlink_p
2015-03-24 21:06:19 -04:00
Jack Nagel
6f0efd6f3d
Always pass basename to install_p
...
Currently, when called with one argument, dst is set to self, i.e. the
directory into which the source file should be moved.
When called with a second argument (for renames), dst is the full path,
including the basename, to the moved file.
Instead, let's always pass the full path, which means we can remove the
branching logic around computing dst.
2015-03-24 21:03:45 -04:00
Jack Nagel
86006ba36b
Go through regular logic when installing a file
2015-03-23 21:01:50 -04:00
Jack Nagel
db05618561
Use Dir.mktmpdir instead of shelling out to mktemp
...
Closes Homebrew/homebrew#37616 .
2015-03-14 20:45:21 -04:00
Jack Nagel
316d8d756c
Reduce scope of ensure block, remove conditionals
2015-03-10 23:26:54 -04:00
Xu Cheng
144453368e
test-bot pathname: use Utils.popen_read instead of backticks
...
Closes Homebrew/homebrew#37418 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-06 22:19:24 +08:00
Xu Cheng
328fa80f41
pathname: skip directory in env_script_all_files
...
Closes Homebrew/homebrew#37180 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-25 20:17:22 +08:00
Jack Nagel
f438af9915
Don't prune cellar paths when cellar is in /opt
...
Fixes Homebrew/homebrew#35382 .
2015-02-07 13:54:33 -05:00
Jack Nagel
120bd43f87
Buffer 16K at a time
2015-01-05 10:45:05 -05:00
Viktor Szakats
fc2818b7a5
Use more https in urls and updated some lost links
...
Closes Homebrew/homebrew#35531 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Jack Nagel
318c103802
Remove unnecessary encoding comments
...
These files do not contain any non-ASCII characters.
2015-01-03 23:44:26 -05:00
Jack Nagel
a955665102
Preserve backtrace from original exception
2014-12-29 15:23:01 -05:00
Jack Nagel
6096ec9568
Unset LIBRARY_PATH before builds
...
See https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
Closes Homebrew/homebrew-versions#592 .
2014-12-17 14:40:05 -05:00
Jack Nagel
1a69ceaf7e
Recognize rpm file magic
2014-12-09 01:22:55 -05:00