search for: have_dpkg

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

2020 Oct 17
1
[PATCH] Use guestfsd binary to auto-generate library dependencies for appliance
...+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 +guestfsd.deps: ../daemon/guestfsd + /sbin/ldconfig -p > ld.so.cache.txt + obj...