Skip to content

Commit 075f623

Browse files
authoredJul 31, 2017
Revert "Fix Darwin stdenv to work on 10.13 (backport to 17.03)"
1 parent f39972b commit 075f623

File tree

10 files changed

+13
-42
lines changed

10 files changed

+13
-42
lines changed
 

‎pkgs/applications/editors/nano/default.nix

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ in stdenv.mkDerivation rec {
2727
sha256 = "1r37gqx7hppqbgsbclchiis8wzzpb9srm3q3dlvlii2gpkk28kd6";
2828
};
2929

30-
patches = stdenv.lib.optional stdenv.isDarwin stdenv.secure-format-patch;
31-
3230
nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
3331
buildInputs = [ ncurses ];
3432

‎pkgs/development/libraries/libunistring/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88
sha256 = "1ra1baz2187kbw9im47g6kqb5mx9plq703mkjxaval8rxv5q3q4w";
99
};
1010

11-
patches = stdenv.lib.optionals stdenv.isDarwin [ ./clang.patch stdenv.secure-format-patch ];
11+
patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ];
1212

1313
outputs = [ "out" "dev" "info" "doc" ];
1414

‎pkgs/development/tools/misc/gnum4/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
configureFlags = "--with-syscmd-shell=${stdenv.shell}";
1414

1515
# Upstream is aware of it; it may be in the next release.
16-
patches = [ ./s_isdir.patch ] ++ stdenv.lib.optional stdenv.isDarwin stdenv.secure-format-patch;
16+
patches = [ ./s_isdir.patch ];
1717

1818
# FIXME needs gcc 4.9 in bootstrap tools
1919
hardeningDisable = [ "stackprotector" ];

‎pkgs/development/tools/parsing/bison/3.x.nix

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ stdenv.mkDerivation rec {
88
sha256 = "b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e";
99
};
1010

11-
patches = stdenv.lib.optional stdenv.isDarwin stdenv.secure-format-patch;
12-
1311
nativeBuildInputs = [ m4 perl ] ++ stdenv.lib.optional stdenv.isSunOS help2man;
1412
propagatedBuildInputs = [ m4 ];
1513

‎pkgs/os-specific/darwin/apple-source-releases/Libsystem/reexported_libraries

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/usr/lib/system/libsystem_configuration.dylib
2121
/usr/lib/system/libsystem_coreservices.dylib
22-
# /usr/lib/system/libsystem_coretls.dylib # Removed in 10.13
22+
/usr/lib/system/libsystem_coretls.dylib
2323
/usr/lib/system/libsystem_dnssd.dylib
2424
/usr/lib/system/libsystem_info.dylib
2525

‎pkgs/os-specific/darwin/apple-source-releases/Libsystem/system_kernel_symbols

+2
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ _fsync
376376
_fsync$NOCANCEL
377377
_ftruncate
378378
_futimes
379+
_get_dp_control_port
379380
_getattrlist
380381
_getattrlistat
381382
_getattrlistbulk
@@ -837,6 +838,7 @@ _sendmsg$NOCANCEL
837838
_sendmsg_x
838839
_sendto
839840
_sendto$NOCANCEL
841+
_set_dp_control_port
840842
_setattrlist
841843
_setaudit
842844
_setaudit_addr

‎pkgs/stdenv/darwin/darwin-secure-format.patch

-15
This file was deleted.

‎pkgs/stdenv/darwin/default.nix

