Opened 12 years ago

Closed 12 years ago

#36287 closed defect (fixed)

cmake +gui installed in a wrong place and without bin/cmake

Reported by: robsonpeixoto@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: cmake

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The cmake was installed in '/opt/local/CMake 2.8-9.app', and don't have a symlink from ${prefix}/CMake 2.8-9.app/Contents/bin to ${prefix}/bin

$ port contents cmake | grep bin 
  /opt/local/CMake 2.8-9.app/Contents/MacOS/libintl.8.dylib
  /opt/local/CMake 2.8-9.app/Contents/bin/ccmake
  /opt/local/CMake 2.8-9.app/Contents/bin/cmake
  /opt/local/CMake 2.8-9.app/Contents/bin/cmake-gui
  /opt/local/CMake 2.8-9.app/Contents/bin/cmakexbuild
  /opt/local/CMake 2.8-9.app/Contents/bin/cpack
  /opt/local/CMake 2.8-9.app/Contents/bin/ctest
  /opt/local/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/FindCUDA/parse_cubin.cmake

Attachments (2)

cmake_contents.txt (56.8 KB) - added by robsonpeixoto@… 12 years ago.
port contents cmake
fix-cmake-2.8.9-port-gui-variant.patch (6.6 KB) - added by maehne (Torsten Maehne) 12 years ago.
Patch for CMake 2.8.9 port.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by robsonpeixoto@…

Attachment: cmake_contents.txt added

port contents cmake

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: css@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to css@…

This might relate to #30539.

comment:2 Changed 12 years ago by maehne (Torsten Maehne)

I agree, it relates to #30539. Not all necessary patches are applied by the CMake 2.8.9 Portfile. Especially, patch-CMakeLists.txt.diff has been commented out, which causes the application bundle to be created in ${prefix}/ if the +gui variant is selected. In consequence, the CMake command line tools are not anymore installed under the usual ${prefix}/bin path. Additionally, warnings and errors are generated when applying the patches in patch-CMakeLists.txt.diff and patch-Modules-FindQt4.cmake.diff due to changes in the upstream source code.

The attached patch fix-cmake-2.8.9-port-gui-variant.patch fixes the CMake 2.8.9 port. It updates the patches so that they can be applied without error. CMake is installed under ${prefix}/ in the same layout as without the +gui variant. The CMake app bundle is manually created as described in #30539 by configuring an appropriate Infos.plist and linking to cmake-gui from the app bundle. Thus, non of the installed files of CMake are duplicated by copying them in the app bundle, which is installed in the Applications/MacPorts folder.

Once this patch is applied, also #30539 can be closed.

Changed 12 years ago by maehne (Torsten Maehne)

Patch for CMake 2.8.9 port.

comment:3 Changed 12 years ago by zoleg@…

why cmake in ports not updated?

comment:4 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: newclosed

Fixed in r99977.

Note: See TracTickets for help on using tickets.