Skip to content

Commit 9f1b40a

Browse files
authored
Merge pull request #24101 from yallop/ctypes-0.21.0
Add ctypes 0.21.1, ctypes-foreign 0.21.1
2 parents 6fe1f5a + c1a245d commit 9f1b40a

File tree

37 files changed

+142
-35
lines changed
  • packages
    • binaryen_dsl/binaryen_dsl.0.7
    • ctypes/ctypes.0.21.1
    • ctypes-foreign/ctypes-foreign.0.21.1
    • eigen
    • hacl-star-raw
      • hacl-star-raw.0.3.2
      • hacl-star-raw.0.4.0
      • hacl-star-raw.0.4.1
      • hacl-star-raw.0.4.2
      • hacl-star-raw.0.4.3
      • hacl-star-raw.0.4.4
      • hacl-star-raw.0.4.5
      • hacl-star-raw.0.5.0
      • hacl-star-raw.0.6.0
      • hacl-star-raw.0.6.1
      • hacl-star-raw.0.6.2
      • hacl-star-raw.0.7.0
      • hacl-star-raw.0.7.1
    • libudev/libudev.0.2.1
    • lz4
    • mariadb
    • memcpy/memcpy.0.2.1
    • netlink/netlink.0.2.1
    • pci/pci.1.0.1
    • tgls
    • tsdl
    • unix-errno
      • unix-errno.0.6.0
      • unix-errno.0.6.1
    • zstd/zstd.0.3

37 files changed

+142
-35
lines changed

packages/binaryen_dsl/binaryen_dsl.0.7/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ depends: [
1515
"ocaml"
1616
"core" {< "v0.15"}
1717
"dune" {>= "2.8"}
18-
"ctypes" {>= "0.14.0"}
18+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1919
"libbinaryen" {< "102"}
2020
]
2121
build: [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
opam-version: "2.0"
2+
synopsis: "Dynamic access to foreign C libraries using Ctypes"
3+
description: """
4+
5+
This installs the `ctypes-foreign` interface which
6+
uses `libffi` to provide dynamic access to foreign libraries."""
7+
maintainer: ["Jeremy Yallop <[email protected]>"]
8+
authors: ["Jeremy Yallop"]
9+
license: "MIT"
10+
tags: ["org:mirage"]
11+
homepage: "https://github.com/yallop/ocaml-ctypes"
12+
doc: "https://ocamllabs.github.io/ocaml-ctypes/"
13+
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
14+
depends: [
15+
"dune" {>= "2.9"}
16+
"ocaml" {>= "4.03.0"}
17+
"integers" {with-test & >= "0.2.2"}
18+
"ctypes" {= version}
19+
"dune-configurator"
20+
"conf-pkg-config"
21+
"lwt" {with-test & >= "2.4.7"}
22+
"ounit2" {with-test}
23+
"conf-ncurses" {with-test}
24+
"stdlib-shims" {with-test}
25+
"conf-fts" {with-test & os != "win32"}
26+
"conf-libffi" {>= "2.0.0"}
27+
"odoc" {with-doc}
28+
]
29+
build: [
30+
["dune" "subst"] {dev}
31+
[
32+
"dune"
33+
"build"
34+
"-p"
35+
name
36+
"-j"
37+
jobs
38+
"--promote-install-files=false"
39+
"@install"
40+
"@runtest" {with-test}
41+
"@doc" {with-doc}
42+
]
43+
["dune" "install" "-p" name "--create-install-files" name]
44+
]
45+
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
46+
url {
47+
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz"
48+
checksum: "md5=8b201d932741c5096854e5eb39139b90"
49+
}

packages/ctypes/ctypes.0.21.1/opam

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
opam-version: "2.0"
2+
synopsis: "Combinators for binding to C libraries without writing any C"
3+
description: """
4+
5+
ctypes is a library for binding to C libraries using pure OCaml. The primary
6+
aim is to make writing C extensions as straightforward as possible.
7+
The core of ctypes is a set of combinators for describing the structure of C
8+
types -- numeric types, arrays, pointers, structs, unions and functions. You
9+
can use these combinators to describe the types of the functions that you want
10+
to call, then bind directly to those functions -- all without writing or
11+
generating any C!
12+
13+
To install the optional `ctypes-foreign` interface (which uses `libffi` to
14+
provide dynamic access to foreign libraries), you will need to also install
15+
the `ctypes-foreign` package.
16+
17+
opam install ctypes-foreign
18+
19+
This will make the `ctypes-foreign` ocamlfind subpackage available."""
20+
maintainer: ["Jeremy Yallop <[email protected]>"]
21+
authors: ["Jeremy Yallop"]
22+
license: "MIT"
23+
tags: ["org:mirage"]
24+
homepage: "https://github.com/yallop/ocaml-ctypes"
25+
doc: "https://yallop.github.io/ocaml-ctypes/"
26+
bug-reports: "https://github.com/yallop/ocaml-ctypes/issues"
27+
depends: [
28+
"dune" {>= "2.9"}
29+
"ocaml" {>= "4.03.0"}
30+
"integers"
31+
"dune-configurator"
32+
"bigarray-compat"
33+
"ounit2" {with-test}
34+
"conf-fts" {with-test & os != "win32"}
35+
"conf-pkg-config" {with-test}
36+
"odoc" {with-doc}
37+
]
38+
build: [
39+
["dune" "subst"] {dev}
40+
[
41+
"dune"
42+
"build"
43+
"-p"
44+
name
45+
"-j"
46+
jobs
47+
"--promote-install-files=false"
48+
"@install"
49+
"@runtest" {with-test}
50+
"@doc" {with-doc}
51+
]
52+
["dune" "install" "-p" name "--create-install-files" name]
53+
]
54+
dev-repo: "git+https://github.com/yallop/ocaml-ctypes.git"
55+
url {
56+
src: "https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.21.1.tar.gz"
57+
checksum: "md5=8b201d932741c5096854e5eb39139b90"
58+
}

packages/eigen/eigen.0.1.0/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/eigen/eigen.0.1.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/eigen/eigen.0.1.2/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/eigen/eigen.0.1.3/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [
1212
]
1313
depends: [
1414
"ocaml" {>= "4.02"}
15-
"ctypes" {>= "0.14.0"}
15+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1616
"dune" {>= "1.1.0"}
1717
]
1818
available: arch = "x86_32" | arch = "x86_64"

packages/hacl-star-raw/hacl-star-raw.0.3.2/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1313
depends: [
1414
"ocaml" {>= "4.05.0"}
1515
"ocamlfind" {build}
16-
"ctypes"
16+
"ctypes" {< "0.21.0"}
1717
"ctypes-foreign"
1818
"conf-which" {build}
1919
]

packages/hacl-star-raw/hacl-star-raw.0.4.0/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"ctypes-foreign"
1919
"conf-which" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.4.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"ctypes-foreign"
1919
"conf-which" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.4.2/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"ctypes-foreign"
1919
"conf-which" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.4.3/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"ctypes-foreign"
1919
"conf-which" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.4.4/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
]
2020
conflicts: ["ocaml-option-bytecode-only"]

