View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015202CMakeCMakepublic2014-10-10 16:592015-04-06 09:07
ReporterMark Manthei 
Assigned ToDavid Cole 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionno change required 
PlatformApple MacOSOS XOS Version10.7, 10.8, 10.9
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015202: BundleUtilities.cmake - function fixup_bundle_item fails with very long path
Descriptionwhen fixing up a very long exe inside of a bundle, the code attempts to figure out if the item is embedded in the bundle. The current logic fails because the SUBSTRING search starts at offset 0 and can fail to find the embedded item in the given length.

From debug output of BundleUtilities.cmake:

-- 22/42: fixing up '/Users/autobuild/hudson/workspace/Product-Mac/build/Installed/Really Long App Name.app/Contents/MacOS/embeddeditem
exe_dotapp_dir/='Installed/Really Long App Name.app/'
item_substring='/Users/autobuild/hudson/workspace/R'
Steps To ReproduceUse long paths.
Additional InformationPatch to fix issue, CMake version 3.0.2 attached
TagsNo tags attached.
Attached Filespatch file icon BundleUtilities.patch [^] (586 bytes) 2014-10-10 16:59 [Show Content]

 Relationships

  Notes
(0037019)
David Cole (manager)
2014-10-10 17:16

It looks to me like the value of exe_dotapp_dir should be "/Users/autobuild/hudson/workspace/Product-Mac/build/Installed/Really Long App Name.app/" and the fact that it's not is what your problem is...

It should be a full absolute path, not a partial/relative path...

This patch should be unnecessary.

What are your arguments to fixup_bundle? All dirs should be ABSOLUTE full path directories when passed in as args to the function.
(0037020)
David Cole (manager)
2014-10-10 17:17

The point of that code is that the path of the already embedded item *starts with* the the path of the .app directory. So it doesn't make sense to start the scan at anything other than 0.
(0037021)
David Cole (manager)
2014-10-10 17:18

patch is incorrect - do not apply...
(0038422)
Robert Maynard (manager)
2015-04-06 09:07

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-10-10 16:59 Mark Manthei New Issue
2014-10-10 16:59 Mark Manthei File Added: BundleUtilities.patch
2014-10-10 17:16 David Cole Note Added: 0037019
2014-10-10 17:17 David Cole Note Added: 0037020
2014-10-10 17:18 David Cole Note Added: 0037021
2014-10-10 17:18 David Cole Status new => resolved
2014-10-10 17:18 David Cole Resolution open => no change required
2014-10-10 17:18 David Cole Assigned To => David Cole
2015-04-06 09:07 Robert Maynard Note Added: 0038422
2015-04-06 09:07 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team