ocaml-gettext and dune-site
The recently released ocaml-gettext 0.5.0 uses dune-site. This does apparently cause build failures in guestfs-tools 1.53.7: File "_none_", line 1: Error: No implementations provided for the following modules: Dune_site__Dune_site_data referenced from /usr/lib64/ocaml/dune-site/dune_site.cmxa(Dune_site__Helpers) make[2]: *** [Makefile:952: virt-customize] Error 2 I guess a change is required in consumers of ocaml-gettext now. Maybe a package which uses dune to build will not run into this, at least in opam there are no consumers of ocaml-gettext. But, maybe it is just an incorrectly built dune 3.17 on my site. Did anyone already ran into this? Olaf
On Tue, Feb 25, 2025 at 04:29:24PM +0100, Olaf Hering via Libguestfs wrote:
The recently released ocaml-gettext 0.5.0 uses dune-site. This does apparently cause build failures in guestfs-tools 1.53.7:
File "_none_", line 1: Error: No implementations provided for the following modules: Dune_site__Dune_site_data referenced from /usr/lib64/ocaml/dune-site/dune_site.cmxa(Dune_site__Helpers) make[2]: *** [Makefile:952: virt-customize] Error 2
I guess a change is required in consumers of ocaml-gettext now. Maybe a package which uses dune to build will not run into this, at least in opam there are no consumers of ocaml-gettext.
But, maybe it is just an incorrectly built dune 3.17 on my site.
Did anyone already ran into this?
Hi Olaf, Fedora is still using ocaml-gettext 0.4.2, and I did not try 0.5.0 yet. However Fedora does build ocaml-dune-site, as a subpackage of ocaml-dune (https://src.fedoraproject.org/rpms/ocaml-dune/blob/rawhide/f/ocaml-dune.spec...), so I don't anticipate any packaging problem, although there might still be a bug somewhere. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Tue, 25 Feb 2025 17:04:24 +0000 "Richard W.M. Jones" <rjones@redhat.com>:
Fedora is still using ocaml-gettext 0.4.2, and I did not try 0.5.0 yet.
Does anything look at the META files, findlib maybe? It is referenced: ==> usr/lib64/ocaml/gettext/META <== version = "0.5.0" description = "" requires = "" archive(byte) = "gettext.cma" archive(native) = "gettext.cmxa" plugin(byte) = "gettext.cma" plugin(native) = "gettext.cmxs" package "base" ( directory = "base" version = "0.5.0" description = "" requires = "dune-private-libs.dune-section dune-site fileutils" archive(byte) = "gettextBase.cma" archive(native) = "gettextBase.cmxa" plugin(byte) = "gettextBase.cma" plugin(native) = "gettextBase.cmxs" ) package "extension" ( directory = "extension" version = "0.5.0" description = "" requires = "gettext.base" archive(byte) = "gettextExtension.cma" archive(native) = "gettextExtension.cmxa" plugin(byte) = "gettextExtension.cma" plugin(native) = "gettextExtension.cmxs" ) I will see what happens by adding dune-site manually. Olaf
On Tue, Feb 25, 2025 at 10:51 AM Olaf Hering <olaf@aepfle.de> wrote:
Does anything look at the META files, findlib maybe? It is referenced:
Yes indeed, so ocaml-gettext-devel needs "Requires: ocaml-dune-site-devel%{?_isa}". Do you want to take care of that, Rich, or would you like a PR? -- Jerry James http://www.jamezone.org/
On Tue, Feb 25, 2025 at 03:36:36PM -0700, Jerry James wrote:
On Tue, Feb 25, 2025 at 10:51 AM Olaf Hering <olaf@aepfle.de> wrote:
Does anything look at the META files, findlib maybe? It is referenced:
Yes indeed, so ocaml-gettext-devel needs "Requires: ocaml-dune-site-devel%{?_isa}". Do you want to take care of that, Rich, or would you like a PR?
I think this only applies after we upgrade ocaml-gettext? The current version (0.4.2) doesn't use dune at all. Of course we should update ocaml-gettext too. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
On Wed, Feb 26, 2025 at 12:01:49PM +0000, Richard W.M. Jones wrote:
On Tue, Feb 25, 2025 at 03:36:36PM -0700, Jerry James wrote:
On Tue, Feb 25, 2025 at 10:51 AM Olaf Hering <olaf@aepfle.de> wrote:
Does anything look at the META files, findlib maybe? It is referenced:
Yes indeed, so ocaml-gettext-devel needs "Requires: ocaml-dune-site-devel%{?_isa}". Do you want to take care of that, Rich, or would you like a PR?
I think this only applies after we upgrade ocaml-gettext? The current version (0.4.2) doesn't use dune at all.
Of course we should update ocaml-gettext too.
I'm having a go at this one now ... Will post a merge request if I succeed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Wed, Feb 26, 2025 at 01:56:38PM +0000, Richard W.M. Jones wrote:
On Wed, Feb 26, 2025 at 12:01:49PM +0000, Richard W.M. Jones wrote:
On Tue, Feb 25, 2025 at 03:36:36PM -0700, Jerry James wrote:
On Tue, Feb 25, 2025 at 10:51 AM Olaf Hering <olaf@aepfle.de> wrote:
Does anything look at the META files, findlib maybe? It is referenced:
Yes indeed, so ocaml-gettext-devel needs "Requires: ocaml-dune-site-devel%{?_isa}". Do you want to take care of that, Rich, or would you like a PR?
I think this only applies after we upgrade ocaml-gettext? The current version (0.4.2) doesn't use dune at all.
Of course we should update ocaml-gettext too.
I'm having a go at this one now ... Will post a merge request if I succeed.
https://src.fedoraproject.org/rpms/ocaml-gettext/pull-request/3 This will likely require several other packages to be bumped & rebuilt, but I'll deal with that. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Tue, 25 Feb 2025 17:04:24 +0000 "Richard W.M. Jones" <rjones@redhat.com>:
Fedora is still using ocaml-gettext 0.4.2, and I did not try 0.5.0 yet.
gettext is optional, the build succeeds without it. I think it is wrong to translate error messages from console tools. In case people run into problems, they post the error verbatim into some forum. In case some other native speaker can help with solving the issue, the resolution can not be found by someone who runs with a different locale. The initial error message can not be found because they do not match: Error: No implementations provided for the following modules: vs. Fehler: Dieses Vorhaben ist jetzt aber gründlich schiefgegangen: There are probably some hints in site.rst about what needs to be done. Olaf
participants (3)
-
Jerry James -
Olaf Hering -
Richard W.M. Jones