git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'staging' (early part)

The comparison looks nice on Hydra.

commit538aa0f808479dcf04d1931e07a4e02c872a260a authorVladimír Čunát <vcunat@gmail.com> dateTue 30 May 2017, 16:08 (9 years ago) parent30ce98b595141d
24 files changed+202−85
pkgs/development/compilers/llvm/4/clang/default.nix+25−3 pkgs/development/compilers/llvm/4/libc++abi.nix+2−1 pkgs/development/compilers/llvm/4/lld.nix+2−1 pkgs/development/compilers/llvm/4/lldb.nix+2−1 pkgs/development/compilers/llvm/4/llvm.nix+11−3 pkgs/development/compilers/llvm/4/openmp.nix+2−1 pkgs/development/libraries/libdrm/default.nix+5−5 pkgs/development/libraries/libtasn1/default.nix+8 pkgs/development/libraries/mesa/default.nix+6−7 pkgs/development/libraries/mesa/symlink-drivers.patch+11−8 pkgs/development/libraries/polkit/default.nix+24−5 pkgs/development/python-modules/ldap.nix+23−1 pkgs/development/tools/rtags/default.nix−6 pkgs/os-specific/darwin/apple-source-releases/CF/add-cf-initialize.patch−18 pkgs/os-specific/darwin/apple-source-releases/CF/default.nix+3−4 pkgs/os-specific/darwin/apple-source-releases/CF/remove-xpc.patch+17 pkgs/os-specific/darwin/apple-source-releases/ICU/default.nix+22 pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix+2−2 pkgs/os-specific/darwin/apple-source-releases/default.nix+8−4 pkgs/os-specific/darwin/apple-source-releases/libdispatch/default.nix+4−1 pkgs/os-specific/darwin/apple-source-releases/libplatform/default.nix+10 pkgs/stdenv/darwin/default.nix+11−11 pkgs/tools/text/diffutils/default.nix+2−2 pkgs/top-level/all-packages.nix+2−1
pkgs/development/compilers/llvm/4/clang/default.nix+25−3
@@ -1,4 +1,6 @@
1−{ stdenv, fetch, cmake, libxml2, libedit, llvm, version, release_version, clang-tools-extra_src, python }:
1+{ stdenv, fetch, cmake, libxml2, libedit, llvm, version, release_version, clang-tools-extra_src, python
2+, fixDarwinDylibNames
3+}:
24
35let
46 gcc = if stdenv.cc.isGNU then stdenv.cc.cc else stdenv.cc.cc.gcc;
@@ -13,10 +15,17 @@ let
1315 mv clang-tools-extra-* $sourceRoot/tools/extra
1416 '';
1517
16− buildInputs = [ cmake libedit libxml2 llvm python ];
18+ nativeBuildInputs = [ cmake python python.pkgs.sphinx ];
19+ buildInputs = [ libedit libxml2 llvm ]
20+ ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
1721
1822 cmakeFlags = [
1923 "-DCMAKE_CXX_FLAGS=-std=c++11"
24+ "-DCLANG_INCLUDE_DOCS=ON"
25+ "-DLLVM_ENABLE_SPHINX=ON"
26+ "-DSPHINX_OUTPUT_MAN=ON"
27+ "-DSPHINX_OUTPUT_HTML=OFF"
28+ "-DSPHINX_WARNINGS_AS_ERRORS=OFF"
2029 ] ++
2130 # Maybe with compiler-rt this won't be needed?
2231 (stdenv.lib.optional stdenv.isLinux "-DGCC_INSTALL_PREFIX=${gcc}") ++
@@ -24,12 +33,19 @@ let
2433
2534 patches = [ ./purity.patch ];
2635
36+ postBuild = ''
37+ cmake --build . --target docs-clang-man
38+ '';
39+
2740 postPatch = ''
2841 sed -i -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/Tools.cpp
2942 sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp
43+
44+ # Patch for standalone doc building
45+ sed -i '1s,^,find_package(Sphinx REQUIRED)\n,' docs/CMakeLists.txt
3046 '';
3147
32− outputs = [ "out" "python" ];
48+ outputs = [ "out" "man" "python" ];
3349
3450 # Clang expects to find LLVMgold in its own prefix
3551 # Clang expects to find sanitizer libraries in its own prefix
@@ -46,6 +62,12 @@ let
4662 mv $out/share/clang/*.py $python/share/clang
4763
4864 rm $out/bin/c-index-test
65+
66+ # Manually install clang manpage
67+ cp docs/man/*.1 $out/share/man/man1/
68+
69+ # Move it and other man pages to 'man' output
70+ moveToOutput "share/man" "$man"
4971 '';
5072
5173 enableParallelBuilding = true;
pkgs/development/compilers/llvm/4/libc++abi.nix+2−1
@@ -5,7 +5,8 @@ stdenv.mkDerivation {
55
66 src = fetch "libcxxabi" "1n416kv27anabg9jsw6331r28ic30xk46p381lx2vbb2jrhwpafw";
77
8− buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
8+ nativeBuildInputs = [ cmake ];
9+ buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
910
1011 postUnpack = ''
1112 unpackFile ${libcxx.src}
pkgs/development/compilers/llvm/4/lld.nix+2−1
@@ -12,7 +12,8 @@ stdenv.mkDerivation {
1212
1313 src = fetch "lld" "00km1qawk146pyjqa6aphcdzgkzrmg6cgk0ikg4661ffp5bn9q1k";
1414
15− buildInputs = [ cmake llvm ];
15+ nativeBuildInputs = [ cmake ];
16+ buildInputs = [ llvm ];
1617
1718 outputs = [ "out" "dev" ];
1819
pkgs/development/compilers/llvm/4/lldb.nix+2−1
@@ -30,7 +30,8 @@ stdenv.mkDerivation {
3030 cmake/modules/LLDBStandalone.cmake
3131 '';
3232
33− buildInputs = [ cmake python which swig ncurses zlib libedit libxml2 llvm ]
33+ nativeBuildInputs = [ cmake python which swig ];
34+ buildInputs = [ ncurses zlib libedit libxml2 llvm ]
3435 ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc ];
3536
3637 CXXFLAGS = "-fno-rtti";
pkgs/development/compilers/llvm/4/llvm.nix+11−3
@@ -38,9 +38,10 @@ in stdenv.mkDerivation rec {
3838 mv compiler-rt-* $sourceRoot/projects/compiler-rt
3939 '';
4040
41− outputs = [ "out" ] ++ stdenv.lib.optional enableSharedLibraries "lib";
41+ outputs = [ "out" "man" ] ++ stdenv.lib.optional enableSharedLibraries "lib";
4242
43− buildInputs = [ perl groff cmake libxml2 python libffi ]
43+ nativeBuildInputs = [ perl groff cmake python python.pkgs.sphinx ];
44+ buildInputs = [ libxml2 libffi ]
4445 ++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
4546
4647 propagatedBuildInputs = [ ncurses zlib ];
@@ -80,6 +81,11 @@ in stdenv.mkDerivation rec {
8081 "-DLLVM_ENABLE_FFI=ON"
8182 "-DLLVM_ENABLE_RTTI=ON"
8283 "-DCOMPILER_RT_INCLUDE_TESTS=OFF" # FIXME: requires clang source code
84+ "-DLLVM_BUILD_DOCS=ON"
85+ "-DLLVM_ENABLE_SPHINX=ON"
86+ "-DSPHINX_OUTPUT_MAN=ON"
87+ "-DSPHINX_OUTPUT_HTML=OFF"
88+ "-DSPHINX_WARNINGS_AS_ERRORS=OFF"
8389 ] ++ stdenv.lib.optional enableSharedLibraries [
8490 "-DLLVM_LINK_LLVM_DYLIB=ON"
8591 ] ++ stdenv.lib.optional (!isDarwin)
@@ -103,7 +109,9 @@ in stdenv.mkDerivation rec {
103109 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
104110 '';
105111
106− postInstall = ""
112+ postInstall = ''
113+ moveToOutput "share/man" "$man"
114+ ''
107115 + stdenv.lib.optionalString (enableSharedLibraries) ''
108116 moveToOutput "lib/libLLVM-*" "$lib"
109117 moveToOutput "lib/libLLVM.${shlib}" "$lib"
pkgs/development/compilers/llvm/4/openmp.nix+2−1
@@ -12,7 +12,8 @@ stdenv.mkDerivation {
1212
1313 src = fetch "openmp" "09kf41zgv551fnv628kqhlwgqkd2bkiwii9gqi6q12djgdddhmfv";
1414
15− buildInputs = [ cmake llvm perl ];
15+ nativeBuildInputs = [ cmake perl ];
16+ buildInputs = [ llvm ];
1617
1718 enableParallelBuilding = true;
1819
pkgs/development/libraries/libdrm/default.nix+5−5
@@ -1,17 +1,17 @@
1−{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, valgrind }:
1+{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, valgrind-light }:
22
33stdenv.mkDerivation rec {
4− name = "libdrm-2.4.79";
4+ name = "libdrm-2.4.81";
55
66 src = fetchurl {
77 url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2";
8− sha256 = "c6aaf319293bce38023e9a637471b0f45c93c807d2a279060d741fc7a2e5b197";
8+ sha256 = "8cc05c195ac8708199979a94c4e4d1a928c14ec338ecbcb38ead09f54dae11ae";
99 };
1010
1111 outputs = [ "out" "dev" ];
1212
1313 nativeBuildInputs = [ pkgconfig ];
14− buildInputs = [ libpthreadstubs libpciaccess ];
14+ buildInputs = [ libpthreadstubs libpciaccess valgrind-light ];
1515 # libdrm as of 2.4.70 does not actually do anything with udev.
1616
1717 patches = stdenv.lib.optional stdenv.isDarwin ./libdrm-apple.patch;
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 preConfigure = stdenv.lib.optionalString stdenv.isDarwin
2020 "echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache";
2121
22− configureFlags = [ "--disable-valgrind" ]
22+ configureFlags = [ ]
2323 ++ stdenv.lib.optionals (stdenv.isArm || stdenv.isAarch64) [ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ]
2424 ++ stdenv.lib.optional stdenv.isDarwin "-C";
2525
pkgs/development/libraries/libtasn1/default.nix+8
@@ -8,6 +8,14 @@ stdenv.mkDerivation rec {
88 sha256 = "00jsix5hny0g768zv4hk78dib7w0qmk5fbizf4jj37r51nd4s6k8";
99 };
1010
11+ patches = [
12+ (fetchurl {
13+ name = "CVE-2017-6891.patch";
14+ url = "https://git.savannah.gnu.org/gitweb/?p=libtasn1.git;a=patch;h=5520704d075802df25ce4ffccc010ba1641bd484";
15+ sha256 = "000r6wb87zkx8yhzkf1c3h7p5akwhjw51cv8f1yjnplrqqrr7h2k";
16+ })
17+ ];
18+
1119 outputs = [ "out" "dev" "devdoc" ];
1220 outputBin = "dev";
1321
pkgs/development/libraries/mesa/default.nix+6−7
@@ -2,7 +2,7 @@
22, pkgconfig, intltool, autoreconfHook, substituteAll
33, file, expat, libdrm, xorg, wayland, openssl
44, llvmPackages, libffi, libomxil-bellagio, libva
5−, libelf, libvdpau, python2
5+, libelf, libvdpau
66, grsecEnabled ? false
77, enableRadv ? false
88# Texture floats are patented, see docs/patents.txt, so we don't enable them for full Mesa.
@@ -36,7 +36,7 @@ let
3636 then ["nouveau" "freedreno" "vc4" "etnaviv" "imx"]
3737 else if stdenv.isAarch64
3838 then ["nouveau" "vc4" ]
39− else ["i915" "ilo" "r300" "r600" "radeonsi" "nouveau"];
39+ else ["i915" "r300" "r600" "radeonsi" "nouveau"];
4040 defaultDriDrivers =
4141 if (stdenv.isArm || stdenv.isAarch64)
4242 then ["nouveau"]
@@ -67,7 +67,7 @@ let
6767in
6868
6969let
70− version = "17.0.6";
70+ version = "17.1.1";
7171 branch = head (splitString "." version);
7272 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32";
7373in
@@ -82,7 +82,7 @@ stdenv.mkDerivation {
8282 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
8383 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
8484 ];
85− sha256 = "17d60jjzg4ddm95gk2cqx0xz6b9anmmz6ax4majwr3gis2yg7v49";
85+ sha256 = "aed503f94c0c1630a162a3e276f4ee12a86764cee4cb92338ea2dea99a04e7ef";
8686 };
8787
8888 prePatch = "patchShebangs .";
@@ -103,7 +103,7 @@ stdenv.mkDerivation {
103103 "--localstatedir=/var"
104104 "--with-dri-driverdir=$(drivers)/lib/dri"
105105 "--with-dri-searchpath=${driverLink}/lib/dri"
106− "--with-egl-platforms=x11,wayland,drm"
106+ "--with-platforms=x11,wayland,drm"
107107 ]
108108 ++ (optional (galliumDrivers != [])
109109 ("--with-gallium-drivers=" +
@@ -126,7 +126,7 @@ stdenv.mkDerivation {
126126 "--enable-glx"
127127 "--enable-glx-tls"
128128 "--enable-gallium-osmesa" # used by wine
129− "--enable-gallium-llvm"
129+ "--enable-llvm"
130130 "--enable-egl"
131131 "--enable-xa" # used in vmware driver
132132 "--enable-gbm"
@@ -152,7 +152,6 @@ stdenv.mkDerivation {
152152 libX11 libXext libxcb libXt libXfixes libxshmfence
153153 libffi wayland libvdpau libelf libXvMC
154154 libomxil-bellagio libva libpthreadstubs openssl/*or another sha1 provider*/
155− (python2.withPackages (ps: [ ps.Mako ]))
156155 ];
157156
158157
pkgs/development/libraries/mesa/symlink-drivers.patch+11−8
@@ -11,11 +11,12 @@ diff -ru -x '*~' mesa-12.0.3-orig/src/gallium/targets/dri/Makefile.am mesa-12.0.
1111 install-data-hook:
1212 for i in $(TARGET_DRIVERS); do \
1313- ln -f $(DESTDIR)$(dridir)/gallium_dri.so \
14−+ ln -srf $(DESTDIR)$(dridir)/gallium_dri.so \
14++ ln -srf $(DESTDIR)$(dridir)/gallium_dri.so \
1515 $(DESTDIR)$(dridir)/$${i}_dri.so; \
1616 done; \
17−- $(RM) $(DESTDIR)$(dridir)/gallium_dri.*
18−+ $(RM) $(DESTDIR)$(dridir)/gallium_dri.la
17+- $(RM) $(DESTDIR)$(dridir)/gallium_dri.*; \
18++ $(RM) $(DESTDIR)$(dridir)/gallium_dri.la \
19+ $(RM) -d $(DESTDIR)$(dridir) &>/dev/null || true
1920
2021 uninstall-hook:
2122 for i in $(TARGET_DRIVERS); do \
@@ -60,8 +61,9 @@ diff -ru -x '*~' mesa-12.0.3-orig/src/gallium/targets/vdpau/Makefile.am mesa-12.
6061 ln -sf $${l} \
6162 $${dest_dir}/$${k}; \
6263 done; \
63−- $(RM) $${dest_dir}/libvdpau_gallium.*
64−+ $(RM) $${dest_dir}/libvdpau_gallium.la
64+- $(RM) $${dest_dir}/libvdpau_gallium.*; \
65++ $(RM) $${dest_dir}/libvdpau_gallium.la \
66+ $(RM) -d $${dest_dir} &>/dev/null || true
6567
6668 uninstall-hook:
6769 for i in $(TARGET_DRIVERS); do \
@@ -73,7 +75,7 @@ diff -ru -x '*~' mesa-12.0.3-orig/src/gallium/targets/xvmc/Makefile.am mesa-12.0
7375 k=libXvMC$${i}.$(LIB_EXT); \
7476 l=$${k}.$(XVMC_MAJOR).$(XVMC_MINOR).0; \
7577- ln -f $${dest_dir}/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0 \
76−+ ln -srf $${dest_dir}/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0 \
78++ ln -srf $${dest_dir}/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0 \
7779 $${dest_dir}/$${l}; \
7880 ln -sf $${l} \
7981 $${dest_dir}/$${k}.$(XVMC_MAJOR).$(XVMC_MINOR); \
@@ -81,8 +83,9 @@ diff -ru -x '*~' mesa-12.0.3-orig/src/gallium/targets/xvmc/Makefile.am mesa-12.0
8183 ln -sf $${l} \
8284 $${dest_dir}/$${k}; \
8385 done; \
84−- $(RM) $${dest_dir}/libXvMCgallium.*
85−+ $(RM) $${dest_dir}/libXvMCgallium.la
86+- $(RM) $${dest_dir}/libXvMCgallium.*; \
87++ $(RM) $${dest_dir}/libXvMCgallium.la \
88+ $(RM) -d $${dest_dir} &>/dev/null || true
8689
8790 uninstall-hook:
8891 for i in $(TARGET_DRIVERS); do \
pkgs/development/libraries/polkit/default.nix+24−5
@@ -1,6 +1,8 @@
1−{ stdenv, fetchurl, pkgconfig, glib, expat, pam, intltool, spidermonkey_17
2−, gobjectIntrospection, libxslt, docbook_xsl, docbook_xml_dtd_412
3−, useSystemd ? stdenv.isLinux, systemd }:
1+{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, glib, expat, pam
2+, intltool, spidermonkey_17 , gobjectIntrospection, libxslt, docbook_xsl
3+, docbook_xml_dtd_412, gtk_doc
4+, useSystemd ? stdenv.isLinux, systemd
5+}:
46
57let
68
@@ -22,11 +24,28 @@ stdenv.mkDerivation rec {
2224 sha256 = "109w86kfqrgz83g9ivggplmgc77rz8kx8646izvm2jb57h4rbh71";
2325 };
2426
27+ patches = [
28+ (fetchpatch {
29+ url = "http://pkgs.fedoraproject.org/cgit/rpms/polkit.git/plain/polkit-0.113-agent-leaks.patch?id=fa6fd575804de92886c95d3bc2b7eb2abcd13760";
30+ sha256 = "1cxnhj0y30g7ldqq1y6zwsbdwcx7h97d3mpd3h5jy7dhg3h9ym91";
31+ })
32+ (fetchpatch {
33+ url = "http://pkgs.fedoraproject.org/cgit/rpms/polkit.git/plain/polkit-0.113-polkitpermission-leak.patch?id=fa6fd575804de92886c95d3bc2b7eb2abcd13760";
34+ sha256 = "1h1rkd4avqyyr8q6836zzr3w10jf521gcqnvhrhzwdpgp1ay4si7";
35+ })
36+ (fetchpatch {
37+ url = "http://pkgs.fedoraproject.org/cgit/rpms/polkit.git/plain/polkit-0.113-itstool.patch?id=fa6fd575804de92886c95d3bc2b7eb2abcd13760";
38+ sha256 = "0bxmjwp8ahy1y5g1l0kxmld0l3mlvb2l0i5n1qabia3d5iyjkyfh";
39+ })
40+ ];
41+
2542 outputs = [ "bin" "dev" "out" ]; # small man pages in $bin
2643
44+ nativeBuildInputs =
45+ [ gtk_doc pkgconfig autoreconfHook ]
46+ ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ]; # man pages
2747 buildInputs =
28− [ pkgconfig glib expat pam intltool spidermonkey_17 gobjectIntrospection ]
29− ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ] # man pages
48+ [ glib expat pam intltool spidermonkey_17 gobjectIntrospection ]
3049 ++ stdenv.lib.optional useSystemd systemd;
3150
3251 # Ugly hack to overwrite hardcoded directories
pkgs/development/python-modules/ldap.nix+23−1
@@ -1,4 +1,4 @@
1−{ buildPythonPackage, isPy3k, fetchPypi
1+{ lib, writeText, buildPythonPackage, isPy3k, fetchPypi
22, openldap, cyrus_sasl, openssl }:
33
44buildPythonPackage rec {
@@ -12,6 +12,28 @@ buildPythonPackage rec {
1212 sha256 = "88bab69e519dd8bd83becbe36bd141c174b0fe309e84936cf1bae685b31be779";
1313 };
1414
15+ # Needed by tests to setup a mockup ldap server.
16+ BIN = "${openldap}/bin";
17+ SBIN = "${openldap}/bin";
18+ SLAPD = "${openldap}/libexec/slapd";
19+ SCHEMA = "${openldap}/etc/schema";
20+
21+ patches = lib.singleton (writeText "avoid-syslog.diff" ''
22+ diff a/Lib/slapdtest.py b/Lib/slapdtest.py
23+ --- a/Lib/slapdtest.py
24+ +++ b/Lib/slapdtest.py
25+ @@ -60,7 +60,8 @@ def combined_logger(
26+ pass
27+ # for writing to syslog
28+ new_logger = logging.getLogger(log_name)
29+ - if sys_log_format:
30+ + # /dev/log does not exist in nix build environment.
31+ + if False:
32+ my_syslog_formatter = logging.Formatter(
33+ fmt=' '.join((log_name, sys_log_format)))
34+ my_syslog_handler = logging.handlers.SysLogHandler(
35+ '');
36+
1537 NIX_CFLAGS_COMPILE = "-I${cyrus_sasl.dev}/include/sasl";
1638 propagatedBuildInputs = [openldap cyrus_sasl openssl];
1739}
pkgs/development/tools/rtags/default.nix−6
@@ -22,12 +22,6 @@ stdenv.mkDerivation rec {
2222
2323 enableParallelBuilding = true;
2424
25− postInstall = lib.optionalString stdenv.isDarwin ''
26− for f in $out/bin/{rc,rdm,rp}; do
27− install_name_tool -change @rpath/libclang.dylib ${llvmPackages.clang.cc}/lib/libclang.dylib ''${f}
28− done
29− '';
30−
3125 meta = {
3226 description = "C/C++ client-server indexer based on clang";
3327 homepage = https://github.com/andersbakken/rtags;
pkgs/os-specific/darwin/apple-source-releases/CF/add-cf-initialize.patchdeleted−18
@@ -1,18 +0,0 @@
1−--- CF-855.17/CFRuntime.c 2014-11-26 21:29:48.000000000 -0800
2−+++ CF-855.17/CFRuntime.c.new 2014-11-26 21:30:01.000000000 -0800
3−@@ -756,6 +756,7 @@
4− extern void __CFErrorInitialize(void);
5− extern void __CFTreeInitialize(void);
6− extern void __CFURLInitialize(void);
7−+extern void __CFPreferencesDomainInitialize(void);
8− #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_EMBEDDED_MINI
9− extern void __CFMachPortInitialize(void);
10− #endif
11−@@ -1015,6 +1016,7 @@
12− __CFErrorInitialize();
13− __CFTreeInitialize();
14− __CFURLInitialize();
15−+ __CFPreferencesDomainInitialize();
16−
17− #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_WINDOWS
18− __CFBundleInitialize();
pkgs/os-specific/darwin/apple-source-releases/CF/default.nix+3−4
@@ -1,12 +1,12 @@
1−{ stdenv, appleDerivation, icu, dyld, libdispatch, launchd, libclosure }:
1+{ stdenv, appleDerivation, ICU, dyld, libdispatch, libplatform, launchd, libclosure }:
22
33# this project uses blocks, a clang-only extension
44assert stdenv.cc.isClang;
55
66appleDerivation {
7− buildInputs = [ dyld icu libdispatch launchd libclosure ];
7+ buildInputs = [ dyld ICU libdispatch libplatform launchd libclosure ];
88
9− patches = [ ./add-cf-initialize.patch ./add-cfmachport.patch ./cf-bridging.patch ];
9+ patches = [ ./add-cfmachport.patch ./cf-bridging.patch ./remove-xpc.patch ];
1010
1111 __propagatedImpureHostDeps = [ "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation" ];
1212
@@ -19,7 +19,6 @@ appleDerivation {
1919 --replace "/bin/" "" \
2020 --replace "INSTALLNAME=/System" "INSTALLNAME=$out" \
2121 --replace "install_name_tool -id /System" "install_name_tool -id $out" \
22− --replace "-licucore.A" "-licui18n -licuuc" \
2322 --replace 'chown -RH -f root:wheel $(DSTBASE)/CoreFoundation.framework' "" \
2423 --replace 'chmod -RH' 'chmod -R'
2524
pkgs/os-specific/darwin/apple-source-releases/CF/remove-xpc.patchnew file+17
@@ -0,0 +1,17 @@
1+diff --git a/CFBundlePriv.h b/CFBundlePriv.h
2+index d4feb5f..e7b52e8 100644
3+--- a/CFBundlePriv.h
4++++ b/CFBundlePriv.h
5+@@ -254,12 +254,6 @@ Boolean _CFBundleGetStringsFilesShared(CFBundleRef bundle);
6+ CF_EXPORT
7+ CFURLRef _CFBundleCopyFrameworkURLForExecutablePath(CFStringRef executablePath);
8+
9+-#if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)) || (TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)
10+-#include <xpc/xpc.h>
11+-CF_EXPORT
12+-void _CFBundleSetupXPCBootstrap(xpc_object_t bootstrap) CF_AVAILABLE(10_10, 8_0);
13+-#endif
14+-
15+ /* Functions deprecated as SPI */
16+
17+ CF_EXPORT
pkgs/os-specific/darwin/apple-source-releases/ICU/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, cctools, appleDerivation }:
2+
3+appleDerivation {
4+ buildInputs = [ cctools ];
5+
6+ postPatch = ''
7+ substituteInPlace makefile \
8+ --replace /usr/bin/ "" \
9+ --replace '$(ISYSROOT)' "" \
10+ --replace 'shell xcodebuild -version -sdk' 'shell true' \
11+ --replace 'shell xcrun -sdk $(SDKPATH) -find' 'shell echo' \
12+ --replace '-install_name $(libdir)' "-install_name $out/lib/" \
13+ --replace /usr/local/bin/ /bin/ \
14+ --replace /usr/lib/ /lib/ \
15+ '';
16+
17+ makeFlags = [ "DSTROOT=$(out)" ];
18+
19+ postInstall = ''
20+ mv $out/usr/local/include $out/include
21+ '';
22+}
pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, appleDerivation, cpio, bootstrap_cmds, xnu, Libc, Libm, libdispatch, cctools, Libinfo,
22 dyld, Csu, architecture, libclosure, CarbonHeaders, ncurses, CommonCrypto, copyfile,
3− removefile, libresolv, Libnotify, libpthread, mDNSResponder, launchd, libutil, version }:
3+ removefile, libresolv, Libnotify, libplatform, libpthread, mDNSResponder, launchd, libutil, version }:
44
55appleDerivation rec {
66 phases = [ "unpackPhase" "installPhase" ];
@@ -19,7 +19,7 @@ appleDerivation rec {
1919
2020 for dep in ${Libc} ${Libm} ${Libinfo} ${dyld} ${architecture} ${libclosure} ${CarbonHeaders} \
2121 ${libdispatch} ${ncurses.dev} ${CommonCrypto} ${copyfile} ${removefile} ${libresolv} \
22− ${Libnotify} ${mDNSResponder} ${launchd} ${libutil} ${libpthread}; do
22+ ${Libnotify} ${libplatform} ${mDNSResponder} ${launchd} ${libutil} ${libpthread}; do
2323 (cd $dep/include && find . -name '*.h' | cpio -pdm $out/include)
2424 done
2525
pkgs/os-specific/darwin/apple-source-releases/default.nix+8−4
@@ -30,6 +30,7 @@ let
3030 # is the right one, even though it isn't. The version I have here doesn't appear to be linked
3131 # to any OS releases, but Apple also doesn't mention mDNSResponder from 10.11 to 10.11.6, and
3232 # neither of those versions are publicly available.
33+ libplatform = "125";
3334 mDNSResponder = "625.41.2";
3435
3536 libutil = "43";
@@ -47,6 +48,9 @@ let
4748 };
4849 "osx-10.10.5" = {
4950 adv_cmds = "158";
51+ CF = "1153.18";
52+ ICU = "531.48";
53+ libdispatch = "442.1.4";
5054 Security = "57031.40.6";
5155
5256 IOAudioFamily = "203.3";
@@ -66,11 +70,9 @@ let
6670 IOKitUser = "1050.20.2";
6771 };
6872 "osx-10.9.5" = {
69− CF = "855.17";
7073 launchd = "842.92.1";
7174 libauto = "185.5";
7275 Libc = "997.90.3"; # We use this, but not from here
73− libdispatch = "339.92.1";
7476 Libsystem = "1197.1.1";
7577 Security = "55471.14.18";
7678 security_dotmac_tp = "55107.1";
@@ -189,7 +191,7 @@ let
189191 bootstrap_cmds = applePackage "bootstrap_cmds" "dev-tools-7.0" "1v5dv2q3af1xwj5kz0a5g54fd5dm6j4c9dd2g66n4kc44ixyrhp3" {};
190192 bsdmake = applePackage "bsdmake" "dev-tools-3.2.6" "11a9kkhz5bfgi1i8kpdkis78lhc6b5vxmhd598fcdgra1jw4iac2" {};
191193 CarbonHeaders = applePackage "CarbonHeaders" "osx-10.6.2" "1zam29847cxr6y9rnl76zqmkbac53nx0szmqm9w5p469a6wzjqar" {};
192− CF = applePackage "CF" "osx-10.9.5" "1sadmxi9fsvsmdyxvg2133sdzvkzwil5fvyyidxsyk1iyfzqsvln" {};
194+ CF = applePackage "CF" "osx-10.10.5" "07f5psjxi7wyd13ci4x83ya5hy6p69sjfqcpp2mmxdlhd8yzkf74" {};
193195 CommonCrypto = applePackage "CommonCrypto" "osx-10.11.6" "0vllfpb8f4f97wj2vpdd7w5k9ibnsbr6ff1zslpp6q323h01n25y" {};
194196 configd = applePackage "configd" "osx-10.8.5" "1gxakahk8gallf16xmhxhprdxkh3prrmzxnmxfvj0slr0939mmr2" {};
195197 copyfile = applePackage "copyfile" "osx-10.11.6" "1rkf3iaxmjz5ycgrmf0g971kh90jb2z1zqxg5vlqz001s4y457gs" {};
@@ -197,6 +199,7 @@ let
197199 dtrace = applePackage "dtrace" "osx-10.11.6" "0pp5x8dgvzmg9vvg32hpy2brm17dpmbwrcr4prsmdmfvd4767wc0" {};
198200 dyld = applePackage "dyld" "osx-10.11.6" "0qkjmjazm2zpgvwqizhandybr9cm3gz9pckx8rmf0py03faafc08" {};
199201 eap8021x = applePackage "eap8021x" "osx-10.11.6" "0iw0qdib59hihyx2275rwq507bq2a06gaj8db4a8z1rkaj1frskh" {};
202+ ICU = applePackage "ICU" "osx-10.10.5" "1qihlp42n5g4dl0sn0f9pc0bkxy1452dxzf0vr6y5gqpshlzy03p" {};
200203 IOKit = applePackage "IOKit" "osx-10.11.6" "0kcbrlyxcyirvg5p95hjd9k8a01k161zg0bsfgfhkb90kh2s8x00" { inherit IOKitSrcs; };
201204 launchd = applePackage "launchd" "osx-10.9.5" "0w30hvwqq8j5n90s3qyp0fccxflvrmmjnicjri4i1vd2g196jdgj" {};
202205 libauto = applePackage "libauto" "osx-10.9.5" "17z27yq5d7zfkwr49r7f0vn9pxvj95884sd2k6lq6rfaz9gxqhy3" {};
@@ -208,11 +211,12 @@ let
208211 };
209212 Libc_old = applePackage "Libc/825_40_1.nix" "osx-10.8.5" "0xsx1im52gwlmcrv4lnhhhn9dyk5ci6g27k6yvibn9vj8fzjxwcf" {};
210213 libclosure = applePackage "libclosure" "osx-10.11.6" "1zqy1zvra46cmqv6vsf1mcsz3a76r9bky145phfwh4ab6y15vjpq" {};
211− libdispatch = applePackage "libdispatch" "osx-10.9.5" "1lc5033cmkwxy3r26gh9plimxshxfcbgw6i0j7mgjlnpk86iy5bk" {};
214+ libdispatch = applePackage "libdispatch" "osx-10.10.5" "0jsfbzp87lwk9snlby0hd4zvj7j894p5q3cw0wdx9ny1mcp3kdcj" {};
212215 libiconv = applePackage "libiconv" "osx-10.11.6" "11h6lfajydri4widis62q8scyz7z8l6msqyx40ly4ahsdlbl0981" {};
213216 Libinfo = applePackage "Libinfo" "osx-10.11.6" "0qjgkd4y8sjvwjzv5wwyzkb61pg8wwg95bkp721dgzv119dqhr8x" {};
214217 Libm = applePackage "Libm" "osx-10.7.4" "02sd82ig2jvvyyfschmb4gpz6psnizri8sh6i982v341x6y4ysl7" {};
215218 Libnotify = applePackage "Libnotify" "osx-10.11.6" "0zbcyxlcfhf91jxczhd5bq9qfgvg494gwwp3l7q5ayb2qdihzr8b" {};
219+ libplatform = applePackage "libplatform" "osx-10.11.6" "1v4ik6vlklwsi0xb1g5kmhy29j9xk5m2y8xb9zbi1k4ng8x39czk" {};
216220 libpthread = applePackage "libpthread" "osx-10.11.6" "1kbw738cmr9pa7pz1igmajs307clfq7gv2vm1sqdzhcnnjxbl28w" {};
217221 libresolv = applePackage "libresolv" "osx-10.11.6" "09flfdi3dlzq0yap32sxidacpc4nn4va7z12a6viip21ix2xb2gf" {};
218222 Libsystem = applePackage "Libsystem" "osx-10.11.6" "1nfkmbqml587v2s1d1y2s2v8nmr577jvk51y6vqrfvsrhdhc2w94" {};
pkgs/os-specific/darwin/apple-source-releases/libdispatch/default.nix+4−1
@@ -6,8 +6,11 @@ appleDerivation {
66 installPhase = ''
77 mkdir -p $out/include/dispatch $out/include/os
88
9− cp -r dispatch/*.h $out/include/dispatch
9+ # Move these headers so CF can find <os/voucher_private.h>
10+ mv private/voucher*.h $out/include/os
1011 cp -r private/*.h $out/include/dispatch
12+
13+ cp -r dispatch/*.h $out/include/dispatch
1114 cp -r os/object*.h $out/include/os
1215 '';
1316}
pkgs/os-specific/darwin/apple-source-releases/libplatform/default.nixnew file+10
@@ -0,0 +1,10 @@
1+{ stdenv, appleDerivation }:
2+
3+appleDerivation {
4+ phases = [ "unpackPhase" "installPhase" ];
5+
6+ installPhase = ''
7+ mkdir $out
8+ cp -r include $out/include
9+ '';
10+}
pkgs/stdenv/darwin/default.nix+11−11
@@ -165,14 +165,14 @@ in rec {
165165
166166 persistent1 = prevStage: self: super: with prevStage; {
167167 inherit
168− zlib patchutils m4 scons flex perl bison unifdef unzip openssl icu python
168+ zlib patchutils m4 scons flex perl bison unifdef unzip openssl python
169169 libxml2 gettext sharutils gmp libarchive ncurses pkg-config libedit groff
170170 openssh sqlite sed serf openldap db cyrus-sasl expat apr-util subversion xz
171171 findfreetype libssh curl cmake autoconf automake libtool ed cpio coreutils;
172172
173173 darwin = super.darwin // {
174174 inherit (darwin)
175− dyld Libsystem xnu configd libdispatch libclosure launchd;
175+ dyld Libsystem xnu configd ICU libdispatch libclosure launchd;
176176 };
177177 };
178178
@@ -185,8 +185,8 @@ in rec {
185185
186186 allowedRequisites =
187187 [ bootstrapTools ] ++
188− (with pkgs; [ xz.bin xz.out libcxx libcxxabi icu.out ]) ++
189− (with pkgs.darwin; [ dyld Libsystem CF locale ]);
188+ (with pkgs; [ xz.bin xz.out libcxx libcxxabi ]) ++
189+ (with pkgs.darwin; [ dyld Libsystem CF ICU locale ]);
190190
191191 overrides = persistent1 prevStage;
192192 };
@@ -221,8 +221,8 @@ in rec {
221221
222222 allowedRequisites =
223223 [ bootstrapTools ] ++
224− (with pkgs; [ xz.bin xz.out icu.out bash libcxx libcxxabi ]) ++
225− (with pkgs.darwin; [ dyld Libsystem locale ]);
224+ (with pkgs; [ xz.bin xz.out bash libcxx libcxxabi ]) ++
225+ (with pkgs.darwin; [ dyld ICU Libsystem locale ]);
226226
227227 overrides = persistent2 prevStage;
228228 };
@@ -256,7 +256,7 @@ in rec {
256256 persistent4 = prevStage: self: super: with prevStage; {
257257 inherit
258258 gnumake gzip gnused bzip2 gawk ed xz patch bash
259− libcxxabi libcxx ncurses libffi zlib icu llvm gmp pcre gnugrep
259+ libcxxabi libcxx ncurses libffi zlib llvm gmp pcre gnugrep
260260 coreutils findutils diffutils patchutils;
261261
262262 llvmPackages = super.llvmPackages // {
@@ -264,7 +264,7 @@ in rec {
264264 };
265265
266266 darwin = super.darwin // {
267− inherit (darwin) dyld Libsystem cctools libiconv;
267+ inherit (darwin) dyld ICU Libsystem cctools libiconv;
268268 };
269269 } // lib.optionalAttrs (super.targetPlatform == localSystem) {
270270 # Need to get rid of these when cross-compiling.
@@ -310,13 +310,13 @@ in rec {
310310 };
311311
312312 allowedRequisites = (with pkgs; [
313− xz.out xz.bin libcxx libcxxabi icu.out gmp.out gnumake findutils bzip2.out
313+ xz.out xz.bin libcxx libcxxabi gmp.out gnumake findutils bzip2.out
314314 bzip2.bin llvmPackages.llvm llvmPackages.llvm.lib zlib.out zlib.dev libffi.out coreutils ed diffutils gnutar
315315 gzip ncurses.out ncurses.dev ncurses.man gnused bash gawk
316− gnugrep llvmPackages.clang-unwrapped patch pcre.out binutils-raw.out
316+ gnugrep llvmPackages.clang-unwrapped llvmPackages.clang-unwrapped.man patch pcre.out binutils-raw.out
317317 binutils-raw.dev binutils gettext
318318 ]) ++ (with pkgs.darwin; [
319− dyld Libsystem CF cctools libiconv locale
319+ dyld Libsystem CF cctools ICU libiconv locale
320320 ]);
321321
322322 overrides = self: super:
pkgs/tools/text/diffutils/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, fetchurl, xz, coreutils ? null }:
22
33stdenv.mkDerivation rec {
4− name = "diffutils-3.5";
4+ name = "diffutils-3.6";
55
66 src = fetchurl {
77 url = "mirror://gnu/diffutils/${name}.tar.xz";
8− sha256 = "0csmqfz8ks23kdjsq0v2ll1acqiz8lva06dj19mwmymrsp69ilys";
8+ sha256 = "1mivg0fy3a6fcn535ln8nkgfj6vxh5hsxxs5h6692wxmsjyyh8fn";
99 };
1010
1111 outputs = [ "out" "info" ];
pkgs/top-level/all-packages.nix+2−1
@@ -7174,7 +7174,8 @@ with pkgs;
71747174 valgrind = callPackage ../development/tools/analysis/valgrind {
71757175 inherit (darwin) xnu bootstrap_cmds cctools;
71767176 llvm = llvm_39;
7177− };
7177+ };
7178+ valgrind-light = self.valgrind.override { gdb = null; };
71787179
71797180 valkyrie = callPackage ../development/tools/analysis/valkyrie { };
71807181