Bug #52149 packaging differences in CMake build
Submitted: 17 Mar 2010 17:31 Modified: 24 Mar 2010 17:28
Reporter: Vladislav Vaintroub Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any (UNIX)
Assigned to: Vladislav Vaintroub CPU Architecture:Any

[17 Mar 2010 17:31] Vladislav Vaintroub
Description:
There are sweveral packaging differences in CMake build that  are making problems especially when producing RPMs.

1) /usr/lib/mysql/libmysqlservices.a is not packaged (this library is thought for 3rd parties like storage engine makers as interface for calling functions inside mysql server)

2) /usr/lib/mysql/libmysqld-debug.a is missing (debug build ran before optimized)

3) /usr/lib/libmysqlclient_r.so.16 and    /usr/lib/libmysqlclient_r.so.16.0.0
are missing

4) When mysql-test is installed into /usr/share/mysql-test, then 
mysql-test-run, mtr and lib/my/SafeProcess are missing  from the mysql-test directory.

How to repeat:
Compile mysqlserver with cmake -DINSTALL_MYSQLTESTDIR=share/mysql-test, issue
"make install DESTDIR=somedir", examine contents of somedir.
[17 Mar 2010 17:48] 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/103624

3000 Vladislav Vaintroub	2010-03-17
      Bug #52149 - packaging differences in CMake build
      
      Corrected some packaging bugs:
      - install mysqlservices library
      - install libmysqlclient_r.so.{16,16.0.0} as links
        to libmysqlclient.so
      - install libmysqld-debug.a
      - install my_safe_process, my_safe_kill and
        symlinks to mysql-test-run.pl (mtr, mysql-test-run)
        into correct place ${INSTALL_MYSQLTESTDIR}
     @ cmake/install_macros.cmake
        Refactor INSTALL_SYMLINK to allow arbitrary symlink paths.
        Old version of this macro would make link extension the same 
        as in target. This was not sufficient in some scenarios 
        (would not allow for example libmysqlclient_r.so.16=>./libmysqlclient.so 
        link)
     @ libmysql/CMakeLists.txt
        Install extra symlinks to libmysqlclient.so
        (libmysqlclient_r.so.16 and libmysqlclient_r.so.16.0.0)
        for backward compatiblity.
     @ libmysqld/CMakeLists.txt
        install libmysqld-debug.a
     @ libservices/CMakeLists.txt
        install mysqlservices library
     @ mysql-test/lib/My/SafeProcess/CMakeLists.txt
        install my_safe_process, my_safe_kill into  correct place
[17 Mar 2010 18:56] 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/103631

3000 Vladislav Vaintroub	2010-03-17
      Bug #52149 - packaging differences in CMake build
      
      Corrected some packaging bugs:
      - install mysqlservices library
      - install libmysqlclient_r.so.{16,16.0.0} as links
        to libmysqlclient.so
      - install libmysqld-debug.a
      - install my_safe_process, my_safe_kill and
        symlinks to mysql-test-run.pl (mtr, mysql-test-run)
        into correct place ${INSTALL_MYSQLTESTDIR}
     @ cmake/install_layout.cmake
        Fix typo
     @ cmake/install_macros.cmake
        Refactor INSTALL_SYMLINK to allow arbitrary symlink paths.
        Old version of this macro would make link extension the same 
        as in target. This was not sufficient in some scenarios 
        (would not allow for example libmysqlclient_r.so.16=>./libmysqlclient.so 
        link)
     @ libmysql/CMakeLists.txt
        Install extra symlinks to libmysqlclient.so
        (libmysqlclient_r.so.16 and libmysqlclient_r.so.16.0.0)
        for backward compatiblity.
     @ libmysqld/CMakeLists.txt
        install libmysqld-debug.a
     @ libservices/CMakeLists.txt
        install mysqlservices library
     @ mysql-test/lib/My/SafeProcess/CMakeLists.txt
        install my_safe_process, my_safe_kill into  correct place
[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:16] Bugs System
Pushed into 5.5.4-m3 (revid:alik@sun.com-20100324081056-6bndv6f0nrvbblhp) (version source revid:alik@sun.com-20100324081056-6bndv6f0nrvbblhp) (merge vers: 5.5.4-m3) (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)
[24 Mar 2010 17:28] Paul DuBois
Not in any released version. No changelog entry needed.