Merge pull request #62618 from matthewbauer/talloc-fix
proot/talloc fixes
commit64f837491c2221aa56bed28586d7ec1f570246d9
authorMatthew Bauer <mjbauer95@gmail.com>
dateMon 3 Jun 2019, 13:56 (7 years ago)
parentc3f6b46cc58292
pkgs/development/interpreters/python/cpython/2.7/default.nix+3−1
@@ -22,6 +22,7 @@
2222, sourceVersion
2323, sha256
2424, passthruFun
25+, static ? false
2526}:
2627
2728assert x11Support -> tcl != null
@@ -164,7 +165,8 @@ let
164165 ]
165166 # Never even try to use lchmod on linux,
166167 # don't rely on detecting glibc-isms.
167− ++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no";
168+ ++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no"
169+ ++ optional static "LDFLAGS=-static";
168170
169171 buildInputs =
170172 optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
pkgs/tools/system/proot/default.nix+3−3
@@ -3,13 +3,13 @@
33
44stdenv.mkDerivation rec {
55 pname = "proot";
6− version = "5.1.0.20190305";
6+ version = "20190510";
77
88 src = fetchFromGitHub {
99 repo = "proot";
1010 owner = "proot-me";
11− rev = "ff61c86cb26f71c06af22574d9d4cc3a77292781";
12− sha256 = "0qink34bjv0lshf3c8997w39r8yxgbhxpjbxw47l5xkvimlpc0dl";
11+ rev = "803e54d8a1b3d513108d3fc413ba6f7c80220b74";
12+ sha256 = "0gwzqm5wpscj3fchlv3qggf3zzn0v00s4crb5ciwljan1zrqadhy";
1313 };
1414
1515 postPatch = ''
pkgs/top-level/all-packages.nix+1−1
@@ -6714,7 +6714,7 @@ in
67146714 deps = [ python ];
67156715 substitutions = {
67166716 inherit waf;
6717− crossFlags = lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform)
6717+ crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
67186718 ''--cross-compile "--cross-execute=${stdenv.targetPlatform.emulator pkgs}"'';
67196719 };
67206720 } ../development/tools/build-managers/waf/setup-hook.sh;
pkgs/top-level/static.nix+2
@@ -158,4 +158,6 @@ in {
158158 };
159159 };
160160
161+ python27 = super.python27.override { static = true; };
162+
161163}