Skip to content

Commit 02c9f4b

Browse files
authored
Merge pull request ocaml#21510 from dra27/bytecode
Fix architecture support for OCaml 5.x
2 parents 8da2477 + 98911a0 commit 02c9f4b

File tree

6 files changed

+60
-5
lines changed
  • packages
    • ocaml-option-32bit/ocaml-option-32bit.1
    • ocaml-option-bytecode-only/ocaml-option-bytecode-only.1
    • ocaml-option-fp/ocaml-option-fp.1
    • ocaml-variants
      • ocaml-variants.5.0.0+trunk
      • ocaml-variants.5.1.0+trunk
    • opam-depext/opam-depext.1.2.1-1

6 files changed

+60
-5
lines changed

packages/ocaml-option-32bit/ocaml-option-32bit.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ depexts: [
44
["gcc-multilib" "g++-multilib"] {os-family = "debian"}
55
]
66
depends: [
7-
"ocaml-variants" {post & >= "4.12.0~"}
7+
"ocaml-variants" {post & >= "4.12.0~" & < "5.0.0~~"} | ("ocaml-variants" {post & >= "5.0.0~~"} "ocaml-option-bytecode-only")
88
]
99
available: [ arch = "x86_64" & (os = "linux" | os = "macos") ]
1010
maintainer: "[email protected]"

packages/ocaml-option-bytecode-only/ocaml-option-bytecode-only.1/opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ synopsis: "Compile OCaml without the native-code compiler"
33
depends: [
44
"ocaml-variants" {post & >= "4.12.0~"}
55
]
6+
conflicts: [ "ocaml-option-afl" "ocaml-option-fp" "ocaml-option-flambda" ]
67
maintainer: "[email protected]"
78
flags: compiler

packages/ocaml-option-fp/ocaml-option-fp.1/opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ depends: [
44
"ocaml-variants" {post & >= "4.12.0~"}
55
]
66
conflicts: ["ocaml-option-musl"]
7+
available: os = "linux" & arch = "x86_64"
78
maintainer: "[email protected]"
89
flags: compiler

packages/ocaml-variants/ocaml-variants.5.0.0+trunk/opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ depends: [
1313
"base-threads" {post}
1414
"base-domains" {post}
1515
"base-nnp" {post}
16+
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"}
1617
"ocaml-beta" {opam-version < "2.1.0"}
1718
]
1819
conflict-class: "ocaml-core-compiler"
@@ -63,14 +64,13 @@ post-messages: [
6364
to force a sequential build instead."
6465
{failure & jobs > 1 & os != "cygwin" & opam-version >= "2.0.5"}
6566
]
67+
conflicts: [ "ocaml-option-fp" ]
6668
depopts: [
6769
"ocaml-option-32bit"
6870
"ocaml-option-afl"
69-
"ocaml-option-bytecode-only"
7071
"ocaml-option-default-unsafe-string"
7172
"ocaml-option-no-flat-float-array"
7273
"ocaml-option-flambda"
73-
"ocaml-option-fp"
7474
"ocaml-option-musl"
7575
"ocaml-option-static"
7676
]

packages/ocaml-variants/ocaml-variants.5.1.0+trunk/opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ depends: [
1313
"base-threads" {post}
1414
"base-domains" {post}
1515
"base-nnp" {post}
16+
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"}
1617
"ocaml-beta" {opam-version < "2.1.0"}
1718
]
1819
conflict-class: "ocaml-core-compiler"
@@ -63,14 +64,13 @@ post-messages: [
6364
to force a sequential build instead."
6465
{failure & jobs > 1 & os != "cygwin" & opam-version >= "2.0.5"}
6566
]
67+
conflicts: [ "ocaml-option-fp" ]
6668
depopts: [
6769
"ocaml-option-32bit"
6870
"ocaml-option-afl"
69-
"ocaml-option-bytecode-only"
7071
"ocaml-option-default-unsafe-string"
7172
"ocaml-option-no-flat-float-array"
7273
"ocaml-option-flambda"
73-
"ocaml-option-fp"
7474
"ocaml-option-musl"
7575
"ocaml-option-static"
7676
]
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
opam-version: "2.0"
2+
synopsis: "Install OS distribution packages"
3+
description: """\
4+
opam-depext is a simple program intended to facilitate the interaction between
5+
OPAM packages and the host package management system. It can query OPAM for the
6+
right external dependencies on a set of packages, depending on the host OS, and
7+
call the OS's package manager in the appropriate way to install them."""
8+
maintainer: [
9+
"Louis Gesbert <[email protected]>"
10+
"Anil Madhavapeddy <[email protected]>"
11+
]
12+
authors: [
13+
"Louis Gesbert <[email protected]>"
14+
"Anil Madhavapeddy <[email protected]>"
15+
]
16+
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
17+
homepage: "https://github.com/ocaml/opam-depext"
18+
bug-reports: "https://github.com/ocaml/opam-depext/issues"
19+
depends: [
20+
"ocaml" {>= "4.00"}
21+
"base-unix"
22+
"cmdliner" {>= "0.9.8" & dev}
23+
"ocamlfind" {dev}
24+
]
25+
depopts: "ocaml-option-bytecode-only"
26+
available: opam-version >= "2.0.0~beta5"
27+
flags: plugin
28+
build: [
29+
["sed" "-ib" "-e" "/all:/s/ncl//" "src_ext/Makefile"]
30+
[make "OCAMLOPT=%{ocaml-option-bytecode-only:installed?no:ocamlopt}%"] {!dev}
31+
[
32+
"ocamlfind"
33+
"%{ocaml:native?ocamlopt:ocamlc}%"
34+
"-package"
35+
"unix,cmdliner"
36+
"-linkpkg"
37+
"-o"
38+
"opam-depext"
39+
"depext.ml"
40+
] {dev}
41+
]
42+
post-messages:
43+
"opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead"
44+
{opam-version >= "2.1"}
45+
dev-repo: "git+https://github.com/ocaml/opam-depext.git#2.0"
46+
url {
47+
src:
48+
"https://github.com/ocaml-opam/opam-depext/releases/download/v1.2.1/opam-depext-full-1.2.1.tbz"
49+
checksum: [
50+
"md5=7bda1fdbd88322e8f515919c82a37a2a"
51+
"sha512=a031289ac4e2d4d28bf02b892313b2a0ee724c94f0b7a131b3d9bccc5fbaf2292834d53dd6a0b7134f43bab06ee70bd2c98562fb3a6a03f1a526981290cbf501"
52+
]
53+
}

0 commit comments

Comments
 (0)