12215 Commits

Author SHA1 Message Date
Mike McQuaid
26e4899fde Deprecate apr requirement.
It's not used on enough configurations now that there's little point in
keeping it around. See e.g. `:autoconf` for prior art.
2016-10-12 15:37:33 +01:00
Andrew Janke
dc4ab8fd26 doco: note 10.9 is now best-effort support 2016-10-12 07:49:50 -04:00
Mike McQuaid
16793781b3 Merge pull request #1269 from MikeMcQuaid/keg-relocate-text-executable-files
keg_relocate: relocate text_executable? files.
2016-10-12 12:06:56 +01:00
Mike McQuaid
a812e95417 Merge pull request #1227 from DomT4/apr
apr_requirement: use Homebrew's Apr for Sierra
2016-10-12 11:38:57 +01:00
Mike McQuaid
2e306bcde0 keg_relocate: relocate text_executable? files.
This was omitted from #1258, incorrectly fixed in #1267, reverted in
 #1268 and re-applied in this commit.
2016-10-12 11:35:37 +01:00
Mike McQuaid
5e90c5a7a4 Merge pull request #1268 from Homebrew/revert-1267-perf/keg-text-executable
Revert "keg_relocate: left out text_executable? check in #1258"
2016-10-12 11:30:28 +01:00
Mike McQuaid
02c567cb12 Revert "keg_relocate: left out text_executable? check in #1258" 2016-10-12 11:29:33 +01:00
Mike McQuaid
784b71cb02 Tweak style. 2016-10-12 11:18:14 +01:00
Josh Hagins
72f9515e9b Merge pull request #1267 from jawshooah/perf/keg-text-executable
keg_relocate: left out text_executable? check in #1258
2016-10-12 04:54:12 -04:00
Josh Hagins
6cecc4c03e keg_relocate: left out text_executable? check in #1258 2016-10-12 04:02:47 -04:00
Mike McQuaid
01a92dd94e Merge pull request #1262 from MikeMcQuaid/warn-repo-cellar
brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar
2016-10-12 08:45:54 +01:00
Josh Hagins
af78b64d5c Merge pull request #1258 from jawshooah/perf/keg-batch-text-files
keg_relocate: run /usr/bin/file in batches
2016-10-12 03:42:22 -04:00
Mike McQuaid
7a3ba92324 Merge pull request #1261 from MikeMcQuaid/tweak-repo-sandbox
postinstall: allow write access to cellars in repository.
2016-10-12 08:38:13 +01:00
Markus Reiter
1a01a4d42d Merge pull request #1264 from reitermarkus/single-language-audit
Allow auditing of a single language of a cask.
2016-10-12 08:18:35 +02:00
Josh Hagins
d8a6863283 keg_relocate: use xargs to batch file arguments 2016-10-11 21:19:08 -04:00
Markus Reiter
4a1dddf527 Merge pull request #1265 from reitermarkus/fix-cmd-exception
Fix CaskCommandFailedError.
2016-10-11 19:40:01 +02:00
Markus Reiter
bb3c689371 Fix CaskCommandFailedError. 2016-10-11 18:27:01 +02:00
Markus Reiter
9eaf221885 Allow auditing of a single language of a cask. 2016-10-11 15:10:12 +02:00
Mike McQuaid
04ccba5489 Merge pull request #1260 from alyssais/tab_dependency_default
tab: don't interpret unknown deps as no deps
2016-10-11 09:58:45 +01:00
Mike McQuaid
981cac2a2e brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar
If you’re using a /usr/local prefix but e.g. /usr/local/homebrew/Cellar
then you’ll miss out on most binary packages for no good reason so warn
people of that.
2016-10-11 09:37:37 +01:00
Mike McQuaid
58d998e208 postinstall: allow write access to cellars in repository.
If HOMEBREW_CELLAR (or HOMEBREW_PREFIX) are children of
HOMEBREW_REPOSITORY it’s important to deny write to the repository and
enable write to the Cellar/prefix afterwards.
2016-10-11 09:36:20 +01:00
Alyssa Ross
cd615acd5f tab: don't interpret unknown deps as no deps 2016-10-11 09:00:39 +01:00
Markus Reiter
6be6ce33e0 Merge pull request #1245 from reitermarkus/fix-cask-path-for-query
Fix getting cask path for queries.
2016-10-10 23:33:51 +02:00
Yoshimasa Niwa
d51cd15e0c Create caskroom without sudo in writable parent.
In case the parent directory of Caskroom is writable for the user, we
don't need to use `sudo` to execute commands.

