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 Mar 8, 2022
1 parent 1a5cd87 commit e3a84ca
Show file tree
Hide file tree
Showing 3 changed files with 22 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))
3 changes: 3 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(lang dune 1.1)
(name uchar)
(version 0.0.2+dune2)
16 changes: 15 additions & 1 deletion opam → uchar.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ 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"
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
url {
src: "git+https://github.com/dune-universe/uchar.git#dune-universe-v0.0.2"
}

0 comments on commit e3a84ca

Please sign in to comment.