890 Commits

Author SHA1 Message Date
William Woodruff
54aca0d14f
os/mac: Flush RPATHs from Mach-Os when possible 2019-03-10 21:07:04 -04:00
William Woodruff
618c5cd01a
os/mac: Expose rpaths 2019-03-10 21:07:03 -04:00
Michka Popoff
5c068ef82c elf.rb: avoid corrupted elf files
Some elf files like unittest files or memory dumps may not be completely
readable by readelf.

Readelf will fail after the following message:
readelf: Warning: possibly corrupt ELF header - it has a non-zero program header offset, but no program headers

This patches avoid these files when there is a non zero offset but no
program headers
2019-03-09 17:16:36 +01:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier. 2019-02-21 12:55:49 +00:00
Mike McQuaid
28fa8a7c97
version: add CPU tests.
Add a new API inspired by discussion in
https://github.com/Homebrew/homebrew-core/pull/36435 to query if a given
CPU option is supported by a version of macOS.
2019-01-28 19:31:21 +00: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
234e4aec96
Improve use of default_prefix? in tests. 2019-01-21 14:33:56 +00:00
Mike McQuaid
902e058f3e
Merge pull request #5501 from indirect/indirect/future-sdks
Treat future SDKs as "latest"
2019-01-21 10:32:36 +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
Andre Arko
e63eff2201
Treat future SDKs as "latest"
Some SDKs return a number higher than the hard-coded `latest_version`
in this file. With the current `==` check, those higher version numbers
are treated as "not the latest". This prevents machines with
higher-versioned SDKs from being able to use Homebrew.

To resolve that problem, this PR changes the check to `>=`, which allows
machines with higher-versioned SDKs to also use Homebrew to install
packages.
2019-01-08 00:26:22 -08:00
Shaun Jackman
9ef010738f needed_libraries: Fix cannot find section .dynamic
Fix the error `cannot find section .dynamic` when needed_libraries is
called on a static ELF executable.
2019-01-02 12:34:16 -08:00
Jonathan Chang
03597404af os: add version info for kernel and glibc [Linux] 2019-01-01 16:10:43 -08:00
Chongyu Zhu
d66c7ef973
xcode: upgrade for Xcode 10.1 release
The version of CLT package that comes with Xcode 10.1 is 1000.10.44.4,
which could be bumped at a later date since the Software Update is not
reliable at this moment.
2018-11-05 12:41:51 +08:00
Mike McQuaid
737b84b54b
brew style --fix fixes. 2018-11-02 17:29:23 +00:00
Mike McQuaid
51af87f85f
Add HOMEBREW_FORCE_HOMEBREW_ON_LINUX
This serves a similar purpose to the HOMEBREW_FORCE_HOMEBREW_ORG
variable but applies to more settings.
2018-10-20 13:58:27 +01:00
EricFromCanada
20167e5f1b Adjust comments to tidy API docs output. 2018-10-18 21:42:43 -04:00
Chongyu Zhu
c6a2e280a2
xcode: fix expected Clang version for CLT with Xcode 10 (10A255) 2018-10-02 02:51:29 +08:00
Mike McQuaid
b94a19af60
xcode: note CLT is now updated in System Preferences.
This should avoid some confusion.
2018-09-30 16:58:53 +01:00
Mike McQuaid
6017e505a4
Merge pull request #4936 from lembacon/mojave-clang-version
xcode: update expected version on High Sierra and Mojave with Xcode 10 (10A255)
2018-09-30 12:21:37 +01:00
FX Coudert
0967c3e549 os/mac: support Mojave, drop El Capitan 2018-09-20 12:52:37 +02:00
Chongyu Zhu
e6b80ae7fd
xcode: update expected version on High Sierra with Xcode 10 (10A255) 2018-09-19 23:30:24 +08:00
Chongyu Zhu
6002fa7f13
xcode: update expected Clang version on Mojave with Xcode 10 (10A255) 2018-09-19 18:46:58 +08:00
Markus Reiter
e9b9ea49a1 Update to RuboCop 0.59.1. 2018-09-17 03:45:59 +02:00
Mike McQuaid
d7eca0b57c
Use Bundler to manage vendor directory
Rather than having to manually keep track of what version each thing in
here is and copy files around by hand on update let's use Bundler's
standalone mode and careful use of `.gitignore` to help us do it.

