3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers
Thiago Kenji Okada b2f19ab3b5 graalvmXX-ce: use a patched version of zlib
The previous releases of zlib were not sensitive to incorrect CRC
inputs with bits set above the low 32. Some programs were depended on
this behavior, including GraalVM. So this commit backports a patch from
`zlib` develop that brings back the old behavior. This will probably
be included in the next release of zlib.

Before:

```
$ rm -rf ~/.babashka
$ bb -e "(babashka.pods/load-pod 'clj-kondo/clj-kondo \"2022.05.31\")"
Downloading pod clj-kondo/clj-kondo (2022.05.31)
----- Error --------------------------------------------------------------------
Type:     java.util.zip.ZipException
Message:  invalid entry CRC (expected 0x269cdf2c but got 0x13b86fd8)
Location: <expr>:1:1

----- Context ------------------------------------------------------------------
1: (babashka.pods/load-pod 'clj-kondo/clj-kondo "2022.05.31")
   ^--- invalid entry CRC (expected 0x269cdf2c but got 0x13b86fd8)

----- Stack trace --------------------------------------------------------------
babashka.pods.impl.resolver/unzip             - <built-in>
babashka.pods.impl.resolver/resolve/fn--30674 - <built-in>
clojure.core/mapv/fn--8535                    - <built-in>
clojure.core.protocols/fn--8244               - <built-in>
clojure.core.protocols/fn--8204/G--8199--8213 - <built-in>
... (run with --debug to see elided elements)
babashka.pods.sci/load-pod/fn--30887          - <built-in>
babashka.pods.sci/load-pod                    - <built-in>
clojure.core/apply                            - <built-in>
babashka.impl.pods/load-pod                   - <built-in>
user                                          - <expr>:1:1
```

After:

```
$ rm -rf ~/.babashka
$ ./result/bin/bb -e "(babashka.pods/load-pod 'clj-kondo/clj-kondo \"2022.05.31\")"
Downloading pod clj-kondo/clj-kondo (2022.05.31)
Successfully installed pod clj-kondo/clj-kondo (2022.05.31)
```

