forked from qt-creator/qt-creator
Build: Fix zipping of dev package on Linux
Official 7zip normally checks for the existence of symlink targets, and fails if they do not. That can be avoided with a command line flag. This is important for the dev packages on Linux, where the libFoo.so is a symlink to the actual library, and the symlink is part of the dev package, but the actual library part of the non-dev package. Change-Id: Ibd5855c4e106c96058a693d87e84d0f2d8f93365 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Patrik Teivonen <patrik.teivonen@qt.io>
This commit is contained in:
@@ -274,7 +274,10 @@ def package_qtcreator(args, paths):
|
||||
|
||||
# use -mf=off to avoid usage of the ARM executable compression filter,
|
||||
# which cannot be extracted by p7zip
|
||||
zip = ['7z', 'a', '-mmt' + args.zip_threads, '-mf=off']
|
||||
# use -snl to preserve symlinks even if their target doesn't exist
|
||||
# which is important for the _dev package on Linux
|
||||
# (only works with official/upstream 7zip)
|
||||
zip = ['7z', 'a', '-mmt' + args.zip_threads, '-mf=off', '-snl']
|
||||
if not args.no_zip:
|
||||
if not args.no_qtcreator:
|
||||
common.check_print_call(zip
|
||||
|
Reference in New Issue
Block a user