152 Commits

Author SHA1 Message Date
hyuraku
748bc3bf8e shims/mac/super/ruby: repair style 2021-04-18 18:56:20 +09:00
hyuraku
db9960e08a shims/mac/super/mig: repair style 2021-04-18 18:45:10 +09:00
hyuraku
d4f13908cc shims/mac/super/make: repair style 2021-04-18 18:44:59 +09:00
hyuraku
b910cf84b1 shims/mac/super/scm/git: repair style 2021-04-18 18:34:36 +09:00
hyuraku
0c3256ba4c shims/mac/super/ant: repair style 2021-04-18 18:34:16 +09:00
hyuraku
538c65d6f8 shims/utils.sh: repair style 2021-04-18 16:44:53 +09:00
Markus Reiter
c2c93d1cc9
Run shellcheck on cask utils and shim scripts. 2021-04-02 03:03:54 +02:00
Bo Anderson
71703add17
shims/super/cc: don't refurbish ld.gold args
This makes the behaviour consistent to regular BFD `ld`.
2021-03-29 01:42:41 +01:00
Liyang HU
ab614ed4ce -Library/Homebrew/shims/mac/super/sed: causes more problems than what it purports to fix
Mountain Lion isn't even supported by Homebrew anymore.

This shim hails back to Homebrew/legacy-homebrew#13787 @MikeMcQuaid

This gets picked up by `configure` scripts (which is fine during builds),
but occasionally gets [baked into binaries][fixincl], triggering:

    Error: Files were found with references to the Homebrew shims directory.

This in turn causes tap maintainers to just override `SED=/usr/bin/sed` for
`configure`, which doesn't always work properly: osx-cross/homebrew-avr#230

Other instances:

 * https://stackoverflow.com/questions/40357246/usr-local-library-homebrew-shims-super-sed-no-such-file-or-directory
 * https://github.com/laruence/yaconf/issues/17
 * https://github.com/Amar1729/homebrew-formulae/issues/1
 * https://blog.logical-dice.com/articles/wp/295

