[arch-commits] Commit in mariadb/trunk (0002-use-uname-n.patch PKGBUILD)
Christian Hesse
eworm at archlinux.org
Thu Oct 8 09:13:38 UTC 2020
Date: Thursday, October 8, 2020 @ 09:13:38
Author: eworm
Revision: 397560
upgpkg: mariadb 10.5.6-3: apply change manually
Dropping the dependency on inetutils was wrong, the change will be in
Mariadb 10.5.7. So let's just apply the change manually...
Added:
mariadb/trunk/0002-use-uname-n.patch
Modified:
mariadb/trunk/PKGBUILD
------------------------+
0002-use-uname-n.patch | 34 ++++++++++++++++++++++++++++++++++
PKGBUILD | 11 ++++++++---
2 files changed, 42 insertions(+), 3 deletions(-)
Added: 0002-use-uname-n.patch
===================================================================
--- 0002-use-uname-n.patch (rev 0)
+++ 0002-use-uname-n.patch 2020-10-08 09:13:38 UTC (rev 397560)
@@ -0,0 +1,34 @@
+commit 1bb3ad6dfc885112d05d8d73b066f18a416ca965
+Author: Geert Hendrickx <geert at hendrickx.be>
+Date: Thu Aug 27 17:30:03 2020 +0200
+
+ MDEV-23589: Portability: use `uname -n` instead of `hostname`
+
+ Closes PR #1663
+
+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
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-08 05:20:34 UTC (rev 397559)
+++ PKGBUILD 2020-10-08 09:13:38 UTC (rev 397560)
@@ -5,7 +5,7 @@
pkgname=('mariadb-libs' 'mariadb-clients' 'mariadb' 'mytop')
pkgdesc='Fast SQL database server, derived from MySQL'
pkgver=10.5.6
-pkgrel=2
+pkgrel=3
arch=('x86_64')
license=('GPL')
url='https://mariadb.org/'
@@ -18,10 +18,12 @@
# rsync source via https and hope it does not hurt them too much.
# https://mariadb.com/kb/en/library/mirror-sites-for-mariadb/
source=("https://rsync.osuosl.org/pub/mariadb/mariadb-${pkgver}/source/mariadb-${pkgver}.tar.gz"{,.asc}
- '0001-arch-specific.patch')
+ '0001-arch-specific.patch'
+ '0002-use-uname-n.patch')
sha256sums=('ff05dd69e9f6992caf1053242db704f04eda6f9accbcc98b74edfaf6013c45c4'
'SKIP'
- '3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460')
+ '3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460'
+ '0605142beb6ee2e72957696f2e5b10d3084c6423bc17207fb73cd71306cae8d9')
prepare() {
cd $pkgbase-$pkgver/
@@ -31,6 +33,9 @@
# * force preloading jemalloc for memory management
# * make systemd-tmpfiles create MYSQL_DATADIR
patch -Np1 < ../0001-arch-specific.patch
+
+ # MDEV-23589: Portability: use `uname -n` instead of `hostname`
+ patch -Np1 < ../0002-use-uname-n.patch
}
build() {
More information about the arch-commits
mailing list