Skip to content

Commit

Permalink
fix(ci): move ezxenstore to the rrdd-plugin opam package
Browse files Browse the repository at this point in the history
ezxenstore wasn't being installed by the specfile,
but a new dependency was added between the RRDD plugins and Ezxenstore.

We don't want to introduce new publicly installed packages in the specfile,
so move ezxenstore to an existing package: the RRDD plugin one.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Oct 2, 2024
1 parent 802dda6 commit 3a6da86
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 86 deletions.
11 changes: 5 additions & 6 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,18 @@
(depends
ocaml
astring
cmdliner
logs
rpclib
uuidm
(rrd-transport (= :version))
(xapi-forkexecd (= :version))
(xapi-stdext-pervasives (= :version))
(xapi-stdext-std (= :version))
(xapi-stdext-threads (= :version))
(xapi-stdext-unix (= :version))
(xapi-idl (= :version))
xenctrl
xenstore
xenstore_transport
)
Expand Down Expand Up @@ -296,6 +300,7 @@
result
rpclib
rresult
uuidm
uri
xenctrl
xmlm
Expand Down Expand Up @@ -333,7 +338,6 @@
ctypes
ctypes-foreign
domain-name
(ezxenstore (= :version))
fmt
fd-send-recv
hex
Expand Down Expand Up @@ -416,7 +420,6 @@
cohttp-lwt
conf-libssl
(cstruct (>= "3.0.0"))
(ezxenstore (= :version))
(forkexec (= :version))
io-page
lwt
Expand Down Expand Up @@ -624,10 +627,6 @@ This package provides an Lwt compatible interface to the library.")
)
)

(package
(name ezxenstore)
)

(package
(name cohttp-posix)
)
Expand Down
30 changes: 0 additions & 30 deletions ezxenstore.opam

This file was deleted.

28 changes: 0 additions & 28 deletions ezxenstore.opam.template

This file was deleted.

2 changes: 1 addition & 1 deletion ocaml/libs/ezxenstore/core/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(library
(name ezxenstore_core)
(public_name ezxenstore.core)
(public_name rrdd-plugin.ezxenstore.core)
(libraries
cmdliner
logs
Expand Down
3 changes: 1 addition & 2 deletions ocaml/libs/ezxenstore/lib/dune
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(library
(name ezxenstore)
(public_name ezxenstore)
(wrapped false)
(libraries
(re_export ezxenstore_core)
(re_export rrdd-plugin.ezxenstore.core)
(re_export ezxenstore_watch)
)
)
2 changes: 1 addition & 1 deletion ocaml/libs/ezxenstore/lib_test/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(test
(name main)
(package ezxenstore)
(package rrdd-plugin)
(deps main.exe)
(libraries cmdliner ezxenstore xenstore_transport xenstore xenstore.unix)
)
3 changes: 1 addition & 2 deletions ocaml/libs/ezxenstore/watch/dune
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(library
(name ezxenstore_watch)
(public_name ezxenstore.watch)
(wrapped false)
(libraries
ezxenstore_core
rrdd-plugin.ezxenstore.core
xenctrl
uuidm
threads.posix
Expand Down
2 changes: 1 addition & 1 deletion ocaml/quicktest/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
alcotest
astring
ezxenstore
ezxenstore.watch
ezxenstore_watch
fmt
forkexec
http_lib
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xapi/dune
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
cohttp
cohttp_posix
domain-name
ezxenstore.core
rrdd-plugin.ezxenstore.core
fmt
forkexec
gencertlib
Expand Down
4 changes: 2 additions & 2 deletions ocaml/xcp-rrdd/bin/rrdd/dune
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
(libraries
astring

ezxenstore.core
ezxenstore.watch
rrdd-plugin.ezxenstore.core
ezxenstore_watch
forkexec
http_lib
httpsvr
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xcp-rrdd/bin/rrdp-iostat/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
astring
cstruct

ezxenstore.core
rrdd-plugin.ezxenstore.core
inotify
mtime
mtime.clock.os
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xcp-rrdd/bin/rrdp-squeezed/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
rrdd_plugins_libs
xapi-stdext-std
ezxenstore
ezxenstore.watch
ezxenstore_watch
xapi-idl.rrd
xapi-log
xapi-rrd
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xcp-rrdd/lib/plugin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
(libraries
astring
xenctrl
ezxenstore.core
rrdd-plugin.ezxenstore.core
uuid
xapi-log
threads.posix
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xenopsd/list_domains/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
(name list_domains)
(public_name list_domains)
(package xapi-tools)
(libraries xenctrl xapi-idl.memory ezxenstore.watch uuid)
(libraries xenctrl xapi-idl.memory ezxenstore_watch uuid)
)
2 changes: 1 addition & 1 deletion ocaml/xenopsd/pvs/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(executable
(name pvs_proxy_setup)
(libraries ezxenstore.core bos xapi-consts.xapi_version xapi-idl cmdliner log rresult)
(libraries rrdd-plugin.ezxenstore.core bos xapi-consts.xapi_version xapi-idl cmdliner log rresult)
)

(install
Expand Down
10 changes: 5 additions & 5 deletions ocaml/xenopsd/xc/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
astring
base64
cpuid
ezxenstore.core
ezxenstore.watch
rrdd-plugin.ezxenstore.core
ezxenstore_watch
fd-send-recv
fmt
forkexec
Expand Down Expand Up @@ -73,7 +73,7 @@

(libraries

ezxenstore.core
rrdd-plugin.ezxenstore.core
uuid
xapi-idl
xapi-idl.xen.interface
Expand All @@ -94,7 +94,7 @@
astring
cmdliner

ezxenstore.core
rrdd-plugin.ezxenstore.core
uuid
xapi-idl.memory
xapi-stdext-date
Expand Down Expand Up @@ -142,7 +142,7 @@
(libraries
cmdliner

ezxenstore.core
rrdd-plugin.ezxenstore.core
threads.posix
xapi-idl.xen.interface
xapi_xenopsd
Expand Down
4 changes: 4 additions & 0 deletions rrdd-plugin.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ depends: [
"dune" {>= "3.15"}
"ocaml"
"astring"
"cmdliner"
"logs"
"rpclib"
"uuidm"
"rrd-transport" {= version}
"xapi-forkexecd" {= version}
"xapi-stdext-pervasives" {= version}
"xapi-stdext-std" {= version}
"xapi-stdext-threads" {= version}
"xapi-stdext-unix" {= version}
"xapi-idl" {= version}
"xenctrl"
"xenstore"
"xenstore_transport"
"odoc" {with-doc}
Expand Down
1 change: 0 additions & 1 deletion vhd-tool.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ depends: [
"cohttp-lwt"
"conf-libssl"
"cstruct" {>= "3.0.0"}
"ezxenstore" {= version}
"forkexec" {= version}
"io-page"
"lwt"
Expand Down
1 change: 1 addition & 0 deletions xapi-tools.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ depends: [
"result"
"rpclib"
"rresult"
"uuidm"
"uri"
"xenctrl"
"xmlm"
Expand Down
1 change: 0 additions & 1 deletion xapi.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ depends: [
"ctypes"
"ctypes-foreign"
"domain-name"
"ezxenstore" {= version}
"fmt"
"fd-send-recv"
"hex"
Expand Down

0 comments on commit 3a6da86

Please sign in to comment.