language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
Homebrew
brew
b0f188c2f50427e14825b2cc30a81924618b17a2.json
formula_installer: fix quotation mismatch Closes Homebrew/homebrew#46176. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/formula_installer.rb
@@ -134,7 +134,7 @@ def check_install_sanity dep.installed? && !dep.keg_only? && !dep.linked_keg.directory? end raise CannotInstallFormulaError, - "You must `brew link #{unlinked_deps*" "}' before #{formula.full_name} can be installed" unless unlinked_deps.empty? + "You must `brew l...
false
Other
Homebrew
brew
aeb8aad1e046ad63886a77af3c3b234c83fae50c.json
brew: ensure full path for HOMEBREW_RUBY_PATH
bin/brew
@@ -31,7 +31,7 @@ if [ -z "$HOMEBREW_RUBY_PATH" ]; then if [ "$BREW_SYSTEM" = "darwin" ]; then export HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby" else - export HOMEBREW_RUBY_PATH="ruby" + export HOMEBREW_RUBY_PATH="$(which ruby)" fi fi
false
Other
Homebrew
brew
6f5307fbd91670ac9395a4190a83e7d82211379d.json
keg_relocate: fix relocation of frameworks When fixing references to regular dylibs, it is sufficient to search for a file with the same base name, e.g., `libpoppler.56.dylib`. However, if the broken reference is to a framework, we also have to take into account preceding path components to find a suitable match. Fram...
Library/Homebrew/keg_relocate.rb
@@ -130,7 +130,7 @@ def fixed_name(file, bad_name) "@loader_path/#{bad_name}" elsif file.mach_o_executable? && (lib + bad_name).exist? "#{lib}/#{bad_name}" - elsif (abs_name = find_dylib(Pathname.new(bad_name).basename)) && abs_name.exist? + elsif (abs_name = find_dylib(bad_name)) && abs_name.e...
false
Other
Homebrew
brew
11a421948d43210451a536fb40b8c10b838ff8c6.json
test-bot: remove email support.
Library/Homebrew/cmd/test-bot.rb
@@ -9,7 +9,6 @@ # --skip-setup: Don't check the local system is setup correctly. # --skip-homebrew: Don't check Homebrew's files and tests are all valid. # --junit: Generate a JUnit XML test results file. -# --email: Generate an email subject file. # --keep-old: Run brew bottle --keep-old to...
false
Other
Homebrew
brew
3a68b915ebad687f0044d9bc1d81e0fa9ad40745.json
Stdenv: add note on possible future deprecation Closes Homebrew/homebrew#46043. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/extend/ENV/std.rb
@@ -1,6 +1,7 @@ require "hardware" require "extend/ENV/shared" +# TODO: deprecate compiling related codes after it's only used by brew test. # @private module Stdenv include SharedEnvExtension
false
Other
Homebrew
brew
14af3e35155c5a8c9035b24773dc5858cca6b01b.json
audit: add godep and sphinx-doc to build time deps Closes Homebrew/homebrew#46031. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/audit.rb
@@ -121,12 +121,14 @@ class FormulaAuditor boost-build bsdmake cmake + godep imake intltool libtool pkg-config scons smake + sphinx-doc swig ]
false
Other
Homebrew
brew
14fbc8c39e339bbcd2927bc18219c52fbb1898ff.json
improve brew info * Show pinned and keg-only as attributes, where pinned version is shown as well. * Use brackets instead of parentheses to distinguish formula attributes(e.g. keg-only) with spec attributes(e.g. bottled) * Don't show blank line for formula without homepage. * Don't show duplicated keg-only message...
Library/Homebrew/cmd/info.rb
@@ -105,18 +105,13 @@ def info_formula(f) specs << "HEAD" if f.head - puts "#{f.full_name}: #{specs*", "}#{" (pinned)" if f.pinned?}" + attrs = [] + attrs << "pinned at #{f.pinned_version}" if f.pinned? + attrs << "keg-only" if f.keg_only? + puts "#{f.full_name}: #{specs * ", "}#{" [#{attrs * ...
false
Other
Homebrew
brew
0abe554420fd8304537267e1267dbb3071136fc9.json
Update 10.11 pkgconfig files Closes Homebrew/homebrew#45970. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/ENV/pkgconfig/10.11/libcurl.pc
@@ -27,13 +27,13 @@ prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include -supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP" -supported_features="SSL IPv6 libz AsynchDNS NTLM NTLM_WB GSS-API" +supported_protocols...
true
Other
Homebrew
brew
0abe554420fd8304537267e1267dbb3071136fc9.json
Update 10.11 pkgconfig files Closes Homebrew/homebrew#45970. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/ENV/pkgconfig/10.11/libxml-2.0.pc
@@ -5,7 +5,7 @@ includedir=${prefix}/include modules=1 Name: libXML -Version: 2.9.0 +Version: 2.9.2 Description: libXML library version2. Requires: Libs: -L${libdir} -lxml2
true
Other
Homebrew
brew
0abe554420fd8304537267e1267dbb3071136fc9.json
Update 10.11 pkgconfig files Closes Homebrew/homebrew#45970. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/ENV/pkgconfig/10.11/sqlite3.pc
@@ -5,7 +5,7 @@ includedir=${prefix}/include Name: SQLite Description: SQL database engine -Version: 3.8.8 +Version: 3.8.10.2 Libs: -L${libdir} -lsqlite3 Libs.private: Cflags: -I${includedir}
true
Other
Homebrew
brew
0d74967ceb15fe954ca722c11de91326d072fa05.json
Formula.racks: exclude empty rack Fixes https://github.com/Homebrew/homebrew-bundle/issues/121 Closes Homebrew/homebrew#45879. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/formula.rb
@@ -1052,7 +1052,9 @@ def self.each # @private def self.racks @racks ||= if HOMEBREW_CELLAR.directory? - HOMEBREW_CELLAR.subdirs.reject(&:symlink?) + HOMEBREW_CELLAR.subdirs.reject do |rack| + rack.symlink? || rack.subdirs.empty? + end else [] end
false
Other
Homebrew
brew
4d772042f7e16933ec851edd649e613a3fbbfbbe.json
keg_relocate: remove options from Keg#dylib_id_for No longer used since commit 3b0cbe6a56d9133941482a9e2d033ad86cdb5e79. Closes Homebrew/homebrew#45835. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/bottle.rb
@@ -186,7 +186,7 @@ def bottle_formula(f) keg.lock do begin keg.relocate_install_names prefix, Keg::PREFIX_PLACEHOLDER, - cellar, Keg::CELLAR_PLACEHOLDER, :keg_only => f.keg_only? + cellar, Keg::CELLAR_PLACEHOLDER keg.relocate_text_files prefix, Keg::PREFIX_PLACEHOLDER, ...
true
Other
Homebrew
brew
4d772042f7e16933ec851edd649e613a3fbbfbbe.json
keg_relocate: remove options from Keg#dylib_id_for No longer used since commit 3b0cbe6a56d9133941482a9e2d033ad86cdb5e79. Closes Homebrew/homebrew#45835. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/formula_installer.rb
@@ -671,7 +671,7 @@ def install_plist end def fix_install_names(keg) - keg.fix_install_names(:keg_only => formula.keg_only?) + keg.fix_install_names rescue Exception => e onoe "Failed to fix install names" puts "The formula built, but you may encounter issues using it or linking other" @@ -72...
true
Other
Homebrew
brew
4d772042f7e16933ec851edd649e613a3fbbfbbe.json
keg_relocate: remove options from Keg#dylib_id_for No longer used since commit 3b0cbe6a56d9133941482a9e2d033ad86cdb5e79. Closes Homebrew/homebrew#45835. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/keg_relocate.rb
@@ -2,10 +2,10 @@ class Keg PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@".freeze CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@".freeze - def fix_install_names(options = {}) + def fix_install_names mach_o_files.each do |file| file.ensure_writable do - change_dylib_id(dylib_id_for(file, options), fi...
true
Other
Homebrew
brew
8091b33f85c96a93d14de80ce3bfd9c32f8bb58c.json
ruby 1.8: address syntax warnings in Homebrew core Closes Homebrew/homebrew#45849. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/audit.rb
@@ -600,7 +600,7 @@ def audit_text problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\"" end - if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec}/npm/bin] + if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] need_npm = "\#{Formula[...
true
Other
Homebrew
brew
8091b33f85c96a93d14de80ce3bfd9c32f8bb58c.json
ruby 1.8: address syntax warnings in Homebrew core Closes Homebrew/homebrew#45849. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_formula.rb
@@ -33,7 +33,7 @@ def test_any_version_installed? refute_predicate f, :any_version_installed? prefix = HOMEBREW_CELLAR+f.name+"0.1" prefix.mkpath - FileUtils.touch (prefix+Tab::FILENAME) + FileUtils.touch prefix+Tab::FILENAME assert_predicate f, :any_version_installed? ensure f.rack.rm...
true
Other
Homebrew
brew
8091b33f85c96a93d14de80ce3bfd9c32f8bb58c.json
ruby 1.8: address syntax warnings in Homebrew core Closes Homebrew/homebrew#45849. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_migrator.rb
@@ -184,7 +184,7 @@ def test_migrate assert_predicate @new_keg_record, :exist? assert_predicate @old_keg_record.parent, :symlink? - refute_predicate (HOMEBREW_LIBRARY/"LinkedKegs/oldname"), :exist? + refute_predicate HOMEBREW_LIBRARY/"LinkedKegs/oldname", :exist? assert_equal @new_keg_record.real...
true
Other
Homebrew
brew
8091b33f85c96a93d14de80ce3bfd9c32f8bb58c.json
ruby 1.8: address syntax warnings in Homebrew core Closes Homebrew/homebrew#45849. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_pathname.rb
@@ -216,7 +216,7 @@ def test_install_symlink assert_predicate @dst+"bin", :directory? assert_predicate @dst+"bin/a.txt", :exist? assert_predicate @dst+"bin/b.txt", :exist? - assert_predicate (@dst+"bin").readlink, :relative? + assert_predicate((@dst+"bin").readlink, :relative?) end def test...
true
Other
Homebrew
brew
d21c8151d5be4bc9f7f16107201fc163b34a452c.json
rubocop: enforce comma instead of consistent_comma Ref https://github.com/Homebrew/homebrew/commit/b0c21eb9d49eee82263bd1256abb10a3faa6234c.
Library/.rubocop.yml
@@ -126,4 +126,4 @@ Style/DotPosition: # makes diffs nicer Style/TrailingComma: - EnforcedStyleForMultiline: consistent_comma + EnforcedStyleForMultiline: comma
false
Other
Homebrew
brew
0c20957f5bdf93737107e4502aaec498ac0e6ba8.json
test: enable sandbox by default. Closes Homebrew/homebrew#45843. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/test.rb
@@ -40,7 +40,7 @@ def test args << "--devel" end - if Sandbox.available? && ARGV.sandbox? + if Sandbox.available? && !ARGV.no_sandbox? if Sandbox.auto_disable? Sandbox.print_autodisable_warning else @@ -49,7 +49,7 @@ def test end ...
false
Other
Homebrew
brew
307ca85e0e110d9c84179aa50957693bdeaf5dec.json
ARGV: add explicit option for disabling sandbox.
Library/Homebrew/extend/ARGV.rb
@@ -132,6 +132,10 @@ def sandbox? include?("--sandbox") || !ENV["HOMEBREW_SANDBOX"].nil? end + def no_sandbox? + include?("--no-sandbox") || !ENV["HOMEBREW_NO_SANDBOX"].nil? + end + def ignore_deps? include? "--ignore-dependencies" end
false
Other
Homebrew
brew
65a7f7807c447a9b88e3a1b0deba498cf96009f4.json
Library/Homebrew/README: Fix broken link Closes Homebrew/homebrew#45852. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
Library/Homebrew/README.md
@@ -3,6 +3,6 @@ This is the (partially) documented public API for Homebrew. The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private. -You may also...
false
Other
Homebrew
brew
e97610b9160a3c94e4caf94ff6f036a8c9b4a78a.json
add Tap#install and Tap#uninstall
Library/Homebrew/cmd/tap.rb
@@ -1,5 +1,4 @@ require "tap" -require "descriptions" module Homebrew def tap @@ -14,48 +13,22 @@ def tap puts Tap.select(&:pinned?).map(&:name) else user, repo = tap_args - clone_target = ARGV.named[1] - opoo "#{user}/#{repo} already tapped!" unless install_tap(user, repo, clone_tar...
true
Other
Homebrew
brew
e97610b9160a3c94e4caf94ff6f036a8c9b4a78a.json
add Tap#install and Tap#uninstall
Library/Homebrew/cmd/untap.rb
@@ -1,23 +1,12 @@ require "cmd/tap" # for tap_args -require "descriptions" module Homebrew def untap raise "Usage is `brew untap <tap-name>`" if ARGV.empty? ARGV.named.each do |tapname| tap = Tap.fetch(*tap_args(tapname)) - - raise TapUnavailableError, tap.name unless tap.installed? - ...
true
Other
Homebrew
brew
e97610b9160a3c94e4caf94ff6f036a8c9b4a78a.json
add Tap#install and Tap#uninstall
Library/Homebrew/tap.rb
@@ -1,4 +1,5 @@ require "utils/json" +require "descriptions" # a {Tap} is used to extend the formulae provided by Homebrew core. # Usually, it's synced with a remote git repository. And it's likely @@ -89,6 +90,59 @@ def installed? @path.directory? end + # install this {Tap}. + # + # @param [Hash] opt...
true
Other
Homebrew
brew
4e196a23483799ce114169b8b07cb3e195c107d3.json
tap: add more document
Library/Homebrew/tap.rb
@@ -149,22 +149,27 @@ def command_files @command_files ||= Pathname.glob("#{path}/cmd/brew-*").select(&:executable?) end + # path to the pin record for this {Tap}. + # @private def pinned_symlink_path HOMEBREW_LIBRARY/"PinnedTaps/#{@name}" end + # True if this {Tap} has been pinned. def pin...
false
Other
Homebrew
brew
f59ad1c9e91b0d9d39287a51d1a3b009b622cec0.json
Revert "keg_relocate: fix relocation of frameworks" This reverts commit 14ce4027ae5b8aa994f4bdf0b8160bbc4994948b.
Library/Homebrew/keg_relocate.rb
@@ -2,10 +2,6 @@ class Keg PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@".freeze CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@".freeze - # Matches framework references like `XXX.framework/Versions/YYY/XXX` and - # `XXX.framework/XXX`, both with or without a slash-delimited prefix. - FRAMEWORK_RX = %r{(?:^|/)(?<suffi...
false
Other
Homebrew
brew
06634edab7f5dee0904cc779ef8c2c109815766c.json
keg_relocate: fix relocation of frameworks When fixing references to regular dylibs, it is sufficient to search for a file with the same base name, e.g., `libpoppler.56.dylib`. However, if the broken reference is to a framework, we also have to take into account preceding path components to find a suitable match. Fram...
Library/Homebrew/keg_relocate.rb
@@ -2,6 +2,10 @@ class Keg PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@".freeze CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@".freeze + # Matches framework references like `XXX.framework/Versions/YYY/XXX` and + # `XXX.framework/XXX`, both with or without a slash-delimited prefix. + FRAMEWORK_RX = %r{(?:^|/)(?<suffi...
false
Other
Homebrew
brew
e4b4ad532f358d634b7b2582afe823f4f1f60c82.json
Tips-N'-Trick: add a tip to use switch. I find brew switch very helpful to activate a different version of an installed formula. This seems worth calling out in the documentation to elevate awareness. Closes Homebrew/homebrew#45694. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/doc/homebrew/Tips-N'-Tricks.md
@@ -27,6 +27,15 @@ This can be useful if a package can't build against the version of something you And of course, you can simply `brew link $FORMULA` again afterwards! +## Activate a previously installed version of a formula + +```sh +brew info $FORMULA +brew switch $FORMULA $VERSION +``` + +Use `brew info $FORMU...
false
Other
Homebrew
brew
91dd4d56d426ed47c4e042f7b17d6560245fd60f.json
os/mac/hardware: reverse universal_archs entries. The order ought not to matter, but GCC can fail with -arch i386 -arch x86_64 (producing an error like "FATAL:Bad fx_size (0x8) in fix_to_relocation_info()") but succeed with -arch x86_64 -arch i386. Closes Homebrew/homebrew#45401. Signed-off-by: Mike McQuaid <mike@mi...
Library/Homebrew/os/mac/hardware.rb
@@ -97,7 +97,11 @@ def universal_archs if MacOS.version <= :leopard && !MacOS.prefer_64_bit? [arch_32_bit].extend ArchitectureListExtension else - [arch_32_bit, arch_64_bit].extend ArchitectureListExtension + # Amazingly, this order (64, then 32) matters. It shouldn't, but it + # does. G...
false
Other
Homebrew
brew
d7a479f55105f277ce96ad1b4385679c93618add.json
JavaRequirement: check satisfaction directly It made less sense to call a method `java_version` when it returns boolean value. Closes Homebrew/homebrew#45501. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/requirements/java_requirement.rb
@@ -5,7 +5,12 @@ class JavaRequirement < Requirement cask "java" download "http://www.oracle.com/technetwork/java/javase/downloads/index.html" - satisfy(:build_env => false) { java_version } + satisfy :build_env => false do + args = %w[--failfast] + args << "--version" << "#{@version}" if @version + ...
false
Other
Homebrew
brew
8acac5aa713a271edb23d88ef19140b3a39e969f.json
doctor: unify chown messages Closes Homebrew/homebrew#45398.
Library/Homebrew/cmd/doctor.rb
@@ -408,11 +408,12 @@ def __check_subdir_access(base) return if cant_read.empty? inject_file_list cant_read.sort, <<-EOS.undent - Some directories in #{target} aren't writable. - This can happen if you "sudo make install" software that isn't managed - by Homebrew. If a brew tries to add locale info...
false
Other
Homebrew
brew
a2e2553bd82ca130931072353a167be5d9e87a20.json
audit: flag any desc that starts with the formula name The previous version didn’t work with descs like: "TheFormula serves a web page"
Library/Homebrew/cmd/audit.rb
@@ -393,7 +393,7 @@ def audit_desc problem "Description shouldn't start with an indefinite article (#{$1})" end - if desc =~ /^#{formula.name} is\s/i + if desc =~ /^#{formula.name}\s/i problem "Description shouldn't include the formula name" end end
false
Other
Homebrew
brew
18bda1c9b18f53879263a7893f5359ba96b75bff.json
audit: uniformize the desc problems Closes Homebrew/homebrew#45492. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/audit.rb
@@ -390,7 +390,7 @@ def audit_desc end if desc =~ /^([Aa]n?)\s/ - problem "Please remove the indefinite article \"#{$1}\" from the beginning of the description" + problem "Description shouldn't start with an indefinite article (#{$1})" end if desc =~ /^#{formula.name} is\s/i
false
Other
Homebrew
brew
dd71d34bab1d52b0005a9dd837796aeb959627af.json
emacs_requirement: allow no version see Homebrew/homebrew-emacs#29 Closes Homebrew/homebrew#45426. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
Library/Homebrew/requirements/emacs_requirement.rb
@@ -4,12 +4,12 @@ class EmacsRequirement < Requirement def initialize(tags) @version = tags.shift if /\d+\.*\d*/ === tags.first - raise "Specify a version for EmacsRequirement" unless @version super end satisfy :build_env => false do - next unless which "emacs" + next false unless which ...
false
Other
Homebrew
brew
75c196c1fc7347661bc888ae1ead8be49e5494eb.json
create: accept HEAD urls Fixes Homebrew/homebrew#45310. Closes Homebrew/homebrew#45336. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/create.rb
@@ -78,10 +78,16 @@ def url=(url) @url = url path = Pathname.new(url) if @name.nil? - %r{github.com/\S+/(\S+)/archive/}.match url - @name ||= $1 - /(.*?)[-_.]?#{path.version}/.match path.basename - @name ||= $1 + case url + when %r{github\.com/\S+/(\S+)\.git} + @name ...
false
Other
Homebrew
brew
8ea9903a99fce3d7bcd432200f1bd2170e81de43.json
update: use git stash silently. There's been a few issues where users have been confused about these errors. They may have modified stuff but we probably don't care about telling them that unless we're debugging other issues. Closes Homebrew/homebrew#45373. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/cmd/update.rb
@@ -196,18 +196,17 @@ class Updater def initialize(repository) @repository = repository @stashed = false + @quiet_args = [] + @quiet_args << "--quiet" unless ARGV.verbose? end def pull!(options = {}) - quiet = [] - quiet << "--quiet" unless ARGV.verbose? - unless system "git", "dif...
false
Other
Homebrew
brew
f6cf1a4025b80a01427570d9b451b9f3fd684a7e.json
xcode: expect xcode 7.1 Closes Homebrew/homebrew#45266. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/os/mac.rb
@@ -252,6 +252,7 @@ def preferred_arch "6.4" => { :clang => "6.1", :clang_build => 602 }, "7.0" => { :clang => "7.0", :clang_build => 700 }, "7.0.1" => { :clang => "7.0", :clang_build => 700 }, + "7.1" => { :clang => "7.0", :clang_build => 700 }, } def compilers_standard?
true
Other
Homebrew
brew
f6cf1a4025b80a01427570d9b451b9f3fd684a7e.json
xcode: expect xcode 7.1 Closes Homebrew/homebrew#45266. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/os/mac/xcode.rb
@@ -14,12 +14,12 @@ def latest_version when "10.7" then "4.6.3" when "10.8" then "5.1.1" when "10.9" then "6.2" - when "10.10" then "7.0.1" - when "10.11" then "7.0.1" + when "10.10" then "7.1" + when "10.11" then "7.1" else # Default to newe...
true
Other
Homebrew
brew
f6cf1a4025b80a01427570d9b451b9f3fd684a7e.json
xcode: expect xcode 7.1 Closes Homebrew/homebrew#45266. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
share/doc/homebrew/Xcode.md
@@ -9,8 +9,8 @@ Tools available for your platform: 10.7 | 4.6.3 | April 2013 10.8 | 5.1.1 | April 2014 10.9 | 6.2 | 6.2 - 10.10 | 7.0.1 | 7.0.1 - 10.11 | 7.0.1 | 7.0.1 + 10.10 | 7.1 | 7.1 + 10.11 | 7.1 | 7.1 ## Compiler Version Database @@ -58,6 +58,7 @@ Tools available for your platform: 6.4 ...
true
Other
Homebrew
brew
f5d7e6915be2b6be2be7eba33cb3144e67057aa3.json
travis: send failure emails to committer/author.
.travis.yml
@@ -34,7 +34,5 @@ notifications: slack: secure: Y5ZL6OcprSzAYQ3yVpvrhiQn1UQGd7reKNz3o7+7Bcy2k7DMr66xKBadTv1gK1Qrg9LugsmZ4CqOqKBwy7t5smktan/wsUo5y5HX3WUOG1nk0jQ4HOOZNT8bhUZc/Eu7ilH5UMqvIVsjrX9BjEZMeT4TxTIUD8zj5xUwgiAsD5k= email: - recipients: - - brew-test-bot@googlegroups.com on_success: never ...
false
Other
Homebrew
brew
01270ea12cdab49401dae24058109381b903e997.json
travis: fix slack notification
.travis.yml
@@ -31,9 +31,10 @@ script: - brew test-bot notifications: + slack: + secure: Y5ZL6OcprSzAYQ3yVpvrhiQn1UQGd7reKNz3o7+7Bcy2k7DMr66xKBadTv1gK1Qrg9LugsmZ4CqOqKBwy7t5smktan/wsUo5y5HX3WUOG1nk0jQ4HOOZNT8bhUZc/Eu7ilH5UMqvIVsjrX9BjEZMeT4TxTIUD8zj5xUwgiAsD5k= email: recipients: - brew-test-bot@googlegrou...
false
Other
Homebrew
brew
8755e91675dbe615b7792a77061627eb089abbfc.json
test-bot: remove duplicated conflicts unlinking
Library/Homebrew/cmd/test-bot.rb
@@ -441,11 +441,6 @@ def formula(formula_name) formula = Formulary.factory(canonical_formula_name) - formula.conflicts.map { |c| Formulary.factory(c.name) }. - select(&:installed?).each do |conflict| - test "brew", "unlink", conflict.name - end - installed_gcc = false ...
false
Other
Homebrew
brew
e13866f74afd469dece0d1b9c2c32da2b941c349.json
test-bot: install bottle unneeded formulae in --fast mode
Library/Homebrew/cmd/test-bot.rb
@@ -572,7 +572,7 @@ def formula(formula_name) # Don't care about e.g. bottle failures for dependencies. install_passed = false run_as_not_developer do - if !ARGV.include?("--fast") || formula_bottled + if !ARGV.include?("--fast") || formula_bottled || formula.bottle_unneeded? ...
false
Other
Homebrew
brew
4ef15427bacc84622561bde6b8474a1df996eb52.json
add test for bottle disable Closes Homebrew/homebrew#43935. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_bottle_hooks.rb
@@ -6,6 +6,7 @@ class BottleHookTests < Homebrew::TestCase class FormulaDouble def bottle; end def local_bottle_path; end + def bottle_disabled?; false end def some_random_method true
true
Other
Homebrew
brew
4ef15427bacc84622561bde6b8474a1df996eb52.json
add test for bottle disable Closes Homebrew/homebrew#43935. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_formula_installer.rb
@@ -51,4 +51,20 @@ def test_a_basic_install assert_equal 3, bin.children.length end end + + def test_bottle_unneeded_formula_install + MacOS.stubs(:has_apple_developer_tools?).returns(false) + + formula = Testball.new + formula.stubs(:bottle_unneeded?).returns(true) + formula.stubs(:bottle_d...
true
Other
Homebrew
brew
4ef15427bacc84622561bde6b8474a1df996eb52.json
add test for bottle disable Closes Homebrew/homebrew#43935. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/test/test_formula_support.rb
@@ -11,3 +11,17 @@ def test_to_s_no_explanation assert_match(/^OS X already provides/, r.to_s) end end + +class BottleDisableReasonTests < Homebrew::TestCase + def test_bottle_unneeded + bottle_disable_reason = BottleDisableReason.new :unneeded, nil + assert_predicate bottle_disable_reason, :unneeded? +...
true
Other
Homebrew
brew
975771ab358ca582f6d5119c63bf32792735ac60.json
formula_installer: let build_bottle? check bottle_disabled? Also don't pour bottle if it's disabled.
Library/Homebrew/formula_installer.rb
@@ -29,9 +29,9 @@ def self.mode_attr_accessor(*names) end attr_reader :formula - attr_accessor :options + attr_accessor :options, :build_bottle mode_attr_accessor :show_summary_heading, :show_header - mode_attr_accessor :build_from_source, :build_bottle, :force_bottle + mode_attr_accessor :build_from_sou...
false
Other
Homebrew
brew
06806f860d12aa5a4cfd077b67cae62071755864.json
remove unnecessary require statements
Library/Homebrew/bottles.rb
@@ -1,5 +1,4 @@ require "tab" -require "os/mac" require "extend/ARGV" def built_as_bottle?(f)
true
Other
Homebrew
brew
06806f860d12aa5a4cfd077b67cae62071755864.json
remove unnecessary require statements
Library/Homebrew/extend/ENV/std.rb
@@ -1,5 +1,4 @@ require "hardware" -require "os/mac" require "extend/ENV/shared" # @deprecated
true
Other
Homebrew
brew
06806f860d12aa5a4cfd077b67cae62071755864.json
remove unnecessary require statements
Library/Homebrew/extend/ENV/super.rb
@@ -1,4 +1,3 @@ -require "os/mac" require "extend/ENV/shared" # ### Why `superenv`?
true
Other
Homebrew
brew
06806f860d12aa5a4cfd077b67cae62071755864.json
remove unnecessary require statements
Library/Homebrew/utils.rb
@@ -1,6 +1,5 @@ require "pathname" require "exceptions" -require "os/mac" require "utils/json" require "utils/inreplace" require "utils/popen"
true
Other
Homebrew
brew
0915f0c6681890e47f94aab523a796f7e835f9e4.json
doc: add links to jenkins jobs Add links to specific jenkins jobs described in Brew-Test-Bot-For-Core-Contributors.md Closes Homebrew/homebrew#45052. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/doc/homebrew/Brew-Test-Bot-For-Core-Contributors.md
@@ -3,13 +3,13 @@ If a build has run and passed on `brew test-bot` then it can be used to quickly There are three types of Jenkins jobs: -## Homebrew +## [Homebrew](http://bot.brew.sh/job/Homebrew/) This job automatically builds anything committed to the master branch. On failure it sends an email to `brew-test-b...
false
Other
Homebrew
brew
71ecf5539aefb802102056e120aaf401501a1c43.json
SUPPORTERS: use https where supported and not broken Closes Homebrew/homebrew#45045. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
SUPPORTERS.md
@@ -30,7 +30,7 @@ These amazing people supported our Kickstarter by giving us £100 or more: * [Spike Grobstein](http://spike.grobste.in) * [nonfiction studios inc.](http://nonfiction.ca/) * [Dev Fu! LLC](http://devfu.com) -* [Human Made Limited](http://hmn.md/) +* [Human Made Limited](https://hmn.md/) * [Roland Mor...
false
Other
Homebrew
brew
dd7e8f291d24c08b5e6e09b48350ffd1cf0b8bd3.json
downloads: fix undefined local variable https://github.com/Homebrew/homebrew/commit/2950e5ab6ee76f35c7015cfa2d07bee6ddb1170e#commitcomment-13824130
Library/Homebrew/download_strategy.rb
@@ -500,7 +500,7 @@ def fetch_repo(target, url, revision = nil, ignore_externals = false) args << url unless target.directory? args << target if revision - ohai "Checking out #{ref}" + ohai "Checking out #{@ref}" args << "-r" << revision end args << "--ignore-externals" if igno...
false
Other
Homebrew
brew
017a5014715d21b8fc8b8aa2d0f42fec1d47f933.json
downloads: Fix checkout on initial clone Moves the "Checking out" output to where checkouts actually happen, to avoid spurious checkout announcements. Closes Homebrew/homebrew#45019. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/download_strategy.rb
@@ -135,10 +135,6 @@ def fetch end end - def stage - ohai "Checking out #{@ref_type} #{@ref}" if @ref_type && @ref - end - def cached_location @clone end @@ -503,7 +499,10 @@ def fetch_repo(target, url, revision = nil, ignore_externals = false) args = ["svn", svncommand] args << url ...
false
Other
Homebrew
brew
79018e4e242dbad09adce4c60e2f4f061df0a402.json
test-bot: remove unused --tap args for brew bottle
Library/Homebrew/cmd/test-bot.rb
@@ -592,7 +592,6 @@ def formula(formula_name) bottle_step.output.gsub(/.*(\.\/\S+#{bottle_native_regex}).*/m, '\1') bottle_rb_filename = bottle_filename.gsub(/\.(\d+\.)?tar\.gz$/, ".rb") bottle_merge_args = ["--merge", "--write", "--no-commit", bottle_rb_filename] - b...
false
Other
Homebrew
brew
d1222971f61b5e882571e303750da34fdee5a0cf.json
test-bot: update diff_start_sha1 unconditionally See bfab4b0e65db4667ab09159b1040701fa75ec687 Closes Homebrew/homebrew#44889. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/test-bot.rb
@@ -318,12 +318,13 @@ def brew_update # Use Travis CI Git variables for master or branch jobs. elsif ENV["TRAVIS_COMMIT_RANGE"] diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..." - diff_start_sha1 = git("merge-base", diff_start_sha1, diff_end_sha1).strip # Other...
false
Other
Homebrew
brew
7ba19f76975228861dbf75c8dbe40d499e4a98db.json
README: note documentation license.
README.md
@@ -31,6 +31,7 @@ Homebrew was originally created by [Max Howell](https://github.com/mxcl). ## License Code is under the [BSD 2 Clause (NetBSD) license](https://github.com/Homebrew/homebrew/tree/master/LICENSE.txt). +Documentation is under the [Creative Commons Attribution license](https://creativecommons.org/licen...
false
Other
Homebrew
brew
76a5ba6ae598ea0c6c204f3a30bc36dd3a423d67.json
test: allow writing to certain var directories Closes Homebrew/homebrew#44458. Closes Homebrew/homebrew#44773. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/test.rb
@@ -56,6 +56,9 @@ def test sandbox.allow_write_temp_and_cache sandbox.allow_write_log(f) sandbox.allow_write_xcode + sandbox.allow_write_path(HOMEBREW_PREFIX/"var/cache") + sandbox.allow_write_path(HOMEBREW_PREFIX/"var/log") + sandbox.allow_write_p...
false
Other
Homebrew
brew
52de8d93733ca371996d56c721ba99483d271b24.json
postinstall: sanitize ARGV options
Library/Homebrew/cmd/postinstall.rb
@@ -15,6 +15,12 @@ def run_post_install(formula) #{formula.path} ].concat(ARGV.options_only) + if formula.head? + args << "--HEAD" + elsif formula.devel? + args << "--devel" + end + if Sandbox.available? && ARGV.sandbox? if Sandbox.auto_disable? Sandbox.print_autodi...
false
Other
Homebrew
brew
fe3b69d388ca4a5b3a0d9493b688e40ee28dc1c8.json
test: sanitize ARGV options Otherwise, it will use the wrong prefix to test devel/HEAD install.
Library/Homebrew/cmd/test.rb
@@ -34,6 +34,12 @@ def test #{f.path} ].concat(ARGV.options_only) + if f.head? + args << "--HEAD" + elsif f.devel? + args << "--devel" + end + if Sandbox.available? && ARGV.sandbox? if Sandbox.auto_disable? Sandbox.print_autod...
false
Other
Homebrew
brew
5b321ffb5a5308f1de96e7bfa79e83828e9c9552.json
caveats: show information based on build options Fixes Homebrew/homebrew#44729. Fixes Homebrew/homebrew#40863. Closes Homebrew/homebrew#44779. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/caveats.rb
@@ -7,8 +7,13 @@ def initialize(f) def caveats caveats = [] - s = f.caveats.to_s - caveats << s.chomp + "\n" if s.length > 0 + begin + build, f.build = f.build, Tab.for_formula(f) + s = f.caveats.to_s + caveats << s.chomp + "\n" if s.length > 0 + ensure + f.build = build + e...
false
Other
Homebrew
brew
1ae44d44299803ec0da62731ac7b808d1d32f5aa.json
use directory? to check rack existence
Library/Homebrew/cmd/install.rb
@@ -77,7 +77,7 @@ def install msg = "#{f.full_name}-#{f.installed_version} already installed" msg << ", it's just not linked" unless f.linked_keg.symlink? || f.keg_only? opoo msg - elsif f.oldname && (dir = HOMEBREW_CELLAR/f.oldname).exist? && !dir.subdirs.empty? \ + elsif...
true
Other
Homebrew
brew
1ae44d44299803ec0da62731ac7b808d1d32f5aa.json
use directory? to check rack existence
Library/Homebrew/cmd/outdated.rb
@@ -18,10 +18,9 @@ def outdated_brews(formulae) all_versions = [] older_or_same_tap_versions = [] - if f.oldname && !f.rack.exist? && (dir = HOMEBREW_CELLAR/f.oldname).exist? - if f.tap == Tab.for_keg(dir.subdirs.first).tap - raise Migrator::MigrationNeededError.new(f) - end ...
true
Other
Homebrew
brew
6b3b398858147a53fec5dc850d29ca531ef8fcc1.json
audit: fix GitHub repository audit In the data returned from the GitHub API, “watchers_count” is actually the number of stars. See https://developer.github.com/v3/activity/starring/#starring-vs-watching Closes Homebrew/homebrew#44477. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/audit.rb
@@ -477,7 +477,7 @@ def audit_github_repository end problem "GitHub fork (not canonical repository)" if metadata["fork"] - if (metadata["forks_count"] < 10) && (metadata["watchers_count"] < 10) && + if (metadata["forks_count"] < 10) && (metadata["subscribers_count"] < 10) && (metadata["stargaz...
false
Other
Homebrew
brew
d3d1b6f0fe57660d6b3f6cf74e08b75ba5322649.json
Encourage https for bottle hosting I assume that we want to encourage people hosting their own bottles to serve them using `https`. This PR has a trivial change in the example. We may consider adding some text to the `root_url` description with a discussion of security. Also use https://example.com instead of http://m...
share/doc/homebrew/Bottles.md
@@ -32,7 +32,7 @@ end A full example: ```ruby bottle do - root_url "http://mikemcquaid.com" + root_url "https://example.com" prefix "/opt/homebrew" cellar "/opt/homebrew/Cellar" revision 4
false
Other
Homebrew
brew
831850029422cb3d78e395ce091b1e2a115b5400.json
Remove extra word Closes Homebrew/homebrew#44708. Signed-off-by: Xu Cheng <xucheng@me.com>
share/doc/homebrew/Gems,-Eggs-and-Perl-Modules.md
@@ -72,7 +72,7 @@ without sudo. You should add this to your path. See the caveats in the ### With system’s Ruby -To make Ruby install install to `/usr/local`, we need to add +To make Ruby install to `/usr/local`, we need to add `gem: -n/usr/local/bin` to your `~/.gemrc`. It’s YAML…so do it manually or use this: ...
false
Other
Homebrew
brew
4c80bf4324956e39073eb7d13c144cdcd0f64fba.json
audit: add check for 'head' and 'head do' both present Closes Homebrew/homebrew#44626. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/cmd/audit.rb
@@ -179,15 +179,20 @@ def audit_file [/^ test do/, "test block"] ] - component_list.map do |regex, name| + present = component_list.map do |regex, name| lineno = text.line_number regex next unless lineno [lineno, name] - end.compact.each_cons(2) do |c1,...
false
Other
Homebrew
brew
e0f99945421243bc332002dec4f8e25220237aeb.json
Remove incomplete files in cache on `brew cleanup` Closes Homebrew/homebrew#44182. Closes Homebrew/homebrew#44349. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/cleanup.rb
@@ -57,6 +57,10 @@ def cleanup_keg(keg) def cleanup_cache return unless HOMEBREW_CACHE.directory? HOMEBREW_CACHE.children.each do |path| + if path.to_s.end_with? ".incomplete" + cleanup_path(path) { path.unlink } + next + end if prune?(path) if path.file? ...
false
Other
Homebrew
brew
cc7a047edc8dbd34706dfe4014a78dc0b176cf6b.json
version: parse opam archives Closes Homebrew/homebrew#44544. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/test/test_versions.rb
@@ -350,4 +350,15 @@ def test_with_arch assert_version_detected "4.0.18", "http://ftpmirror.gnu.org/mtools/mtools_4.0.18_i386.deb" end + + def test_opam_version + assert_version_detected "2.18.3", + "https://opam.ocaml.org/archives/lablgtk.2.18.3+opam.tar.gz" + assert_version_detected "1.9", ...
true
Other
Homebrew
brew
cc7a047edc8dbd34706dfe4014a78dc0b176cf6b.json
version: parse opam archives Closes Homebrew/homebrew#44544. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Library/Homebrew/version.rb
@@ -328,6 +328,13 @@ def self._parse(spec) m = /-(\d+\.\d+(?:\.\d+)?)-w(?:in)?(?:32|64)$/.match(stem) return m.captures.first unless m.nil? + # Opam packages + # e.g. https://opam.ocaml.org/archives/sha.1.9+opam.tar.gz + # e.g. https://opam.ocaml.org/archives/lablgtk.2.18.3+opam.tar.gz + # e.g. ...
true
Other
Homebrew
brew
5f29dee138a2478f89480710af3905546fa98368.json
Remove redundant chown commands. `chown -R` should be sufficient. There is no obvious reason to chown the top-level directory as a separate command. Closes Homebrew/homebrew#44554. Signed-off-by: Tim D. Smith <git@tim-smith.us>
share/doc/homebrew/El_Capitan_and_Homebrew.md
@@ -15,7 +15,7 @@ This is how to fix Homebrew on El Capitan if you see permission issues: ## If `/usr/local` exists already: ```bash -sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local +sudo chown -R $(whoami):admin /usr/local ``` ## If `/usr/local` does not exist: @@ -27,7 +27,7 ...
false
Other
Homebrew
brew
8f072724def466a37543ec279876fada932109b7.json
Remove MacVTKITKPythonBottles from doc Bottles for VTK and ITK python are no more provided. ITK can be wrapped with Python since version 4.8, so this tap is no more needed. Using the vanilla homebrew VTK and ITK formulas is the way to go. Closes Homebrew/homebrew#44467. Signed-off-by: Alex Dunn <dunn.alex@gmail.com...
share/doc/homebrew/Interesting-Taps-&-Branches.md
@@ -69,9 +69,6 @@ You can be added as a maintainer for one of the Homebrew organization taps and a * [petere/postgresql](https://github.com/petere/homebrew-postgresql) - Allows installing multiple PostgreSQL versions in parallel. -* [iMichka/MacVTKITKPythonBottles](https://github.com/iMichka/homebrew-MacVTK...
false
Other
Homebrew
brew
ab19bc641ca2cd6b4dc7d408bbb8df29432c07d4.json
El_Capitan_and_Homebrew: update dead link
share/doc/homebrew/El_Capitan_and_Homebrew.md
@@ -6,9 +6,9 @@ SIP prevents you from writing to many system directories such as `/usr`, `/Syste One of the implications of SIP is that you cannot simply create `/usr/local` if it is removed or doesn't exist for another reason. However, as noted in the keynote, Apple is leaving `/usr/local` open for developers to us...
false
Other
Homebrew
brew
00242964801a5030d8661ef42fae9a05101c9230.json
xcode: expect xcode 7.0.1
Library/Homebrew/os/mac/xcode.rb
@@ -14,12 +14,12 @@ def latest_version when "10.7" then "4.6.3" when "10.8" then "5.1.1" when "10.9" then "6.2" - when "10.10" then "6.4" - when "10.11" then "7.0" + when "10.10" then "7.0.1" + when "10.11" then "7.0.1" else # Default to newe...
false
Other
Homebrew
brew
be8d348a6d98425ed8b3feecec7ce58ce95e948c.json
os: add xcode 7.0.1
Library/Homebrew/os/mac.rb
@@ -238,7 +238,8 @@ def preferred_arch "6.3.1" => { :clang => "6.1", :clang_build => 602 }, "6.3.2" => { :clang => "6.1", :clang_build => 602 }, "6.4" => { :clang => "6.1", :clang_build => 602 }, - "7.0" => { :clang => "7.0", :clang_build => 700 } + "7.0" => { :clang => "7.0", :clan...
false
Other
Homebrew
brew
e66cb917023f235903803f3df53df9bc86c2f321.json
update: add permissions check Closes Homebrew/homebrew#42048 Closes Homebrew/homebrew#44434. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/update.rb
@@ -1,4 +1,5 @@ require "cmd/tap" +require "cmd/doctor" require "formula_versions" require "migrator" require "formulary" @@ -13,6 +14,16 @@ def update EOS end + # check permissions + checks = Checks.new + %w[ + check_access_usr_local + check_access_homebrew_repository + ].each d...
false
Other
Homebrew
brew
04959403ac23bc16d52fc52aafed80b574231b02.json
Python-for-Formula-Authors: use sha256 for example
share/doc/homebrew/Python-for-Formula-Authors.md
@@ -99,13 +99,13 @@ class Foo < Formula url ... resource "six" do - url "https://pypi.python.org/packages/source/s/six/six-1.8.0.tar.gz" - sha1 "aa3b0659cbc85c6c7a91efc51f2d1007040070cd" + url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz" + sha256 "e24052411fc4fbd1f672635537c3fc23...
false
Other
Homebrew
brew
b37a28514126ac46e06cc1f5c8cc124a0fdff7f1.json
test-bot: fix start_revision for Travis When a PR is merged during the test, the commit tree will be looked like this: master PR \ / \ / | root The start_revision will be poined to the commit used to merging PR, instead of common root commit. As result, `git diff-tree start end` will list file ch...
Library/Homebrew/cmd/test-bot.rb
@@ -318,6 +318,7 @@ def brew_update # Use Travis CI Git variables for master or branch jobs. elsif ENV["TRAVIS_COMMIT_RANGE"] diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..." + diff_start_sha1 = git("merge-base", diff_start_sha1, diff_end_sha1).strip # Otherwi...
false
Other
Homebrew
brew
be45e6a0c52b02508aef17f0a9b16ebf6976d006.json
migrator: link Cellar and opt before the keg. When there's absolute symlinks in a linked directory in the `keg` (e.g. `bin`)that point to the `Cellar` or `opt` then linking the `keg` will fail before the `Cellar` or `opt` has been linked. Closes Homebrew/homebrew#44306. Closes Homebrew/homebrew#44329. Signed-off-by...
Library/Homebrew/migrator.rb
@@ -163,9 +163,9 @@ def migrate unlink_oldname move_to_new_directory repin - link_newname unless old_linked_keg.nil? - link_oldname_opt link_oldname_cellar + link_oldname_opt + link_newname unless old_linked_keg.nil? update_tabs rescue Interrupt ignore_...
false
Other
Homebrew
brew
74a2c3a5092c3d0556a5e3a8b07c8e2e92b93c1c.json
test-bot: add comments, tweak argument handling.
Library/Homebrew/cmd/test-bot.rb
@@ -299,48 +299,58 @@ def brew_update travis_pr = ENV["TRAVIS_PULL_REQUEST"] && ENV["TRAVIS_PULL_REQUEST"] != "false" - # Use Jenkins environment variables if present. - if no_args? && ENV["GIT_PREVIOUS_COMMIT"] && ENV["GIT_COMMIT"] \ - && !ENV["ghprbPullLink"] - diff_start_sha1 = sh...
false
Other
Homebrew
brew
a3bb7575072bdd6cbb8f8c127ba5fbd79d18caa4.json
travis: organize matrix config
.travis.yml
@@ -1,16 +1,17 @@ # Force OS X. language: objective-c -os: osx -env: OSX=10.11 -osx_image: osx10.11 -rvm: - - system matrix: include: + - env: OSX=10.11 + os: osx + osx_image: osx10.11 + rvm: system - env: OSX=10.10 + os: osx osx_image: xcode7 rvm: system - env: OSX...
false
Other
Homebrew
brew
87769ee970c71e757ccc5637f315a93c2e0cb141.json
style: update rubocop to 0.34.2
Library/Homebrew/cmd/style.rb
@@ -8,7 +8,7 @@ def style ARGV.formulae.map(&:path) end - Homebrew.install_gem_setup_path! "rubocop", "0.34.1" + Homebrew.install_gem_setup_path! "rubocop", "0.34.2" args = [ "--format", "simple", "--force-exclusion", "--config",
false
Other
Homebrew
brew
322a93bce0a7d592ba5f5be87731a7f9db22fafd.json
test-bot: use IO#read instead of IO#gets IO#gets will only return for every new lines, which will be bad for `brew install` since we print dots in single line. Closes Homebrew/homebrew#44264. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/test-bot.rb
@@ -154,9 +154,12 @@ def run working_dir.cd { exec(*@command) } end write.close - while line = read.gets - puts line if verbose - @output += line + while buf = read.read(1) + if verbose + print buf + $stdout.flush + end...
false
Other
Homebrew
brew
9aecb1be2b89843c66852ad11ba6c22ef10d2e64.json
formula: increase fail log lines, allow config. The default is almost never useful. 15 seems like a good medium as it'll not fill a 80x24 default but provides a bit more context. Also allow it to be overriden for developers and `test-bot`.
Library/Homebrew/formula.rb
@@ -1304,8 +1304,14 @@ def system(cmd, *args) $stdout.flush unless $?.success? + log_lines = ENV["HOMEBREW_FAIL_LOG_LINES"] + log_lines ||= "15" + log.flush - Kernel.system "/usr/bin/tail", "-n", "5", logfn unless verbose + unless verbose + puts "Last #{log_...
false
Other
Homebrew
brew
b5a20e79ee99d399f8e590e6a414bf2be0a06c52.json
travis.yml: add 10.11 image.
.travis.yml
@@ -1,12 +1,15 @@ # Force OS X. language: objective-c os: osx -env: OSX=10.10 -osx_image: xcode7 +env: OSX=10.11 +osx_image: osx10.11 rvm: - system matrix: include: + - env: OSX=10.10 + osx_image: xcode7 + rvm: system - env: OSX=10.9 osx_image: beta-xcode6.2 rvm: system
false
Other
Homebrew
brew
15875ade9341f29bc2e3f240db077df3a16a0914.json
add link to RISC-V toolchain Closes Homebrew/homebrew#44196. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
share/doc/homebrew/Custom-GCC-and-cross-compilers.md
@@ -12,3 +12,4 @@ Rather than merging in brews for either of these cases at this time, we're listi * [MSP430 development](https://github.com/Homebrew/homebrew/issues/issue/2336) * [OS161 development](https://github.com/maxpow4h/homebrew-os161) Your university probably uses a different version, replacing the URLs with...
false
Other
Homebrew
brew
76488216b78f83f3f76a052b1819f04bd0555bde.json
test-bot: remove obsolete empty line
Library/Homebrew/cmd/test-bot.rb
@@ -142,7 +142,6 @@ def run end verbose = ARGV.verbose? - puts if verbose && !ENV["TRAVIS"] @output = "" working_dir = Pathname.new(@command.first == "git" ? @repository : Dir.pwd) read, write = IO.pipe
false
Other
Homebrew
brew
6e5bef5ee167b6ed635ebd845cffa61339fa989b.json
Troubleshooting: add El Cap doc link
share/doc/homebrew/Troubleshooting.md
@@ -24,6 +24,7 @@ Thank you! * If you’re installing something Java-related, maybe you need the [Java Developer Update][] or [JDK 7][]? * Check that **Command Line Tools for Xcode (CLT)** and/or **Xcode** are up to date. * If things fail with permissions errors, check the permissions in `/usr/local`. If you’re unsure...
false
Other
Homebrew
brew
bf5482216bc80cee609590c518ea9415358c931f.json
El_Capitan_and_Homebrew: add permissions doc
share/doc/homebrew/El_Capitan_and_Homebrew.md
@@ -0,0 +1,36 @@ +# El Capitan & Homebrew + +Part of the OS X 10.11/El Capitan changes is something called [System Integrity Protection](https://en.wikipedia.org/wiki/System_Integrity_Protection) or "SIP". + +SIP prevents you from writing to many system directories such as `/usr`, `/System` & `/bin`, regardless of whet...
false
Other
Homebrew
brew
badea990973e6464d47e2ec43ff34fb7d45a0069.json
test-bot: fix bottle uploading
Library/Homebrew/cmd/test-bot.rb
@@ -795,7 +795,7 @@ def test_ci_upload(tap) tag = pr ? "pr-#{pr}" : "testing-#{number}" safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}" - bintray_repo = if tap + bintray_repo = if tap.nil? Bintray.repository(tap) else Bintray.repository(tap.name)
false
Other
Homebrew
brew
9e2c0601e3d0c3f1eca3763c2f24d15e562ed0be.json
test-bot: fix bottle uploading
Library/Homebrew/cmd/test-bot.rb
@@ -795,7 +795,11 @@ def test_ci_upload(tap) tag = pr ? "pr-#{pr}" : "testing-#{number}" safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}" - bintray_repo = Bintray.repository(tap.name) + bintray_repo = if tap + Bintray.repository(tap) + else + Bintray.repo...
false
Other
Homebrew
brew
70d31838c61b0aaeb76827b26cb461069c9dff8c.json
test-bot: use tap object
Library/Homebrew/cmd/test-bot.rb
@@ -37,10 +37,30 @@ module Homebrew EMAIL_SUBJECT_FILE = "brew-test-bot.#{MacOS.cat}.email.txt" BYTES_IN_1_MEGABYTE = 1024*1024 + def resolve_test_tap + tap = ARGV.value("tap") + return Tap.new(*tap_args(tap)) if tap + + if ENV["UPSTREAM_BOT_PARAMS"] + bot_argv = ENV["UPSTREAM_BOT_PARAMS"].split ...
false
Other
Homebrew
brew
fab6b6c19d3be7a2ded5b7aa050064c5d66c5340.json
test-bot: fix syntax error.
Library/Homebrew/cmd/test-bot.rb
@@ -284,7 +284,7 @@ def brew_update elsif ENV["TRAVIS_COMMIT_RANGE"] diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..." diff_end_sha1 = ENV["TRAVIS_COMMIT"] if travis_pr - elseif ENV["ghprbPullLink"] + elsif ENV["ghprbPullLink"] # Handle Jenkins pull requ...
false
Other
Homebrew
brew
49241473ec016fe0679e8cf84c90f5f9ef6f7227.json
Add Travis CI configuration. Closes Homebrew/homebrew#43976. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
.gitignore
@@ -1,5 +1,6 @@ /* !/.gitignore +!/.travis.yml !/.yardopts !/Library/ !/CODEOFCONDUCT.md
true
Other
Homebrew
brew
49241473ec016fe0679e8cf84c90f5f9ef6f7227.json
Add Travis CI configuration. Closes Homebrew/homebrew#43976. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
.travis.yml
@@ -0,0 +1,23 @@ +# Force OS X. +language: objective-c +os: osx +env: OSX=10.10 +osx_image: xcode7 +rvm: + - system +matrix: + include: + - env: OSX=10.9 + osx_image: beta-xcode6.2 + rvm: system + +before_install: + - sudo rsync -az "$TRAVIS_BUILD_DIR/" /usr/local/ + - export TRAVIS_BUILD_DIR="/usr/loc...
true
Other
Homebrew
brew
e39cd2e9b2581924596998d918f6e19fedd74328.json
test-bot: use Travis CI environment variables.
Library/Homebrew/cmd/test-bot.rb
@@ -17,6 +17,7 @@ # --tap=<tap>: Use the git repository of the given tap # --dry-run: Just print commands, don't run them. # --fail-fast: Immediately exit on a failing step. +# --verbose: Print out all logs in realtime # # --ci-master: Shortcut for Homebrew master branch CI options. ...
false
Other
Homebrew
brew
d6a50f1e7617b40be12b7878bbcbade634c8ef86.json
deps: remove duplicated entires Fixes Homebrew/homebrew#43955 Closes Homebrew/homebrew#43966. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/deps.rb
@@ -25,7 +25,8 @@ def deps else all_deps = deps_for_formulae(ARGV.formulae, !ARGV.one?, &(mode.union? ? :| : :&)) all_deps = all_deps.select(&:installed?) if mode.installed? - all_deps = all_deps.sort_by(&:name) unless mode.topo_order? + all_deps = all_deps.map(&:name).uniq + all_deps....
false
Other
Homebrew
brew
8a30f315d93d75383e35af6743a1c07580d6a428.json
search: use full name to filter aliases result
Library/Homebrew/cmd/search.rb
@@ -139,12 +139,13 @@ def search_tap(user, repo, rx) def search_formulae(rx) aliases = Formula.alias_full_names results = (Formula.full_names+aliases).grep(rx).sort - result_names = results.map { |name| name.split("/")[-1] }.uniq results.map do |name| - canonical_name = Formulary.canonical_n...
false