[fixincl]: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=fixincludes/fixincl.tpl;h=3d70cabc7fd6dd0e63033e6523fac1dca01b285a;hb=HEAD#l42
2021-03-06 21:36:50 +00:00
Bo Anderson
d625f91d3c
shims/scm/git: fix unintended backtick usage 2021-03-02 17:07:02 +00:00
Bo Anderson
a3ed481b9e
Revert "Revert "shims/mac/super: add ruby shims to set SDKROOT""
This reverts commit fe992cab2b943269e39e8f9f5830f4983c440e8b.
2021-03-02 17:06:05 +00:00
Mike McQuaid
fe992cab2b
Revert "shims/mac/super: add ruby shims to set SDKROOT" 2021-03-02 15:11:14 +00:00
Bo Anderson
7e75a49b77
shims/mac/super: add ruby shims to set SDKROOT 2021-02-24 12:48:07 +00:00
danielnachun
b2094065fb cc: prepend gcc libs to args when gcc is a dependency 2021-02-18 16:15:28 -08:00
danielnachun
c7f337177e cc: prepend gcc libs to args when gcc is a dependency 2021-02-15 12:12:18 -08:00
EricFromCanada
6fc116318e fixes for grammar and wording 2021-01-26 16:19:47 -05:00
Seeker
b58571a90b shims/super/cc: add CXX_REGEX constant 2021-01-12 13:49:36 -08:00
Seeker
0f2ed88f9f shims/super/cc: require English 2021-01-12 13:49:33 -08:00
Seeker
1d576d2754 shims/super/cc: fix most style errors 2021-01-08 12:15:55 -08:00
Mike McQuaid
dc072afdb1
rubocop: add shim and command.
Add a shim and a command that can be used to easily add a single
directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it
automatically install, configure and run `rubocop` so you can use it
for in-editor integrations.
2021-01-07 13:27:17 +00:00
Misty De Meo
2a33de7a10
superenv: filter out /usr/local on ARM if necessary 2021-01-04 20:57:16 -08:00
Nick Morgan
77e063d4a6
Fixing xcode-select --switch command line option 2020-12-16 21:33:20 -05:00
EricFromCanada
3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
Mike McQuaid
f8091a4d51
shims/scm: handle missing Subversion on Catalina.
Fixes https://github.com/Homebrew/brew/issues/7781
2020-06-24 10:37:36 +01:00
Mike McQuaid
6f1970fd24
Fix more 10.x hardcodings. 2020-06-23 17:10:07 +01:00
Trung Le
378906862f Update cc shim 2020-05-01 01:31:57 +10:00
Trung Le
2315f342ed Add shims 2020-05-01 01:17:43 +10:00
Bo Anderson
fb65d5a1f8 shims/super/cc: relax restrictions with -Xclang 2020-04-24 00:29:02 +01:00
Bo Anderson
61bac2595f shims/super/cc: allow -Werror=implicit-function-declaration 2020-04-15 11:10:25 +01:00
Bo Anderson
8f12a34ce0 shims/mac/super/xcrun: unset rather than emptying DEVELOPER_DIR 2020-04-08 09:32:29 +01:00
Bo Anderson
692b3e5a7b shims/mac/super/pkg-config: fix macOS <=10.13 compatibility
Fixes #7290.
2020-04-05 22:11:31 +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
1a277de494 shims/mac/super/xcrun: set DEVELOPER_DIR less often 2020-04-03 09:47:24 +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
Bo Anderson
b4ff330ac1 shims/super/cc: remove isysroot space to fix cpp
Fixes #5153
2019-11-16 15:07:11 +00:00
Jonathan Chang
7ddc185b35 Fix various typos 2019-08-19 16:12:34 +10:00
FX Coudert
7d014d0565 Support GCC 9 2019-05-03 16:58:11 +02: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
ef2e297d3b
Disable RubyGems by default.
This speeds up all Ruby invocations where we don't need RubyGems by
around 10%. Where we do need RubyGems: include it manually.
2019-04-18 17:45:03 +09:00
Win Treese
04cb8f2a78 Fix regexp to allow multiple digits in Mac OS minor version.
The regular expression check for the -mmacosx-version-min value only
looked at a single digit in the minor version number, so it did not
compare correctly if the option was setting the minimum version
to (say) 10.11.
2019-01-24 16:30:00 -05: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
FX Coudert
2c09c0e0f4 shims/super/cc: Do not remove -Xpreprocessor argument 2019-01-02 14:29:36 +01:00
Shaun Jackman
b40849421c shims/super/cc: Add HOMEBREW_CACHE to white list
Compiling rust projects requires -I$HOMEBREW_CACHE/cargo_cache/...
2018-12-10 12:33:54 -08:00
Shaun Jackman
6d90c81a79 Add shims/super/gcc-8 and shims/super/g++-8 2018-12-02 14:13:24 -08:00
EricFromCanada
9e4fb40f92 docs: update descriptions of git- and curl-related vars
Note that the `HOMEBREW_FORCE_BREWED_` vars are automatically set if the system `git` and `curl` are too old. Drop mention of `HOMEBREW_GIT` which isn't user-settable.
2018-10-26 23:47:59 -04:00
Mike McQuaid
25249f0114
shims/super/cc: detect High Sierra differently.
Don't rely on `RUBY_PLATFORM`'s kernel version as it's the machine that
Ruby was built on (10.5) for portable ruby.
2018-09-20 13:49:10 +01:00
FX Coudert
481ffcf4e1 super/cc: bump -mmacosx-version-min on High Sierra and later 2018-09-20 10:37:35 +02:00
Xu Cheng
6aa7b47ae1
scm shim: handle edge case
Since #4748 `HOMEBREW_GIT` is set by the `brew.sh`, whose value is default to be `git`.
As a result, it completely bypasses the logic of the shims/scm/git.

This fixes the issue by checking whether `HOMEBREW_GIT` and
`HOMEBREW_SVN` are set to be `git` and `svn` respectively.

Fixes #4825.
2018-09-05 16:01:36 +08:00
Mike McQuaid
2086e3c9c4
super/cc: fix -mmacosx-version-min on Mojave.
It fails to accept any version < 10.6.
2018-09-03 20:49:01 +01:00
Mike McQuaid
9a84dbae71
shims/linux/make: match Linuxbrew shim. 2018-08-24 08:57:57 +01:00