--- /dev/null
+From 6e80a33b70f89c18cd2fbde739243e8c5a7efc25 Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones@redhat.com>
+Date: Thu, 25 Mar 2021 08:14:49 +0000
+Subject: [PATCH 7/7] Update common submodule to latest.
+
+---
+ common | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Submodule common ca8a16a926..7c39a06fe3:
+diff --git a/common/mlstdutils/Makefile.am b/common/mlstdutils/Makefile.am
+index 2b4aed8..650f18c 100644
+--- a/common/mlstdutils/Makefile.am
++++ b/common/mlstdutils/Makefile.am
+@@ -85,7 +85,7 @@ OCAMLPACKAGES = \
+ -I $(builddir)
+ OCAMLPACKAGES_TESTS = $(MLSTDUTILS_CMA)
+ if HAVE_OCAML_PKG_OUNIT
+-OCAMLPACKAGES_TESTS += -package oUnit
++OCAMLPACKAGES_TESTS += -package ounit2
+ endif
+
+ OCAMLFLAGS = $(OCAML_FLAGS) $(OCAML_WARN_ERROR) -ccopt '$(CFLAGS)'
+diff --git a/common/mltools/Makefile.am b/common/mltools/Makefile.am
+index 6bb2b88..5cec178 100644
+--- a/common/mltools/Makefile.am
++++ b/common/mltools/Makefile.am
+@@ -129,7 +129,7 @@ if HAVE_OCAML_PKG_GETTEXT
+ OCAMLPACKAGES += -package gettext-stub
+ endif
+ if HAVE_OCAML_PKG_OUNIT
+-OCAMLPACKAGES_TESTS += -package oUnit
++OCAMLPACKAGES_TESTS += -package ounit2
+ endif
+
+ OCAMLCLIBS = \
+@@ -263,7 +263,8 @@ tools_utils_tests_DEPENDENCIES = \
+ $(MLTOOLS_CMA) \
+ $(top_srcdir)/ocaml-link.sh
+ tools_utils_tests_LINK = \
+- $(top_srcdir)/ocaml-link.sh -cclib '-lutils $(LIBXML2_LIBS) -lgnu' -- \
++ $(top_srcdir)/ocaml-link.sh \
++ -cclib '-pthread -lpthread -lutils $(LIBXML2_LIBS) -lgnu' -- \
+ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \
+ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \
+ $(tools_utils_tests_THEOBJECTS) -o $@
+@@ -290,7 +291,8 @@ JSON_tests_DEPENDENCIES = \
+ $(MLTOOLS_CMA) \
+ $(top_srcdir)/ocaml-link.sh
+ JSON_tests_LINK = \
+- $(top_srcdir)/ocaml-link.sh -- \
++ $(top_srcdir)/ocaml-link.sh \
++ -cclib '-pthread -lpthread' -- \
+ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \
+ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \
+ $(JSON_tests_THEOBJECTS) -o $@
+@@ -303,7 +305,8 @@ JSON_parser_tests_DEPENDENCIES = \
+ $(MLTOOLS_CMA) \
+ $(top_srcdir)/ocaml-link.sh
+ JSON_parser_tests_LINK = \
+- $(top_srcdir)/ocaml-link.sh -cclib '$(OCAMLCLIBS)' -- \
++ $(top_srcdir)/ocaml-link.sh \
++ -cclib '-pthread -lpthread $(OCAMLCLIBS)' -- \
+ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLLINKFLAGS) \
+ $(OCAMLPACKAGES) $(OCAMLPACKAGES_TESTS) \
+ $(JSON_parser_tests_THEOBJECTS) -o $@
+diff --git a/common/mlutils/Makefile.am b/common/mlutils/Makefile.am
+index e86d7bb..17dfac3 100644
+--- a/common/mlutils/Makefile.am
++++ b/common/mlutils/Makefile.am
+@@ -112,10 +112,10 @@ c_utils_unit_tests_CFLAGS = $(libmlcutils_a_CFLAGS)
+ if !HAVE_OCAMLOPT
+ # Can't call this c_utils_unit_tests_OBJECTS because automake gets confused.
+ c_utils_unit_tests_THEOBJECTS = $(c_utils_unit_tests_BOBJECTS)
+-c_utils_unit_tests.cmo: OCAMLPACKAGES += -package oUnit
++c_utils_unit_tests.cmo: OCAMLPACKAGES += -package ounit2
+ else
+ c_utils_unit_tests_THEOBJECTS = $(c_utils_unit_tests_XOBJECTS)
+-c_utils_unit_tests.cmx: OCAMLPACKAGES += -package oUnit
++c_utils_unit_tests.cmx: OCAMLPACKAGES += -package ounit2
+ endif
+
+ OCAMLLINKFLAGS = \
+@@ -131,7 +131,7 @@ c_utils_unit_tests_DEPENDENCIES = \
+ c_utils_unit_tests_LINK = \
+ $(top_srcdir)/ocaml-link.sh -cclib '-lutils -lgnu' -- \
+ $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) \
+- $(OCAMLPACKAGES) -package oUnit \
++ $(OCAMLPACKAGES) -package ounit2 \
+ $(OCAMLLINKFLAGS) \
+ $(c_utils_unit_tests_THEOBJECTS) -o $@
+
+--
+2.29.0.rc2
+
Summary: Tools to access and modify virtual machine disk images
Name: guestfs-tools
Version: 1.45.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
# Build only for architectures that have a kernel
Patch4: 0004-build-Remove-dependency-on-perl-Sys-Virt.patch
Patch5: 0005-builder-Get-rid-of-etc-xdg-and-XDG_CONFIG_DIRS-nonse.patch
Patch6: 0006-builder-Use-correct-ounit2-module.patch
+Patch7: 0007-Update-common-submodule-to-latest.patch
%if 0%{patches_touch_autotools}
BuildRequires: autoconf, automake, libtool, gettext-devel
BuildRequires: libguestfs-xfs
BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Pod::Man)
+BuildRequires: perl(Test::More)
BuildRequires: /usr/bin/pod2text
BuildRequires: po4a
BuildRequires: pcre2-devel
%changelog
+* Thu Mar 25 2021 Richard W.M. Jones <rjones@redhat.com> - 1.45.2-3
+- Add perl(Test::More) dependency for the Perl test suite.
+- Fix ounit2 dependency again.
+
* Wed Mar 24 2021 Richard W.M. Jones <rjones@redhat.com> - 1.45.2-2
- Add perl(Locale::TextDomain) dependency for virt-win-reg.
- Fix ounit2 dependency upstream.