src: Include <libxml/parser.h> libxml2 2.12.1 failed with this error: xml-c.c:92:9: warning: implicit declaration of function ‘xmlReadMemory’; did you mean ‘xmlInitMemory’? [-Wimplicit-function-declaration] 92 | doc = xmlReadMemory (String_val (xmlv), caml_string_length (xmlv), | ^~~~~~~~~~~~~ | xmlInitMemory
virt-top: fix to parse init-file correctly This fixes the following runtime error when parsing init-file. $ virt-top --init-file <(echo "sort id") Error: Invalid_argument("String.sub / Bytes.sub") Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45 Called from Stdlib__String.sub in file "string.ml" (inlined), line 50, characters 2-23 Called from Utils.split in file "utils.ml", line 82, characters 24-68 Called from Utils.read_config_file.(fun) in file "utils.ml", line 114, characters 23-37 Called from Stdlib__List.map in file "list.ml", line 92, characters 20-23 Called from Top.start_up.try_to_read_init_file in file "top.ml", line 153, characters 17-42 Called from Main.script_mode in file "main.ml", line 37, characters 6-17 Signed-off-by: Yuya Higashi <higashi.yuya@fujitsu.com>
src/collect.ml: Don't die if a domain goes away during lookup libvirt: VIR_ERR_NO_DOMAIN: VIR_FROM_QEMU: Domain not found: no domain with matching uuid '231eb609-fe6c-4de5-abbc-e1f834457c37' Raised by primitive operation at Libvirt in file "libvirt.ml" (inlined), line 573, characters 0-1023 Called from Collect.collect.(fun) in file "collect.ml", line 168, characters 18-44 Called from Stdlib__List.map in file "list.ml", line 92, characters 20-23 Called from Stdlib__List.map in file "list.ml", line 92, characters 32-39 Called from Collect.collect in file "collect.ml", line 138, characters 4-1023 Called from Top.main_loop in file "top.ml", line 318, characters 16-29 Called from Main in file "main.ml", line 50, characters 4-19
Remove dependency on xml-light, replace with libxml2 This commit removes the dependency on the ancient and dead upstream xml-light light. It is replaced with the C library libxml2. This introduces a small amount of C code to interface with libxml2 and parse the libvirt domain XML into the list of block devices and network devices (using XPath).
Remove external dependency on ocaml-csv We only used a tiny number of features from this library, and it is distributed under a compatible license so we might as well inline the function we need.
Remove dependency on ocaml-extlib We only used a handful of small functions from this library, so we can completely remove the dependency easily.
Convert to using automake
Translated using Weblate (Finnish) Currently translated at 100.0% (84 of 84 strings) Translation: virt-top/master Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/fi/ Translated using Weblate (Finnish) Currently translated at 67.8% (57 of 84 strings) Translation: virt-top/master Translate-URL: https://translate.fedoraproject.org/projects/virt-top/master/fi/ Added translation using Weblate (Finnish)