From 7f89e3f9ccabf9e56c2e1a5bc7fed49100fe7377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Tue, 21 Nov 2023 11:25:48 +0000 Subject: [PATCH] [maintenance]: fix dune-project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The opam files were hand edited, but they are generated from 'dune-project', so running 'dune build' would undo any changes. Fixes https://github.com/xapi-project/stdext/issues/78 Fixes: 42f237c ("opam: update metadata") No functional change. Signed-off-by: Edwin Török --- dune-project | 6 +++--- xapi-stdext-encodings.opam | 2 +- xapi-stdext-encodings.opam.template | 1 + xapi-stdext-unix-opam.template | 2 ++ xapi-stdext-unix.opam | 4 ++-- xapi-stdext-unix.opam.template | 2 ++ 6 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 xapi-stdext-encodings.opam.template create mode 100644 xapi-stdext-unix-opam.template create mode 100644 xapi-stdext-unix.opam.template diff --git a/dune-project b/dune-project index 2f53c2c8..4a5dce3e 100644 --- a/dune-project +++ b/dune-project @@ -41,7 +41,7 @@ (name xapi-stdext-encodings) (synopsis "Xapi's standard library extension, Encodings") (depends - (ocaml (>= 4.13)) + (ocaml (>= 4.13.0)) (alcotest (and (>= 0.6.0) :with-test)) (odoc :with-doc) (bechamel :with-test) @@ -65,7 +65,7 @@ (name xapi-stdext-std) (synopsis "Xapi's standard library extension, Stdlib") (depends - (ocaml (>= 4.08)) + (ocaml (>= 4.08.0)) (alcotest :with-test) (odoc :with-doc) ) @@ -87,7 +87,7 @@ (name xapi-stdext-unix) (synopsis "Xapi's standard library extension, Unix") (depends - (ocaml (>= 4.12)) + (ocaml (>= 4.12.0)) base-unix (fd-send-recv (>= 2.0.0)) (odoc :with-doc) diff --git a/xapi-stdext-encodings.opam b/xapi-stdext-encodings.opam index fc0eff53..6de3223c 100644 --- a/xapi-stdext-encodings.opam +++ b/xapi-stdext-encodings.opam @@ -15,7 +15,6 @@ depends: [ "bechamel-notty" {with-test} "notty" {with-test} ] -available: arch != "arm32" & arch != "x86_32" build: [ ["dune" "subst"] {dev} [ @@ -31,3 +30,4 @@ build: [ ] ] dev-repo: "git+https://github.com/xapi-project/stdext.git" +available: arch != "arm32" & arch != "x86_32" diff --git a/xapi-stdext-encodings.opam.template b/xapi-stdext-encodings.opam.template new file mode 100644 index 00000000..66595f2d --- /dev/null +++ b/xapi-stdext-encodings.opam.template @@ -0,0 +1 @@ +available: arch != "arm32" & arch != "x86_32" diff --git a/xapi-stdext-unix-opam.template b/xapi-stdext-unix-opam.template new file mode 100644 index 00000000..ae75bf72 --- /dev/null +++ b/xapi-stdext-unix-opam.template @@ -0,0 +1,2 @@ +depexts: ["linux-headers"] {os-distribution = "alpine"} +available: [ os = "macos" | os = "linux" ] diff --git a/xapi-stdext-unix.opam b/xapi-stdext-unix.opam index c3fd4c2a..1498e2bb 100644 --- a/xapi-stdext-unix.opam +++ b/xapi-stdext-unix.opam @@ -14,8 +14,6 @@ depends: [ "odoc" {with-doc} "xapi-stdext-pervasives" {= version} ] -depexts: ["linux-headers"] {os-distribution = "alpine"} -available: [ os = "macos" | os = "linux" ] build: [ ["dune" "subst"] {dev} [ @@ -31,3 +29,5 @@ build: [ ] ] dev-repo: "git+https://github.com/xapi-project/stdext.git" +depexts: ["linux-headers"] {os-distribution = "alpine"} +available: [ os = "macos" | os = "linux" ] diff --git a/xapi-stdext-unix.opam.template b/xapi-stdext-unix.opam.template new file mode 100644 index 00000000..ae75bf72 --- /dev/null +++ b/xapi-stdext-unix.opam.template @@ -0,0 +1,2 @@ +depexts: ["linux-headers"] {os-distribution = "alpine"} +available: [ os = "macos" | os = "linux" ]