Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix architecture support for OCaml 5.x #21510

Merged
merged 5 commits into from
Jun 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ocaml-option-32bit/ocaml-option-32bit.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ depexts: [
["gcc-multilib" "g++-multilib"] {os-family = "debian"}
]
depends: [
"ocaml-variants" {post & >= "4.12.0~"}
"ocaml-variants" {post & >= "4.12.0~" & < "5.0.0~~"} | ("ocaml-variants" {post & >= "5.0.0~~"} "ocaml-option-bytecode-only")
]
available: [ arch = "x86_64" & (os = "linux" | os = "macos") ]
maintainer: "[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ synopsis: "Compile OCaml without the native-code compiler"
depends: [
"ocaml-variants" {post & >= "4.12.0~"}
]
conflicts: [ "ocaml-option-afl" "ocaml-option-fp" "ocaml-option-flambda" ]
maintainer: "[email protected]"
flags: compiler
1 change: 1 addition & 0 deletions packages/ocaml-option-fp/ocaml-option-fp.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ depends: [
"ocaml-variants" {post & >= "4.12.0~"}
]
conflicts: ["ocaml-option-musl"]
available: os = "linux" & arch = "x86_64"
maintainer: "[email protected]"
flags: compiler
4 changes: 2 additions & 2 deletions packages/ocaml-variants/ocaml-variants.5.0.0+trunk/opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ depends: [
"base-threads" {post}
"base-domains" {post}
"base-nnp" {post}
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"}
"ocaml-beta" {opam-version < "2.1.0"}
]
conflict-class: "ocaml-core-compiler"
Expand Down Expand Up @@ -63,14 +64,13 @@ post-messages: [
to force a sequential build instead."
{failure & jobs > 1 & os != "cygwin" & opam-version >= "2.0.5"}
]
conflicts: [ "ocaml-option-fp" ]
depopts: [
"ocaml-option-32bit"
"ocaml-option-afl"
"ocaml-option-bytecode-only"
"ocaml-option-default-unsafe-string"
"ocaml-option-no-flat-float-array"
"ocaml-option-flambda"
"ocaml-option-fp"
"ocaml-option-musl"
"ocaml-option-static"
]
4 changes: 2 additions & 2 deletions packages/ocaml-variants/ocaml-variants.5.1.0+trunk/opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ depends: [
"base-threads" {post}
"base-domains" {post}
"base-nnp" {post}
"ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"}
"ocaml-beta" {opam-version < "2.1.0"}
]
conflict-class: "ocaml-core-compiler"
Expand Down Expand Up @@ -63,14 +64,13 @@ post-messages: [
to force a sequential build instead."
{failure & jobs > 1 & os != "cygwin" & opam-version >= "2.0.5"}
]
conflicts: [ "ocaml-option-fp" ]
depopts: [
"ocaml-option-32bit"
"ocaml-option-afl"
"ocaml-option-bytecode-only"
"ocaml-option-default-unsafe-string"
"ocaml-option-no-flat-float-array"
"ocaml-option-flambda"
"ocaml-option-fp"
"ocaml-option-musl"
"ocaml-option-static"
]
53 changes: 53 additions & 0 deletions packages/opam-depext/opam-depext.1.2.1-1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
opam-version: "2.0"
synopsis: "Install OS distribution packages"
description: """\
opam-depext is a simple program intended to facilitate the interaction between
OPAM packages and the host package management system. It can query OPAM for the
right external dependencies on a set of packages, depending on the host OS, and
call the OS's package manager in the appropriate way to install them."""
maintainer: [
"Louis Gesbert <[email protected]>"
"Anil Madhavapeddy <[email protected]>"
]
authors: [
"Louis Gesbert <[email protected]>"
"Anil Madhavapeddy <[email protected]>"
]
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://github.com/ocaml/opam-depext"
bug-reports: "https://github.com/ocaml/opam-depext/issues"
depends: [
"ocaml" {>= "4.00"}
"base-unix"
"cmdliner" {>= "0.9.8" & dev}
"ocamlfind" {dev}
]
depopts: "ocaml-option-bytecode-only"
available: opam-version >= "2.0.0~beta5"
flags: plugin
build: [
["sed" "-ib" "-e" "/all:/s/ncl//" "src_ext/Makefile"]
[make "OCAMLOPT=%{ocaml-option-bytecode-only:installed?no:ocamlopt}%"] {!dev}
[
"ocamlfind"
"%{ocaml:native?ocamlopt:ocamlc}%"
"-package"
"unix,cmdliner"
"-linkpkg"
"-o"
"opam-depext"
"depext.ml"
] {dev}
]
post-messages:
"opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead"
{opam-version >= "2.1"}
dev-repo: "git+https://github.com/ocaml/opam-depext.git#2.0"
url {
src:
"https://github.com/ocaml-opam/opam-depext/releases/download/v1.2.1/opam-depext-full-1.2.1.tbz"
checksum: [
"md5=7bda1fdbd88322e8f515919c82a37a2a"
"sha512=a031289ac4e2d4d28bf02b892313b2a0ee724c94f0b7a131b3d9bccc5fbaf2292834d53dd6a0b7134f43bab06ee70bd2c98562fb3a6a03f1a526981290cbf501"
]
}