+7-16
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Allow passing in bootstrap files directly so we can test the stdenv bootstrap process when changing the bootstrap tools
55
, bootstrapFiles ? let
66
fetch = { file, sha256, executable ? true }: import <nix/fetchurl.nix> {
7-
url = "http://tarballs.nixos.org/stdenv-darwin/x86_64/10cbca5b30c6cb421ce15139f32ae3a4977292cf/${file}";
7+
url = "http://tarballs.nixos.org/stdenv-darwin/x86_64/33f59c9d11b8d5014dfd18cc11a425f6393c884a/${file}";
88
inherit (localSystem) system;
99
inherit sha256 executable;
1010
}; in {
11-
sh = fetch { file = "sh"; sha256 = "0s8a9vpzj6vadq4jmf4r8cargwnsf327hdjydxgqsfxb8y1q39w3"; };
12-
bzip2 = fetch { file = "bzip2"; sha256 = "1jqljpjr8mkiv7g5rl5impqx3all8vn1mxxdwa004pr3h48c1zgg"; };
13-
mkdir = fetch { file = "mkdir"; sha256 = "17zsjiwnq07i5r85q1hg7f6cnkcgllwy2amz9klaqwjy4vzz4vwh"; };
14-
cpio = fetch { file = "cpio"; sha256 = "04hrair58dgja6syh442pswiga5an9nl58ls57yknkn2pq51nx9m"; };
15-
tarball = fetch { file = "bootstrap-tools.cpio.bz2"; sha256 = "103833hrci0vwi1gi978hkp69rncicvpdszn87ffpf1cq0jzpa14"; executable = false; };
11+
sh = fetch { file = "sh"; sha256 = "1rx4kg6358xdj05z0m139a0zn4f4zfmq4n4vimlmnwyfiyn4x7wk"; };
12+
bzip2 = fetch { file = "bzip2"; sha256 = "104qnhzk79vkbp2yi0kci6lszgfppvrwk3rgxhry842ly1xz2r7l"; };
13+
mkdir = fetch { file = "mkdir"; sha256 = "0d91c19xjzmqisncvldv79d7ddzai9l7vcmajhwlwwv74g6da5yl"; };
14+
cpio = fetch { file = "cpio"; sha256 = "0lw057bmcqls96j0gv1n3mgl66q31mba7i413cbkkaf0rfzz3dxj"; };
15+
tarball = fetch { file = "bootstrap-tools.cpio.bz2"; sha256 = "13ihbj002pis3fgy1d9c4fi7flca21z9brjsjkklm82h5b4nlwxl"; executable = false; };
1616
}
1717
}:
1818

@@ -96,13 +96,7 @@ in rec {
9696
stdenvSandboxProfile = binShClosure + libSystemProfile;
9797
extraSandboxProfile = binShClosure + libSystemProfile;
9898

99-
extraAttrs = {
100-
inherit platform;
101-
parent = last;
102-
103-
# This is used all over the place so I figured I'd just leave it here for now
104-
secure-format-patch = ./darwin-secure-format.patch;
105-
};
99+
extraAttrs = { inherit platform; parent = last; };
106100
overrides = self: super: (overrides self super) // { fetchurl = thisStdenv.fetchurlBoot; };
107101
};
108102

@@ -303,9 +297,6 @@ in rec {
303297
inherit platform bootstrapTools;
304298
libc = pkgs.darwin.Libsystem;
305299
shellPackage = pkgs.bash;
306-
307-
# This is used all over the place so I figured I'd just leave it here for now
308-
secure-format-patch = ./darwin-secure-format.patch;
309300
};
310301

311302
allowedRequisites = (with pkgs; [

‎pkgs/tools/compression/gzip/default.nix

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ stdenv.mkDerivation rec {
99
sha256 = "1lxv3p4iyx7833mlihkn5wfwmz4cys5nybwpz3dfawag8kn6f5zz";
1010
};
1111

12-
patches = stdenv.lib.optional stdenv.isDarwin stdenv.secure-format-patch;
13-
1412
outputs = [ "out" "man" "info" ];
1513

1614
enableParallelBuilding = true;

‎pkgs/tools/misc/coreutils/default.nix

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ stdenv.mkDerivation rec {
2323
# FIXME needs gcc 4.9 in bootstrap tools
2424
hardeningDisable = [ "stackprotector" ];
2525

26-
patches = optional stdenv.isCygwin ./coreutils-8.23-4.cygwin.patch
27-
++ optional stdenv.isDarwin stdenv.secure-format-patch;
26+
patches = optional stdenv.isCygwin ./coreutils-8.23-4.cygwin.patch;
2827

2928
# The test tends to fail on btrfs and maybe other unusual filesystems.
3029
postPatch = optionalString (!stdenv.isDarwin) ''

0 commit comments

Comments
 (0)
Please sign in to comment.