Skip to content

Commit 47f37ad

Browse files
authored
Merge pull request #24331 from Octachron/OCaml_5.1.0_rc2
Second release candidate for OCaml 5.1.0
2 parents 9042fe1 + bdb9230 commit 47f37ad

File tree

4 files changed

+136
-0
lines changed

4 files changed

+136
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
share_root: ["config.cache" {"ocaml/config.cache"}]
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
opam-version: "2.0"
2+
synopsis: "Second release candidate of OCaml 5.1.0"
3+
maintainer: "[email protected]"
4+
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
5+
authors: "Xavier Leroy and many contributors"
6+
homepage: "https://ocaml.org"
7+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
8+
dev-repo: "git+https://github.com/ocaml/ocaml#5.1"
9+
depends: [
10+
"ocaml" {= "5.1.0" & post}
11+
"base-unix" {post}
12+
"base-bigarray" {post}
13+
"base-threads" {post}
14+
"base-domains" {post}
15+
"base-nnp" {post}
16+
"ocaml-options-vanilla" {post}
17+
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64"}
18+
"ocaml-beta" {opam-version < "2.1.0"}
19+
]
20+
conflict-class: "ocaml-core-compiler"
21+
flags: [ compiler avoid-version ]
22+
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
23+
build: [
24+
[
25+
"./configure"
26+
"--prefix=%{prefix}%"
27+
"--docdir=%{doc}%/ocaml"
28+
"-C"
29+
"CC=cc" {os = "openbsd" | os = "macos"}
30+
"ASPP=cc -c" {os = "openbsd" | os = "macos"}
31+
]
32+
[make "-j%{jobs}%"]
33+
]
34+
install: [make "install"]
35+
url {
36+
src: "https://github.com/ocaml/ocaml/archive/5.1.0-rc2.tar.gz"
37+
checksum: "sha256=a147c847a897bfd9a004c976a8f89f2d83c8a11cf8a6ad694cbf4d90808b0dc7"
38+
}
39+
extra-files: ["ocaml-base-compiler.install" "md5=3e969b841df1f51ca448e6e6295cb451"]
40+
post-messages: [
41+
"A failure in the middle of the build may be caused by build parallelism
42+
(enabled by default).
43+
Please file a bug report at https://github.com/ocaml/opam-repository/issues"
44+
{failure & jobs > 1}
45+
"You can try installing again including --jobs=1
46+
to force a sequential build instead."
47+
{failure & jobs > 1 & opam-version >= "2.0.5"}
48+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
share_root: ["config.cache" {"ocaml/config.cache"}]
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
opam-version: "2.0"
2+
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3+
synopsis: "Second release candidate of OCaml 5.1.0"
4+
maintainer: "[email protected]"
5+
authors: ["Xavier Leroy" "Damien Doligez" "Alain Frisch" "Jacques Garrigue" "Didier Rémy" "Jérôme Vouillon"]
6+
homepage: "https://ocaml.org"
7+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
8+
dev-repo: "git+https://github.com/ocaml/ocaml.git#5.1"
9+
depends: [
10+
"ocaml" {= "5.1.0" & post}
11+
"base-unix" {post}
12+
"base-bigarray" {post}
13+
"base-threads" {post}
14+
"base-domains" {post}
15+
"base-nnp" {post}
16+
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64"}
17+
"ocaml-beta" {opam-version < "2.1.0"}
18+
]
19+
conflict-class: "ocaml-core-compiler"
20+
flags: [ compiler avoid-version ]
21+
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
22+
build-env: [
23+
[LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
24+
[ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
25+
]
26+
build: [
27+
[
28+
"./configure"
29+
"--prefix=%{prefix}%"
30+
"--docdir=%{doc}%/ocaml"
31+
"-C"
32+
"--with-afl" {ocaml-option-afl:installed}
33+
"--disable-native-compiler" {ocaml-option-bytecode-only:installed}
34+
"--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
35+
"--enable-flambda" {ocaml-option-flambda:installed}
36+
"--enable-frame-pointers" {ocaml-option-fp:installed}
37+
"CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
38+
"CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
39+
"CFLAGS=-Os" {ocaml-option-musl:installed}
40+
"LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
41+
"CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
42+
"CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
43+
"CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
44+
"CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
45+
"CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
46+
"ASPP=cc -c" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
47+
"ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
48+
"ASPP=gcc -m32 -c" {ocaml-option-32bit:installed & os="linux"}
49+
"ASPP=gcc -arch i386 -m32 -c" {ocaml-option-32bit:installed & os="macos"}
50+
"AS=as --32" {ocaml-option-32bit:installed & os="linux"}
51+
"AS=as -arch i386" {ocaml-option-32bit:installed & os="macos"}
52+
"--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
53+
"--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
54+
"PARTIALLD=ld -r -melf_i386" {ocaml-option-32bit:installed & os="linux"}
55+
"LIBS=-static" {ocaml-option-static:installed}
56+
"--disable-warn-error"
57+
]
58+
[make "-j%{jobs}%"]
59+
]
60+
install: [make "install"]
61+
url {
62+
src: "https://github.com/ocaml/ocaml/archive/5.1.0-rc2.tar.gz"
63+
checksum: "sha256=a147c847a897bfd9a004c976a8f89f2d83c8a11cf8a6ad694cbf4d90808b0dc7"
64+
}
65+
extra-files: ["ocaml-variants.install" "md5=3e969b841df1f51ca448e6e6295cb451"]
66+
post-messages: [
67+
"A failure in the middle of the build may be caused by build parallelism
68+
(enabled by default).
69+
Please file a bug report at https://github.com/ocaml/opam-repository/issues"
70+
{failure & jobs > 1}
71+
"You can try installing again including --jobs=1
72+
to force a sequential build instead."
73+
{failure & jobs > 1 & opam-version >= "2.0.5"}
74+
]
75+
depopts: [
76+
"ocaml-option-32bit"
77+
"ocaml-option-afl"
78+
"ocaml-option-bytecode-only"
79+
"ocaml-option-no-flat-float-array"
80+
"ocaml-option-flambda"
81+
"ocaml-option-fp"
82+
"ocaml-option-musl"
83+
"ocaml-option-leak-sanitizer"
84+
"ocaml-option-address-sanitizer"
85+
"ocaml-option-static"
86+
]

0 commit comments

Comments
 (0)