[cmake-developers] [CMake 0015627]: CMake shouldn't default to installing command-line tools in /usr/bin

Mantis Bug Tracker mantis at public.kitware.com
Tue Jun 23 17:48:32 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15627 
====================================================================== 
Reported By:                Guy Harris
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15627
Category:                   CMake
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-06-23 17:48 EDT
Last Modified:              2015-06-23 17:48 EDT
====================================================================== 
Summary:                    CMake shouldn't default to installing command-line
tools in /usr/bin
Description: 
/usr/bin is for Apple-supplied command-line tools, not third-party tools, just
as /System/Library is for Applie-supplied software and /Library is for
third-party software.

Until El Capitan, you could get away with installing command-line tools in
/usr/bin, although you needed to run with root privileges to do so, and if you
upgrade to the next major release, /usr/bin gets reconstructed and you lose all
the third-party tools installed there.

In El Capitan, even root processes can't modify /usr/bin unless they're granted
special entitlements (which Apple's unlikely to grant to third-party tools) or
you're running with rootless mode turned off (which it isn't, by default, and
you have to go through some effort to turn it off).

You should default to installing in /usr/local/bin instead.

Steps to Reproduce: 
1. Start CMake.

2. Select "Install For Command Line Use" from the Tools menu.

3. Note the default target directory of /usr/bin.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-06-23 17:48 Guy Harris     New Issue                                    
======================================================================



More information about the cmake-developers mailing list