Bob W. Hogg
769cab7e4f
follow the pattern more closely
2016-09-22 08:31:50 -04:00
Bob W. Hogg
01b93117cd
move os checks to extend/os
2016-09-22 08:31:50 -04:00
Bob W. Hogg
ddccbf22ae
remove comment about brewed ant on Linux; not necessary
2016-09-22 08:31:50 -04:00
Bob W. Hogg
5c926b1db3
make names more generic
2016-09-22 08:31:50 -04:00
Bob W. Hogg
0a4bc8494d
switch to using extend pattern
2016-09-22 08:31:50 -04:00
Marc Savy
7fc241765e
Make mkdir wrapper use mkdir_p to create intermediate directories
2016-09-20 12:17:44 +01:00
Mike McQuaid
c45119de75
Merge pull request #971 from penman/follow_alias
...
Make `brew upgrade` and `brew outdated` follow alias changes
2016-09-19 15:22:24 +01:00
Alyssa Ross
2a683f2569
upgrade, outdated: follow alias changes
2016-09-18 19:58:09 +01:00
Mike McQuaid
3f9cce0a03
Use new "macOS" naming where appropriate.
...
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Mike McQuaid
59b7f16bfd
Merge pull request #989 from MikeMcQuaid/rubocop-final
...
Rubocop: apply auto-corrections and don't use hash-rockets
2016-09-18 13:28:15 +01:00
ilovezfs
390bcf413b
no_weak_imports: always check for support
...
ENV.no_weak_imports should be a no-op when Xcode doesn't support the
feature to avoid breaking builds with <= Xcode 7.
2016-09-17 08:29:47 -07:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Misty De Meo
67cb634e20
Merge pull request #965 from mistydemeo/warn_xcode_8_without_clt
...
Warn when using Xcode 8 without CLT on 10.11
2016-09-16 16:22:45 +10:00
Misty De Meo
8a0861feab
Warn when using Xcode 8 without CLT on 10.11
2016-09-16 13:46:59 +10:00
Mike McQuaid
1c5fa19f84
Merge pull request #966 from MikeMcQuaid/keg-lock-constants
...
Use constants for LinkedKegs/PinnedKegs/Locks.
2016-09-15 18:57:04 +01:00
Mike McQuaid
72d10fff0b
Use constants for LinkedKegs/PinnedKegs/Locks.
...
These definitions are scattered throughout the codebase which makes it
hard to refactor them later (my goal is to move them outside of
HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier
movement later.
2016-09-15 18:28:42 +01:00
ilovezfs
1d7aa1fe0b
superenv: help Autotools with 10.12 SDK on 10.11
...
The GNU Autotools tests for whether a given symbol is defined are
reliably coming to incorrect conclusions on 10.11 with the 10.12 SDK
in Xcode 8. This overrides its decisions by forcing the right answer
in superenv using ac_cv_func_* environment variables and setting them to
"no" on 10.11. The list of problematic symbols is from
grep 'weak$os10.11' MacOSX.sdk/usr/lib/system/libsystem_c.tbd
2016-09-15 03:34:43 -07:00
Mike McQuaid
b42f646cec
extend/pathname: fix Rubocop warnings.
2016-09-13 07:57:15 +01:00
Mike McQuaid
6a81782753
extend/os/mac/development_tools: fix Rubocop warnings.
2016-09-13 07:57:09 +01:00
Mike McQuaid
df5605fa01
extend/fileutils: fix Rubocop warnings.
2016-09-13 07:57:07 +01:00
Mike McQuaid
fb3bec8d70
extend/ENV/super: fix Rubocop warnings.
2016-09-13 07:57:06 +01:00
Mike McQuaid
c3dab72e37
extend/ENV/std: fix Rubocop warnings.
2016-09-13 07:57:04 +01:00
Mike McQuaid
fe661a809c
extend/ENV/shared: fix Rubocop warnings.
2016-09-13 07:57:02 +01:00
Mike McQuaid
17a7c23881
extend/ARGV: fix Rubocop warnings.
2016-09-13 07:56:57 +01:00
Dominyk Tiller
aa3ce859a7
diagnostic: tweak check_xcode_up_to_date messaging
2016-09-10 16:30:22 +01:00
Mike McQuaid
d1ba4f44c0
Merge pull request #833 from DomT4/death_by_xcode
...
xcode: die unless Xcode/CLT up-to-date on prerelease macOS
2016-09-07 09:51:06 +01:00
Mike McQuaid
f1cc1265af
Refactor MacOS check_development_tools usage.
...
Better use the abstraction layer so e.g. Linux could have similarly
fatal checks for these things.
2016-09-07 09:11:06 +01:00
Tim D. Smith
7303a55cc0
Merge pull request #866 from tdsmith/audit-libressl
...
Catch system libressl in openssl audit as well
2016-09-05 14:25:51 -07:00
Tim D. Smith
a4b4b9cd90
Catch LibreSSL libtls as well
...
Update the description to reflect that we may be talking about either crypto library and neither is okay. :)
2016-09-04 16:28:51 -07:00
Mike McQuaid
dfcbefff73
Merge pull request #201 from gregory-nisbet/feature-env-shells
...
--env: support more shells, allow explicit shell selection
2016-09-04 21:23:33 +01:00
Tim D. Smith
bf18808930
Catch system libressl in openssl audit as well
...
The regex didn't match libcrypto.35.dylib, and it should have.
2016-09-03 22:13:09 -07:00
Dominyk Tiller
1408b5ffd4
diagnostic: add strict_development_tools_checks
2016-08-30 03:54:24 +01:00
Markus Reiter
fa19447a2d
Merge pull request #793 from reitermarkus/refactoring-pathname
...
Merge Cask’s `Pathname` extension with Homebrew’s.
2016-08-24 12:32:17 +02:00
Misty De Meo
e93771ae07
no_weak_imports: call ENV.append, not .add
2016-08-24 16:20:13 +10:00
Markus Reiter
85635a1e19
Merge Cask’s Pathname
extension with Homebrew’s.
2016-08-24 00:43:32 +02:00
Mike McQuaid
602fb0e575
Make -no_weak_imports opt-in.
...
The experiment to add `-no_weak_imports` unconditionally has been a bit
of a failure. It's broken more than it's fixed and I don't think we can
have this as a default for Xcode 8.
Add `ENV.no_weak_imports` to be used by formulae authors and make
`ENV.no_weak_imports a no-op (for now).
We may reconsider this behaviour in future.
2016-08-22 10:39:38 +01:00
Mike McQuaid
893c80d3ba
Merge pull request #741 from tdsmith/weak-imports-opt-in
...
Add permit_weak_imports directive
2016-08-19 16:19:56 +01:00
Xu Cheng
e423617d77
remove ruby 1.8 compatible codes
2016-08-18 14:35:39 +08:00
Tim D. Smith
9c7f24b84a
Add permit_weak_imports directive
...
Issue Homebrew/homebrew-core#3727 suggested we set -no_weak_imports for
new versions of Xcode to ensure that e.g. building on 10.11 against the
10.12 SDK doesn't result in a situation where autotools thinks symbols
exist that don't actually exist on the current platform.
Further discussion in golang/go#16770 revealed that some packages
require weak imports to build normally.
2016-08-17 23:02:44 -07:00
Tim D. Smith
764390aadd
Document 'w' CCCFG flag
2016-08-17 23:02:38 -07:00
Xu Cheng
c8d814f907
ENV/super: use Hardware::CPU.is_32_bit?
...
`Hardware.is_32_bit?` is deprecated.
2016-08-17 22:13:30 +08:00
Mike McQuaid
27fc2abaca
shared: handle missing Xcode/CLT version.
...
Fixes https://github.com/Homebrew/homebrew-core/issues/3973 .
2016-08-17 13:23:13 +01:00
Mike McQuaid
6878577d12
Merge pull request #721 from MikeMcQuaid/no_weak_imports
...
Set -no_weak_imports linker flag for Xcode 8
2016-08-17 12:22:28 +01:00
Mike McQuaid
f32251d461
extend/fileutils: assume Ruby 2.
2016-08-17 09:19:56 +01:00
Mike McQuaid
5609183567
superenv: add LDFLAGS if disabling weak imports.
2016-08-16 15:26:28 +01:00
Mike McQuaid
53d1000739
ENV/std: add LDFLAGS if disabling weak imports.
2016-08-16 15:26:28 +01:00
Mike McQuaid
b33fe79478
mac/ENV/shared: add check for disabling weak imports.
2016-08-16 15:26:28 +01:00
Mike McQuaid
74d4479246
Add OS X-specific SharedEnvExtension.
2016-08-16 15:26:28 +01:00
Greg Nisbet
9a29a306cf
resolve conflict in diagnostic.rb
2016-08-10 23:19:09 -07:00
Vlad Shablinsky
9754dbada8
Update upgrade/outdated methods for head versions
...
Introduce `--fetch-HEAD` option. Without this option upgrade and
outdated never fetch latest upstream commit to detect if HEAD is
outdated -- tabs are used instead. However, if option is passed,
we fetch commit from upstream, which is more time consuming,
but we can be sure that version is up-to-date or outdated.
2016-08-06 21:25:56 +08:00