Make a generic method to run commands that has an option to switch sudo
so that we can run commands with and without sudo.
2016-10-10 11:17:07 -07:00
Mike McQuaid
bb96fd7c42 Merge pull request #1255 from akirk/patch-1
brew.sh: allow --prefix to be run as root without warning
2016-10-10 16:56:49 +01:00
Josh Hagins
9ff22c7e29 Merge pull request #1257 from alyssais/docs_wiki
Update URL in qualified_token comment
2016-10-10 10:30:36 -04:00
Alyssa Ross
6c5b8f0f5e Update URL in qualified_token comment
The homebrew/homebrew wiki no longer exists.
2016-10-10 14:46:00 +01:00
Alex Kirk
7502c85698 Don't display root warning for --prefix 2016-10-10 14:25:07 +02:00
Yoshimasa Niwa
d00f35b8c4 FIX: cask changes /usr/local ownership recursively
Relatively old code in Hbc::Caskroom recursively changes the ownership
of the directory where the Caskroom directory exists, that changes
entire files in /usr/local to user:staff if Homebrew setup with default
configuration.
This is really dangerous because it's easy to trigger (just simply type
`brew cask something` by following some installation documentation.)

This patch removes entire `chown` with -R option and make the logic
simply creating Caskroom directory with default Homebrew directories
ownership and permission.
2016-10-09 13:27:31 -07:00
Mike McQuaid
0546d90e3d Merge pull request #1251 from MikeMcQuaid/diagnostic-no-write-tmp
diagnostic: handle HOMEBREW_TEMP mktmpdir failure.
1.0.7
2016-10-09 15:26:31 +01:00
Markus Reiter
8ded5b690f No need to check if Encoding is defined. 2016-10-09 15:34:12 +02:00
Markus Reiter
67a7d1a64a Fix getting cask path for queries. 2016-10-09 15:34:12 +02:00
Mike McQuaid
21ff82be7f diagnostic: handle HOMEBREW_TEMP mktmpdir failure.
Fixes #1223.
2016-10-09 14:33:04 +01:00
Mike McQuaid
0c193c308e Merge pull request #1241 from reitermarkus/deprecation-warning
Comment out `license` stanza deprecation warning.
2016-10-09 14:24:55 +01:00
Mike McQuaid
6b04e96ea9 Merge pull request #1249 from Homebrew/revert-1204-migrate-a-formula-to-multiple-versions-docs
Revert "Migrate a Formula to Multiple Versions: add docs."
2016-10-09 13:56:36 +01:00
Mike McQuaid
2bb527ede2 Revert "Migrate a Formula to Multiple Versions: add docs." 2016-10-09 13:56:18 +01:00
Mike McQuaid
d8c500cb4c Merge pull request #1204 from MikeMcQuaid/migrate-a-formula-to-multiple-versions-docs
Migrate a Formula to Multiple Versions: add docs.
2016-10-09 12:57:30 +01:00
ilovezfs
f71e4a7e0e Merge pull request #1246 from ilovezfs/glide_home-cleanup
cleanup: remove GLIDE_HOME cache directories
2016-10-08 17:40:08 -07:00
ilovezfs
5efb158860 cleanup: remove GLIDE_HOME cache directories
This is needed since some formulae now set

  ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"
2016-10-08 10:05:04 -07:00
Mike McQuaid
1b677ab0ff Merge pull request #1238 from MikeMcQuaid/user-agent-version
brew.sh: improve user agent with no git repo.
2016-10-08 16:40:56 +01:00
Markus Reiter
c78d1e6bb5 Merge pull request #1243 from reitermarkus/rename-deprecation-exception
Rename FormulaMethodDeprecatedError to  MethodDeprecatedError.
2016-10-08 17:16:29 +02:00
Markus Reiter
e6cd175f28 Merge pull request #1242 from reitermarkus/cask-docs
Remove Homebrew Cask documentation.
2016-10-08 16:44:20 +02:00
Markus Reiter
b306f14b97 Rename FormulaMethodDeprecatedError to MethodDeprecatedError. 2016-10-08 13:26:10 +02:00
Markus Reiter
5cae4532bf Remove Homebrew Cask documentation. 2016-10-08 12:10:54 +02:00
Markus Reiter
624a6d0822 Comment out license stanza deprecation warning. 2016-10-08 12:07:12 +02:00
Mike McQuaid
0c3bb42a8a Merge pull request #1239 from reitermarkus/locale-parser
Make parsing locales more robust.
2016-10-07 20:02:30 +01:00
Markus Reiter
fca66e17b3 Make parsing locales more robust. 2016-10-07 20:03:50 +02:00
Mike McQuaid
8e231d8ef5 brew.sh: improve user agent with no git repo.
`Homebrew/>1.0.0 (no git repository) (Macintosh; Intel macOS 10.7.5)...)
reads pretty weirdly in a user agent and I've had complaints that `>`
may be an invalid character in some cases.
2016-10-07 18:02:38 +01:00
Mike McQuaid
7af8cdcb04 Merge pull request #1228 from jonchang/audit
audit: forbid `deprecated_option` in new formulae
2016-10-07 17:08:11 +01:00
Markus Reiter
415e5f1f78 Merge pull request #1235 from abookyun/deprecate-license
Deprecate license
2016-10-07 17:59:37 +02:00