Bug #51949 make_binary_distribution on Mac fails with embedded spaces in path to cmake
Submitted: 11 Mar 2010 10:17 Modified: 4 Aug 2010 22:43
Reporter: Lars Heill Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.5+ OS:MacOS
Assigned to: Vladislav Vaintroub CPU Architecture:Any

[11 Mar 2010 10:17] Lars Heill
Description:
make_binary_distribution fails on Mac in Pushbuild on next-mr, 6.0 due to
embedded spaces in path: 

${CMAKE_CPACK_COMMAND} resolves to cpack's real path with spaces, e.g
/Applications/CMake 2.6.4-app/Contents/bin/cpack.

How to repeat:
scripts/make_binary_distribution --platform=osx10.5-i386
scripts/make_binary_distribution: line 1: /Applications/CMake: No such file or directory

Suggested fix:
Enclose ${CMAKE_CPACK_COMMAND} in quotes.

Existing patch: http://lists.mysql.com/commits/102921
[11 Mar 2010 11:02] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/102980

3120 Vladislav Vaintroub	2010-03-11
      Bug#51949 - make_binary_distribution fails on Mac. 
      
      Unquoted ${CMAKE_CPACK_COMMAND} is used in this script. This variable resolves to cpack's real path with spaces, e.g /Applications/CMake 2.6.4-app/Contents/bin/cpack. Script fails due to
      lack of quotes.
      
      Fix is to use quotes around ${CMAKE_CPACK_COMMAND}.
[11 Mar 2010 13:27] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/103005

3120 Vladislav Vaintroub	2010-03-11
      Bug#51949 - make_binary_distribution fails on Mac. 
      
      Unquoted ${CMAKE_CPACK_COMMAND} is used in this script. This
      variable resolves to cpack's real path with spaces, e.g /Applications/CMake 2.6.4-app/Contents/bin/cpack. Script fails due to
      the lack of quotes.
      
      Fix is to use quotes around ${CMAKE_CPACK_COMMAND}.
[11 Mar 2010 14:42] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/103017

2992 Vladislav Vaintroub	2010-03-11
      Bug#51949 - make_binary_distribution fails on Mac. 
      
      Unquoted ${CMAKE_CPACK_COMMAND} is used in this script.
      This variable resolves to cpack's real path with spaces, e.g
       /Applications/CMake 2.6.4-app/Contents/bin/cpack. 
      Script fails due to lack of quotes.
      
      Fix is to use quotes around ${CMAKE_CPACK_COMMAND}.
[24 Mar 2010 8:15] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100324081249-yfwol7qtcek6dh7w) (version source revid:alik@sun.com-20100324081113-kc7x1iytnplww91u) (merge vers: 6.0.14-alpha) (pib:16)
[24 Mar 2010 8:18] Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100324081159-5b8juv8ldiqwce8v) (version source revid:alik@sun.com-20100324081105-y72rautcea375zxm) (pib:16)
[21 Apr 2010 11:24] Vladislav Vaintroub
already fixed
[4 Aug 2010 8:04] Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804080001-bny5271e65xo34ig) (version source revid:alik@sun.com-20100324081105-y72rautcea375zxm) (merge vers: 5.6.99-m4) (pib:18)
[4 Aug 2010 8:20] Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804081533-c1d3rbipo9e8rt1s) (version source revid:alik@sun.com-20100324081105-y72rautcea375zxm) (merge vers: 5.6.99-m4) (pib:18)
[4 Aug 2010 22:43] Paul DuBois
Bug does not appear in any released version.