From 5de62e5bb2938205648817fc8ef38b21a412a527 Mon Sep 17 00:00:00 2001 From: tigro Date: Thu, 30 May 2024 07:57:05 +0300 Subject: [PATCH] Fix build on RPM systems --- SPECS/libguestfs.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/SPECS/libguestfs.spec b/SPECS/libguestfs.spec index c48bbb4..ea7a189 100644 --- a/SPECS/libguestfs.spec +++ b/SPECS/libguestfs.spec @@ -32,7 +32,7 @@ Summary: Access and modify virtual machine disk images Name: libguestfs Epoch: 1 Version: 1.44.0 -Release: 9%{?dist} +Release: 9%{?dist}.inferit License: LGPLv2+ ExclusiveArch: x86_64 %{power64} aarch64 s390x @@ -835,6 +835,10 @@ export PYTHON=%{__python3} --disable-golang \ $extra +# Fix build on RPM systems +sed -i 's@#QUERY_FILES_CMD := xargs rpm@QUERY_FILES_CMD := xargs rpm@g' \ + appliance/Makefile + # Building index-parse.c by hand works around a race condition in the # autotools cruft, where two or more copies of yacc race with each # other, resulting in a corrupted file. @@ -902,6 +906,12 @@ gzip --best installed-docs/*.xml # Split up the monolithic packages file in the supermin appliance so # we can install dependencies in subpackages. pushd $RPM_BUILD_ROOT%{_libdir}/guestfs/supermin.d +echo "qemu-img" >> packages +echo "which" >> packages +echo "gfs2-utils" >> packages +echo "iputils" >> packages +echo "openssh-clients" >> packages +echo "vim-minimal" >> packages function move_to { @@ -1194,6 +1204,9 @@ rm ocaml/html/.gitignore %changelog +* Thu May 30 2024 Arkady L. Shane - 1:1.44.0-9.inferit +- Fix build on RPM systems + * Sun Dec 10 2023 MSVSphere Packaging Team - 1:1.44.0-9 - Rebuilt for MSVSphere 8.8