Wireshark mailing list archives

not all libraries included in macOS DMG


From: Peter Meiser <meiser () gmx com>
Date: Thu, 22 Feb 2018 00:34:56 +0100

Hi,

I found another issue while building a DMG on macOS 10.13.3.

While collecting the libraries which need to be added to the app bundle, objdump shows an error as follows:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: 
'Wireshark.app/Contents/Frameworks/QtCore.framework': Is a directory


Therefore, I added a check to filter out all directories in the $lib_dep_search_list, so that only files are evaluated.

--- a/packaging/macosx/osx-app.sh
+++ b/packaging/macosx/osx-app.sh
@@ -368,8 +368,11 @@ while $endl; do
        # when built by macosx-setup.sh.  We have to fix that; that's
        # what the sed command does.
        #
+       for i in $lib_dep_search_list; do
+               [ -f $i ] && libs="$libs $i";
+       done
        libs="`\
-               otool -L $lib_dep_search_list 2>/dev/null \
+               otool -L $libs 2>/dev/null \
                | fgrep compatibility \
                | cut -d\( -f1 \
                | sed '1,$s;^   libssh; /usr/local/lib/libssh;' \


Regards,
Peter

PS: Please CC me as I'm not subscribed to the mailing list.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: