Skip to content

Commit

Permalink
Use OCAMLPARAM to build in OCaml 5.3
Browse files Browse the repository at this point in the history
Add `OCAMLPARAM=_,keywords=5.2` to `build-env` which allows these
packages to build in OCaml 5.3 by disabling the `effect` keyword during
the build only.
  • Loading branch information
dra27 committed Nov 4, 2024
1 parent 9048aac commit 9c68c2d
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 36 deletions.
7 changes: 3 additions & 4 deletions packages/MlFront_Cli/MlFront_Cli.0.4.0~prerel7/opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ depends: [
"tezt" {with-test & >= "4.1.0"}
"odoc" {with-doc}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "5.1.1+effect-syntax"}
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
[
"sh"
Expand All @@ -49,4 +48,4 @@ url {
"md5=eaaecad4dfce5ad6849444bfa1e0cc44"
"sha512=9cf976ec567c41101249a4cc1f57dedac14597f664d44ab8d25d1507812357ab038a6d47fe7e4450d25114e7f9edcedbcf78c1e24267858d8b7b0c12fb15c22b"
]
}
}
3 changes: 2 additions & 1 deletion packages/coq-core/coq-core.8.17.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ depends: [
conflicts: [
"coq" { < "8.17" }
"ocaml-option-bytecode-only"
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
]
build-env: OCAMLPARAM = "_,warn-error=-a,keywords=5.2"
build: [
[ "./configure"
"-prefix" prefix
Expand Down
3 changes: 2 additions & 1 deletion packages/coq-core/coq-core.8.17.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ depends: [
]
conflicts: [
"coq" { < "8.17" }
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
]
build-env: OCAMLPARAM = "_,warn-error=-a,keywords=5.2"
build: [
[ "./configure"
"-prefix" prefix
Expand Down
3 changes: 2 additions & 1 deletion packages/coq-core/coq-core.8.18.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ depends: [
]
conflicts: [
"coq" { < "8.17" }
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
]
build-env: OCAMLPARAM = "_,warn-error=-a,keywords=5.2"
build: [
# Requires dune 2.8 due to https://github.com/ocaml/dune/issues/3219
# ["dune" "subst"] {pinned}
Expand Down
3 changes: 2 additions & 1 deletion packages/coq-core/coq-core.8.19.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ depends: [
]
conflicts: [
"coq" { < "8.17" }
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
]
depopts: ["coq-native"]
dev-repo: "git+https://github.com/coq/coq.git"
build-env: OCAMLPARAM = "_,warn-error=-a,keywords=5.2"
build: [
["dune" "subst"] {dev}
[ "./configure"
Expand Down
3 changes: 2 additions & 1 deletion packages/coq-core/coq-core.8.19.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ depends: [
]
conflicts: [
"coq" { < "8.17" }
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
]
depopts: ["coq-native"]
dev-repo: "git+https://github.com/coq/coq.git"
build-env: OCAMLPARAM = "_,warn-error=-a,keywords=5.2"
build: [
["dune" "subst"] {dev}
[ "./configure"
Expand Down
5 changes: 2 additions & 3 deletions packages/mock/mock.1.0.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ bug-reports: "https://github.com/cryptosense/ocaml-mock/issues"
license: "BSD-2-Clause"
dev-repo: "git+https://github.com/cryptosense/ocaml-mock.git"
doc: "https://cryptosense.github.io/ocaml-mock/doc"
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
[ "dune" "build" "-p" name "-j" jobs ]
]
depends: [
"dune"
"ocaml" {>= "4.07.0"}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
synopsis: "Configurable functions to test impure code"
description: """
This package provides "mocks", fake functions that can be configured to return
Expand Down
7 changes: 3 additions & 4 deletions packages/mopsa/mopsa.1.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ depends: [
"odoc" {with-doc}
]
depopts: ["elina"]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
available:
!(arch = "x86_32") & !(os-family = "windows") & opam-version >= "2.1.0"
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
["./configure"] {os != "macos"}
[
Expand Down Expand Up @@ -97,4 +96,4 @@ url {
"md5=9f673f79708b44a7effb3b6bb3618d2c"
"sha512=cb91cb428e43a22f1abbcb8219710d0c10a5b3756d0da392d4084b3b3a6157350776c596983e63def344f617d39964e91f244f60c07958695ee5c8c809a9f0f4"
]
}
}
4 changes: 3 additions & 1 deletion packages/omake/omake.0.10.6/opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ dev-repo: "git+https://github.com/ocaml-omake/omake.git"
homepage: "http://projects.camlcity.org/projects/omake.html"
bug-reports: "https://github.com/ocaml-omake/issues"

build-env: OCAMLPARAM = "_,keywords=5.2"

build: [
["./configure" "-prefix" "%{prefix}%"]
[make]
Expand All @@ -24,7 +26,7 @@ depends: [
"ocaml" {>= "4.03.0"}
"ocamlfind"
]
conflicts: [ "base-effects" ]
conflicts: "ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
synopsis: "Build system designed for scalability and portability"

url {
Expand Down
5 changes: 2 additions & 3 deletions packages/prbnmcn-dagger/prbnmcn-dagger.0.0.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ depends: [
"prbnmcn-cgrph" {= "0.0.2"}
"odoc" {with-doc}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
["dune" "subst"] {dev}
[
Expand Down
5 changes: 2 additions & 3 deletions packages/prbnmcn-dagger/prbnmcn-dagger.0.0.3/opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ depends: [
"prbnmcn-cgrph" {= "0.0.2"}
"odoc" {with-doc}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "5.1.1+effect-syntax"}
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
["dune" "subst"] {dev}
[
Expand Down
5 changes: 2 additions & 3 deletions packages/prbnmcn-dagger/prbnmcn-dagger.0.0.4/opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ depends: [
"prbnmcn-cgrph" {= "0.0.2"}
"odoc" {with-doc}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "5.1.1+effect-syntax"}
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
["dune" "subst"] {dev}
[
Expand Down
5 changes: 2 additions & 3 deletions packages/prbnmcn-dagger/prbnmcn-dagger.0.0.5/opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ depends: [
"prbnmcn-cgrph" {= "0.0.2"}
"odoc" {with-doc}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "5.1.1+effect-syntax"}
build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
["dune" "subst"] {dev}
[
Expand Down
4 changes: 3 additions & 1 deletion packages/why3/why3.1.6.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ tags: [
"interactive theorem prover"
]

build-env: OCAMLPARAM = "_,keywords=5.2"

build: [
["./autogen.sh"] {dev} # when pinning, there might be no configure file
["./configure"
Expand Down Expand Up @@ -73,7 +75,7 @@ conflicts: [
"why3-base"
"ocamlgraph" {< "1.8.2"}
"mlmpfr" {< "4.0.0"}
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
"ocaml-option-bytecode-only"
]

Expand Down
4 changes: 3 additions & 1 deletion packages/why3/why3.1.7.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ tags: [
"interactive theorem prover"
]

build-env: OCAMLPARAM = "_,keywords=5.2"

build: [
["./autogen.sh"] {dev} # when pinning, there might be no configure file
["touch" "configure"]
Expand Down Expand Up @@ -74,7 +76,7 @@ conflicts: [
"why3-base"
"ocamlgraph" {< "1.8.2"}
"mlmpfr" {< "4.0.0"}
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
"ocaml-option-bytecode-only"
]

Expand Down
4 changes: 3 additions & 1 deletion packages/why3/why3.1.7.1/opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ tags: [
"interactive theorem prover"
]

build-env: OCAMLPARAM = "_,keywords=5.2"

build: [
["./autogen.sh"] {dev} # when pinning, there might be no configure file
["touch" "configure"]
Expand Down Expand Up @@ -74,7 +76,7 @@ conflicts: [
"why3-base"
"ocamlgraph" {< "1.8.2"}
"mlmpfr" {< "4.0.0"}
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
"ocaml-option-bytecode-only"
]

Expand Down
4 changes: 3 additions & 1 deletion packages/why3/why3.1.7.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ tags: [
"interactive theorem prover"
]

build-env: OCAMLPARAM = "_,keywords=5.2"

build: [
["./autogen.sh"] {dev} # when pinning, there might be no configure file
["touch" "configure"]
Expand Down Expand Up @@ -74,7 +76,7 @@ conflicts: [
"why3-base"
"ocamlgraph" {< "1.8.2"}
"mlmpfr" {< "4.0.0"}
"base-effects"
"ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
]

synopsis: "Why3 environment for deductive program verification"
Expand Down
5 changes: 2 additions & 3 deletions packages/yocaml/yocaml.1.0.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ synopsis: "YOCaml It is a static site generator, mostly written in OCaml"
maintainer: "[email protected]"
authors: [ "The XHTMLBoy <[email protected]>" ]

build-env: OCAMLPARAM = "_,keywords=5.2"
build: [
[ "dune" "subst" ] {dev}
[ "dune" "build" "-p" name "-j" jobs ]
Expand All @@ -23,9 +24,7 @@ depends: [
"alcotest" {with-test}
"preface" { >= "1.0.0"}
]
conflicts: [
"base-effects"
]
conflicts: "ocaml-variants" {= "4.12.0+domains+effects" | = "5.1.1+effect-syntax"}
url {
src:
"https://github.com/xhtmlboi/yocaml/releases/download/v1.0.0/yocaml-1.0.0.tbz"
Expand Down

0 comments on commit 9c68c2d

Please sign in to comment.