make extra extra extra EXTRA sure the goddamn libraries are writable

This commit is contained in:
Nadia Holmquist Pedersen 2021-09-01 17:05:22 +02:00
parent 75b6ea339a
commit aed92e533a
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ def fixup_libs(prog, orig_path)
throw "fixup_libs: #{prog} doesn't exist" unless File.exist? prog throw "fixup_libs: #{prog} doesn't exist" unless File.exist? prog
libs = get_load_libs(prog).map { |it| expand_load_path(orig_path, it) }.select { |it| not system_lib? it[0] } libs = get_load_libs(prog).map { |it| expand_load_path(orig_path, it) }.select { |it| not system_lib? it[0] }
FileUtils.chmod("u+w", prog)
strip prog strip prog
libs.each do |lib| libs.each do |lib|