17707 Commits

Author SHA1 Message Date
Mike McQuaid
bef2765dd7
Merge pull request #4434 from reitermarkus/simplify-sha256
Remove unused `incremental_hash` method.
2018-07-07 13:38:11 +01:00
Afnan Enayet
84b03c5a50
Merge branch 'master' of github.com:Homebrew/brew into update-compiler-docs 2018-07-06 23:45:37 -04:00
Afnan Enayet
133c3a3c0b
Fix typo
* change `MacOS` -> `macOS`
* regenerate manpages
2018-07-06 23:06:41 -04:00
Misty De Meo
de9d462b76 CLT: correct header package bundle ID 2018-07-06 15:18:35 -07:00
Markus Reiter
fcf8cb24fd Remove unused incremental_hash method. 2018-07-06 23:14:34 +02:00
Markus Reiter
e7f950750e Simplify and fix external brew cask command detection. 2018-07-06 22:04:26 +02:00
Claudia
3dbb735f3c
Fix PKG installer environment
This commit solves an issue where the environment handed to
`/usr/sbin/installer` is not the same as the environment used by the
graphical PKG installer.

This is evident in some post-install scripts, e. g. the
`component-10.pkg/Scripts/postinstall` script in the `dymo-label`
cask. The code says:

```
USER_ID=`id -u ${USER}`

launchctl bootstrap gui/$USER_ID /Library/LaunchAgents/com.dymo.dls.webservice.plist
```

The graphical installer will export e. g. `USER=alice`, and
everything works as intended.

However, `brew cask install` does not override `sudo`’s default,
which is `USER=ROOT`. This violates the assumptions in the script.

This commit fixes the issue by configuring `sudo` to override the
following environment variables with the proper user name:

- `LOGNAME`
- `USER`
- `USERNAME`
2018-07-06 09:38:00 +02:00
Mike McQuaid
4840b688e0
Merge pull request #4429 from MikeMcQuaid/linkage-optional-deps
linkage: fix output of optional dependencies.
2018-07-06 08:12:03 +01:00
Afnan Enayet
75d3ca8e6f
Update man pages to reflect prior change
Generate new man pages so that the docs and manpages match up
2018-07-05 21:45:53 -04:00
Afnan Enayet
9579fadad4
Strip trailing whitespaces
This fixes the rubocop offences, which was blocking Travis
2018-07-05 21:33:29 -04:00
Afnan Enayet
72735aef17
Update documentation and generate manpage
* update references in `--cc` flag, using modern gcc examples
* note that issues should not be filed if `--cc` flag is used
* remove reference to `HOMEBREW_CC` as it should not be exposed to users
* generate manpages using `brew man` with these changes
2018-07-05 17:25:19 -04:00
Afnan Enayet
fd84bcbff7
Merge branch 'master' of github.com:Homebrew/brew into update-compiler-docs 2018-07-05 17:23:09 -04:00
Mike McQuaid
9fff177844
Merge pull request #4430 from MikeMcQuaid/handle-build-dep-reqs
formula_installer: correctly handle build dep reqs.
2018-07-05 21:35:38 +01:00
Mike McQuaid
c432dbd505
Merge pull request #4431 from MikeMcQuaid/download-strategy-tar-xf
download_strategy: use tar xf.
2018-07-05 21:35:03 +01:00
Mike McQuaid
d9f90deb7c download_strategy: use tar xf.
The flags and separate `-` aren't required on 10.5 which is the oldest
version of macOS we support (and it looks nicer this way).
2018-07-05 20:58:35 +01:00
Mike McQuaid
139fef8e74 formula_installer: correctly handle build dep reqs.
When a build dependency has a requirement it should be ignored when
checking for valid requirements. This requires calculating the
dependencies for a formula again and checking them when calculating
which requirements should be pruned.
2018-07-05 20:51:44 +01:00
Mike McQuaid
adcef59bd9
Merge pull request #4428 from MikeMcQuaid/llvm-clang-cxx11
extend/ENV: support CX11 for LLVM Clang.
2018-07-05 20:31:26 +01:00
Mike McQuaid
f5fbb74aaf linkage: fix output of optional dependencies.
Check the runtime dependencies from the tab when outputting the
`brew linkage` declared vs. undeclared dependencies.
2018-07-05 20:29:19 +01:00
Mike McQuaid
14364bbaee extend/ENV: support CX11 for LLVM Clang.
Fix some checks for `:clang` which should match for either `:clang` or
`:llvm_clang`. Note that's not every check.
2018-07-05 20:15:57 +01:00
Mike McQuaid
4e70a426d1
Merge pull request #4427 from reitermarkus/download-refactoring
Download refactoring
2018-07-05 18:43:28 +01:00
Markus Reiter
59b3c76ee6 Remove unneeded quiet_safe_system usage. 2018-07-05 11:54:33 +02:00
Markus Reiter
f8b8186fa7 Reorder downloader.cached_location assignment. 2018-07-05 11:54:32 +02:00
Markus Reiter
5e3bc85527 Remove unnecessary Pathname check. 2018-07-05 11:54:32 +02:00
Markus Reiter
e07eddc391 Simplify Hbc::SystemCommand::Result#plist. 2018-07-05 10:54:35 +02:00
Mike McQuaid
15ac935ed6
Merge pull request #4352 from commitay/travis-xcode
travis.yml: update xcode to 9.4
2018-07-05 09:04:00 +01:00
Mike McQuaid
9530af4b57
Merge pull request #4422 from commitay/bottle-cop
bottle_block_cop: remove
2018-07-05 08:44:18 +01:00
Mike McQuaid
11cbcdc3e9
Merge pull request #4424 from reitermarkus/refactor-download-strategies
Refactor staging step for download strategies.
2018-07-05 07:47:25 +01:00
Markus Reiter
abd855bdad Refactor staging step for download strategies. 2018-07-05 02:40:49 +02:00
commitay
d1ca4f4328 docs/Homebrew-and-Python.md: python 3.y 2018-07-05 10:16:12 +10:00
commitay
1d18c24e3c docs/Gems,-Eggs-and-Perl-Modules.md: python 3.y 2018-07-05 10:16:04 +10:00
commitay
e3ec061a3a language/python: python 3.7 2018-07-05 10:16:04 +10:00
alexbostock
296dd5ecb2 Fix format of cask JSON output 2018-07-04 15:08:32 +01:00
alexbostock
7e5addfb22 Add version number to cask JSON option
`$ brew cask info --json=v1 <formula>` instead of `$ brew cask info --json <formula>`
2018-07-04 15:03:31 +01:00
commitay
44873fd4c8 bottle_block_cop: remove 2018-07-04 21:25:43 +10:00
Mike McQuaid
0c38ceb6f6
Merge pull request #4411 from commitay/versioned-no-head-spec
audit: disallow unstable specs for versioned formulae
2018-07-04 09:49:49 +01:00
Mike McQuaid
08cbbfab3e
Merge pull request #4418 from reitermarkus/vcs-strategies
Refactor and fix VCS download strategies.
2018-07-04 09:44:14 +01:00
ilovezfs
319baa751f
Merge pull request #4421 from MikeMcQuaid/set-homebrew-temp
config: handle HOMEBREW_TEMP being unset.
2018-07-04 07:34:18 +01:00
Mike McQuaid
77b429291a
Merge pull request #4417 from woodruffw/ruby-macho-2.0
vendor: ruby-macho 2.0
2018-07-04 07:16:10 +01:00
Mike McQuaid
1424b20a3d config: handle HOMEBREW_TEMP being unset.
This can happen when updating from a previous version of Homebrew.
2018-07-04 07:15:14 +01:00
commitay
a185f3272e audit: disallow unstable specs for versioned formulae 2018-07-04 11:39:11 +10:00
commitay
44a78a12a9
Merge pull request #4344 from commitay/cask-audit-all-appcasts
cask audit: check for devmate and hockeyapp appcasts
2018-07-04 11:13:40 +10:00
Markus Reiter
0d961f5e3a
Merge pull request #4403 from reitermarkus/fixes
Update `Gemfile.lock` and use `Pathname#/`.
2018-07-04 02:59:20 +02:00
Markus Reiter
98bc356a59 Use Pathname#/. 2018-07-04 02:26:36 +02:00
Markus Reiter
6b078e5883 Update Gemfile.lock. 2018-07-04 02:26:36 +02:00
Markus Reiter
74ac070b5c Refactor and fix VCS download strategies. 2018-07-04 02:21:09 +02:00
William Woodruff
df4cf455cf
README: Update version 2018-07-03 12:15:51 -04:00
William Woodruff
bace3ac526
vendor: ruby-macho 2.0 2018-07-03 12:11:19 -04:00
Mike McQuaid
0dcf753666
Merge pull request #4415 from MikeMcQuaid/tmp-cleanup
Cleanup HOMEBREW_TEMP handling
2018-07-03 15:59:44 +01:00
Mike McQuaid
f46e4596c0 Cleanup HOMEBREW_TEMP handling
- Ensure that `HOMEBREW_TEMP` is only displayed in `brew config` when
  it's non-default.
- Attempt to create a missing `HOMEBREW_TEMP` directory rather than
  failing to `realpath`. Note this will still fail on permissions errors
  which is to be expected.
2018-07-03 15:41:33 +01:00
ilovezfs
517bf7ec4d
Merge pull request #4416 from ilovezfs/audit-fix-throttled
audit: exact match throttled formula names
2018-07-03 09:41:40 +01:00