From 5e683db34cb7eab502d6d5fc321b298a5ee0c2c4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 12 Feb 2022 15:56:42 -0500 Subject: libraries/libvirt: Fix build when qemu not present. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- libraries/libvirt/libvirt.SlackBuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libraries/libvirt') diff --git a/libraries/libvirt/libvirt.SlackBuild b/libraries/libvirt/libvirt.SlackBuild index 18e33cf85207d..fbc0e960c352c 100644 --- a/libraries/libvirt/libvirt.SlackBuild +++ b/libraries/libvirt/libvirt.SlackBuild @@ -133,8 +133,12 @@ sed -i \ $PKG/etc/libvirt/qemu.conf # disable seccomp support or else VMs won't start with new libvirt/qemu combo -sed -i "s|^\#seccomp_sandbox = 1|seccomp_sandbox = 0|" \ - $PKG/etc/libvirt/qemu.conf +# 20220212 bkw: this file doesn't exist if qemu wasn't installed. and +# since qemu isn't in REQUIRES, it's optional, so the build shouldn't fail. +if [ -e $PKG/etc/libvirt/qemu.conf ]; then + sed -i "s|^\#seccomp_sandbox = 1|seccomp_sandbox = 0|" \ + $PKG/etc/libvirt/qemu.conf +fi find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -- cgit v1.2.3