build: switch embedded copy of ocaml-augeas

Use the newer copy shipped locally as bundled, instead of the one in
the common submodule, as the latter copy will go away soon.
This commit is contained in:
Pino Toscano
2019-12-16 16:42:24 +01:00
parent c93cc14b9f
commit fb7e21be96
6 changed files with 22 additions and 12 deletions

1
.gitignore vendored
View File

@@ -109,6 +109,7 @@ Makefile.in
/builder/virt-index-validate
/builder/virt-index-validate.1
/builder/*.xz
/bundled/ocaml-augeas/.depend
/cat/stamp-virt-*.pod
/cat/virt-cat
/cat/virt-cat.1

View File

@@ -45,7 +45,7 @@ SUBDIRS += lib docs examples
# The daemon and the appliance.
SUBDIRS += common/mlutils
SUBDIRS += common/mlaugeas
SUBDIRS += bundled/ocaml-augeas
SUBDIRS += common/mlpcre
if ENABLE_DAEMON
SUBDIRS += daemon
@@ -316,7 +316,7 @@ ChangeLog: configure.ac
docs/C_SOURCE_FILES: configure.ac
rm -f $@ $@-t
find $(DIST_SUBDIRS) -name '*.[ch]' | \
grep -v -E '^(builder/index-parse\.|builder/index-scan\.|common/mllibvirt/libvirt_c\.c|examples/|gnulib/|gobject/|java/com_redhat_et_libguestfs|perl/|php/extension/config\.h|ruby/ext/guestfs/extconf\.h|tests/|test-data/)' | \
grep -v -E '^(builder/index-parse\.|builder/index-scan\.|common/mllibvirt/libvirt_c\.c|examples/|gnulib/|gobject/|java/com_redhat_et_libguestfs|perl/|php/extension/config\.h|ruby/ext/guestfs/extconf\.h|tests/|test-data/|bundled/)' | \
grep -v -E '/(guestfs|rc)_protocol\.' | \
grep -v -E '.*/errnostring\.' | \
grep -v -E '.*-gperf\.' | \
@@ -328,7 +328,7 @@ po/POTFILES: configure.ac
rm -f $@ $@-t
cd $(srcdir); \
find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
grep -v -E '^(examples|gnulib|perl/(blib|examples)|po-docs|tests|test-data)/' | \
grep -v -E '^(examples|gnulib|perl/(blib|examples)|po-docs|tests|test-data|bundled)/' | \
grep -v -E '/((guestfs|rc)_protocol\.c)$$' | \
grep -v -E '^python/utils\.c$$' | \
grep -v -E '^perl/lib/Sys/Guestfs\.c$$' | \

View File

@@ -223,10 +223,10 @@ AC_CONFIG_FILES([Makefile
builder/test-config/virt-builder/repos.d/test-index.conf
builder/test-simplestreams/virt-builder/repos.d/cirros.conf
builder/test-website/virt-builder/repos.d/libguestfs.conf
bundled/ocaml-augeas/Makefile
cat/Makefile
common/errnostring/Makefile
common/edit/Makefile
common/mlaugeas/Makefile
common/mlcustomize/Makefile
common/mlgettext/Makefile
common/mlpcre/Makefile

View File

@@ -214,7 +214,7 @@ guestfsd_LDFLAGS = \
-L$(shell $(OCAMLC) -where)/hivex \
-L../common/mlutils \
-L../common/mlstdutils \
-L../common/mlaugeas \
-L../bundled/ocaml-augeas \
-L../common/mlpcre
guestfsd_LDADD = \
../common/errnostring/liberrnostring.la \
@@ -341,7 +341,7 @@ XOBJECTS = $(BOBJECTS:.cmo=.cmx)
OCAMLPACKAGES = \
-package str,unix,hivex \
-I $(top_builddir)/common/mlaugeas \
-I $(top_builddir)/bundled/ocaml-augeas \
-I $(top_builddir)/common/mlstdutils \
-I $(top_builddir)/common/mlutils \
-I $(top_builddir)/common/utils/.libs \

View File

@@ -71,6 +71,20 @@ Various build scripts used by autotools.
L<virt-builder(1)> command and documentation.
=item F<bundled>
Embedded copies of other libraries, mostly for convenience (and the embedded
library is not widespread enough).
=over 4
=item F<bundled/ocaml-augeas>
Bindings for the Augeas library. These come from the ocaml-augeas
library L<http://git.annexia.org/?p=ocaml-augeas.git>
=back
=item F<cat>
The L<virt-cat(1)>, L<virt-filesystems(1)>, L<virt-log(1)>,
@@ -94,11 +108,6 @@ The communication protocol used between the library and the daemon
running inside the appliance has to encode errnos as strings, which is
handled by this library.
=item F<common/mlaugeas>
Bindings for the Augeas library. These come from the ocaml-augeas
library L<http://git.annexia.org/?p=ocaml-augeas.git>
=item F<common/mlcustomize>
Library code associated with C<virt-customize> but also used in other

View File

@@ -33,7 +33,7 @@ set -e
# directories must have unique names (eg. not Utils) else
# dependencies don't get built right.
include_dirs="
common/mlaugeas
bundled/ocaml-augeas
common/mlgettext
common/mlpcre
common/mlprogress