summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Hendrickx <geert@hendrickx.be>2020-08-27 17:30:03 +0200
committerAnel Husakovic <anel@mariadb.org>2020-09-09 18:48:40 +0200
commit8a650567c16205e86f4e48c8c4528900dcb17165 (patch)
treee3846a377c684e9efd3b5bafa81b0daaa0d7786d
parentcf9b3b25b41f714d681c80736e98c402076d989b (diff)
downloadmariadb-git-bb-10.4-anel-MDEV-23589.tar.gz
MDEV-23589: Portability: use `uname -n` instead of `hostname`bb-10.4-anel-MDEV-23589
Closes PR #1663
-rw-r--r--scripts/CMakeLists.txt2
-rw-r--r--support-files/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index 33e32ea22f7..eafb051ad60 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -162,7 +162,7 @@ ELSE()
SET(CHECK_PID "kill -s SIGCONT $PID > /dev/null 2> /dev/null")
ENDIF()
-SET(HOSTNAME "hostname")
+SET(HOSTNAME "uname -n")
SET(MYSQLD_USER "mysql")
ENDIF(UNIX)
diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt
index 80b6ca386df..2a17cf6d0d8 100644
--- a/support-files/CMakeLists.txt
+++ b/support-files/CMakeLists.txt
@@ -30,7 +30,7 @@ ELSE()
SET(CXXFLAGS ${CMAKE_CXX_FLAGS})
SET(MYSQLD_USER "mysql")
SET(ini_file_extension "cnf")
- SET(HOSTNAME "hostname")
+ SET(HOSTNAME "uname -n")
ENDIF()
# XXX: shouldn't we just have variables for all this stuff and centralise