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
9358f678a3
Clear/mask passwords as well as tokens.
2017-11-07 07:54:34 +00:00
Mike McQuaid
2ad1799308
os/mac/diagnostic: fix XQuartz message.
...
Fixes #3434 .
2017-11-07 07:39:10 +00:00
Mike McQuaid
603d6fd1f5
ENV/super: simplify version checks.
2017-11-05 15:39:43 +00:00
Mike McQuaid
8c6defd9cf
diagnostic: simplify version checks.
2017-11-05 15:39:43 +00:00
Mike McQuaid
b69d71edea
system_config: handle new non-string Xcode version
2017-11-05 15:39:43 +00:00
Mike McQuaid
2d5bb029a5
Merge pull request #3387 from MikeMcQuaid/env-std-homebrew-paths
...
ENV/std: fully extend from HOMEBREW_PATH.
2017-10-30 16:09:01 +00:00
Mike McQuaid
ca189437e4
Tweak use of with_env
...
- Use it in more places where it saves code
- Allow using symbolic keys for a cleaner interface
- Use `HOMEBREW_GEM_*` instead of `GEM_OLD_*`
2017-10-29 14:44:43 +00:00
Mike McQuaid
f72aba548d
ENV/std: fully extend from HOMEBREW_PATH.
...
Rather than just re-adding HOMEBREW_PREFIX/bin if it's missing re-add
everything from HOMEBREW_PATH. This works well with or without
environment filtering being enabled but with environment filtering it
ensures that ENV/std just builds on the original user environment.
2017-10-29 13:41:51 +00:00
JCount
224864b149
java_requirement: support prompting users to install legacy Java casks
...
This enhances the Java requirement to support prompting the user
to install the correct legacy Java version via Cask for formulae
that don't yet work with the latest version of Java. Previously,
even if the formula had a strict requirement that a specific,
older version of Java be used, the messaging would tell the user to
`brew cask install java` (i.e. to install the latest version of Java),
which wouldn't actually satisfy the requirement.
2017-10-26 09:57:03 -04:00
Markus Reiter
487bec9570
Move String#undent
to compat
.
2017-10-18 14:39:09 +02:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Mike McQuaid
3a606abaa1
Merge pull request #3229 from BenMusch/check-for-master-no-refactor
...
doctor: Check for branch of core tap (take 2)
2017-10-18 10:59:59 +01:00
Mike McQuaid
dc9ea9c786
Merge pull request #3315 from maxim-belkin/linux-caveats-plist
...
caveats.rb: empty method on Linux
2017-10-18 10:48:19 +01:00
Maxim Belkin
dd9415c8d3
remove sneaky empty line
2017-10-16 12:23:27 -05:00
Maxim Belkin
336fbb5db2
caveats: making plist_caveats macOS-only
2017-10-16 11:15:54 -05:00
Maxim Belkin
5140c741f3
caveats.rb: empty method on Linux
2017-10-13 13:26:14 -05:00
ilovezfs
82afe5d7f7
fileutils: deprecate rake DSL
...
superenv and the `:ruby` requirement make a `rake` DSL unnecessary.
2017-10-13 02:01:28 -07:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Ben Muschol
2d6bd04007
Merge branch 'master' into check-for-master-no-refactor
2017-09-27 16:36:10 -04:00
Ben Muschol
fe5c885da0
Implement changes
2017-09-27 16:32:13 -04:00
ilovezfs
e8da9613fb
Revert "mach: Avoid reopening the file for relocation"
2017-09-27 02:08:23 -07:00
ilovezfs
0831f31e44
Revert "keg_relocate: use correct number of arguments in call to change_install_name"
2017-09-27 02:07:22 -07:00
Steven Peters
fc5b3778cb
keg_relocate: fix call to change_install_name
...
During the changes to macho file relocation refactoring
in #3101 , #3138 , and #3139 ,
the number of arguments to the mach::change_install_name
function changed from 3 to 2, but
there was still an instance of the function being called
with the wrong number of arguments.
2017-09-26 17:30:28 -07:00
William Woodruff
6098998674
Merge pull request #3139 from woodruffw/macho-use-object
...
mach: Avoid reopening the file for relocation
2017-09-25 23:30:42 -04:00
William Woodruff
d618e574fb
mach: Avoid reopening the file for relocation
...
This commit allows the relocation code to perform install name
and dylib ID changes without reopening the file separately.
2017-09-25 17:46:23 -04:00
Mike McQuaid
cf5fdeef1d
Rubocop: manual rule fixes.
2017-09-24 21:23:59 +01:00
Mike McQuaid
01e9ec9a9f
Rubocop: automatic rule fixes.
2017-09-24 21:23:59 +01:00
Mike McQuaid
6b3bb666e8
Merge pull request #3174 from sjackman/popen-options
...
popen: Do not suppress stderr when HOMEBREW_STDERR
2017-09-23 16:31:52 +01:00
Mike McQuaid
d7fbcc6211
Merge pull request #3190 from MikeMcQuaid/curl_https_fix
...
development_tools: fix curl https handling.
2017-09-23 10:58:10 +01: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
Mike McQuaid
0e766d00a5
development_tools: fix curl https handling.
...
`curl` can handle modern certificates _unless_ it is too old. This
broke `brew audit`'s HTTPS detection code.
2017-09-22 16:02:09 +01:00
Mike McQuaid
7d720e8fac
Merge pull request #3164 from MikeMcQuaid/portable-ruby-2.3.3
...
Upgrade vendored Ruby to 2.3.3.
2017-09-21 15:32:41 +01:00
Mike McQuaid
b2b413165f
Upgrade vendored Ruby to 2.3.3.
...
Use this version whenever 2.3.3 isn't installed. Also, remove the Linux
portable Ruby for now until it's built to be the same version.
2017-09-21 14:27:17 +01: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
Shaun Jackman
8bb57187ab
locate: Suppress stderr
...
Suppress the error message:
xcrun: error: unable to find utility "gcc-4.0", not a developer tool or in PATH
2017-09-20 13:25:37 -07:00
Mike McQuaid
ffdda0eb9f
Tweaks for older Mac OS X versions.
...
- `brew update` should try to install `curl` before `git` on older
versions of Mac OS X where it is needed for accessing modern SSL
certificates.
- We don't need an HTTP mirror for `git` because `curl` will already be
installed before it is downloaded.
- Don't recommend GCC on Mac OS X versions where it can't be built with
the default system compiler.
- Start using the Homebrew `curl` on Mac OS X versions where it is
needed as soon as it is installed.
2017-09-16 12:41:08 +01:00
Mike McQuaid
e12d2746b6
os/mac/diagnostic: allow custom Ruby for devs.
...
This avoids `brew doctor` warnings on High Sierra but in general this is
a good idea for future versions and to allow Homebrew developers to test
things out with different versions of Ruby.
2017-09-15 08:06:58 +01:00
Josh Soref
44c56cd9a8
spelling: separated
2017-09-10 16:42:10 +00:00
Josh Soref
08e53870a6
spelling: definitions
2017-09-10 16:31:02 +00:00
ilovezfs
a4c5e64da4
Revert "mach: Avoid reopening the file for relocation"
2017-09-08 12:32:32 -07:00
William Woodruff
a77a1f949a
Merge pull request #3101 from woodruffw/macho-use-object
...
mach: Avoid reopening the file for relocation
2017-09-08 14:30:23 -04:00
Dominyk Tiller
9899a5d0a8
mac/hardware/cpu: recognise Kaby Lake
...
The 2017 MacBook Pro line shipped with Kaby Lake CPUs.
2017-09-05 03:16:18 +01:00
Dominyk Tiller
0cb6307f2d
ENV: move java_cache to compat for future hard deprecation
2017-08-31 21:04:42 +01:00
William Woodruff
18115f0639
mach: Avoid reopening the file for relocation
...
This commit allows the relocation code to perform install name
and dylib ID changes without reopening the file separately.
2017-08-28 19:05:12 -04:00
Viktor Szakats
b44c7a1022
upgrade more urls to https
2017-08-22 10:31:21 +00:00
Mike McQuaid
93051b27d6
formula_cellar_checks: fix broken dylib spacing.
2017-08-08 11:08:35 +01:00
Mike McQuaid
69799d97b1
formula_cellar_checks: remove stray backtick.
2017-08-07 11:48:45 +01:00
Mike McQuaid
0950d1f195
Merge pull request #3017 from MikeMcQuaid/reinstall_broken_bottles
...
formula_cellar_checks: reinstall broken bottles.
2017-08-07 11:45:15 +01:00