Merge branch 'master.upstream' into staging.upstream
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, cmake, ncurses, zlib, xz, lzo, lz4, bzip2, snappy
|
||||
, openssl, pcre, boost, judy, bison, libxml2
|
||||
, libaio, libevent, groff, jemalloc, cracklib, systemd, numactl, perl
|
||||
, fixDarwinDylibNames
|
||||
, fixDarwinDylibNames, cctools
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
(if stdenv.is64bit then snappy else null)
|
||||
pcre libxml2 boost judy bison libevent cracklib
|
||||
] ++ stdenv.lib.optionals stdenv.isLinux [ jemalloc libaio systemd numactl ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames ];
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools ];
|
||||
|
||||
patches = stdenv.lib.optional stdenv.isDarwin ./my_context_asm.patch;
|
||||
|
||||
@@ -60,6 +60,7 @@ stdenv.mkDerivation rec {
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
"-DWITHOUT_OQGRAPH_STORAGE_ENGINE=1"
|
||||
"-DWITHOUT_TOKUDB=1"
|
||||
"-DCURSES_LIBRARY=${ncurses}/lib/libncurses.dylib"
|
||||
];
|
||||
|
||||
# fails to find lex_token.h sometimes
|
||||
@@ -100,6 +101,15 @@ stdenv.mkDerivation rec {
|
||||
mv $out/lib $lib
|
||||
mv $out/include $lib
|
||||
|
||||
''
|
||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
# Fix library rpaths
|
||||
# TODO: put this in the stdenv to prepare for wide usage of multi-output derivations
|
||||
for file in $(grep -rl $out/lib $lib); do
|
||||
install_name_tool -delete_rpath $out/lib -add_rpath $lib $file
|
||||
done
|
||||
|
||||
'' + ''
|
||||
# Fix the mysql_config
|
||||
sed -i $out/bin/mysql_config \
|
||||
-e 's,-lz,-L${zlib}/lib -lz,g' \
|
||||
|
||||
Reference in New Issue
Block a user