2014-07-25 14:51:11 +00:00
|
|
|
Some hard-coded paths make problems when package is built into chroot like
|
|
|
|
Software Collections. Removing these hard-coded paths should fix it.
|
|
|
|
|
|
|
|
Upstream report: https://mariadb.atlassian.net/browse/MDEV-6485
|
|
|
|
|
2018-04-25 08:13:27 +00:00
|
|
|
diff --git a/cmake/install_layout.cmake b/cmake/install_layout.cmake
|
2019-08-02 11:44:21 +00:00
|
|
|
index 17ea6443..1d38e3eb 100644
|
2018-04-25 08:13:27 +00:00
|
|
|
--- a/cmake/install_layout.cmake
|
|
|
|
+++ b/cmake/install_layout.cmake
|
2019-08-02 11:44:21 +00:00
|
|
|
@@ -115,7 +115,7 @@ IF(UNIX)
|
2015-02-23 12:38:37 +00:00
|
|
|
" Choose between ${VALID_INSTALL_LAYOUTS}" )
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
- SET(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc"
|
|
|
|
+ SET(SYSCONFDIR "/etc"
|
|
|
|
CACHE PATH "config directory (for my.cnf)")
|
|
|
|
MARK_AS_ADVANCED(SYSCONFDIR)
|
|
|
|
ENDIF()
|
2019-08-02 11:44:21 +00:00
|
|
|
@@ -319,6 +319,7 @@ SET(INSTALL_SECURE_FILE_PRIVDIR_TARGZ ${secure_file_priv_path})
|
2018-04-25 08:13:27 +00:00
|
|
|
#
|
2015-02-23 12:38:37 +00:00
|
|
|
SET(INSTALL_BINDIR_RPM "bin")
|
|
|
|
SET(INSTALL_SBINDIR_RPM "sbin")
|
|
|
|
+SET(INSTALL_SYSCONFDIR_RPM "/etc")
|
|
|
|
#
|
|
|
|
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
|
|
|
SET(INSTALL_LIBDIR_RPM "lib64")
|
2019-08-02 11:44:21 +00:00
|
|
|
diff --git a/mysys/my_default.cc b/mysys/my_default.cc
|
|
|
|
index d7f5016e..f8fe5d90 100644
|
|
|
|
--- a/mysys/my_default.cc
|
|
|
|
+++ b/mysys/my_default.cc
|
|
|
|
@@ -1565,12 +1565,12 @@ static const char **init_default_directories(MEM_ROOT *alloc) {
|
2014-07-25 14:51:11 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
- errors += add_directory(alloc, "/etc/", dirs);
|
|
|
|
- errors += add_directory(alloc, "/etc/mysql/", dirs);
|
|
|
|
-
|
|
|
|
#if defined(DEFAULT_SYSCONFDIR)
|
|
|
|
if (DEFAULT_SYSCONFDIR[0])
|
|
|
|
+ {
|
|
|
|
errors += add_directory(alloc, DEFAULT_SYSCONFDIR, dirs);
|
|
|
|
+ errors += add_directory(alloc, DEFAULT_SYSCONFDIR "/mysql", dirs);
|
|
|
|
+ }
|
|
|
|
#endif /* DEFAULT_SYSCONFDIR */
|
|
|
|
|
|
|
|
#endif
|
2018-04-25 08:13:27 +00:00
|
|
|
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
|
2019-08-02 11:44:21 +00:00
|
|
|
index bed32565..ca08ee7c 100644
|
2018-04-25 08:13:27 +00:00
|
|
|
--- a/scripts/CMakeLists.txt
|
|
|
|
+++ b/scripts/CMakeLists.txt
|
2019-08-02 11:44:21 +00:00
|
|
|
@@ -324,9 +324,9 @@ IF(UNIX)
|
|
|
|
ENDIF(UNIX)
|
2015-02-23 12:38:37 +00:00
|
|
|
|
|
|
|
SET(prefix "${CMAKE_INSTALL_PREFIX}")
|
|
|
|
-SET(sysconfdir ${prefix})
|
|
|
|
+SET(sysconfdir ${SYSCONFDIR})
|
|
|
|
SET(bindir ${prefix}/${INSTALL_BINDIR})
|
2018-04-26 08:27:31 +00:00
|
|
|
-SET(libexecdir ${prefix}/${INSTALL_SBINDIR})
|
|
|
|
+SET(libexecdir ${prefix}/${INSTALL_LIBEXECDIR})
|
2018-04-25 08:13:27 +00:00
|
|
|
SET(datadir ${prefix}/${INSTALL_MYSQLSHAREDIR})
|
2018-04-26 08:27:31 +00:00
|
|
|
SET(libsubdir ${INSTALL_LIBDIR})
|
2019-08-02 11:44:21 +00:00
|
|
|
SET(pkgincludedir ${prefix}/${INSTALL_INCLUDEDIR})
|
2018-04-25 08:13:27 +00:00
|
|
|
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh
|
2019-08-02 11:44:21 +00:00
|
|
|
index 8cd63ecc..21ad556c 100644
|
2018-04-25 08:13:27 +00:00
|
|
|
--- a/scripts/mysqld_multi.sh
|
|
|
|
+++ b/scripts/mysqld_multi.sh
|
2019-08-02 11:44:21 +00:00
|
|
|
@@ -586,9 +586,7 @@ sub list_defaults_files
|
2014-07-25 14:51:11 +00:00
|
|
|
|
|
|
|
my %seen; # Don't list the same file more than once
|
|
|
|
return grep { defined $_ and not $seen{$_}++ and -f $_ and -r $_ }
|
|
|
|
- ('/etc/my.cnf',
|
|
|
|
- '/etc/mysql/my.cnf',
|
|
|
|
- '@sysconfdir@/my.cnf',
|
|
|
|
+ ('@sysconfdir@/my.cnf',
|
|
|
|
($ENV{MYSQL_HOME} ? "$ENV{MYSQL_HOME}/my.cnf" : undef),
|
|
|
|
$opt{'extra-file'},
|
|
|
|
($ENV{HOME} ? "$ENV{HOME}/.my.cnf" : undef));
|