1115 Commits

Author SHA1 Message Date
Markus Reiter
24f48ae7d9 Use PATH#select. 2017-04-30 21:11:28 +02:00
Markus Reiter
4d5d6a65e3 Rename PATH#validate to PATH#existing. 2017-04-30 21:11:28 +02:00
Markus Reiter
f8ad9d7efd Use PATH where possible. 2017-04-30 21:11:27 +02:00
Markus Reiter
314483f75c Remove Array#to_path_s. 2017-04-30 21:11:27 +02:00
Markus Reiter
3e4fe279b0 Use to_path_s for determine_pkg_config_libdir. 2017-04-30 21:11:27 +02:00
Mike McQuaid
45a7730f61 Fix and remove various TODOs.
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
2017-04-23 15:10:18 +01:00
Mike McQuaid
11acadaa50 Merge pull request #2524 from MikeMcQuaid/more-env-filtering-fixes
Hide sensitive tokens from install/test/post.
2017-04-23 09:45:47 +01:00
Mike McQuaid
64e2e6e862 super: re-add set_cpu_flags.
It's used by ENV.fortran.

Fixes https://github.com/Homebrew/brew/issues/2530
Fixes https://github.com/Homebrew/homebrew-science/issues/5485
2017-04-22 21:56:32 +01:00
Mike McQuaid
d02b4f321d Hide sensitive tokens from install/test/post.
Hide these tokens to avoid malicious subprocesses e.g. sending them
over the network. Also, support using these tokens with environment
filtering and clear `HOMEBREW_PATH` from subprocesses to stop them
sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s
PATH for e.g. `brew doctor` etc.
2017-04-22 16:31:19 +01:00
Mike McQuaid
ba3c46d24f More deprecations.
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
2017-04-22 16:28:07 +01:00
Mike McQuaid
2be7999878 Merge pull request #2274 from rwhogg/fuse-requirement
Port OsxfuseRequirement to Linux
2017-04-20 17:14:42 +01:00
Markus Reiter
d251be1eeb Ensure readline_nonblock returns an UTF-8 string. 2017-04-20 04:47:03 +02:00
Mike McQuaid
3f8722c971 audit: allow skipping audit methods.
Add `--only` and `--except` methods which can be used to selectively
enable or disable audit groups.
2017-04-18 08:17:26 +01:00
Bob W. Hogg
608d72a35f OsxfuseRequirement: Port to Linux 2017-04-15 21:20:09 -07:00
Misty De Meo
944bff4de2 Mac Hardware: provide a more Mac-specific implementation of can_run? 2017-04-15 22:59:55 +08:00
Mike McQuaid
d84655efb9 Merge pull request #2442 from tdsmith/fix-symlink-relocation
Virtualenv relocation fixes
2017-04-05 09:32:52 +01:00
Mike McQuaid
715132642f Revert "keg_relocate: Don't relocate dylib IDs containing metavariables." 2017-04-04 13:29:27 +01:00
Maxim Belkin
573aeff115 Add Skylake to Linux hardware list 2017-04-02 15:27:19 -07:00
Mike McQuaid
a084776f95 diagnostic: also ignore outdated CLT on Travis CI. 2017-04-02 17:24:33 +01:00
Tim D. Smith
2f4eaf26a0 Use extend/OS mechanism for grep args 2017-04-02 09:04:49 -07:00
EricFromCanada
60f6dfea14 update suggested Xcode/CLT download URLs 2017-03-28 11:12:34 -04:00
Mike McQuaid
80e95b684e blacklist: move to missing_formula class instead.
This will allow extending this class so it can be used by more than
just blacklisting.
2017-03-20 18:20:31 +02:00
Mike McQuaid
ff77013f48 Merge pull request #2337 from sjackman/linux-system-config
Add extend/os/linux/system_config.rb
2017-03-17 16:48:51 +02:00
Mike McQuaid
a9cd74de59 Merge pull request #2279 from sjackman/determine_path
determine_path: Fix tests FormulaUnavailableError
2017-03-17 15:57:30 +02:00
Shaun Jackman
0d5a53ba2c Add extend/os/linux/system_config.rb
Report the Linux kernel, OS, and gcc versions.
2017-03-16 17:59:26 -07:00
Viktor Szakats
cc8f029f22 secure urls + remove -k from in-doc curl command 2017-03-14 17:27:11 +00:00
ilovezfs
76db07e1b5 env: make prepend_path ignore system paths
`ENV.prepend_path "PATH", which("emacs").dirname` in the emacs
requirement was causing us to end up invoking /usr/bin/clang instead
of /usr/local/Homebrew/Library/Homebrew/shims/super/clang.
2017-03-11 01:59:50 -08:00
Shaun Jackman
c6cbf9590d linux: Add ARM to CPU.type 2017-03-10 10:30:11 -08:00
Shaun Jackman
31e5ed28d1 determine_path: Fix tests FormulaUnavailableError
Fix the brew tests error:
InstallTests#test_a_basic_install:
FormulaUnavailableError: No available formula with the name "gcc"
Library/Homebrew/formulary.rb:231:in `get_formula'
Library/Homebrew/formulary.rb:259:in `factory'
Library/Homebrew/extend/ENV/shared.rb:287:in `gcc_version_formula'
Library/Homebrew/extend/ENV/super.rb:124:in `determine_path'
Library/Homebrew/extend/ENV/super.rb:44:in `setup_build_environment'
Library/Homebrew/build.rb:87:in `install'
Library/Homebrew/build.rb:201:in `<main>'
2017-03-07 09:03:33 -08:00
Mike McQuaid
45f52f77e5 Merge pull request #2244 from jonchang/java
java_requirement: don't consider macOS Java stub
2017-03-05 15:32:00 +01:00
Mike McQuaid
e26cf3a83f Don't check Subversion HTTPS pre-Sierra.
The system Subversion doesn't handle new certificate authorities (e.g.
Let's Encrypt) well enough for this check to be useful.
2017-03-05 11:42:59 +01:00
Mike McQuaid
960768d8ed mac/java_requirement: avoid adding/removing stub. 2017-03-05 11:26:30 +01:00
Jonathan Chang
ea28c79031 java_requirement: avoid nil in possible_javas 2017-03-02 20:31:55 -08:00
Jonathan Chang
0ca4bd030a java_requirement: don't consider macOS Java stub 2017-03-02 19:45:58 -08:00
Uladzislau Shablinski
84fbcdc913 Merge pull request #2183 from vladshablinsky/questions_mean_bool
ARGV.include? should return boolean
2017-02-28 02:55:40 +03:00
Naoto Kaneko
928eaca267 Merge branch 'master' into exclude-executable-metafiles
Added tests in keg_test and pathname_test was
moved into keg_spec and pathname_spec.
2017-02-27 14:23:53 +09:00
Uladzislau Shablinski
be8a0b3299 ARGV.include? should return boolean 2017-02-26 13:36:20 +03:00
Naoto Kaneko
56a0afe579 Extend #ds_file? in Pathname 2017-02-24 17:44:18 +09:00
Markus Reiter
9dda84ad6b Add integration test helper methods. 2017-02-23 09:23:22 +01:00
William Woodruff
ebb2b3aa6b Merge pull request #2036 from woodruffw/rust-hack
keg_relocate: Don't relocate dylib IDs containing metavariables.
2017-02-21 15:02:54 -05:00
Mike McQuaid
ed7290abb4 Merge pull request #1948 from sjackman/gnu-gcc
gcc_version_formula: Use gcc@4.x rather than gcc4x
2017-02-21 18:06:54 +00:00
Bob W. Hogg
e0d5afc237 java_requirement: Make macOS overrides extend Requirement
This doesn't actually seem to make that much difference,
but it is at least consistent with the main class body and with
the Linux overrides.
2017-02-20 19:19:26 -08:00
Mike McQuaid
07a3d43de4 Merge pull request #2057 from JCount/install-force-fix
ARGV: add missing "--force" arg to formula_install_option_names
2017-02-20 11:49:36 +00:00
Mike McQuaid
fe4b2e97a1 Merge pull request #1632 from rwhogg/make-java-req-portable
java_requirement: port to Linux and refactor
2017-02-20 11:04:12 +00:00
William Woodruff
0f89f6520e
keg_relocate: Don't relocate dylib IDs containing metavariables. 2017-02-19 19:51:27 -05:00
Mike McQuaid
0c4eb95b9f diagnostic: strip trailing whitespace. 2017-02-19 15:39:52 +00:00
JCount
e84b3eaf48 ARGV: add missing "--force" arg to formula_install_option_names 2017-02-18 23:37:37 -05:00
Mike McQuaid
398289c72c diagnostic: fix typo. 2017-02-17 22:03:04 +00:00
Mike McQuaid
3678d60a28 diagnostic: detail TRAVIS opt-out reasoning. 2017-02-17 21:53:30 +00:00
Mike McQuaid
6ac0de1b40 Revert "Skip Xcode outdated check on CircleCI" 2017-02-17 21:27:40 +00:00