Link .mli files corresponding to autorgenerated .ml files into builddir
authorHilko Bengen <bengen@debian.org>
Mon, 13 Jan 2020 19:13:30 +0000 (20:13 +0100)
committerHilko Bengen <bengen@debian.org>
Sun, 30 Aug 2020 21:34:05 +0000 (22:34 +0100)
This avoids build failures in separate builds such as this one:

,----
| ocamlfind ocamlc -package str,unix -I . -a guestfs_config.cmo stringMap.cmo stringSet.cmo std_utils.cmo -o mlstdutils.cma
| ar cr libmlstdutils.a libmlstdutils_a-dummy.o
| ranlib libmlstdutils.a
| File "_none_", line 1:
| Error: Files std_utils.cmo and guestfs_config.cmo
|        make inconsistent assumptions over interface Guestfs_config
| make[4]: *** [Makefile:2580: mlstdutils.cma] Error 2
`----

Gbp-Pq: Name 0018-Link-.mli-files-corresponding-to-autorgenerated-.ml-.patch

configure.ac

index 3a4d6c93109acfba271e54425cf6c666d10ed96b..d10b4754ceed377ec224b0dd901e9673efebb2f0 100644 (file)
@@ -353,6 +353,9 @@ AC_CONFIG_FILES([Makefile
                  tools/Makefile
                  website/index.html])
 
+AC_CONFIG_LINKS([common/mlstdutils/guestfs_config.mli:common/mlstdutils/guestfs_config.mli
+                 daemon/daemon_config.mli:daemon/daemon_config.mli])
+
 AC_OUTPUT
 
 dnl Produce summary.