git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62752 from matthewbauer/darwin-fixes100

Fixes for x86_64-darwin failures on Hydra

commitd598eca41ec6c1db91b3caa121d6ebab37c7cbe0 authorMatthew Bauer <mjbauer95@gmail.com> dateThu 6 Jun 2019, 09:46 (7 years ago) parent1dc26c39a0ced7
17 files changed+29−46
pkgs/applications/graphics/openimageio/default.nix+1 pkgs/applications/misc/fsv/default.nix+1−1 pkgs/applications/science/biology/iv/default.nix+1 pkgs/development/libraries/libdc1394/darwin-fixes.patch−24 pkgs/development/libraries/libdc1394/default.nix+2−4 pkgs/development/libraries/libgssglue/default.nix+1−1 pkgs/development/libraries/libtommath/default.nix+1−1 pkgs/development/libraries/opencv/3.x.nix+3−2 pkgs/development/libraries/opencv/4.x.nix+3−2 pkgs/development/libraries/opencv/default.nix+1−1 pkgs/development/python-modules/cld2-cffi/default.nix+1−1 pkgs/development/tools/misc/kconfig-frontends/default.nix+2 pkgs/servers/sql/mysql/5.5.x.nix+1−1 pkgs/servers/sql/postgresql/default.nix+1−1 pkgs/shells/ksh/default.nix+4−3 pkgs/tools/misc/slop/default.nix+1−1 pkgs/top-level/all-packages.nix+5−3
pkgs/applications/graphics/openimageio/default.nix+1
@@ -41,5 +41,6 @@ stdenv.mkDerivation rec {
4141 license = licenses.bsd3;
4242 maintainers = [ maintainers.goibhniu ];
4343 platforms = platforms.unix;
44+ badPlatforms = [ "x86_64-darwin" ];
4445 };
4546}
pkgs/applications/misc/fsv/default.nix+1−1
@@ -41,7 +41,7 @@ in stdenv.mkDerivation rec {
4141 '';
4242 homepage = https://github.com/mcuelenaere/fsv;
4343 license = licenses.lgpl2;
44− platforms = platforms.mesaPlatforms;
44+ platforms = platforms.linux;
4545 maintainers = with maintainers; [ rnhmjoj ];
4646 };
4747}
pkgs/applications/science/biology/iv/default.nix+1
@@ -20,6 +20,7 @@ stdenv.mkDerivation rec
2020 break
2121 fi
2222 done
23+ '' + stdenv.lib.optionalString stdenv.isLinux ''
2324 patchelf --add-needed ${libX11}/lib/libX11.so $out/lib/libIVhines.so
2425 '';
2526 meta = with stdenv.lib;
pkgs/development/libraries/libdc1394/darwin-fixes.patchdeleted−24
@@ -1,24 +0,0 @@
1−diff -Naur libdc1394-2.2.5-old/dc1394/bayer.c libdc1394-2.2.5-new/dc1394/bayer.c
2−--- libdc1394-2.2.5-old/dc1394/bayer.c 2016-10-11 02:19:10.000000000 -0400
3−+++ libdc1394-2.2.5-new/dc1394/bayer.c 2017-03-28 17:59:02.000000000 -0400
4−@@ -775,7 +775,7 @@
5− {
6− uint8_t *outR, *outG, *outB;
7− register int i, j;
8−- uint tmp;
9−+ uint32_t tmp;
10− int st=sx*sy;
11− int p;
12− int sx2=sx<<1;
13−diff -Naur libdc1394-2.2.5-old/dc1394/macosx/capture.c libdc1394-2.2.5-new/dc1394/macosx/capture.c
14−--- libdc1394-2.2.5-old/dc1394/macosx/capture.c 2016-12-20 08:10:34.000000000 -0500
15−+++ libdc1394-2.2.5-new/dc1394/macosx/capture.c 2017-03-28 17:58:38.000000000 -0400
16−@@ -614,7 +614,7 @@
17− dc1394video_frame_t * frame_tmp = capture->frames + next;
18− char ch;
19−
20−- if(craw->frames==NULL || craw->capture_is_set==0) {
21−+ if(craw->capture.frames==NULL || craw->capture_is_set==0) {
22− *frame=NULL;
23− return DC1394_CAPTURE_IS_NOT_SET;
24− }
pkgs/development/libraries/libdc1394/default.nix+2−4
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, libraw1394,
2−libusb1, CoreServices }:
1+{ stdenv, fetchurl, libraw1394
2+, libusb1, CoreServices }:
33
44stdenv.mkDerivation rec {
55 name = "libdc1394-${version}";
@@ -14,8 +14,6 @@ stdenv.mkDerivation rec {
1414 ++ stdenv.lib.optional stdenv.isLinux libraw1394
1515 ++ stdenv.lib.optional stdenv.isDarwin CoreServices;
1616
17− patches = stdenv.lib.optional stdenv.isDarwin ./darwin-fixes.patch;
18−
1917 meta = with stdenv.lib; {
2018 homepage = https://sourceforge.net/projects/libdc1394/;
2119 description = "Capture and control API for IIDC compliant cameras";
pkgs/development/libraries/libgssglue/default.nix+1−1
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 homepage = http://www.citi.umich.edu/projects/nfsv4/linux/;
2424 description = "Exports a gssapi interface which calls other random gssapi libraries";
2525 license = licenses.bsd3;
26− platforms = platforms.unix;
26+ platforms = platforms.linux;
2727 maintainers = with maintainers; [ corngood ];
2828 };
2929}
pkgs/development/libraries/libtommath/default.nix+1−1
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 nativeBuildInputs = [ libtool ];
1313
1414 postPatch = ''
15− substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
15+ substituteInPlace makefile.shared --replace glibtool libtool
1616 substituteInPlace makefile_include.mk --replace "shell arch" "shell uname -m"
1717 '';
1818
pkgs/development/libraries/opencv/3.x.nix+3−2
@@ -31,7 +31,7 @@
3131, enableDC1394 ? false, libdc1394
3232, enableDocs ? false, doxygen, graphviz-nox
3333
34−, cf-private, AVFoundation, Cocoa, QTKit, VideoDecodeAcceleration, bzip2
34+, cf-private, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
3535}:
3636
3737let
@@ -200,7 +200,7 @@ stdenv.mkDerivation rec {
200200 ++ lib.optionals enableTesseract [ tesseract leptonica ]
201201 ++ lib.optional enableTbb tbb
202202 ++ lib.optional enableCuda cudatoolkit
203− ++ lib.optionals stdenv.isDarwin [ cf-private AVFoundation Cocoa QTKit VideoDecodeAcceleration bzip2 ]
203+ ++ lib.optionals stdenv.isDarwin [ cf-private AVFoundation Cocoa VideoDecodeAcceleration bzip2 ]
204204 ++ lib.optionals enableDocs [ doxygen graphviz-nox ];
205205
206206 propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
@@ -237,6 +237,7 @@ stdenv.mkDerivation rec {
237237 ] ++ lib.optionals stdenv.isDarwin [
238238 "-DWITH_OPENCL=OFF"
239239 "-DWITH_LAPACK=OFF"
240+ "-DBUILD_opencv_videoio=OFF"
240241 ] ++ lib.optionals enablePython [
241242 "-DOPENCV_SKIP_PYTHON_LOADER=ON"
242243 ];
pkgs/development/libraries/opencv/4.x.nix+3−2
@@ -31,7 +31,7 @@
3131, enableDC1394 ? false, libdc1394
3232, enableDocs ? false, doxygen, graphviz-nox
3333
34−, cf-private, AVFoundation, Cocoa, QTKit, VideoDecodeAcceleration, bzip2
34+, cf-private, AVFoundation, Cocoa, VideoDecodeAcceleration, bzip2
3535}:
3636
3737let
@@ -213,7 +213,7 @@ stdenv.mkDerivation rec {
213213 ++ lib.optionals enableTesseract [ tesseract leptonica ]
214214 ++ lib.optional enableTbb tbb
215215 ++ lib.optional enableCuda cudatoolkit
216− ++ lib.optionals stdenv.isDarwin [ cf-private AVFoundation Cocoa QTKit VideoDecodeAcceleration bzip2 ]
216+ ++ lib.optionals stdenv.isDarwin [ cf-private AVFoundation Cocoa VideoDecodeAcceleration bzip2 ]
217217 ++ lib.optionals enableDocs [ doxygen graphviz-nox ];
218218
219219 propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
@@ -251,6 +251,7 @@ stdenv.mkDerivation rec {
251251 ] ++ lib.optionals stdenv.isDarwin [
252252 "-DWITH_OPENCL=OFF"
253253 "-DWITH_LAPACK=OFF"
254+ "-DBUILD_opencv_videoio=OFF"
254255 ] ++ lib.optionals enablePython [
255256 "-DOPENCV_SKIP_PYTHON_LOADER=ON"
256257 ];
pkgs/development/libraries/opencv/default.nix+1−1
@@ -89,6 +89,6 @@ stdenv.mkDerivation rec {
8989 homepage = https://opencv.org/;
9090 license = licenses.bsd3;
9191 maintainers = with maintainers; [ ];
92− platforms = platforms.linux ++ platforms.darwin;
92+ platforms = platforms.linux;
9393 };
9494}
pkgs/development/python-modules/cld2-cffi/default.nix+1−1
@@ -13,7 +13,7 @@ buildPythonPackage rec {
1313 checkInputs = [ nose ];
1414
1515 # gcc doesn't approve of this code, so disable -Werror
16− NIX_CFLAGS_COMPILE = "-w";
16+ NIX_CFLAGS_COMPILE = [ "-w" ] ++ stdenv.lib.optional stdenv.cc.isClang "-Wno-error=c++11-narrowing";
1717
1818 checkPhase = "nosetests -v";
1919
pkgs/development/tools/misc/kconfig-frontends/default.nix+2
@@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
2121 wrapPythonPrograms
2222 '';
2323
24+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=format-security";
25+
2426 meta = with stdenv.lib; {
2527 description = "Out of Linux tree packaging of the kconfig infrastructure";
2628 longDescription = ''
pkgs/servers/sql/mysql/5.5.x.nix+1−1
@@ -78,6 +78,6 @@ self = stdenv.mkDerivation rec {
7878 artistic1 bsd0 bsd2 bsd3 bsdOriginal
7979 gpl2 lgpl2 lgpl21 mit publicDomain licenses.zlib
8080 ];
81− broken = stdenv.isAarch64;
81+ broken = stdenv.isAarch64 && stdenv.isDarwin;
8282 };
8383}; in self
pkgs/servers/sql/postgresql/default.nix+1−1
@@ -101,7 +101,7 @@ let
101101 wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin
102102 '';
103103
104− doCheck = true;
104+ doCheck = !stdenv.isDarwin;
105105 # autodetection doesn't seem to able to find this, but it's there.
106106 checkTarget = "check";
107107
pkgs/shells/ksh/default.nix+4−3
@@ -1,4 +1,4 @@
1−{ stdenv, meson, ninja, fetchFromGitHub, which, python }:
1+{ stdenv, meson, ninja, fetchFromGitHub, which, python, libiconv }:
22
33stdenv.mkDerivation rec {
44 name = "ksh-${version}";
@@ -13,13 +13,15 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ meson ninja which python ];
1515
16+ buildInputs = [ libiconv ];
17+
1618 meta = with stdenv.lib; {
1719 description = "KornShell Command And Programming Language";
1820 longDescription = ''
1921 The KornShell language was designed and developed by David G. Korn at
2022 AT&T Bell Laboratories. It is an interactive command language that
2123 provides access to the UNIX system and to many other systems, on the
22− many different computers and workstations on which it is implemented.
24+ many different computers and workstations on which it is implemented.
2325 '';
2426 homepage = https://github.com/att/ast;
2527 license = licenses.cpl10;
@@ -31,4 +33,3 @@ stdenv.mkDerivation rec {
3133 shellPath = "/bin/ksh";
3234 };
3335}
34−
pkgs/tools/misc/slop/default.nix+1−1
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323 meta = with stdenv.lib; {
2424 inherit (src.meta) homepage;
2525 description = "Queries a selection from the user and prints to stdout";
26− platforms = stdenv.lib.platforms.all;
26+ platforms = stdenv.lib.platforms.linux;
2727 license = stdenv.lib.licenses.gpl3Plus;
2828 maintainers = with maintainers; [ primeos mbakke ];
2929 };
pkgs/top-level/all-packages.nix+5−3
@@ -11047,7 +11047,9 @@ in
1104711047 libkrb5 = krb5.override { type = "lib"; };
1104811048 kerberos = libkrb5; # TODO: move to aliases.nix
1104911049
11050− l-smash = callPackage ../development/libraries/l-smash { };
11050+ l-smash = callPackage ../development/libraries/l-smash {
11051+ stdenv = gccStdenv;
11052+ };
1105111053
1105211054 languageMachines = recurseIntoAttrs (import ../development/libraries/languagemachines/packages.nix { inherit callPackage; });
1105311055
@@ -12440,7 +12442,7 @@ in
1244012442
1244112443 opencv3 = callPackage ../development/libraries/opencv/3.x.nix {
1244212444 inherit (darwin) cf-private;
12443− inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit VideoDecodeAcceleration;
12445+ inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa VideoDecodeAcceleration;
1244412446 };
1244512447
1244612448 opencv3WithoutCuda = opencv3.override {
@@ -12449,7 +12451,7 @@ in
1244912451
1245012452 opencv4 = callPackage ../development/libraries/opencv/4.x.nix {
1245112453 inherit (darwin) cf-private;
12452− inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit VideoDecodeAcceleration;
12454+ inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa VideoDecodeAcceleration;
1245312455 };
1245412456
1245512457 openexr = callPackage ../development/libraries/openexr { };