Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump patchelf from 1.4.0 to 1.5.0 in /Library/Homebrew #16694

Merged
merged 3 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Library/Homebrew/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GEM
highline (~> 2.0.0)
diff-lcs (1.5.1)
docile (1.4.0)
elftools (1.2.0)
elftools (1.3.0)
bindata (~> 2)
erubi (1.12.0)
hana (1.3.7)
Expand Down Expand Up @@ -41,8 +41,8 @@ GEM
parser (3.3.0.5)
ast (~> 2.4.1)
racc
patchelf (1.4.0)
elftools (>= 1.2)
patchelf (1.5.0)
elftools (>= 1.3)
plist (3.7.1)
prettier_print (1.2.1)
prism (0.24.0)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Library/Homebrew/vendor/bundle/bundler/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.extension_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/commander-4.6.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/diff-lcs-1.5.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/docile-1.4.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/elftools-1.2.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/elftools-1.3.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/erubi-1.12.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/hana-1.3.7/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/hpricot-0.8.6")
Expand All @@ -68,7 +68,7 @@ def self.extension_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11261/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-8.1.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.4.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/prettier_print-1.2.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/prism-0.24.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def tag_at(n)
@tag_at_map ||= {}
return @tag_at_map[n] if @tag_at_map[n]

dyn = Structs::ELF_Dyn.new(endian: endian)
dyn = Structs::ELF_Dyn.new(endian:)
dyn.elf_class = header.elf_class
stream.pos = tag_start + n * dyn.num_bytes
dyn.offset = stream.pos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def header
return @header if defined?(@header)

stream.pos = 0
@header = Structs::ELF_Ehdr.new(endian: endian, offset: stream.pos)
@header = Structs::ELF_Ehdr.new(endian:, offset: stream.pos)
@header.elf_class = elf_class
@header.read(stream)
end
Expand Down Expand Up @@ -237,7 +237,7 @@ def segments
# #=> #<ELFTools::Segments::NoteSegment:0x005629dda1e4f8>
#
# # this is ok
# elf.segment_by_type('note') # will be tranformed into `PT_NOTE`
# elf.segment_by_type('note') # will be transformed into `PT_NOTE`
# #=> #<ELFTools::Segments::NoteSegment:0x005629dda1e4f8>
# @example
# elf.segment_by_type(1337)
Expand Down Expand Up @@ -358,7 +358,7 @@ def identify

def create_section(n)
stream.pos = header.e_shoff + n * header.e_shentsize
shdr = Structs::ELF_Shdr.new(endian: endian, offset: stream.pos)
shdr = Structs::ELF_Shdr.new(endian:, offset: stream.pos)
shdr.elf_class = elf_class
shdr.read(stream)
Sections::Section.create(shdr, stream,
Expand All @@ -369,7 +369,7 @@ def create_section(n)

def create_segment(n)
stream.pos = header.e_phoff + n * header.e_phentsize
phdr = Structs::ELF_Phdr[elf_class].new(endian: endian, offset: stream.pos)
phdr = Structs::ELF_Phdr[elf_class].new(endian:, offset: stream.pos)
phdr.elf_class = elf_class
Segments::Segment.create(phdr.read(stream), stream, offset_from_vma: method(:offset_from_vma))
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def endian
end

def create_note(cur)
nhdr = Structs::ELF_Nhdr.new(endian: endian, offset: stream.pos).read(stream)
nhdr = Structs::ELF_Nhdr.new(endian:, offset: stream.pos).read(stream)
ELFTools::Note::Note.new(nhdr, stream, cur)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(header, stream, offset_from_vma: nil, strtab: nil, **_kwargs)
@offset_from_vma = offset_from_vma
end

# Return +header.sh_type+ in a simplier way.
# Return +header.sh_type+ in a simpler way.
# @return [Integer]
# The type, meaning of types are defined in {Constants::SHT}.
def type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(header, stream, offset_from_vma: nil)
@offset_from_vma = offset_from_vma
end

# Return +header.p_type+ in a simplier way.
# Return +header.p_type+ in a simpler way.
# @return [Integer]
# The type, meaning of types are defined in {Constants::PT}.
def type
Expand All @@ -35,19 +35,19 @@ def data
end

# Is this segment readable?
# @return [Boolean] Ture or false.
# @return [Boolean] True or false.
def readable?
(header.p_flags & 4) == 4
end

# Is this segment writable?
# @return [Boolean] Ture or false.
# @return [Boolean] True or false.
def writable?
(header.p_flags & 2) == 2
end

# Is this segment executable?
# @return [Boolean] Ture or false.
# @return [Boolean] True or false.
def executable?
(header.p_flags & 1) == 1
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module ELFTools
module Util
# Class methods.
module ClassMethods
# Round up the number to be mulitple of
# Round up the number to be multiple of
# +2**bit+.
# @param [Integer] num Number to be rounded-up.
# @param [Integer] bit How many bit to be aligned.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

module ELFTools
# Current gem version
VERSION = '1.2.0'
VERSION = '1.3.0'
end
Loading
Loading