mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
djv: fix build against gcc-11
Without the change build fails on hydra due to `gcc` version mix between `opencolorio` and `djv`: [ 51%] Linking CXX executable ../../build/bin/Render2DStressTest ...-binutils-2.39/bin/ld: ...-opencolorio-1.1.1/lib/libOpenColorIO.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' ZHF: https://github.com/NixOS/nixpkgs/issues/199919
This commit is contained in:
parent
ed17c4db90
commit
9b0e6f44a8
2 changed files with 21 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
{ stdenv
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, lib
|
||||
, alsa-lib
|
||||
, libGL
|
||||
|
@ -107,6 +108,25 @@ stdenv.mkDerivation rec {
|
|||
version = djvVersion;
|
||||
|
||||
src = djvSrc;
|
||||
patches = [
|
||||
# Pull fix ending upstream inclusion for gcc-12+ support:
|
||||
# https://github.com/darbyjohnston/DJV/pull/477
|
||||
(fetchpatch {
|
||||
name = "gcc-11-limits.patch";
|
||||
url = "https://github.com/darbyjohnston/DJV/commit/0544ffa1a263a6b8e8518b47277de7601b21b4f4.patch";
|
||||
hash = "sha256-x6ye0xMwTlKyNW4cVFb64RvAayvo71kuOooPj3ROn0g=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "gcc-11-IO.patch";
|
||||
url = "https://github.com/darbyjohnston/DJV/commit/ce79f2d2cb35d03322648323858834bff942c792.patch";
|
||||
hash = "sha256-oPbXOnN5Y5QL+bs/bL5eJALu45YHnyTBLQcC8XcJi0c=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "gcc-11-sleep_for.patch";
|
||||
url = "https://github.com/darbyjohnston/DJV/commit/6989f43db27f66a7691f6048a2eb3299ef43a92e.patch";
|
||||
hash = "sha256-1kiF3VrZiO+FSoR7NHCbduQ8tMq/Uuu6Z+sQII4xBAw=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [
|
||||
|
|
|
@ -3817,7 +3817,7 @@ with pkgs;
|
|||
gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; };
|
||||
};
|
||||
|
||||
djv = callPackage ../applications/graphics/djv { stdenv = gcc10StdenvCompat; };
|
||||
djv = callPackage ../applications/graphics/djv { };
|
||||
|
||||
dnschef = python3Packages.callPackage ../tools/networking/dnschef { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue