Skip to content

Commit

Permalink
Install an empty library (compat with dune3)
Browse files Browse the repository at this point in the history
Dune 2 assumes that there's a "uchar" library installed by the compiler
but that is not true so it was removed in ocaml/dune#5260.

This means that a sourceless uchar package does not work: some sources
are necessary for `(libraries ... uchar)` to work.

This 0.0.2+dune3 version installs an empty library instead.
  • Loading branch information
emillon committed Feb 28, 2022
1 parent 1a5cd87 commit 2baeb02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(public_name uchar)
(wrapped false)
(modules))
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.1)
2 changes: 1 addition & 1 deletion opam → uchar.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dev-repo: "https://github.com/ocaml/uchar.git"
bug-reports: "https://github.com/ocaml/uchar/issues"
tags: [ "text" "character" "unicode" "compatibility" "org:ocaml.org" ]
license: "typeof OCaml system"
depends: [ "dune" "ocaml" {>= "4.03"} ]
depends: [ "dune" {>= "1.1"} "ocaml" {>= "4.03"} ]
synopsis: "Dummy but non virtual package to satisfy both opam-monorepo and opam"
url {
src: "git+https://github.com/dune-universe/uchar.git#dune-universe-v0.0.2"
Expand Down

0 comments on commit 2baeb02

Please sign in to comment.