Markus Reiter
276c570c16
Pass individual args explicitly to ENV
extensions.
2020-07-28 02:52:45 +02:00
Markus Reiter
25b3632c4c
Pass args
to ENV
instead of using global args
.
2020-07-25 03:57:43 +02:00
Mike McQuaid
6f1970fd24
Fix more 10.x hardcodings.
2020-06-23 17:10:07 +01:00
Misty De Meo
613c397b34
ENV: SDK can be nil
2020-06-04 17:38:25 -07:00
Bo Anderson
41a666febb
ENV/std: port superenv SDK changes
2020-04-23 18:11:10 +01:00
Bo Anderson
ae6c58c7bc
ENV/super: always set HOMEBREW_SDKROOT for Xcode builds
2020-04-23 11:10:54 +01:00
Bo Anderson
32744e1746
ENV/std: remove space in -isysroot
2020-04-12 14:51:21 +01:00
Bo Anderson
8900e852d6
Revert "ENV/std: withdraw support for Homebrew supplied *.pc files"
...
This reverts commit fa3591681800f9da06cd2d0179a5ef9e63b10729.
2020-04-10 21:47:54 +01:00
Bo Anderson
e8e6592701
ENV/super: don't set PKG_CONFIG
2020-04-10 18:36:18 +01:00
Bo Anderson
e60f071c50
ENV/super: refactor SDK root selection
2020-04-07 17:22:16 +01:00
Mike McQuaid
e2cfc2b50f
Merge pull request #7278 from Bo98/libxml2-10.15.4
...
ENV: don't help include libxml2 on macOS SDK 10.15.4 and later
2020-04-05 16:28:58 +01:00
Bo Anderson
aac3337c64
Merge pull request #7277 from Bo98/sdkroot-pkgconfig
...
shims/mac/super/pkg-config: pass and use HOMEBREW_SDKROOT
2020-04-05 15:35:54 +01:00
Bo Anderson
32497bd511
ENV: don't help include libxml2 on macOS SDK 10.15.4 and later
2020-04-05 15:30:39 +01:00
Bo Anderson
9294bee866
shims/mac/super/pkg-config: pass and use HOMEBREW_SDKROOT
...
Fixes #5068 .
2020-04-04 23:44:29 +01:00
Bo Anderson
fa35916818
ENV/std: withdraw support for Homebrew supplied *.pc files
2020-04-04 15:21:35 +01:00
Bo Anderson
cb6128fc7c
ENV/super: prioritise Xcode if Xcode is a build req
2020-04-03 15:49:04 +01:00
Bo Anderson
99550ff564
shims/mac/super/xcrun: use Homebrew's chosen SDK and DEVELOPER_DIR
...
Fixes #7250 .
2020-04-01 17:34:30 +01:00
Mike McQuaid
1e265247ca
rubocop: apply autofixes.
2020-03-13 21:16:18 +00:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
86f43f79ee
Enable/fix optional Ruby frozen string literal usage
...
Combined with https://github.com/Homebrew/homebrew-test-bot/pull/247
this will test Homebrew's use of frozen strings in CI. After this we
will then enable it for Homebrew developers and eventually all Homebrew
users.
2019-04-19 10:30:41 +09:00
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
...
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Mike McQuaid
170c5493a4
Update deprecations
...
- Add some `odeprecated`
- Make some `odeprecated` now `odisabled`
- Remove `odisabled` code.
- Remove old update migrations
- Remove GCC 4.0 compiler
- Remove Tiger-only code
- Remove 32-bit-only code
- Remove use of LD64
- Remove GCC 4.3 - 4.8 support.
2019-01-08 19:13:46 +00:00
Mike McQuaid
7e13b37495
ENV: default CFLAGS to bottle values.
...
This reduces the deviation in compilation flags on a given OS between
users and between bottling/not bottling to provide a consistent
behaviour for debugging and support.
2019-01-06 21:27:15 +00:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Misty De Meo
6361aa72ae
ENV: use sdk_path_if_needed
2018-08-08 10:45:48 -07:00
Misty De Meo
32678276c7
superenv: do not set SDKROOT
2018-08-08 10:45:48 -07:00
Misty De Meo
160534983f
Allow setting sysroots to a CLT SDK
2018-08-08 10:45:48 -07:00
Maxim Belkin
67ea581e4a
extend/ENV/shared.rb: [new method] append_to_cccfg
...
append_to_cccfg properly appends values to HOMEBREW_CCCFG variable
2018-07-12 12:20:38 -05:00
Maxim Belkin
bb82f05952
Properly append values to HOMEBREW_CCCFG
2018-07-12 12:19:04 -05:00
Shaun Jackman
a618681cf0
superenv: Move macOS-specific files to shims/mac/super/
2018-06-01 09:53:26 -07:00
Shaun Jackman
76bfd0cecb
Add superenv for Linux
2018-05-18 16:58:21 -07:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Shaun Jackman
e5847b652f
extend/pathname: Add os/linux/elf.rb
2017-12-03 16:22:51 -08:00
ilovezfs
15a2ef525f
ENV: don't set MACOSX_DEPLOYMENT_TARGET
...
CMake tries to use Xcode if MACOSX_DEPLOYMENT_TARGET is set but that can
lead to build failures when SDKROOT isn't set. The CMake behavior at
minimum manifests as -isysroot spontaneously being set to the Xcode SDK,
which brew sometimes can't successfully fully unwind with its ENV hacks.
2017-11-18 11:31:08 -08:00
Mike McQuaid
2e1331cbc8
Tweak SDK variables for new Xcode/CLT setup.
2017-11-17 21:35:49 +00:00
Mike McQuaid
ee4172159b
Merge pull request #3377 from maxim-belkin/extend-pathname
...
pathname: new methods and improvements
2017-11-10 17:49:27 +00:00
Maxim Belkin
de0b93f912
pathname: improvements, cleanups, and new methods
...
- atomic_write: close file before renaming to prevent error:
'Device or resource busy'
- ensure_writable: preserve executable bit
- new elf? and dynamic? methods
2017-11-07 14:18:25 -06:00
Mike McQuaid
603d6fd1f5
ENV/super: simplify version checks.
2017-11-05 15:39:43 +00:00
ilovezfs
352a8817e9
superenv: more help for Autotools with 10.13 SDK on 10.12
...
Add fmemopen and open_memstream to the list of ac_cv_func_*=no symbols
for 10.12 with the 10.13 SDK.
2017-09-22 17:10:40 -07:00
ilovezfs
733d485065
superenv: help Autotools with 10.13 SDK on 10.12
...
The GNU Autotools tests for whether futimens and utimensat are available
reliably come to incorrect conclusions on 10.12 with the 10.13 SDK in
Xcode 9. This overrides its decisions by forcing the right answer
in superenv using ac_cv_func_* environment variables and setting them to
"no" on 10.12.
2017-09-21 04:11:34 -07:00
Andrew Yates
9b5a3b80bf
Incorrect - added
...
I added an extra un-wanted - into the pkgconfig path. Now removed
2017-08-07 11:20:56 +01:00
Andrew Yates
365c55573b
Moving /usr/lib/pkg-config to be first
...
Ensuring old functionality still happens and /usr/lib/pkg-config is the first location found in macOS.
2017-08-03 17:22:18 +01:00
Andrew Yates
19cfcc34ef
Adding in "/usr/lib/pkg-config"
...
Moving "/usr/lib/pkg-config" into the pkg-path path
2017-08-03 10:46:12 +01:00
Markus Reiter
2d6ae61314
Re-revert "Fix operator spacing."
2017-06-02 19:22:05 +02:00
ilovezfs
197392b56d
Revert "Fix operator spacing."
2017-06-01 04:06:40 -07:00
Markus Reiter
d34ba7395b
Fix operator spacing.
2017-05-31 19:53:41 +02:00
Mike McQuaid
e50102d91e
ENV: deprecate old methods.
...
These should have been deprecated long ago but we didn’t really have
the necessary framework to do so.
2016-12-30 20:20:13 +00:00
ilovezfs
e26750e112
superenv: treat timingsafe_bcmp as weak on 10.11
...
Xcode 8.1 added timingsafe_bcmp to string.h and libsystem_c.tbd,
and 10.12.1 added it to libsystem_c.dylib, but it is not present in
libsystem_c.dylib on 10.11.6 (15G1108).
It may appear in libsystem_c.dylib in a later 10.11 release or it may
be marked weak on 10.11 in a later Xcode release.
Fixes Homebrew/homebrew-core#6344 .
2016-10-29 03:26:52 -07:00
ilovezfs
88a1b2853a
superenv: more 10.11 clock_gettime Autotools fixes
...
some build systems check ac_cv_search_clock_gettime instead of
ac_cv_func_clock_gettime so the former should also be set to "no"
libev.m4 unsets ac_cv_func_clock_gettime, but if ac_have_clock_syscall
is defined, it will leave ac_cv_func_clock_gettime alone:
http://cvs.schmorp.de/libev/libev.m4?view=markup#l23
2016-09-28 03:31:32 -07:00
Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00