libatomic_ops: 7.6.2 -> 7.6.4.

Inspired by #38083.

Closes #38083.

+2 -45
+2 -5
pkgs/development/libraries/libatomic_ops/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "libatomic_ops-${version}"; 5 - version = "7.6.2"; 5 + version = "7.6.4"; 6 6 7 7 src = fetchurl { 8 8 urls = [ 9 9 "http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${version}.tar.gz" 10 10 "https://github.com/ivmai/libatomic_ops/releases/download/v${version}/libatomic_ops-${version}.tar.gz" 11 11 ]; 12 - sha256 ="1rif2hjscq5mh639nsnjhb90c01gnmy1sbmj6x6hsn1xmpnj95r1"; 12 + sha256 = "0knxncsjhbknlyy6lx7ycxhpzfk3sykhvicgxyp0rmsxd1d3v0jv"; 13 13 }; 14 14 15 15 outputs = [ "out" "dev" "doc" ]; 16 - 17 - # https://github.com/ivmai/libatomic_ops/pull/32 18 - patches = if hostPlatform.isRiscV then [ ./riscv.patch ] else null; 19 16 20 17 nativeBuildInputs = stdenv.lib.optionals stdenv.isCygwin [ autoconf automake libtool ]; 21 18
-40
pkgs/development/libraries/libatomic_ops/riscv.patch
··· 1 - diff -Naur libatomic_ops-7.6.2-orig/src/atomic_ops/sysdeps/gcc/riscv.h libatomic_ops-7.6.2/src/atomic_ops/sysdeps/gcc/riscv.h 2 - --- libatomic_ops-7.6.2-orig/src/atomic_ops/sysdeps/gcc/riscv.h 1969-12-31 19:00:00.000000000 -0500 3 - +++ libatomic_ops-7.6.2/src/atomic_ops/sysdeps/gcc/riscv.h 2018-02-18 00:48:53.581721375 -0500 4 - @@ -0,0 +1 @@ 5 - +#include "generic.h" 6 - diff -Naur libatomic_ops-7.6.2-orig/src/atomic_ops.h libatomic_ops-7.6.2/src/atomic_ops.h 7 - --- libatomic_ops-7.6.2-orig/src/atomic_ops.h 2017-12-24 03:31:12.000000000 -0500 8 - +++ libatomic_ops-7.6.2/src/atomic_ops.h 2018-02-18 00:48:53.580721359 -0500 9 - @@ -352,6 +352,9 @@ 10 - # if defined(__tile__) 11 - # include "atomic_ops/sysdeps/gcc/tile.h" 12 - # endif 13 - +# if defined(__riscv) 14 - +# include "atomic_ops/sysdeps/gcc/riscv.h" 15 - +# endif 16 - #endif /* __GNUC__ && !AO_USE_PTHREAD_DEFS */ 17 - 18 - #if (defined(__IBMC__) || defined(__IBMCPP__)) && !defined(__GNUC__) \ 19 - diff -Naur libatomic_ops-7.6.2-orig/src/Makefile.am libatomic_ops-7.6.2/src/Makefile.am 20 - --- libatomic_ops-7.6.2-orig/src/Makefile.am 2017-12-24 03:31:12.000000000 -0500 21 - +++ libatomic_ops-7.6.2/src/Makefile.am 2018-02-18 00:48:53.579721342 -0500 22 - @@ -92,6 +92,7 @@ 23 - atomic_ops/sysdeps/gcc/mips.h \ 24 - atomic_ops/sysdeps/gcc/nios2.h \ 25 - atomic_ops/sysdeps/gcc/powerpc.h \ 26 - + atomic_ops/sysdeps/gcc/riscv.h \ 27 - atomic_ops/sysdeps/gcc/s390.h \ 28 - atomic_ops/sysdeps/gcc/sh.h \ 29 - atomic_ops/sysdeps/gcc/sparc.h \ 30 - diff -Naur libatomic_ops-7.6.2-orig/src/Makefile.in libatomic_ops-7.6.2/src/Makefile.in 31 - --- libatomic_ops-7.6.2-orig/src/Makefile.in 2017-12-24 03:32:23.000000000 -0500 32 - +++ libatomic_ops-7.6.2/src/Makefile.in 2018-02-18 00:49:14.005062121 -0500 33 - @@ -446,6 +446,7 @@ 34 - atomic_ops/sysdeps/gcc/mips.h \ 35 - atomic_ops/sysdeps/gcc/nios2.h \ 36 - atomic_ops/sysdeps/gcc/powerpc.h \ 37 - + atomic_ops/sysdeps/gcc/riscv.h \ 38 - atomic_ops/sysdeps/gcc/s390.h \ 39 - atomic_ops/sysdeps/gcc/sh.h \ 40 - atomic_ops/sysdeps/gcc/sparc.h \