MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013017 | CMake | CPack | public | 2012-03-05 19:18 | 2016-06-10 14:31 |
Reporter | Torsten Rohlfing | ||||
Assigned To | Kitware Robot | ||||
Priority | low | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | moved | ||
Platform | Apple | OS | Darwin | OS Version | 10.6 |
Product Version | CMake 2.8.6 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013017: PackageMaker generator sometimes fails when virus scanner active | ||||
Description | CPack using the PackageManager generator sometimes (most of the time, really) fails on MacOS when a virus scanner is installed. IMPORTANT - This is not so much a CPack bug report as a hint that others may potentially find useful when they encounter the same situation (right now Google is useless for this issue). That said, it might be possible for CPack to implement a workaround, e.g., repeating hdiutil one or two times if this condition is encountered. The exact problem is that when the package file is created, the virus scanner (mine is Symantec) tries to scan the mounted temporary volume. If the scan is still running when "hdiutil" tries to unmount the volume, then unmounting will fail and as a result, package generation will too. Workaround - re-run the "hdiutil" command a couple of times. Eventually the virus scan will complete within the three unmount retries the hdiutil performs, and then package creation succeeds. | ||||
Steps To Reproduce | Run cpack -G PackageMaker Sometimes (> 50%) the following results: Pack Error: Problem running hdiutil command: "/usr/bin/hdiutil" create -ov -format UDZO -srcfolder "/Users/torsten/cmtk/release/OSX-10.6/_CPack_Packages/Darwin/PackageMaker/CMTK-2.1.3-MacOSX-10.6-x86_64.mpkg" "/Users/torsten/cmtk/release/OSX-10.6/_CPack_Packages/Darwin/PackageMaker/CMTK-2.1.3-MacOSX-10.6-x86_64.dmg" Please check /Users/torsten/cmtk/release/OSX-10.6/_CPack_Packages/Darwin/PackageMaker/hdiutilOutput.log for errors CPack Error: Problem compressing the directory CPack Error: Error when generating package: CMTK The error log file contains the following: detachTempimageFile: synchronous unmount /dev/disk2s1 returned 49153 retrying unmount (#1)... detachTempImageFile: synchronous retry (#1) unmount /Volumes/CMTK-2.1.3-MacOSX-10.6-x86_64 (/dev/disk2s1) returned 49153 retrying unmount (0000002)... detachTempImageFile: synchronous retry (#1) unmount /Volumes/CMTK-2.1.3-MacOSX-10.6-x86_64 (/dev/disk2s1) returned 49153 retrying unmount (0000003)... detachTempImageFile: synchronous retry (#1) unmount /Volumes/CMTK-2.1.3-MacOSX-10.6-x86_64 (/dev/disk2s1) returned 49153 hdiutil: create failed - Resource busy | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-03-05 19:18 | Torsten Rohlfing | New Issue | |||
2012-08-11 21:09 | David Cole | Status | new => backlog | ||
2012-08-11 21:09 | David Cole | Note Added: 0030373 | |||
2016-06-10 14:28 | Kitware Robot | Note Added: 0041996 | |||
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|