packages/hacl-star-raw/hacl-star-raw.0.4.5/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/hacl-star/hacl-star/issues"
1414
depends: [
1515
"ocaml" { >= "4.08.0" }
1616
"ocamlfind" {build}
17-
"ctypes" { >= "0.18.0" }
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
]
2020
conflicts: ["ocaml-option-bytecode-only"]

packages/hacl-star-raw/hacl-star-raw.0.5.0/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocaml" {>= "4.08.0"}
1515
"dune" {>= "1.2"}
1616
"ocamlfind" {build}
17-
"ctypes" {>= "0.18.0"}
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
"conf-cmake" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.6.0/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocaml" {>= "4.08.0"}
1515
"dune" {>= "1.2"}
1616
"ocamlfind" {build}
17-
"ctypes" {>= "0.18.0"}
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
"conf-cmake" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.6.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocaml" {>= "4.08.0"}
1515
"dune" {>= "1.2"}
1616
"ocamlfind" {build}
17-
"ctypes" {>= "0.18.0"}
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
"conf-cmake" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.6.2/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocaml" {>= "4.08.0"}
1515
"dune" {>= "1.2"}
1616
"ocamlfind" {build}
17-
"ctypes" {>= "0.18.0"}
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
"conf-cmake" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.7.0/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocaml" {>= "4.08.0"}
1515
"dune" {>= "1.2"}
1616
"ocamlfind" {build}
17-
"ctypes" {>= "0.18.0"}
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
"conf-cmake" {build}
2020
]

packages/hacl-star-raw/hacl-star-raw.0.7.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocaml" {>= "4.08.0"}
1515
"dune" {>= "1.2"}
1616
"ocamlfind" {build}
17-
"ctypes" {>= "0.18.0"}
17+
"ctypes" {>= "0.18.0" & < "0.21.0"}
1818
"conf-which" {build}
1919
"conf-cmake" {build}
2020
]

packages/libudev/libudev.0.2.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ depends: [
1111
"ocamlbuild" {build}
1212
"topkg" {build & >= "0.9.0"}
1313
"conf-libudev"
14-
"ctypes" {>= "0.4.1"}
14+
"ctypes" {>= "0.4.1" & < "0.21.0"}
1515
"ctypes-foreign"
1616
"stdint"
1717
]

packages/lz4/lz4.1.1.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ depends: [
3131
"base-bigarray"
3232
"ocamlfind" {build}
3333
"ocamlbuild" {build & != "0.9.0"}
34-
"ctypes" {>= "0.4.1"}
34+
"ctypes" {>= "0.4.1" & < "0.21.0"}
3535
"ounit" {with-test}
3636
"conf-liblz4"
3737
]

