Skip to content

Commit 7e4b0e8

Browse files
committed
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.
1 parent e980165 commit 7e4b0e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/osx/cp-with-libs

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ is_sys_lib() {
2727
/System/*)
2828
true
2929
;;
30+
/usr/local/*) # homebrew/manual install
31+
false
32+
;;
3033
/usr/*)
3134
true
3235
;;
@@ -54,7 +57,7 @@ install_with_deps() {
5457

5558
if [ -e "$dest_file" ]; then
5659
return
57-
fi
60+
fi
5861

5962
echo "Installing $bin_name..."
6063

0 commit comments

Comments
 (0)