Skip to content

Commit

Permalink
Fix dune subst in opam file generation by requiring dune 2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Nov 29, 2021
1 parent 05b920d commit 5b9fb9e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Added lower bounds to dependencies (zarith, ocaml-monadic, sha, conf-gmp).
* Fixed ounit2 library for unit tests.
* Disabled kernel regression tests when linux-headers couldn't be downloaded (e.g. in opam-repository opam-ci).
* Fixed dune-site in opam install by requiring dune 2.9.
* Fixed dune-site in opam install by requiring dune 2.9.1.

## v1.1.0

Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(synopsis "Static analysis framework for C")
(depends
(ocaml (>= 4.09))
dune
(dune (>= 2.9.1)) ; explicit lower bound needed for opam install (https://github.com/ocaml/dune/pull/4806), (lang dune 2.9.1) doesn't do this
(goblint-cil (>= 1.8.2)) ; TODO no way to define as pin-depends? Used goblint.opam.template to add it for now. https://github.com/ocaml/dune/issues/3231. Alternatively, removing this line and adding cil as a git submodule and `(vendored_dirs cil)` as ./dune also works. This way, no more need to reinstall the pinned cil opam package on changes. However, then cil is cleaned and has to be rebuild together with goblint.
(batteries (>= 3.2.0))
(zarith (>= 1.8))
Expand Down
7 changes: 3 additions & 4 deletions goblint.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ doc: "https://goblint.readthedocs.io/en/latest/"
bug-reports: "https://github.com/goblint/analyzer/issues"
depends: [
"ocaml" {>= "4.09"}
"dune" {>= "2.9"}
"dune" {>= "2.9.1"}
"goblint-cil" {>= "1.8.2"}
"batteries" {>= "3.2.0"}
"zarith" {>= "1.8"}
Expand All @@ -39,16 +39,15 @@ depends: [
]
depopts: ["apron" "z3"]
build: [
["dune" "subst" "--root" "."] {dev}
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files"
"false"
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
Expand Down
24 changes: 13 additions & 11 deletions goblint.opam.locked
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ depends: [
"conf-perl" {= "1"}
"conf-ruby" {= "1.0.0" & with-test}
"cppo" {= "1.6.7"}
"dune" {= "2.9.0"}
"dune" {= "2.9.1"}
"dune-private-libs" {= "2.9.1"}
"dune-site" {= "2.9.1"}
"easy-format" {= "1.3.2"}
Expand Down Expand Up @@ -74,16 +74,18 @@ depends: [
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/goblint/analyzer.git"
name: "goblint"
Expand Down

0 comments on commit 5b9fb9e

Please sign in to comment.