[cmake-developers] [PATCH] stage/fix-OSX-bundle-rpaths-and-Qt5
Adam Strzelecki
ono at java.pl
Sun Sep 21 14:34:15 EDT 2014
FYI I pushed updated branch stage/fix-OSX-bundle-rpaths-and-Qt5 with reworked codesign fix at e6cdf62d3a7d8b30466bb82f04026f8a06222c8a. The previous worked well for <= 10.9.4, but doesn't work anymore.
Since 10.9.5 there is new policy that prevents codesign when bundle contains framework with invalid layout, this commit tries to fix the layout (which is the case of Qt frameworks!).
https://developer.apple.com/library/mac/technotes/tn2206
Altogether with this updated commit it now builds CMake.app well again with Qt5 and it can be code signed with: codesign -s 'Developer ID' --deep CMake.app on 10.9.5 and Yosemite.
commit e6cdf62d3a7d8b30466bb82f04026f8a06222c8a
Author: Adam Strzelecki <ono at java.pl>
Date: Thu Sep 4 15:01:17 2014 +0200
Framework codesign Resources/Info.plist & Current
We need to ensure copied framework has proper layout with Resources/Info.plist
present next to versioned binary and Current symlink in Versions:
https://developer.apple.com/library/mac/technotes/tn2206
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
If Resources/ is not present we may try to copy Contents/Info.plist if present
to embedded Resources/Info.plist. This is a case of Qt5 that has
obsolete/invalid framework layout (see QTBUG-38511).
--Adam
More information about the cmake-developers
mailing list