packages/lz4/lz4.1.2.0/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ depends: [
1717
"ocaml" {>= "4.02"}
1818
"conf-liblz4"
1919
"dune" { >= "2.0" }
20-
"ctypes" {>= "0.4.1"}
20+
"ctypes" {>= "0.4.1" & < "0.21.0"}
2121
"ounit2" {with-test}
2222
"odoc" {with-doc}
2323
]

packages/mariadb/mariadb.1.1.5/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ depends: [
1717
"ocaml" {>= "4.07.0" & < "5.0"}
1818
"ocamlfind" {build}
1919
"ocamlbuild" {build}
20-
"ctypes" {>= "0.7.0"}
20+
"ctypes" {>= "0.7.0" & < "0.21.0"}
2121
"conf-mariadb"
2222
"conf-gcc"
2323
]

packages/mariadb/mariadb.1.1.6/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ depends: [
1717
"ocaml" {>= "4.07.0" & < "5.0"}
1818
"ocamlfind" {build}
1919
"ocamlbuild" {build}
20-
"ctypes" {>= "0.7.0"}
20+
"ctypes" {>= "0.7.0" & < "0.21.0"}
2121
"conf-mariadb"
2222
"conf-gcc"
2323
]

packages/memcpy/memcpy.0.2.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install: [[make "install"]]
1212
remove: [["ocamlfind" "remove" "memcpy"]]
1313
depends: [
1414
"ocaml" {>= "4.01.0"}
15-
"ctypes" {>= "0.12.0"}
15+
"ctypes" {>= "0.12.0" & < "0.21.0"}
1616
"ounit" {with-test}
1717
"ocamlfind" {build}
1818
"ocamlbuild" {build}

packages/netlink/netlink.0.2.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ remove: [
1616
depends: [
1717
"ocaml" {< "5.0.0"}
1818
"ocamlfind"
19-
"ctypes"
19+
"ctypes" {< "0.21.0"}
2020
"ctypes-foreign"
2121
"ocamlbuild" {build}
2222
]

packages/pci/pci.1.0.1/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ remove: [
1717
]
1818
depends: [
1919
"ocaml" {>= "4.01.0" & < "5.0.0"}
20-
"ctypes" {>= "0.4"}
20+
"ctypes" {>= "0.4" & < "0.21.0"}
2121
"ocamlfind" {build}
2222
# "ounit" {with-test}
2323
"ocamlbuild" {build}

packages/tgls/tgls.0.8.4/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ depends: [
1313
"ocamlbuild" {build}
1414
"topkg" {build}
1515
"base-bytes"
16-
"ctypes" {>= "0.4.0"}
16+
"ctypes" {>= "0.4.0" & < "0.21.0"}
1717
"ctypes-foreign"
1818
"tsdl" {with-test}
1919
"result" {with-test}

packages/tgls/tgls.0.8.5/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ depends: [
1313
"ocamlbuild" {build}
1414
"topkg" {build}
1515
"base-bytes"
16-
"ctypes" {>= "0.4.0"}
16+
"ctypes" {>= "0.4.0" & < "0.21.0"}
1717
"ctypes-foreign"
1818
"tsdl" {with-test}
1919
"result" {with-test}

packages/tgls/tgls.0.8.6/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ depends: [
2323
"ocamlfind" {build}
2424
"ocamlbuild" {build}
2525
"topkg" {build & >= "1.0.3"}
26-
"ctypes" {>= "0.4.0"}
26+
"ctypes" {>= "0.4.0" & < "0.21.0"}
2727
"ctypes-foreign"
2828
"xmlm" {dev}
2929
]

packages/tsdl/tsdl.0.9.7/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocamlbuild" {build}
1515
"topkg" {build}
1616
"conf-sdl2"
17-
"ctypes" {>= "0.14.0"}
17+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1818
"ctypes-foreign" ]
1919
build: [[
2020
"ocaml" "pkg/pkg.ml" "build"

packages/tsdl/tsdl.0.9.8/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ depends: [
1414
"ocamlbuild" {build}
1515
"topkg" {build & >= "1.0.1"}
1616
"conf-sdl2"
17-
"ctypes" {>= "0.14.0"}
17+
"ctypes" {>= "0.14.0" & < "0.21.0"}
1818
"ctypes-foreign" ]
1919
build: [[ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" ]]
2020

packages/tsdl/tsdl.0.9.9/opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ depends: [
3434
"ocamlbuild" {build}
3535
"topkg" {build & >= "1.0.3"}
3636
"conf-sdl2"
37-
"ctypes" {>= "0.14.0"}
37+
"ctypes" {>= "0.14.0" & < "0.21.0"}
3838
"ctypes-foreign"
3939
]
4040
build: ["ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"]

0 commit comments

Comments
 (0)