search for: have_rpm

Displaying 1 result from an estimated 1 matches for "have_rpm".

Did you mean: have_kvm
2020 Oct 17
1
[PATCH] Use guestfsd binary to auto-generate library dependencies for appliance
...e12be4 100644 --- a/appliance/Makefile.am +++ b/appliance/Makefile.am @@ -79,7 +79,30 @@ make.sh: make.sh.in $(top_builddir)/config.log $(top_builddir)/config.status PACKAGELIST_CPP_FLAGS = -D$(DISTRO)=1 -DEXTRA_PACKAGES="$(EXTRA_PACKAGES)" -packagelist: packagelist.in Makefile + +if HAVE_RPM +QUERY_FILES_CMD := xargs rpm -qf --qf '%{name}\n' +endif +if HAVE_DPKG +QUERY_FILES_CMD := xargs dpkg -S | cut -d: -f1 +endif +if HAVE_PACMAN +QUERY_FILES_CMD := xargs pacman -Qo | sed -r 's/.* is owned by ([^ ]+) .*/\1/' +endif + +# Automatically generate library dependency list +...