Wireshark-dev: Re: [Wireshark-dev] not all libraries included in macOS DMG
From: Peter Meiser <meiser@xxxxxxx>
Date: Thu, 22 Feb 2018 20:39:53 +0100
Hi,

I like your idea. The attached patch works fine for me.

Regards,
Peter

Am 22.02.2018 um 19:52 schrieb Guy Harris:
> find "$pkglib" "$pkgexec" -type f -print0 | xargs -0 otool -L $lib_dep_search_list
diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh
index cb507ae17b..429cef7d92 100755
--- a/packaging/macosx/osx-app.sh
+++ b/packaging/macosx/osx-app.sh
@@ -354,11 +354,6 @@ echo -e "\nFixing up $bundle...\n"
 a=1
 nfiles=0
 endl=true
-lib_dep_search_list="
-	$pkglib/*
-	$pkgexec/*
-	$pkgexec/extcap/*
-	"
 
 while $endl; do
 	echo -e "Looking for dependencies. Round" $a
@@ -369,7 +364,8 @@ while $endl; do
 	# what the sed command does.
 	#
 	libs="`\
-		otool -L $lib_dep_search_list 2>/dev/null \
+		find "$pkglib" "$pkgexec" -type f -print0 \
+		| xargs -0 otool -L 2>/dev/null \
 		| fgrep compatibility \
 		| cut -d\( -f1 \
 		| sed '1,$s;^	libssh;	/usr/local/lib/libssh;' \
 		exit 1