From 13f2dc325eafda6e34774d3f54f3e5933c19ed70 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Mon, 17 Jul 2023 13:11:12 +0800 Subject: [PATCH] os/mac/mach: report duplicate rpaths We don't want to call `uniq` on this because this breaks our handling of duplicate rpaths. --- Library/Homebrew/os/mac/mach.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index 300b61ab47..f6268fe1e2 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -90,7 +90,7 @@ module MachOShim end def rpaths(resolve_variable_references: true) - names = macho.rpaths.uniq + names = macho.rpaths names.map! { |name| resolve_variable_name(name) } if resolve_variable_references