47 Commits

Author SHA1 Message Date
Bo Anderson
dbcc449b14
shims/mac/super/make: use standard exec routines 2023-07-12 23:21:00 +01:00
Carlo Cabrera
9ece93ea49
shims/mac: handle usage of Homebrew make
We have a handful of formulae that use Homebrew `make` to build. Doing
this evades our compiler shims. Let's try to avoid this by allowing our
shims to support usage of Homebrew `make` by calling it as `gmake` in
the formula.
2023-07-12 02:16:32 +08:00
Francois-Xavier Coudert
6067acfd7c compilers: add gcc-13 2023-04-19 11:18:18 +02:00
Francois-Xavier Coudert
a30e27b403 compilers: add gcc-12 2022-04-30 22:05:35 +02:00
Bo Anderson
d23de6c54c
shims: enable cc arg refurbishment for ninja 2022-03-14 17:05:22 +00:00
Carlo Cabrera
bfd88b5625
shims/mac/super: add gnumake symlink
Some builds look for a `gnumake` and execute that instead. This avoids
our shims since macOS provides a `/usr/bin/gnumake`.
2022-01-23 17:10:24 +08:00
Bo Anderson
30b24cf4ad
Use HOMEBREW_CURL universally, including formulae 2021-10-04 02:03:04 +01:00
Bo Anderson
2068ba7063
shims/mac/super/pkg-config: fix shebang 2021-09-20 01:32:02 +01:00
XuehaiPan
43377a3e5e style: fix inconsistent code style for shell scripts by runing brew style --fix 2021-09-16 01:08:02 +08:00
XuehaiPan
c2d5d84b21 Merge remote-tracking branch 'upstream/master' into fix-inconsistent-shell-style 2021-09-16 01:01:49 +08:00
XuehaiPan
3f96d963f7 style: fix inconsistent code style for shell scripts 2021-09-15 14:59:01 +08:00
Bo Anderson
0eba5b29e9
shims/super: shim swiftc 2021-09-15 03:28:31 +01:00
Bo Anderson
86063bae73
shims: set SDKROOT for Swift 2021-09-04 19:45:57 +01:00
Carlo Cabrera
a288029cc9
compilers: add gcc-11
Needed for https://github.com/Homebrew/homebrew-core/pull/74843.
2021-05-02 00:29:01 +01:00
Mike McQuaid
7af68d0f8e
Fix shellcheck failures
A new version of `shellcheck` (I think?) brought us so new warnings and
errors.

To fix:
- pass `--source-path` so we don't need to stop `shellcheck` trying to
  read sourced files every time
- disable some more warnings/errors we don't care about fixing
2021-04-22 13:18:44 +01:00
Mike McQuaid
0ba5a5dde5
shims/mac/super/pod2man: delete.
Bo98 has confirmed this is not needed on Yosemite (the oldest version of
macOS that we can still be run on).
2021-04-21 14:23:11 +01:00
Mike McQuaid
e59f93cf19
Merge pull request #11212 from MikeMcQuaid/pod2man_tweaks
pod2man: further tweak logic.
2021-04-21 13:03:15 +01:00
Mike McQuaid
d3edf6155c
Merge pull request #11196 from hyuraku/remove_HOMEBREW_MAKE
remove HOMEBREW_MAKE
2021-04-21 13:01:21 +01:00
Mike McQuaid
df9ba9512e
pod2man: further tweak logic.
- prioritise the first `pod2man` in the `PATH` if possible. This shim
  was created to handle the case where there isn't one but, if there is,
  we want to allow e.g. using a `pod2man` dependency to override the use
  of the system version
- make `/usr/bin/pod2man` lower priority but still prioritise it over
  a Homebrew-installed `pod2man` that's not in the `PATH` unless it
  doesn't exist.
2021-04-21 12:32:39 +01:00
Mike McQuaid
443bae5522
pod2man: use newer pod2man.
This shim was originally added in
5c973bad7422cf7f335e952a91ddfa2273aa2e4f to workaround a missing
`/usr/bin/pod2man`. It's now unfortunately resulting in using an older
`pod2man` on newer macOS versions.

Instead, let's use `/usr/bin/pod2man` if it's available and, if not,
work backwards to find the newest available version that is available.
2021-04-21 10:51:18 +01:00
hyuraku
40084fcf7e remove HOMEBREW_MAKE 2021-04-21 09:59:15 +09:00
hyuraku
34919c45f2 add comments about ENV 2021-04-20 22:52:07 +09:00
hyuraku
7463023fc7 shims/mac/super/pkg-config: repair style 2021-04-18 21:21:48 +09:00
hyuraku
4e3003b841 shims/mac/super/pod2man: repair style 2021-04-18 19:43:46 +09:00
hyuraku
7f33314e64 shims/mac/super/xcrun: repair style 2021-04-18 19:43:37 +09:00
hyuraku
c0df2460ef shims/mac/super/apr-1-config: repair style 2021-04-18 18:56:46 +09:00
hyuraku
4f6ecd5bf8 shims/mac/super/bsdmake: repair style 2021-04-18 18:56:36 +09:00
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
0c3256ba4c shims/mac/super/ant: repair style 2021-04-18 18:34:16 +09:00
Markus Reiter
c2c93d1cc9
Run shellcheck on cask utils and shim scripts. 2021-04-02 03:03:54 +02: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
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
Nick Morgan
77e063d4a6
Fixing xcode-select --switch command line option 2020-12-16 21:33:20 -05:00
Trung Le
2315f342ed Add shims 2020-05-01 01:17:43 +10: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
FX Coudert
7d014d0565 Support GCC 9 2019-05-03 16:58:11 +02: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
Shaun Jackman
6d90c81a79 Add shims/super/gcc-8 and shims/super/g++-8 2018-12-02 14:13:24 -08:00
Shaun Jackman
a618681cf0 superenv: Move macOS-specific files to shims/mac/super/ 2018-06-01 09:53:26 -07:00