8545 Commits

Author SHA1 Message Date
Mike McQuaid
166e33c2ff pull: do fetch after everything else, sleep more.
Use an exponential back-off on the sleep and try the fetch more times.

Hopefully this will mean that we spent less time waiting for Bintray.

Closes Homebrew/homebrew#43240.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-25 16:43:37 +01:00
Daniel Lee Harple
4e5d92dc10 audit: spelling fix
Closes Homebrew/homebrew#43273.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-08-25 08:24:04 -07:00
Baptiste Fontaine
eb93b82cf2 tap-pin: simplify logic 2015-08-25 17:13:37 +02:00
Baptiste Fontaine
86a5d75dff tap-unpin: simplify logic
Closes Homebrew/homebrew#43260.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-25 14:15:38 +02:00
Xu Cheng
1df6e5d331 Formula#file_modfiled?: remove unnecessary git dir check
It's already covered by `$?.exitstatus == 0` in below.
2015-08-25 17:32:39 +08:00
Baptiste Fontaine
e779be1453 update: #each.map is redundant 2015-08-25 09:45:21 +02:00
Tim D. Smith
143709e679 include git sha1 in --version output
HOMEBREW_VERSION doesn't change very often; the repository state is more
interesting.

Closes Homebrew/homebrew#41886.
2015-08-25 00:13:53 -07:00
Dominyk Tiller
b808eed08f formula: use which over locate 2015-08-25 04:18:46 +01:00
Misty De Meo
98bb638f29 Formula#file_modified?: fix for Xcodes without git
Fixes Homebrew/homebrew#43206.
2015-08-24 20:10:53 -07:00
Misty De Meo
cb154116c5 migrator: #each.map is redundant 2015-08-24 19:36:24 -07:00
Alex Dunn
4714818bdf cdimgtools: remove to boneyard
Closes Homebrew/homebrew#41267.

Closes Homebrew/homebrew#43199.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-08-23 10:23:25 -07:00
Xu Cheng
5266ff2739 formula_installer: tweak word 2015-08-23 23:30:14 +08:00
Xu Cheng
27d7244f8c keg: mkpath for lib/gio 2015-08-23 21:43:04 +08:00
Xu Cheng
09c810c7f4 add link_overwrite DSL
Sometimes we accidentally install files outside prefix. After we fix that,
users will get nasty link conflict error. So we create a whitelist here to
allow overwriting certain files. e.g.
  link_overwrite "bin/foo", "lib/bar"
  link_overwrite "share/man/man1/baz-*"

During FormulaInstaller#link, the whitelist conflict files will be
backup into HOMEBREW_CACHE/Backup
2015-08-23 21:43:03 +08:00
Dominyk Tiller
6362b5fdba Formula-Cookbook: wording tweaks 2015-08-22 19:49:20 +01:00
Aldrin Piri
6abf63c99b Formula-Cookbook: document strict audit
Providing specific reference to the --strict option for brew audit.

Closes Homebrew/homebrew#43155.
Closes Homebrew/homebrew#43156.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-22 19:49:19 +01:00
Xu Cheng
9f20679366 formula_installer: fix when bottle pouring when creating new bottle
Formula#bottle_specification always exists, while Formula#bottle only
exists if the bottle is available and compatible.
2015-08-22 14:19:22 +08:00
Xu Cheng
62be981016 use Pathname#executable? directly 2015-08-22 13:21:13 +08:00
Xu Cheng
a88c40b8c8 core file style update 2015-08-22 13:15:33 +08:00
Misty De Meo
3d1f9e0a9c exceptions: change 10.9 Xcode URL 2015-08-21 11:46:39 -07:00
Dominyk Tiller
bef0c9f37f cctools_requirement: quotes nit 2015-08-21 19:29:07 +01:00
Dominyk Tiller
ff8520e61b exceptions: use xcode frontpage 2015-08-21 19:28:05 +01:00
Misty De Meo
727239e12f Merge bottle install without Xcode branch
Merge branch 'bottle_hooks'
2015-08-21 11:04:22 -07:00
William Woodruff
04a0b2aafe Mark TODO in brew doctor (future PR) 2015-08-21 11:02:33 -07:00
William Woodruff
12b25f59cc Only print dep installation notice when deps will be installed 2015-08-21 11:02:33 -07:00
William Woodruff
56795ec1ed Call check_xcode check for CLT, too 2015-08-21 11:02:33 -07:00
William Woodruff
f108d204f7 Add tests for pouring bottle without Xcode
add testball_bottle formula for upcoming bottle unit testing, as well
as bottles directory containing test bottle (and symlinks)
2015-08-21 11:02:33 -07:00
William Woodruff
8793a68ee4 Add no-Xcode documentation for all classes, methods 2015-08-21 11:02:33 -07:00
William Woodruff
1face808f5 Add guards to calls that would trigger Xcode install requests
add guard in Formula#file_modified? to prevent git popup

