From e13029a1ea9e3b5bd67e7f0e670e8813ee6bbcbc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 17 Jul 2019 12:55:51 +0200 Subject: Increase hidutil -megabytes at least for --enable-dbgutil ...where my --with-package-format=dmg build routinely fails with > : ********************************************************************* > : ERROR: The following errors occurred in packaging process: > : > : ERROR: Could not execute "cd /Users/stephan/Software/lo/core/workdir/installation/LibreOffice/dmg/install/en-US_inprogress_temp.19857 && hdiutil create -megabytes 1500 -srcfolder LibreOffice_6.4.0.0.alpha0_MacOS_x86-64 /Users/stephan/Software/lo/core/workdir/installation/LibreOffice/dmg/install/en-US_inprogress/LibreOffice_6.4.0.0.alpha0_MacOS_x86-64.dmg -ov -fs HFS+ -volname "LibreOffice" -format UDBZ": 256 > : ********************************************************************* No idea whether -megabytes 1500 was chosen for a specific reason, so leave it alone for --disable-dbgutil builds for now. Change-Id: Ie89d1043e47ed3c84167cbb22325513305013f86 Reviewed-on: https://gerrit.libreoffice.org/75775 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- solenv/bin/modules/installer/simplepackage.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'solenv/bin/modules/installer') diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm index 489f2127688e..78a09e78e5e5 100644 --- a/solenv/bin/modules/installer/simplepackage.pm +++ b/solenv/bin/modules/installer/simplepackage.pm @@ -426,7 +426,9 @@ sub create_package } } - $systemcall = "cd $localtempdir && hdiutil create -megabytes 1500 -srcfolder $folder $archive -ov -fs HFS+ -volname \"$volume_name\" -format UDBZ"; + my $megabytes = 1500; + $megabytes = 2000 if $ENV{'ENABLE_DBGUTIL'}; + $systemcall = "cd $localtempdir && hdiutil create -megabytes $megabytes -srcfolder $folder $archive -ov -fs HFS+ -volname \"$volume_name\" -format UDBZ"; if (( $ref ne "" ) && ( $$ref ne "" )) { $systemcall .= " && hdiutil unflatten $archive && Rez -a $$ref -o $archive && hdiutil flatten $archive &&"; } -- cgit v1.2.3