# Source0-md5: 3d6f99ed705206d11904c67e69ba64da
Patch0: ncurses.patch
Patch1: augeas-libxml2.patch
-Patch3: %{name}-completionsdir.patch
+Patch2: %{name}-completionsdir.patch
+Patch3: x32.patch
URL: http://libguestfs.org/
BuildRequires: acl-devel
BuildRequires: attr-devel
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%patch3 -p1
%build
%{__autoheader}
%{__automake}
%configure \
-%ifarch x32
-▸ RUST_TARGET=x86_64-unknown-linux-gnux32 \
-%endif
vmchannel_test=no \
DB_DUMP=/usr/bin/db_dump \
DB_LOAD=/usr/bin/db_load \
--- /dev/null
+--- libguestfs-1.46.0/rust/Makefile.am~ 2020-03-06 20:31:08.000000000 +0100
++++ libguestfs-1.46.0/rust/Makefile.am 2022-02-28 09:04:00.888944491 +0100
+@@ -33,7 +33,7 @@
+ if HAVE_RUST
+
+ all: $(srcdir)/src/lib.rs
+- $(top_builddir)/run $(CARGO) build --release
++ PKG_CONFIG_ALLOW_CROSS=1 $(top_builddir)/run $(CARGO) build --release --target x86_64-unknown-linux-gnux32
+
+ TESTS = run-bindtests run-tests
+