add guard in Superenv.bin before calling MacOS::Xcode.version

add guard against missing Xcode/CLT in Xcode.uncached_version

return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior

checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well

needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation

MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21 11:02:33 -07:00
William Woodruff
f58506ea6f FormulaInstaller: add prevent_build_flags to eliminate code repetition
remove unneeded definition

change variable in FormulaInstaller.check_build_flags from bf to build_flags
2015-08-21 10:59:35 -07:00
William Woodruff
91e598cf3f Install: add BuildToolsError and BuildFlagsError
Add these new errors, and guards in formula installation and
cmd/{,un,re}install to match, move can_build? to the MacOS module,
flatten conditions, remove redundant can_build? check

reinstate removed (doctor) check
2015-08-21 10:59:09 -07:00
William Woodruff
76dcad7c82 Split compute_and_install_dependencies
This is so so that check_dependencies_bottled can be called when bottles
are being poured; implement check_dependencies_bottled
2015-08-21 10:58:45 -07:00
William Woodruff
85187bf6d3 MacOS: update locate_cctool
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if
xcode is installed, otherwise emit a warning
2015-08-21 10:58:13 -07:00
William Woodruff
8aad523063 Formula_installer: only attempt relocation install once
Check @@attempted for cctools so that we only attempt the relocation
install once, skip cxxstdlib check in cctools to prevent otool
execution prior to installation, skip fixing install names if
relocation is not required
2015-08-21 10:57:48 -07:00
William Woodruff
b46d5de492 Requirements: add CctoolsRequirement
Install it as a dependency unless already satisfied by Xcode.

require cctools_requirement

cctools_requirement should be satisfied by cctools present in opt

add build_env => false to the satify block options in CctoolsRequirement
2015-08-21 10:57:20 -07:00
William Woodruff
4d65b817ec Install: remove check_for_bad_install_name_tool
Until it can be adapted to not call otool on systems w/o XCode/CLT
2015-08-21 10:56:46 -07:00
William Woodruff
dcc394c3f7 add cctools requirement 2015-08-21 10:56:46 -07:00
William Woodruff
dcfac4f571 add install_relocation_tools stub 2015-08-21 10:56:46 -07:00
William Woodruff
ab10ab42fa BottleSpecification: add does_not_need_relocation field
Toggled with does_not_need_relocation method in bottle block.
Also declare needs_relocation? accessors in software/bottle specs.
2015-08-21 10:56:23 -07:00
Xu Cheng
1da2855c0b zsh-completion: add tap-(un)pin
Closes Homebrew/homebrew#43146.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-21 20:08:14 +08:00
Xu Cheng
329358c33c manpage: add doc for tap --list-official and --list-pinned 2015-08-21 20:08:13 +08:00
Xu Cheng
d09d2690ca tap: add --list-pinned 2015-08-21 20:08:13 +08:00
Xu Cheng
ac71386373 test-bot: tap TapDependency recursively
Closes Homebrew/homebrew#43145.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-21 15:17:21 +08:00
Dominyk Tiller
212d0b82fd xcode: update 10.11 clang 2015-08-21 03:10:18 +01:00
Xu Cheng
62d1636144 update: only update renamed when necessary 2015-08-20 20:12:02 +08:00
Vlad Shablinsky
35ef2bc132 update manpages for migrate
Closes Homebrew/homebrew#42801.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 19:55:35 +08:00
Vlad Shablinsky
e4480cf6bf update: add formula renames to report 2015-08-20 19:55:35 +08:00
Vlad Shablinsky
896848dd87 migrator: skip check for same taps if --force 2015-08-20 19:55:35 +08:00
Xu Cheng
fe830e4099 Requirement: support tap formula as default_formula
Closes Homebrew/homebrew#43107.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 17:31:17 +08:00
Xu Cheng
0bce3b3f36 TapDependency: allow passing arbitrary option_name 2015-08-20 17:31:17 +08:00