Xu Cheng
06806f860d
remove unnecessary require statements
2015-10-18 22:57:42 +08:00
Xu Cheng
767d961824
ENV#userpaths!: ensure Superenv.bin and opt path come at first
...
This ensures that binaries in /usr/local/bin would not overwrite
superenv.
Closes Homebrew/homebrew#44376 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:47:04 +08:00
Misty De Meo
3bc2ff8e20
Accept "gcc" for --cc=gcc-5 even if not installed
2015-09-12 11:47:14 -07:00
Mike McQuaid
2c959a7d58
More API documentation.
...
And remove the documented stuff from the `example-formula.rb`.
Closes Homebrew/homebrew#43241 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-29 15:43:16 +01:00
Misty De Meo
727239e12f
Merge bottle install without Xcode branch
...
Merge branch 'bottle_hooks'
2015-08-21 11:04:22 -07:00
William Woodruff
1face808f5
Add guards to calls that would trigger Xcode install requests
...
add guard in Formula#file_modified? to prevent git popup
add guard in Superenv.bin before calling MacOS::Xcode.version
add guard against missing Xcode/CLT in Xcode.uncached_version
return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior
checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well
needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation
MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21 11:02:33 -07:00
Tim D. Smith
6606c7b53b
Revert "work around missing __debug header in Xcode CLT 6.3"
...
Ding, dong, the witch is dead...
This reverts commit fd5ca9ba16f5afc181364369210cb94e997a5a5e.
Ref Homebrew/homebrew#38514 , Homebrew/homebrew#38735 .
Closes Homebrew/homebrew#41843 .
2015-08-15 20:24:20 -07:00
Xu Cheng
ae0e270727
favor flat_map over map...flatten
2015-08-06 22:33:46 +08:00
Xu Cheng
b121e5fd7b
more core file style updated by rubocop
2015-08-06 17:23:56 +08:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01: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
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
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
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
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
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
cb09660516
Always set sysroot for Xcode-only systems
...
Fixes Homebrew/homebrew#33431 .
2014-10-29 11:03:54 -05:00
Jack Nagel
662f887e9a
Call reset in the superclass implementation of setup_build_environment
2014-09-18 16:44:20 -05:00
Jack Nagel
c5f2f6b539
Make --cc override the compiler selector
2014-09-18 15:50:54 -05:00
Jack Nagel
04dae13ae7
Replace CompilerQueue with predetermined priority lists
2014-09-18 15:50:54 -05:00
Jack Nagel
ae88549797
Remove fails_with? from the formula instance
2014-09-18 15:50:54 -05:00
Jack Nagel
28c1c4ee15
Use only strings in ENV.x11
2014-09-11 16:56:21 -05:00
Jack Nagel
1c5995776f
The build environment should only deal with strings
2014-09-11 16:50:56 -05:00
Jack Nagel
c98fe91f13
Don't directly assign Pathname objects to environment variables
...
Fixes Homebrew/homebrew#32234 .
2014-09-11 16:50:56 -05:00
Jack Nagel
b544f3e5f1
Clear GOBIN in environment setup
...
Closes Homebrew/homebrew#32014 .
2014-09-07 18:39:00 -05:00
Jack Nagel
b0c1e5f7d6
Fix redefinition of x11 reader method in superenv
2014-08-24 14:32:10 -05:00
Jack Nagel
00220c40db
Don't overwrite optimization flag map in ENV.clang
2014-08-18 16:02:53 -05:00
Jack Nagel
e0f86a1a86
Pull effective arch detection into a method
2014-08-09 14:57:09 -05:00
Jack Nagel
9f6bd0798f
Use opt_bin
2014-08-06 20:52:36 -05:00
Jack Nagel
5a2ae61e66
Add another TODO
2014-08-03 15:28:51 -05:00
Jack Nagel
fded4d0385
Remove an is_a check
2014-08-03 10:47:47 -05:00
Jack Nagel
a5895ad1fe
Check nil? || empty? instead of to_s.empty?
2014-07-18 11:43:37 -05:00
Jack Nagel
3439703c65
Drop pointless to_s call
2014-07-18 11:43:37 -05:00
Jack Nagel
fe0c018a1a
No need to cache lookup that is only done once
2014-07-13 10:50:56 -05:00