598 Commits

Author SHA1 Message Date
Markus Reiter
e024b12d47 Remove os/linux/diagnostic. 2020-08-24 00:22:17 +02:00
Seeker
3379e3b5cf os: add kernel_version 2020-08-19 11:41:30 -07:00
Bo Anderson
e2914ca1aa os/mac/pkgconfig/11.0/sqlite3: bump to 3.32.3 2020-08-19 13:17:02 +01:00
Mike McQuaid
90cf01e245
os/linux: add no-op MacOS.sdk_path method.
Fixes https://github.com/Homebrew/linuxbrew-core/issues/20938
2020-08-17 16:13:28 +01:00
Mike McQuaid
763bf6f699
Use vendored patchelf.rb. 2020-08-11 08:41:31 +01:00
rmnull
043719383b
remove code using patchelf, remove HOMEBREW_PATCHELF_RB var 2020-08-08 06:48:31 +05:30
rmnull
0c2d7659cf
patchelf.rb reading for everyone :) 2020-08-08 06:32:34 +05:30
Markus Reiter
490e503b1b Replace Homebrew.args with Context. 2020-08-06 16:13:14 +02:00
Mike McQuaid
126e4c9df1
Merge pull request #8123 from rmNULL/rm-patchelf-refinements
cleanup Patchelf refinements, update patchelf to 1.2.0 in Gemfile.lock
2020-07-29 11:31:20 +01:00
rmnull
ce2eda5a26
remove PatchELF::Patcher refinements. 2020-07-29 09:38:15 +05:30
Mike McQuaid
6d9e2d444d
Big Sur fixes
- Make missing SDKs message more clear.
- Always refer to Big Sur as 11.0 (even on Intel).
2020-07-28 16:56:55 +01:00
rmnull
e79eeb7560
Bug Fix: Don't search for needed libraries on non DYNAMIC ELFs. 2020-07-26 04:56:21 +05:30
rmnull
f92c7d30c1
let patchelf return nil on blank rpath 2020-07-25 01:07:52 +05:30
rmnull
d607528a5b
introduce ELFShim#rpath, refactor keg_relocate to use the same.
refines PatchELF #runpath, #rpath #soname #interpreter
to return nil.
let Brew hard exits on PatchELF::PatchError.

Co-authored-by: Shaun Jackman <sjackman@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-25 01:07:24 +05:30
Markus Reiter
8d148b1fbc Remove special-casing of MacOS::languages. 2020-07-22 01:09:14 +02:00
rmnull
2ca03610e2
update patchelf.rb to '~> 1.1' in Gemfile. Replace instance variable access with call to .elf.
patcher.elf was introduced in gem release v1.1.0.
2020-07-14 04:30:29 +05:30
Jonathan Chang
76709d82c5 Fix brew style. 2020-07-13 23:24:14 +10:00
Jonathan Chang
9879df4ece
Merge pull request #7940 from Bo98/languages
os/mac: silence AppleLanguages error, fallback to system prefs
2020-07-11 22:36:32 +10:00
Claudia
374c734d9b
Make Hardware.oldest_cpu depend on architecture
Starting with Xcode 12 Beta 2, builds that used to work on Apple Silicon
now break due to `Hardware#oldest_cpu` returning `:nehalem` [1].

This commit is the first in a series of improvements to
`Hardware#oldest_cpu`. It resolves the Xcode 12 Beta 2 issue for now.

[1]: https://github.com/Homebrew/brew/issues/7857#issuecomment-655536261
2020-07-08 20:59:10 +02:00
Bo Anderson
bb0be60dea os/mac: silence AppleLanguages error, fallback to system prefs 2020-07-08 15:47:15 +01:00
Bo Anderson
9297b18aa6 Add SDK availability diagnostic 2020-07-01 16:07:14 +01:00
rmnull
35328ed535
[draft] refactoring keg_relocate to use ELFShim#interpreter instead of .with_interpreter? 2020-06-26 05:34:41 +05:30
Mike McQuaid
ac0665daff
Refer to default branch in links with HEAD
Anywhere we can use `blob/master` we can use `blob/HEAD` instead. This
will make life easier if we ever rename our default branch in future
(once/if Git and GitHub provides the necessary tooling to do so).
2020-06-25 11:38:40 +01:00
Mike McQuaid
85425691c4
Merge pull request #7810 from sjackman/big-sur
OS::Mac::Version: Change 11.00 to 11.0
2020-06-24 08:59:25 +01:00
Mike McQuaid
9a18c90644
Merge pull request #7811 from Bo98/pkgconfig-big-sur
os/mac/pkgconfig: add pc files for Big Sur
2020-06-24 08:59:03 +01:00
Bo Anderson
53f214835d os/mac/pkgconfig: add pc files for Big Sur 2020-06-24 02:20:13 +01:00
Bo Anderson
5d56be52ca os/mac/pkgconfig/10.15/expat: update version to 2.2.8 2020-06-24 02:09:29 +01:00
Shaun Jackman
6051015ac5 OS::Mac::Version: Change 11.00 to 11.0 2020-06-23 13:30:28 -07:00
Bo Anderson
9788735eb2
Merge pull request #7809 from Bo98/macos-version-11
os/mac: fix for major versions other than 10
2020-06-23 18:50:58 +01:00
Bo Anderson
fbf56e27a0 os/mac: fix for major versions other than 10 2020-06-23 16:51:16 +01:00
Mike McQuaid
8a580ae39e
os/mac/xcode: add Big Sur clang versions.
https://github.com/Homebrew/brew/pull/7806#issuecomment-648154860
2020-06-23 15:54:46 +01:00
Mike McQuaid
11c875d747
macOS Big Sur tweaks
- output warnings when running on ARM
- require Xcode 12
- use 11.0 as the version number
2020-06-23 14:11:05 +01:00
Shaun Jackman
de6fe2edc1 Revert "Enable patchelf.rb for HOMEBREW_DEVELOPERs."
This reverts commit 6106bfc4976dff2b03cf3fadbbf92dd1fd9e0f09.