The issue should affect other programs using GraalVM, but this was the
test that I had at hand.
2022-06-16 11:27:34 +01:00
..
4th
abcl abcl: 1.8.0 -> 1.9.0 2022-05-25 05:16:18 +00:00
acme
adoptopenjdk-bin adoptopenjdk-bin: mark meta.sourceProvenance 2022-06-13 18:55:15 +08:00
adoptopenjdk-icedtea-web
alan alan_2: add -fcommon workaround for gcc-10 2022-05-12 08:22:23 +01:00
algol68g
apache-flex-sdk
arachne-pnr
armips
as31
asl
aspectj treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
atasm
ats
ats2 ats2: 0.4.1 -> 0.4.2 2022-04-26 15:04:13 -05:00
avra
bigloo bigloo: mark broken on x86_64 Darwin 2022-05-29 10:56:03 +02:00
binaryen
blueprint blueprint-compiler: init at 0.1.0 2022-05-28 16:21:12 +02:00
bluespec
bs-platform
bupc treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
c3c
cakelisp
carp
cc65
ccl ccl: mark broken on x86_64-darwin 2022-05-29 10:56:04 +02:00
chez Merge branch 'master' into staging-next-2022-04-23 2022-05-01 14:26:52 +02:00
chez-racket
chicken chickenPackages: recurse into attrs 2022-05-04 12:02:09 +02:00
ciao
clasp
clean
closure Merge pull request #174450 from r-ryantm/auto-update/closure-compiler 2022-06-11 01:24:34 +03:00
cmdstan treewide: pkgs/development: mark broken for aarch64-linux 2022-05-30 13:42:59 +02:00
cmucl
colm
computecpp
cone
copper
crystal treewide: mark broken for darwin 2022-05-30 13:42:58 +02:00
crystal2nix
cudatoolkit cudaPackages_11_6: better message on why gcc10 2022-04-21 01:25:33 +03:00
dale
dasm
dev86
dictu
dmd treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
dotnet Mark dotnet unbroken 2022-06-02 21:52:02 +01:00
dtc treewide: update git.kernel.org/cgit homepage URLs 2022-06-10 19:46:39 +00:00
ecl
edk2 edk2: fix cross compilation 2022-05-14 12:00:00 +00:00
eli eli: add -fcommon workaround 2022-06-04 06:51:58 +01:00
elm elmPackages.elm-pages: init at 2.1.11 2022-05-30 09:56:44 -04:00
emscripten
eql
factor-lang
fasm
fasmg
fennel
firrtl firrtl: init at 1.5.3 (#171065) 2022-05-29 12:19:51 -05:00
flasm flasm: pull patch pending upstream inclusion for -fno-common toolchains 2022-05-15 10:18:31 +01:00
flutter flutter.dart: 2.16.1 -> 2.16.2 2022-05-13 17:02:03 +02:00
flux
fpc fpc: fix build on aarch64 2022-05-12 19:34:43 +00:00
fsharp
fstar ocamlPackages: rename sedlex_2 into sedlex 2022-05-29 08:48:00 +02:00
gambit
gavrasm
gcc gdc: nicer eval failure from versions >= 12 2022-05-23 16:24:25 +02:00
gcc-arm-embedded
gcl gcl: add -fcommon workaround 2022-06-08 08:38:15 +01:00
gerbil
gforth gforth: unmark broken on darwin 2022-06-11 19:13:40 +01:00
ghc ghc: use CXX=c++, not CXX=cxx 2022-05-29 20:02:53 +02:00
ghcjs
ghdl
gleam gleam: 0.20.1 -> 0.21.0 2022-05-26 08:26:30 -04:00
glslang Vulkan: 1.2.198.0 -> 1.3.211.0 2022-04-26 21:38:50 -04:00
gmqcc gmqcc: init at unstable-2021-07-09 2022-06-08 15:51:58 +02:00
gnatboot
gnu-cobol
gnu-smalltalk
go go: remove outdated patch 2022-06-15 08:50:32 +10:00
go-jsonnet treewide: testVersion -> testers.testVersion 2022-04-22 16:24:27 +03:00
gprolog
graalvm/community-edition graalvmXX-ce: use a patched version of zlib 2022-06-16 11:27:34 +01:00
gwt
halide
hare hare: run test suite 2022-05-04 09:25:09 +00:00
haxe ocamlPackages: rename sedlex_2 into sedlex 2022-05-29 08:48:00 +02:00
hip hip: 5.0.2 -> 5.1.1 2022-05-05 18:36:00 +02:00
hop
idris2
inform6
inform7 treewide: pkgs/development: mark broken for aarch64-linux 2022-05-30 13:42:59 +02:00
inklecate Merge pull request #173304 from IvarWithoutBones/bump/dotnetmodule 2022-05-26 00:26:18 +02:00
intel-graphics-compiler intel-graphics-compiler: move substitutes to postPatch 2022-05-05 15:27:48 -07:00
intercal intercal: fix build on -fno-common toolchains 2022-05-21 10:59:28 +01:00
ios-cross-compile
ispc ispc: unstable-2021-04-02 -> 1.18.0, (co-)maintain 2022-06-02 15:01:26 +02:00
jasmin
jasmin-compiler jasmin-compiler: 21.0 → 2022.04.0 2022-05-13 14:08:29 +02:00
javacard-devkit treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
jetbrains-jdk
jrsonnet
jsonnet
julia julia_17-bin: 1.7.2 -> 1.7.3 2022-05-26 12:38:26 +02:00
juniper
jwasm treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
kaitai-struct-compiler
koka koka: 2.3.8 -> 2.4.0 2022-06-01 10:24:15 +02:00
kotlin kotlin-native: 1.6.21 → 1.7.0 2022-06-09 09:49:28 -05:00
ldc
ligo
lingua-franca treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
llvm Merge pull request #176591 from misuzu/llvm-armv7l 2022-06-10 02:00:14 +02:00
lobster treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
manticore
marst
matter-compiler
mcpp
mercury mercury: 20.06.1 -> 22.01.1 2022-05-13 08:48:16 +10:00
meta-environment/meta-build-env
mezzo
microscheme
mint
miranda miranda: add -fcommon workaround 2022-05-22 11:21:35 +01:00
mit-scheme
mkcl treewide: pkgs/development: mark broken for aarch64-linux 2022-05-30 13:42:59 +02:00
mlkit
mlton mlton: 20180207 → 20210107 2022-06-07 13:34:26 +07:00
mono mono: fix broken mono4 build on Darwin 2022-06-01 18:30:17 -04:00
mosml
mozart mozart2: fix build. 2022-06-08 09:32:08 -03:00
mruby mruby: 3.0.0 -> 3.1.0 2022-05-14 01:01:08 +01:00
mrustc mrustc: fixup build 2022-04-17 10:14:55 +02:00
muonlang
myrddin treewide: pkgs/development: mark broken for aarch64-linux 2022-05-30 13:42:59 +02:00
nasm
neko
nextpnr
nim nim: 1.6.4 -> 1.6.6 2022-05-09 13:34:07 -05:00
nvidia-cg-toolkit treewide: change some glibc to stdenv.cc.libc 2022-05-27 05:57:43 +03:00
obliv-c
ocaml ocaml-ng.ocamlPackages_4_00_1.ocaml, ocaml-ng.ocamlPackages_4_08.ocaml: add -fcommon workaround 2022-05-28 13:37:55 +01:00
odin
opa opa: drop spurious dependency on cryptokit 2022-05-10 17:47:59 +02:00
open-watcom open-watcom-v2-unwrapped: unstable-2022-05-03 -> unstable-2022-05-04 2022-05-06 08:55:39 +00:00
opendylan treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
openjdk openjfx11, openjfx15: add -fcommon workaround 2022-06-03 13:48:50 +01:00
openspin
ophis
oraclejdk
orc
osl treewide: pkgs/development: mark broken for aarch64-linux 2022-05-30 13:42:59 +02:00
owl-lisp
paco
pakcs
passerine
pforth
picat
polyml
ponyc ponyc: 0.49.0 -> 0.50.0 2022-04-30 22:35:03 -04:00
purescript purescript: update script only considers full releases 2022-05-27 13:40:36 +09:00
qbe qbe: unstable-2022-03-17 -> unstable-2022-04-11 2022-04-15 10:00:11 +02:00
rasm
reason
rgbds
roslyn
rust rust: 1.60.0 -> 1.61.0 (#173631) 2022-05-22 15:51:43 +02:00
sagittarius-scheme treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
sbcl sbcl: 2.1.11 -> 2.2.4 2022-04-29 20:43:01 +02:00
scala dotty: rename to scala_3 2022-05-05 11:32:30 +02:00
scala-runners
scryer-prolog treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
sdcc
seexpr
serpent
shaderc
sjasmplus
smlnj smlnj,smlnjBootstrap: set meta.mainProgram 2022-05-28 14:48:53 +03:00
solc solc: add darwin binary for now 2022-05-03 07:58:58 -04:00
souffle treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
spasm-ng
spirv-llvm-translator spirv-llvm-translator: fix duplicate makeFlags merge 2022-05-06 10:30:03 +02:00
squeak squeak: add -fcommon workaround 2022-06-09 21:38:39 -05:00
stalin
swi-prolog
swift swift: mark broken 2022-05-30 13:42:59 +02:00
terra terra: 1.0.0-beta3 -> 1.0.0-beta5 2022-06-07 09:53:06 -07:00
teyjus
tinycc treewide: pkgs/development/compilers: mark broken for darwin 2022-05-30 13:41:09 +02:00
tinygo tinygo: 0.16.0 -> 0.23.0 2022-05-20 00:37:01 +03:00
tvm
uasm treewide: testVersion -> testers.testVersion 2022-04-22 16:24:27 +03:00
unison unison-ucm: M2j -> M2l 2022-05-24 19:58:08 +02:00
urn
urweb
vala vala: default to vala_0_56 2022-05-12 21:28:49 +02:00
vlang vlang: 2022.19 -> 2022.20 2022-05-17 06:23:29 -05:00
vyper vyper: 0.3.1 -> 0.3.3 2022-05-11 11:21:25 -05:00
wcc
wla-dx
x11basic
xa
yap treewide: pkgs/development: mark broken for aarch64-linux 2022-05-30 13:42:59 +02:00
yasm
yosys
z88dk
zasm treewide: extraPostFetch -> postFetch 2022-05-23 17:18:50 +03:00
zig
zulu
zz