Skip to contentSkip to conversation

Oxenstored packaging fixes

PATCH In review Andrii Sultanov 3 participants 4 messages Oct 9, 2024 – Oct 10, 2024

lore
Share & tools
lore
#0 lore raw

cover Oxenstored packaging fixes

Following the work on stabilizing some interfaces used by oxenstored to allow bringing it out of the xen tree, there are some additional fixes needed around packaging the plugin interface.

With these changes, I was able to get the spec repo to build and the forked oxenstored to launch properly on the host.

Andrii Sultanov (1):
ocaml/libs: Remove xsd_glue_dev package, also install
plugin_interface_v1.a

 tools/ocaml/libs/xsd_glue/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
Signature · 1 line
2.39.5
#1 lore raw

PATCH 1/1 ocaml/libs: Remove xsd_glue_dev package, also install plugin_interface_v1.a

xsd_glue_dev packaging is inconsistent with the rest of OCaml packages and isn't actually necessary. .a is needed alongside compiled bytecode files during linking and was missed in the initial oxenstore plugin work.

Specify OCAMLCFLAGS along with OCAMLOPTFLAGS.

---
 tools/ocaml/libs/xsd_glue/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
tools/ocaml/libs/xsd_glue/Makefile +2 -4
index f84291f7fe..be68642968 100644
@@ -5,6 +5,7 @@ include $(OCAML_TOPLEVEL)/common.make
 SUBDIRS= domain_getinfo_plugin_v1
 
 CFLAGS += $(CFLAGS_xeninclude)
+OCAMLCFLAGS += -opaque
 OCAMLOPTFLAGS += -opaque
 
 OBJS = plugin_interface_v1
@@ -28,14 +29,11 @@ OCAML_NOC_LIBRARY = plugin_interface_v1
 install: $(LIBS) META subdirs-install
 	mkdir -p $(OCAMLDESTDIR)
 	$(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue
-	$(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xsd_glue META $(INTF) $(LIBS)
-	$(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue_dev
-	$(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xsd_glue_dev META $(INTF) $(LIBS) *.ml *.mli
+	$(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xsd_glue META $(INTF) $(LIBS) *.a
 
 .PHONY: uninstall
 uninstall: subdirs-uninstall
 	$(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue
-	$(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue_dev
 
 .PHONY: clean
 clean: subdirs-clean
Signature · 1 line
2.39.5
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH v1 1/1] ocaml/libs: Remove xsd_glue_dev package, also install plugin_interface_v1.a

Quoted 9 lines · Andrii Sultanov

xsd_glue_dev packaging is inconsistent with the rest of OCaml packages and isn't actually necessary. .a is needed alongside compiled bytecode files during linking and was missed in the initial oxenstore plugin work.

Quoted 7 lines

Specify OCAMLCFLAGS along with OCAMLOPTFLAGS.

---
tools/ocaml/libs/xsd_glue/Makefile | 6 ++----

1 file changed, 2 insertions(+), 4 deletions(-)
#3 lore raw

Re: [PATCH v1 1/1] ocaml/libs: Remove xsd_glue_dev package, also install plugin_interface_v1.a

In reply to Andrii Sultanov
Quoted 3 lines · Andrii Sultanov

xsd_glue_dev packaging is inconsistent with the rest of OCaml packages and isn't actually necessary. .a is needed alongside compiled bytecode

Being singular, should not be "The <NAME>.a is needed "... ? Or are there multiple archive files?

Quoted 28 lines

files during linking and was missed in the initial oxenstore plugin work.

Specify OCAMLCFLAGS along with OCAMLOPTFLAGS.

---
 tools/ocaml/libs/xsd_glue/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
tools/ocaml/libs/xsd_glue/Makefile +1 -2
index f84291f7fe..be68642968 100644
@@ -5,6 +5,7 @@ include $(OCAML_TOPLEVEL)/common.make
 SUBDIRS= domain_getinfo_plugin_v1
 
 CFLAGS += $(CFLAGS_xeninclude)
+OCAMLCFLAGS += -opaque
 OCAMLOPTFLAGS += -opaque
 
 OBJS = plugin_interface_v1
@@ -28,14 +29,11 @@ OCAML_NOC_LIBRARY = plugin_interface_v1
 install: $(LIBS) META subdirs-install
        mkdir -p $(OCAMLDESTDIR)
        $(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue
-       $(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xsd_glue META $(INTF) $(LIBS)
-       $(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue_dev

tools/ocaml/libs/xsd_glue/Makefile OCAML_NOC_LIBRARY = plugin_interface_v1 · line 39

Quoted 10 lines
tools/ocaml/libs/xsd_glue/Makefile +1 -2
-       $(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xsd_glue_dev META $(INTF) $(LIBS) *.ml *.mli
+       $(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xsd_glue META $(INTF) $(LIBS) *.a
 
 .PHONY: uninstall
 uninstall: subdirs-uninstall
        $(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue
-       $(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xsd_glue_dev
 
 .PHONY: clean
 clean: subdirs-clean

Frediano