Skip to content

Commit c468808

Browse files
authored
Merge pull request #23842 from avsm/nnp-doc
document the ocaml-option-nnpchecker package
2 parents afeef04 + 5d82f7d commit c468808

File tree

1 file changed

+17
-0
lines changed
  • packages/ocaml-option-nnpchecker/ocaml-option-nnpchecker.1

1 file changed

+17
-0
lines changed

packages/ocaml-option-nnpchecker/ocaml-option-nnpchecker.1/opam

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
opam-version: "2.0"
22
synopsis: "Set OCaml to be compiled with --enable-naked-pointers-checker"
3+
description: """
4+
This package can be used to run OCaml packages with the check for
5+
'naked pointers' enabled. A naked pointer is a pointer outside the OCaml heap
6+
without a valid header, which is valid in OCaml 4.x, but forbidden in the
7+
multicore OCaml 5.x runtime. The nnpchecker prints warnings to standard
8+
error with the address that contains the naked pointer, the naked pointer
9+
and the reason why the warning was raised.
10+
See [https://discuss.ocaml.org/t/ann-a-dynamic-checker-for-detecting-naked-pointers/5805]
11+
for more details on the operation of the naked pointer checker.
12+
13+
By convention, the opam repository adds conflicts to OCaml packages that
14+
violate the naked pointer rule. This means that if you install this package,
15+
you can find the subset of packages that _are_ compatible with OCaml 5.
16+
If you spot any violations of the nnpchecker on packages, then please consider
17+
submitting a pull request to the ocaml/opam-repository that adds a conflict
18+
against the violating package against this one.
19+
"""
320
depends: [
421
"ocaml-variants" {post & ((>= "4.12.0~" & arch = "x86_64") | >= "4.14.0~") & < "5.0.0~~"}
522
]

0 commit comments

Comments
 (0)