Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-05-30 19:39:34 +00:00
711 changed files with 49079 additions and 11672 deletions

View File

@@ -2,6 +2,7 @@
, openssl, pcre, boost, judy, bison, libxml2
, libaio, libevent, groff, jemalloc, cracklib, systemd, numactl, perl
, fixDarwinDylibNames, cctools, CoreServices
, makeWrapper
}:
with stdenv.lib;
@@ -19,6 +20,7 @@ stdenv.mkDerivation rec {
# temporary due to https://mariadb.atlassian.net/browse/MDEV-9000
(if stdenv.is64bit then snappy else null)
pcre libxml2 boost judy bison libevent cracklib
makeWrapper
] ++ stdenv.lib.optionals stdenv.isLinux [ jemalloc libaio systemd ]
++ stdenv.lib.optionals (stdenv.isLinux && !stdenv.isArm) [ numactl ]
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
@@ -92,6 +94,10 @@ stdenv.mkDerivation rec {
substituteInPlace $out/bin/mysql_install_db \
--replace basedir=\"\" basedir=\"$out\"
# Wrap mysqld with --basedir, but as last flag
wrapProgram $out/bin/mysqld
sed -i "s,\(^exec.*$\),\1 --basedir=$out,g" $out/bin/mysqld
# Remove superfluous files
rm -r $out/mysql-test $out/sql-bench $out/data # Don't need testing data
rm $out/share/man/man1/mysql-test-run.pl.1

View File

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-thread-safe-client"
"--with-ssl=${openssl}"
"--with-ssl=${openssl.dev}"
"--with-embedded-server"
"--with-plugins=max-no-ndb"
"--with-unix-socket-path=/run/mysqld/mysqld.sock"

View File

@@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
name = "mysql-${version}";
version = "5.5.48";
version = "5.5.49";
src = fetchurl {
url = "mirror://mysql/MySQL-5.5/${name}.tar.gz";
sha256 = "10fpzvf6hxvqgaq8paiz8fvhcbbs4qnzqw0svq40bvlyhx2qfgyc";
sha256 = "07wy1qbxf3fxgi04v6cqs4ymi9hgsgabk218bxiwlsx706ds976d";
};
patches = if stdenv.isCygwin then [

View File

@@ -13,9 +13,9 @@ stdenv.mkDerivation rec {
CPP = "${stdenv.cc}/bin/gcc -E";
configureFlags = "
--enable-shared --disable-all-vads --with-readline=${readline}
--enable-shared --disable-all-vads --with-readline=${readline.dev}
--disable-hslookup --disable-wbxml2 --without-iodbc
--enable-openssl=${openssl}
--enable-openssl=${openssl.dev}
";
postInstall=''

View File

@@ -13,9 +13,9 @@ stdenv.mkDerivation rec {
CPP = "${stdenv.cc}/bin/gcc -E";
configureFlags = "
--enable-shared --disable-all-vads --with-readline=${readline}
--enable-shared --disable-all-vads --with-readline=${readline.dev}
--disable-hslookup --disable-wbxml2 --without-iodbc
--enable-openssl=${openssl}
--enable-openssl=${openssl.dev}
";
postInstall=''