From bb588b5792ef375180e632b55d32c1367a1fac2b Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia Date: Tue, 3 Sep 2024 21:25:07 +0200 Subject: [PATCH] Yeet. --- brew-pkg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brew-pkg.rb b/brew-pkg.rb index ee4d78f..97b5778 100755 --- a/brew-pkg.rb +++ b/brew-pkg.rb @@ -41,7 +41,7 @@ def patchelf(root_dir, prefix_path, binary, format='@executable_path') lib_paths.each do |lib| lib_path = (File.realpath(File.join(root_dir, lib)) rescue nil) - if lib_path + if lib_path && lib_path != binary_path # Obtain the relative path from the executable lib_relative_path = lib_path.delete_prefix(full_prefix_path) binary_relative_path = File.dirname(binary_path).delete_prefix(full_prefix_path)