libunwind: add a patch to address https://github.com/JuliaLang/julia/issues/3469

Should be beneficial to other LLVM+libunwind projects as well (e.g. Pyston)

+8 -2
+8 -2
pkgs/development/libraries/libunwind/default.nix
··· 1 - { stdenv, fetchurl, xz }: 1 + { stdenv, fetchurl, fetchpatch, xz }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "libunwind-1.1"; ··· 8 8 sha256 = "16nhx2pahh9d62mvszc88q226q5lwjankij276fxwrm8wb50zzlx"; 9 9 }; 10 10 11 - patches = [ ./libunwind-1.1-lzma.patch ./cve-2015-3239.patch ]; 11 + patches = [ ./libunwind-1.1-lzma.patch ./cve-2015-3239.patch 12 + # https://lists.nongnu.org/archive/html/libunwind-devel/2014-04/msg00000.html 13 + (fetchpatch { 14 + url = "https://raw.githubusercontent.com/dropbox/pyston/1b2e676417b0f5f17526ece0ed840aa88c744145/libunwind_patches/0001-Change-the-RBP-validation-heuristic-to-allow-size-0-.patch"; 15 + sha256 = "1a0fsgfxmgd218nscswx7pgyb7rcn2gh6566252xhfvzhgn5i4ha"; 16 + }) 17 + ]; 12 18 13 19 postPatch = '' 14 20 sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure