summary refs log tree commit diff
path: root/pkgs/os-specific/linux/trinity
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-05 20:48:56 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-05 20:48:56 +0100
commit417ae79c26cdaa4978077797d63b69f1c4ced245 (patch)
tree3d839b0cc93c9b31d5d89bf14132f5ba1e717bb7 /pkgs/os-specific/linux/trinity
parent49c4223e984aef1e78d0073cee112c66b23381fa (diff)
downloadnixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.tar
nixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.tar.gz
nixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.tar.bz2
nixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.tar.lz
nixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.tar.xz
nixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.tar.zst
nixpkgs-417ae79c26cdaa4978077797d63b69f1c4ced245.zip
trinity: pull upstream fix for -fno-common toolchains
Without the change build fail on upstream gcc-10 as:

    ld: trinity.o:include/logfile.h:8: multiple definition of
       `mainlogfile'; child.o:include/logfile.h:8: first defined here
Diffstat (limited to 'pkgs/os-specific/linux/trinity')
-rw-r--r--pkgs/os-specific/linux/trinity/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/trinity/default.nix b/pkgs/os-specific/linux/trinity/default.nix
index 9bfe0e942ee..09a2d8bf638 100644
--- a/pkgs/os-specific/linux/trinity/default.nix
+++ b/pkgs/os-specific/linux/trinity/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "trinity";
@@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
     sha256 = "0z1a7x727xacam74jccd223k303sllgwpq30lnq9b6xxy8b659bv";
   };
 
+  patches = [
+    # Pull upstream fix for -fno-common toolchains
+    (fetchpatch {
+      name = "fno-common.patch";
+      url = "https://github.com/kernelslacker/trinity/commit/e53e25cc8dd5bdb5f7d9b4247de9e9921eec81d8.patch";
+      sha256 = "0dbhyc98x11cmac6rj692zymnfqfqcbawlrkg1lhgfagzjxxwshg";
+    })
+  ];
+
   postPatch = ''
     patchShebangs configure
     patchShebangs scripts