Skip to content
Snippets Groups Projects
Commit 97a66aa5 authored by William Woodruff's avatar William Woodruff Committed by Martin Afanasjew
Browse files

os/mac: Update ruby-macho calls for compatibility with 0.2.5.


Closes #656.

Signed-off-by: default avatarMartin Afanasjew <martin@afanasjew.de>
parent 5caa812e
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ module RubyKeg
def change_dylib_id(id, file)
@require_install_name_tool = true
puts "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" if ARGV.debug?
MachO::Tools.change_dylib_id(file, id)
MachO::Tools.change_dylib_id(file, id, :strict => false)
rescue MachO::MachOError
onoe <<-EOS.undent
Failed changing dylib ID of #{file}
......@@ -17,7 +17,7 @@ module RubyKeg
def change_install_name(old, new, file)
@require_install_name_tool = true
puts "Changing install name in #{file}\n from #{old}\n to #{new}" if ARGV.debug?
MachO::Tools.change_install_name(file, old, new)
MachO::Tools.change_install_name(file, old, new, :strict => false)
rescue MachO::MachOError
onoe <<-EOS.undent
Failed changing install name in #{file}
......
......@@ -14,7 +14,7 @@ module RubyMachO
machos = []
mach_data = []
if MachO.fat_magic?(macho.magic)
if MachO::Utils.fat_magic?(macho.magic)
machos = macho.machos
else
machos << macho
......@@ -28,9 +28,8 @@ module RubyMachO
end
type = case m.filetype
when "MH_EXECUTE" then :executable
when "MH_DYLIB" then :dylib
when "MH_BUNDLE" then :bundle
when :dylib, :bundle then m.filetype
when :execute then :executable
else :dunno
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment