View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013833CMakeCMakepublic2013-01-04 01:042016-06-10 14:31
ReporterMatt Arsenault 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013833: fixup_bundle fails with libraries that aren't writable
DescriptionI'm having the same problem described here with 2.8.9, so this looks like a regression: http://www.cmake.org/Bug/view.php?id=9284 [^]

-- 26/34: fixing up 'install_prefix/example.app/Contents/MacOS/libcrypto.1.0.0.dylib'
install_name_tool: can't open input file: install_prefix/example.app/Contents/MacOS/libcrypto.1.0.0.dylib for writing (Permission denied)
install_name_tool: can't lseek to offset: 0 in file: install_prefix/example.app/Contents/MacOS/libcrypto.1.0.0.dylib for writing (Bad file descriptor)
install_name_tool: can't write new headers in file: install_prefix/example.app/Contents/MacOS/libcrypto.1.0.0.dylib (Bad file descriptor)
install_name_tool: can't close written on input file: install_prefix/example.app/Contents/MacOS/libcrypto.1.0.0.dylib (Bad file descriptor)


$ ls -l /opt/local/lib/libcrypto.1.0.0.dylib
-r-xr-xr-x 1 root admin 1.6M Jul 27 04:40 /opt/local/lib/libcrypto.1.0.0.dylib
Steps To Reproduce1. Try to use fixup_bundle with a library dependency that isn't writable, e.g. libcrypto and libssl from macports.

2. It fails with a permission error
TagsNo tags attached.
Attached Fileslog file icon ctest-bundle-utilities.log [^] (6,055 bytes) 2015-04-28 01:51

 Relationships

  Notes
(0031972)
David Cole (manager)
2013-01-04 06:57

The fix for 0009284 was to add *optionally* enabled chmod of copied libraries (but still no chmod by default)...

The fix noted in 0009284 was to add a BU_CHMOD_BUNDLE_ITEMS variable, which if set before including BundleUtilities, adds the chmod calls.

Do you set that variable before including BundleUtilities?

Something like this:

  set(BU_CHMOD_BUNDLE_ITEMS ON)
(0032098)
Matt Arsenault (reporter)
2013-01-12 03:02

I didn't see that as part of the fix, so no
(0038625)
宋文武 (reporter)
2015-04-28 01:51
edited on: 2015-04-28 01:53

Hi, even with BU_CHMOD_BUNDLE_ITEMS=ON,
the fixup_bundle may still fail when 'RPATH_REMOVE' in copying' phase.

It's the reason for BundleUtilies test failure I met.

log attached as ctest-bundle-utilities.log

(0042192)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2013-01-04 01:04 Matt Arsenault New Issue
2013-01-04 06:57 David Cole Note Added: 0031972
2013-01-12 03:02 Matt Arsenault Note Added: 0032098
2015-04-28 01:51 宋文武 Note Added: 0038625
2015-04-28 01:51 宋文武 File Added: ctest-bundle-utilities.log
2015-04-28 01:53 宋文武 Note Edited: 0038625
2016-06-10 14:28 Kitware Robot Note Added: 0042192
2016-06-10 14:28 Kitware Robot Status new => 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


Copyright © 2000 - 2018 MantisBT Team