Skip to content

Commit 20fc22d

Browse files
authored
Merge pull request ocaml#27915 from Octachron/OCaml_5.4.0_alpha1
OCaml 5.4.0: packages for the first alpha
2 parents 4283277 + fe74d4a commit 20fc22d

File tree

4 files changed

+199
-13
lines changed
  • packages
    • ocaml-base-compiler/ocaml-base-compiler.5.4.0~alpha1
    • ocaml-compiler/ocaml-compiler.5.4.0~alpha1
    • ocaml-variants/ocaml-variants.5.4.0~alpha1+options
    • ocaml/ocaml.5.4.0

4 files changed

+199
-13
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: "First alpha 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~alpha1"}
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: "First alpha 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-alpha1.tar.gz"
104+
checksum: "sha256=c630db5566b4d159aefeb62f799c2efe21de88f7a71b8343cbd58d2f5bf8dd6d"
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: "First alpha 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~alpha1"}
22+
23+
"ocaml-beta" {opam-version < "2.1.0"}
24+
]
25+
conflict-class: "ocaml-core-compiler"
26+
flags: [ compiler avoid-version ]

packages/ocaml/ocaml.5.4.0/opam

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,39 @@ description: """
55
This package requires a matching implementation of OCaml,
66
and polls it to initialise specific variables like `ocaml:native-dynlink`"""
77
maintainer: "David Allsopp <[email protected]>"
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"
819
depends: [
920
"ocaml-config" {>= "3"}
10-
"ocaml-base-compiler" {= "5.4.0"} |
21+
"ocaml-base-compiler" {>= "5.4.0~" & < "5.4.1~"} |
1122
"ocaml-variants" {>= "5.4.0~" & < "5.4.1~"} |
1223
"ocaml-system" {>= "5.4.0~" & < "5.4.1~"} |
1324
"dkml-base-compiler" {>= "5.4.0~" & < "5.4.1~"}
1425
]
26+
flags: [conf avoid-version]
1527
setenv: [
28+
[OCAMLTOP_INCLUDE_PATH += "%{toplevel}%"]
1629
[CAML_LD_LIBRARY_PATH = "%{_:stubsdir}%"]
1730
[CAML_LD_LIBRARY_PATH += "%{lib}%/stublibs"]
31+
# Legacy opam variable
1832
[OCAML_TOPLEVEL_PATH = "%{toplevel}%"]
1933
]
2034
x-env-path-rewrite: [
2135
[CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
36+
[OCAMLTOP_INCLUDE_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
2237
]
23-
build: ["ocaml" "%{ocaml-config:share}%/gen_ocaml_config.ml" _:version _:name]
2438
build-env: [
2539
[CAML_LD_LIBRARY_PATH = ""]
2640
[LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
2741
[ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
2842
]
29-
homepage: "https://ocaml.org"
30-
bug-reports: "https://github.com/ocaml/opam-repository/issues"
31-
authors: [
32-
"Xavier Leroy"
33-
"Damien Doligez"
34-
"Alain Frisch"
35-
"Jacques Garrigue"
36-
"Didier Rémy"
37-
"Jérôme Vouillon"
38-
]
39-
flags: [conf avoid-version]
43+
build: ["ocaml" "%{ocaml-config:share}%/gen_ocaml_config.ml" _:version _:name]

0 commit comments

Comments
 (0)