summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qlayout.h
diff options
context:
space:
mode:
authorMaximilian Blochberger <[email protected]>2025-06-26 17:37:27 +0200
committerQt Cherry-pick Bot <[email protected]>2025-07-08 08:07:28 +0000
commit12c6377cba41ebe0f354ee330c9f1e26463070e9 (patch)
treefd0c8b1c099a6fc585371ef138788fd43801993a /src/widgets/kernel/qlayout.h
parent4ffab9a89e8e40cdecae3bad9b165bd787af3d0d (diff)
Fail builds on Apple platforms with invalid Info.plist6.10
Information property lists (Info.plist) files are part of application bundles on Apple platforms and contain basic information about the application, such as the name of the application's executable. The Info.plist file can have multiple formats, such as binary or XML. Makefiles generated by qmake convert Info.plist files to XML by default, so that variables in the Info.plist can be substituted with values defined by qmake, such as the name of the application's executable. This is important if users use external tools such as Xcode for modifying the Info.plist file, which may save it in binary format. To convert the formats, the plutil tool shipped with macOS (or the Xcode command-line tools) is used. The Unix tool sed is then used to actually substitute variables. If the Info.plist file is invalid, e.g., due to an invalid tag name, the plutil invocation fails. However, the converted plist is piped into sed for variable substitution. The plutil command will simply write an error message to standard out and return with a non-zero exit code. Due to the pipe chain, make will not fail and the error message will end up in the Info.plist in the built application bundle. The application bundle is then invalid as well, as vital information such as the name of the executable of the application is missing. The change ensures that the pipe chain fails, if plutil exits with a non-zero exit code. The issue was introduced with my solution for QTBUG-45357. Beforehand, Info.plists and mistakes therein were simply copied into the application bundle. [ChangeLog][qmake] Fail builds on Apple platforms if the Info.plist is invalid instead of generating corrupt application bundles. Pick-to: 6.9 6.5 Change-Id: Ibdb2a18e9bbf35a654af8534aa61188f8389c55a Reviewed-by: Joerg Bornemann <[email protected]> Reviewed-by: Tor Arne Vestbø <[email protected]> (cherry picked from commit d65a45d2bcca25adb4f0d3ea29092f274f0c2a6d) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Diffstat (limited to 'src/widgets/kernel/qlayout.h')
0 files changed, 0 insertions, 0 deletions