[arch-commits] Commit in mariadb/trunk (PKGBUILD)

Christian Hesse eworm at archlinux.org
Wed Jan 16 13:49:48 UTC 2019


    Date: Wednesday, January 16, 2019 @ 13:49:47
  Author: eworm
Revision: 344224

upgpkg: mariadb 10.3.12-2

Force preloading jemalloc from systemd service. This prevents every
single executable being linked against jemalloc.

Modified:
  mariadb/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-16 11:31:09 UTC (rev 344223)
+++ PKGBUILD	2019-01-16 13:49:47 UTC (rev 344224)
@@ -5,7 +5,7 @@
 pkgname=('mariadb-libs' 'mariadb-clients' 'mariadb' 'mytop')
 pkgdesc='Fast SQL database server, derived from MySQL'
 pkgver=10.3.12
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 license=('GPL')
 url='https://mariadb.org/'
@@ -22,8 +22,10 @@
   # Changes to the upstream unit files:
   #  * remove the alias from unit files, we install symlinks in package function
   #  * enable PrivateTmp for a little bit more security
+  #  * force preloading jemalloc for memory management
   sed -i -e '/^Alias/d' \
     -e '/^PrivateTmp/c PrivateTmp=true' \
+    -e '/# Environment="LD_/a Environment="LD_PRELOAD=/usr/lib/libjemalloc.so"' \
     support-files/mariadb{,@}.service.in
 
   # let's create the datadir from tmpfiles
@@ -40,7 +42,6 @@
   local _cmake_options=(
     # build options
     -DCMAKE_BUILD_TYPE=RelWithDebInfo
-    -DCMAKE_EXE_LINKER_FLAGS='-ljemalloc'
     -Wno-dev
 
     # file paths



More information about the arch-commits mailing list