This means a `bundle update --standalone` will allow us to update all
gems in vendor.

We could consider vendoring other gems this way in future but I'd
suggest only doing this for gems with no dependencies or at least gems
with no native extensions. The only gem this applies to that we
currently use is `ruby-prof` and I'm not convinced it's widely used
enough to warrant vendoring for everyone. Perhaps that's another
criteria: it should be functionality that's used by non-developer
commands and/or normal Homebrew usage.
2018-09-13 15:24:18 +01:00
Shaun Jackman
f6093961ef Add Homebrew::DEFAULT_PREFIX for Linux
The default prefix is /usr/local on macOS
and /home/linuxbrew/.linuxbrew on Linux.
2018-09-11 09:57:08 -07:00
Mike McQuaid
bb5166b3c7
os/mac: also update install on version bumps.
I also just remembered this today so let’s add a comment reminder.
2018-09-06 11:48:13 +01:00
Mike McQuaid
56453bc8f8
os/mac: note installation docs need bumped too.
I noticed these contain a reference to our supported versions so should
be bumped whenever this version is bumped.
2018-09-03 17:00:02 +01:00
Mike McQuaid
80d75bc0d8
Homebrew/.rubocop: tweak rules.
Adjust the rules based on the current codebase. Remove various enable,
disables and default values that are unnecessary. Add more comments
explaining why. Make minor changes needed to enable a few more rules.
2018-09-02 20:15:09 +01:00
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Mike McQuaid
b2bfa6247f
Merge pull request #4678 from sjackman/mdfind
OS::Mac.mdfind: No need to guard on OS.mac?
2018-08-18 12:06:05 +01:00
Dominyk Tiller
2060eb233d
Merge pull request #4676 from DomT4/10xDevTools
10x/Mojave: update dev tool expected versions
2018-08-15 16:40:51 +01:00
Mike McQuaid
3e890c11ad
Merge pull request #4679 from sjackman/os-linux
Warn if os/linux is loaded on generic OS
2018-08-14 08:59:04 +01:00
Shaun Jackman
c480dd39a9 Warn if os/linux is loaded on generic OS 2018-08-13 23:38:48 -07:00
Shaun Jackman
a447548600 OS::Mac.mdfind: No need to guard on OS.mac?
This code is only used on macOS.
2018-08-13 23:37:00 -07:00
Dominyk Tiller
a30eea6ab9
pkgconfig: update 10.14 sqlite version 2018-08-14 05:19:25 +01:00
Dominyk Tiller
1cf2ea79cf
xcode: update expected versions for Mojave 2018-08-14 00:02:19 +01:00
Misty De Meo
eea18a5cb1
MacOS: update sdk_path_if_needed logic 2018-08-08 10:45:48 -07:00
Misty De Meo
b66f2b207e
SDK: minor readability tweaks 2018-08-08 10:45:48 -07:00
Misty De Meo
5765dac86c
Xcode: allow requesting Xcode/CLT SDKs specifically 2018-08-08 10:45:48 -07:00
Misty De Meo
4f8a751579
SDK: allow finding CLT SDK path where present 2018-08-08 10:45:48 -07:00
Misty De Meo
e00720e872
MacOS.sdk_path: prefer Xcode if installed 2018-08-08 10:45:48 -07:00
Misty De Meo
47ce9e04e3
Mac: add sdk_path_if_needed 2018-08-08 10:45:48 -07:00
Misty De Meo
ea84ffc62e
Xcode: adjust separate_header_package? logic 2018-08-08 10:45:48 -07:00
Misty De Meo
8450ffa8ad
OS::Mac: look up CLT SDK on 10.14+ 2018-08-08 10:45:45 -07:00
Markus Reiter
2452b27866 Refactor ErrorDuringExecution. 2018-07-19 16:41:27 +02:00
Dominyk Tiller
be2dd62869
xcode: update expected Clang on 10.14 2018-07-13 10:50:54 +01:00
Mike McQuaid
4ffc8b137b
Merge pull request #4281 from mistydemeo/fix_unparsed_clang_exception
Xcode: fix version detection with unknown clang
2018-07-12 09:35:57 +01:00
Misty De Meo
de9d462b76 CLT: correct header package bundle ID 2018-07-06 15:18:35 -07:00
Misty De Meo
296f3c309e CLT: add checks for the header package 2018-06-13 17:24:32 -07:00