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>
This commit is contained in:
B. Watson 2022-02-12 15:56:42 -05:00 committed by Willy Sudiarto Raharjo
parent 4a9777eb30
commit 5e683db34c
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 6 additions and 2 deletions

View File

@ -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
# 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