| Bug #58950 | regression: new cmake build system lacks some features that were there before | ||
|---|---|---|---|
| Submitted: | 15 Dec 2010 19:31 | Modified: | 15 Dec 2010 20:50 |
| Reporter: | Arkadiusz Miskiewicz (Basic Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Installing | Severity: | S3 (Non-critical) |
| Version: | 5.5.8 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[15 Dec 2010 20:22]
Sveta Smirnova
Thank you for the report. At http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html#option_cmake_cmak... I see almost every option you use, maybe except: --exec-prefix=/some/execprefix \ --libexecdir=/blah/lib64 \ --localstatedir=/var/run \ Should they still be available?
[15 Dec 2010 20:50]
Arkadiusz Miskiewicz
I managed to get quite the same behaviour with options bellow. This bug can be closed as invalid then.
%{cmake} \
%{?debug:-DWITH_DEBUG=ON} \
-DWITH_FAST_MUTEXES=ON \
-DWITH_LIBEDIT=OFF \
-DWITH_READLINE=ON \
-DWITH_SSL=yes \
-DWITH_ZLIB=system \
-DCURSES_INCLUDE_PATH=%{_includedir}/ncurses \
-DCMAKE_INSTALl_PREFIX="" \
-DINSTALL_INCLUDEDIR=%{_includedir}/mysql \
-DINSTALL_BINDIR=%{_bindir} \
-DINSTALL_DOCDIR=%{_docdir}/%{name}-%{version} \
-DINSTALL_DOCREADMEDIR=%{_docdir}/%{name}-%{version} \
-DINSTALL_INFODIR=%{_infodir} \
-DINSTALL_LIBDIR=%{_libdir} \
-DINSTALL_MANDIR=%{_mandir} \
-DINSTALL_MYSQLDATADIR=/var/lib/mysql \
-DINSTALL_MYSQLSHAREDIR=%{_datadir}/mysql \
-DINSTALL_MYSQLTESTDIR=%{_datadir}/mysql-test \
-DINSTALL_PLUGINDIR=%{_libdir}/mysql/plugin \
-DINSTALL_SBINDIR=%{_sbindir} \
-DINSTALL_SCRIPTDIR=%{_bindir} \
-DINSTALL_SHAREDIR=%{_datadir} \
-DINSTALL_SQLBENCHDIR=%{_datadir} \
-DINSTALL_SUPPORTFILESDIR=%{_datadir}/mysql-support \
..

Description: Previously (in 5.1 with auto* build system) I was able to configure with: --prefix=/some/prefix \ --exec-prefix=/some/execprefix \ --bindir=/usr/bin \ --sbindir=/other/sbin \ --sysconfdir=/etc/sys/mysql \ --datadir=/usr/share/data \ --includedir=/usr/include \ --libdir=/usr/lib64 \ --libexecdir=/blah/lib64 \ --localstatedir=/var/run \ --sharedstatedir=/wium \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-unix-socket-path=/var/lib/mysql/mysql.sock and mysql build process obeyed to these rules. New cmake build system seem to lack these features. Looks like I'll have to hack build cmake files to get what old system allowed me to do. I consider this serious regression when comparing to old build system. How to repeat: Try using options mentioned in "Description" Suggested fix: Add options to cmake build system that were in auto* based system.