mariadb: fix prefix for scripts

fixes #43777
This commit is contained in:
classabbyamp 2023-05-07 14:30:00 -04:00 committed by classabbyamp
parent ea2b5d24fc
commit 4ea8d5b5b9
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,22 @@
--- a/cmake/install_layout.cmake
+++ b/cmake/install_layout.cmake
@@ -88,7 +88,7 @@
ELSEIF(INSTALL_LAYOUT MATCHES "SVR4")
SET(default_prefix "/opt/mysql/mysql")
ELSE()
- SET(default_prefix "/usr/local/mysql")
+ SET(default_prefix "/usr")
ENDIF()
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX ${default_prefix}
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -181,7 +181,7 @@
# the documentation, so better not change this.
IF(INSTALL_LAYOUT MATCHES "STANDALONE")
- SET(prefix ".")
+ SET(prefix "${CMAKE_INSTALL_PREFIX}")
SET(bindir ${prefix}/${INSTALL_BINDIR})
SET(sbindir ${prefix}/${INSTALL_SBINDIR})
SET(scriptdir ${prefix}/${INSTALL_BINDIR})

View File

@ -1,7 +1,7 @@
# Template file for 'mariadb'
pkgname=mariadb
version=10.5.10
revision=4
revision=5
build_style=cmake
build_helper=qemu
configure_args="-DBUILD_CONFIG=mysql_release