openexr, ilmbase: Fix compilation on non-glibc.

Tested with musl.

I PRd the patch upstream: https://github.com/AcademySoftwareFoundation/openexr/pull/798
This commit is contained in:
Niklas Hambüchen
2020-07-30 02:35:18 +02:00
parent 7fd5059f58
commit d9393731e6
2 changed files with 34 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
{ stdenv
, lib
, buildPackages
, cmake
, libtool
@@ -20,7 +21,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake libtool ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
patches = [ ./cross.patch ];
patches = [
./cross.patch
] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.libc != "glibc") [
openexr.non_glibc_fpstate_patch # see description of this patch in `openexr`
];
# fails 1 out of 1 tests with
# "lt-ImathTest: testBoxAlgo.cpp:892: void {anonymous}::boxMatrixTransform(): Assertion `b21 == b2' failed"