Skip to content

Commit d0b7433

Browse files
committed
OCaml 5.4.0: second beta release
1 parent 9c3d4d2 commit d0b7433

File tree

3 files changed

+182
-0
lines changed
  • packages
    • ocaml-base-compiler/ocaml-base-compiler.5.4.0~beta2
    • ocaml-compiler/ocaml-compiler.5.4.0~beta2
    • ocaml-variants/ocaml-variants.5.4.0~beta2+options

3 files changed

+182
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
opam-version: "2.0"
2+
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3+
synopsis: "Second beta release of OCaml 5.4.0"
4+
maintainer: [
5+
"David Allsopp <[email protected]>"
6+
"Florian Angeletti <[email protected]>"
7+
]
8+
authors: [
9+
"Xavier Leroy"
10+
"Damien Doligez"
11+
"Alain Frisch"
12+
"Jacques Garrigue"
13+
"Didier Rémy"
14+
"KC Sivaramakrishnan"
15+
"Jérôme Vouillon"
16+
]
17+
homepage: "https://ocaml.org"
18+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
19+
dev-repo: "git+https://github.com/ocaml/ocaml.git#5.4"
20+
depends: [
21+
"ocaml-compiler" {= "5.4.0~beta2"}
22+
23+
"ocaml-beta" {opam-version < "2.1.0"}
24+
25+
# OCaml with default configuration (no flambda, TSAN, etc.)
26+
"ocaml-options-vanilla" {post}
27+
]
28+
conflict-class: "ocaml-core-compiler"
29+
flags: [ compiler avoid-version ]
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
opam-version: "2.0"
2+
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3+
synopsis: "Second beta release of OCaml 5.4.0"
4+
maintainer: [
5+
"David Allsopp <[email protected]>"
6+
"Florian Angeletti <[email protected]>"
7+
]
8+
authors: [
9+
"Xavier Leroy"
10+
"Damien Doligez"
11+
"Alain Frisch"
12+
"Jacques Garrigue"
13+
"Didier Rémy"
14+
"KC Sivaramakrishnan"
15+
"Jérôme Vouillon"
16+
]
17+
homepage: "https://ocaml.org"
18+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
19+
dev-repo: "git+https://github.com/ocaml/ocaml.git#5.4"
20+
depends: [
21+
# This is OCaml 5.4.0
22+
"ocaml" {= "5.4.0" & post}
23+
24+
# General base- packages
25+
"base-unix" {post}
26+
"base-bigarray" {post}
27+
"base-threads" {post}
28+
"base-domains" {post}
29+
"base-nnp" {post}
30+
"base-effects" {post}
31+
32+
"ocaml-beta" {opam-version < "2.1.0"}
33+
34+
# Port selection (Windows)
35+
# amd64 mingw-w64 / MSVC
36+
(("arch-x86_64" {os = "win32" & arch = "x86_64"} &
37+
(("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
38+
("system-msvc" & "winpthreads" & "ocaml-option-no-compression" {os = "win32"}))) |
39+
# i686 mingw-w64 / MSVC
40+
("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" {os = "win32"} &
41+
(("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
42+
("system-msvc" & "winpthreads" & "ocaml-option-no-compression" {os = "win32"}))) |
43+
# Non-Windows systems need to install something to satisfy this formula, so
44+
# repeat the base-unix dependency
45+
"base-unix" {os != "win32" & post})
46+
47+
# All the 32-bit architectures are bytecode-only
48+
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64" & arch != "ppc64"}
49+
50+
# Support Packages
51+
"flexdll" {>= "0.42" & os = "win32"}
52+
]
53+
flags: [ avoid-version ]
54+
setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
55+
x-env-path-rewrite: [
56+
[CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
57+
]
58+
build-env: [
59+
[MSYS2_ARG_CONV_EXCL = "*"]
60+
[LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
61+
[ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
62+
]
63+
build: [
64+
[
65+
"./configure"
66+
"--host=x86_64-pc-windows" {system-msvc:installed & arch-x86_64:installed}
67+
"--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
68+
"--host=i686-pc-windows" {system-msvc:installed & arch-x86_32:installed}
69+
"--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
70+
"--prefix=%{prefix}%"
71+
"--docdir=%{doc}%/ocaml"
72+
"--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
73+
"--with-winpthreads-msvc=%{winpthreads:share}%" {system-msvc:installed}
74+
"-C"
75+
"--with-afl" {ocaml-option-afl:installed}
76+
"--disable-native-compiler" {ocaml-option-bytecode-only:installed}
77+
"--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
78+
"--enable-flambda" {ocaml-option-flambda:installed}
79+
"--enable-frame-pointers" {ocaml-option-fp:installed}
80+
"--without-zstd" {ocaml-option-no-compression:installed}
81+
"--enable-tsan" {ocaml-option-tsan:installed}
82+
"CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os = "openbsd" | os = "macos")}
83+
"CC=clang" {ocaml-option-tsan:installed & (os="macos")}
84+
"CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
85+
"CFLAGS=-Os" {ocaml-option-musl:installed & arch != "arm64"}
86+
"CFLAGS=-Os -mno-outline-atomics" {ocaml-option-musl:installed & arch = "arm64"}
87+
"LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
88+
"CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
89+
"CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
90+
"CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
91+
"CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
92+
"CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
93+
"ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
94+
"--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
95+
"--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
96+
"LIBS=-static" {ocaml-option-static:installed}
97+
"--disable-warn-error"
98+
]
99+
[make "-j%{jobs}%"]
100+
]
101+
install: [make "install"]
102+
url {
103+
src: "https://github.com/ocaml/ocaml/archive/5.4.0-beta2.tar.gz"
104+
checksum: "sha256=b9e6e80dc0fb3a230f285ccc2757584d049c0b310521c50be6432d0fc3b440d7"
105+
}
106+
depopts: [
107+
"ocaml-option-32bit"
108+
"ocaml-option-afl"
109+
"ocaml-option-bytecode-only"
110+
"ocaml-option-no-flat-float-array"
111+
"ocaml-option-flambda"
112+
"ocaml-option-fp"
113+
"ocaml-option-no-compression"
114+
"ocaml-option-musl"
115+
"ocaml-option-leak-sanitizer"
116+
"ocaml-option-address-sanitizer"
117+
"ocaml-option-static"
118+
"ocaml-option-tsan"
119+
]
120+
extra-source "ocaml-compiler.install" {
121+
src:
122+
"https://raw.githubusercontent.com/ocaml/ocaml/899b8f3bece45f55161dad72eaa223c2bb7202e8/ocaml-variants.install"
123+
checksum: [
124+
"sha256=7af3dc34e6f9f3be2ffd8d32cd64fa650d6a036c86c4821a7033d24a90fba11c"
125+
"md5=781ea69255fd0cb643a9617ff56fd6ba"
126+
]
127+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
opam-version: "2.0"
2+
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3+
synopsis: "Second beta release of OCaml 5.4.0"
4+
maintainer: [
5+
"David Allsopp <[email protected]>"
6+
"Florian Angeletti <[email protected]>"
7+
]
8+
authors: [
9+
"Xavier Leroy"
10+
"Damien Doligez"
11+
"Alain Frisch"
12+
"Jacques Garrigue"
13+
"Didier Rémy"
14+
"KC Sivaramakrishnan"
15+
"Jérôme Vouillon"
16+
]
17+
homepage: "https://ocaml.org"
18+
bug-reports: "https://github.com/ocaml/opam-repository/issues"
19+
dev-repo: "git+https://github.com/ocaml/ocaml.git#5.4"
20+
depends: [
21+
"ocaml-compiler" {= "5.4.0~beta2"}
22+
23+
"ocaml-beta" {opam-version < "2.1.0"}
24+
]
25+
conflict-class: "ocaml-core-compiler"
26+
flags: [ compiler avoid-version ]

0 commit comments

Comments
 (0)