Fix the error:
brew install patchelf
==> Pouring patchelf-0.10.x86_64_linux.bottle.1.tar.gz
Error: cannot load such file -- patchelf
2020-06-22 14:14:33 -07:00
Shaun Jackman
b79e047e12
Merge pull request #7780 from rmNULL/enable-patchelfrb-for-devs
enable patchelf.rb when HOMEBREW_DEVELOPER is set
2020-06-22 13:59:43 -07:00
Shaun Jackman
2e05306b06
Merge pull request #7779 from rmNULL/dont-warn-interp-for-shared-obj
with_interpreter?: Silence "no interpreter found"

Do not warn "no interpreter found" for shared ELF objects.
2020-06-22 12:43:58 -07:00
rmnull
6106bfc497
Enable patchelf.rb for HOMEBREW_DEVELOPERs.
HOMEBREW_PATCHELF_RB is enabled on 2 cases.
1) `HOMEBREW_PATCHELF_RB` is set
2) `HOMEBREW_DEVELOPER` is set , and `HOMEBREW_NO_PATCHELF_RB` is not set.

use `HOMEBREW_NO_PATCHELF_RB` to turn it off for devs.

 Note: When HOMEBREW_PATCHELF_RB and HOMEBREW_NO_PATCHELF_RB both are
    present, it is on
2020-06-23 00:11:50 +05:30
Misty De Meo
8d29e79f7e OS::Mac::Version: add Big Sur 2020-06-22 11:11:51 -07:00
Mike McQuaid
66f781821f
Merge pull request #7785 from vidusheeamoli/resolve-srb-errors
Resolve errors reported by Sorbet
2020-06-22 16:57:10 +01:00
vidusheeamoli
a919ba9ccd srb: resolve error 4012. 18 errors => 13 errors 2020-06-22 20:59:39 +05:30
Mike McQuaid
dd50714d1e
Fix RuboCop failures. 2020-06-22 14:09:33 +01:00
vidusheeamoli
d6e587453e srb: resolve error 4015. 25 errors => 18 errors 2020-06-22 16:33:44 +05:30
rmnull
3f211415ca
don't warn "no interpreter found" for Shared ELF objects. 2020-06-22 01:24:03 +05:30
Bo Anderson
8c21e8b2db
Merge pull request #7705 from Bo98/xcode-11.5
os/mac/xcode: support Xcode 11.5
2020-06-20 02:25:00 +01:00
rmnull
486114282c
In ELFShim, #needed_libraries, #dynamic_elf? and #with_interpreter? check using patchelf gem.
Having HOMEBREW_PATCHELF_RB set in the ENV,
will conditionally install patchelf.rb gem,
use patchelf.rb in the above mentioned methods.
The installed vendored gems are listed in .gitignore
to maintain a clean state.
2020-06-19 21:23:57 +05:30
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
Companion to https://github.com/Homebrew/brew/pull/7698.

Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Bo Anderson
eb3eb209d9 os/mac/xcode: support Xcode 11.5 2020-06-07 20:35:55 +01:00
Mike McQuaid
ef95b59ed4
Remove HomebrewArgvExtension
Fixes #5730
2020-05-23 19:39:11 +01:00
Mike McQuaid
bc27e38f18
Remove ARGV.debug?
Replace with `Homebrew.args.debug?`.

Part of #5730.
2020-05-23 14:38:58 +01:00
Mike McQuaid
95a8217223
Merge pull request #7588 from maxim-belkin/glibc-minimum-version
os/linux/glibc.rb: up minimum glibc version to 2.13
2020-05-18 09:27:29 +01:00
Maxim Belkin
7b08e2252e
os/linux/glibc.rb: up minimum glibc version to 2.13 2020-05-17 20:14:05 -05:00