Hello Sergei, Mixed results when just using CMAKE_PACKAGING_INSTALL_PREFIX to build Mariadb RPMs with a non-default install prefix. Good news: the installed files use the supplied install prefix instead of /usr. Bad news: the server post install script blew up and killed my machine. It did "chown -R mysql /" by mistake. The problem is caused by %{_sbindir} not being set to the new install directory. I hacked the post install script to print some debug info. running expr : / expr: syntax error sbindir=/usr/sbin bindir=/usr/bin basedir= datadir= As you can see, the expr command is run with a null datadir, which happens because /usr/sbin/mysqld does not exist, which happens because the _sbindir variable is "/usr/sbin" rather than CMAKE_PACKAGING_INSTALL_PREFIX/sbin. Any ideas how to fix this? On Fri, Jan 25, 2013 at 11:20 AM, Sergei Golubchik <serg@askmonty.org> wrote:
Hi, Rich!
On Jan 24, Rich Prohaska wrote:
Is it possible to change the MariaDB RPM install directory to be something like /opt/someotherplace? I tried using CMAKE_INSTALL_PREFIX but it seemed to be ignored.
Set CPACK_PACKAGING_INSTALL_PREFIX, that works. It doesn't move /etc (because /etc is specified in the install_layout.cmake as an absolute path), but everything else will be under your ${CPACK_PACKAGING_INSTALL_PREFIX} path.
Regards, Sergei