foxygit / doom Log in
commit 7e4b0e8c20cf4024c193da391a4d162995ec382f
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Thu Aug 22 22:26:12 2024 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Thu Aug 22 22:26:12 2024 -0400

    osx: /usr/local files are not system libraries

    Anything in /usr/local has been installed locally and is not part of the
    OS. In particular, Homebrew installs packages into /usr/local; if we
    want to bundle libraries from Homebrew then these need to be excluded
    from the /usr pattern immediately below.
---
 pkg/osx/cp-with-libs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pkg/osx/cp-with-libs b/pkg/osx/cp-with-libs
index 04fb5bc6..7a2e7d5d 100755
--- a/pkg/osx/cp-with-libs
+++ b/pkg/osx/cp-with-libs
@@ -27,6 +27,9 @@ is_sys_lib() {
 		/System/*)
 			true
 			;;
+		/usr/local/*)  # homebrew/manual install
+			false
+			;;
 		/usr/*)
 			true
 			;;
@@ -54,7 +57,7 @@ install_with_deps() {

 	if [ -e "$dest_file" ]; then
 		return
-	fi
+	fi

 	echo "Installing $bin_name..."