SUMMARY KDiff3 on binary-factory is currently failing on OS X with the fallowing. 00:44:13 error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolch= ain/usr/bin/install_name_tool: for: /Users/packaging/Craft/BinaryFactory/macos-64-clang/build/extragear/kd= iff3/image-RelWithDebInfo-master/Users/packaging/Craft/BinaryFactory/macos-= 64-clang/plugins/kf5/parts/kdiff3part.so (for architecture x86_64) option "-add_rpath /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib" would duplicate path, file already has LC_RPATH for: /Users/packaging/Craft/BinaryFactory/macos-64-clang/lib Errors of this sort appear in other projects as well. Unfortunately I don't have the ability to do local testing of MacOS X craft builds. For KDiff3 I can work around this by not generating the shared lib which is only really needed as on linux/KDE platforms. My research on this issue indicates it is a compatibility issue between -rpath and certain versions of apples tool chain.
The error is: 01:47:12 executing command: /usr/bin/codesign --keychain /Users/packaging/Library/Keychains/login.keychain --sign Developer ID Application: K Desktop Environment e.V. (5433B4KXM8) --force --preserve-metadata=entitlements --options runtime --verbose=99 --deep /Users/packaging/Craft/BinaryFactory/macos-64-clang/build/extragear/kdiff3/archive/Applications/KDE/kdiff3.app 01:47:32 /Users/packaging/Craft/BinaryFactory/macos-64-clang/build/extragear/kdiff3/archive/Applications/KDE/kdiff3.app: bundle format unrecognized, invalid, or unsuitable 01:47:32 In subcomponent: /Users/packaging/Craft/BinaryFactory/macos-64-clang/build/extragear/kdiff3/archive/Applications/KDE/kdiff3.app/Contents/PlugIns/kf5/org.kde.kwindowsystem.platforms
Workaround https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/5fb5acc8ed7866eab46c7a8b36514a9a9cc78a76
I'll go ahead and try the work around you suggested but if you look at https://binary-factory.kde.org/job/KDiff3_Nightly_macos/105/consoleFull The error I mentioned precedes the signing fail. Could please clarify why it is not the root cause?
That got it working. Would be nice to have this documented.