diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-12 15:56:42 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-16 08:18:40 +0700 |
commit | 5e683db34cb7eab502d6d5fc321b298a5ee0c2c4 (patch) | |
tree | b4c00d120e2a44a4c235da76a5ed217ccf885ab4 | |
parent | 4a9777eb30d0babd34022823d9f3e9bade70376f (diff) | |
download | slackbuilds-5e683db34cb7eab502d6d5fc321b298a5ee0c2c4.tar.gz |
libraries/libvirt: Fix build when qemu not present.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libvirt/libvirt.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/libvirt/libvirt.SlackBuild b/libraries/libvirt/libvirt.SlackBuild index 18e33cf852..fbc0e960c3 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 |