From 41765dab645acb31174d787d8d7c4288ae8bce18 Mon Sep 17 00:00:00 2001
From: Benedikt Neuffer <gentoo@itfriend.de>
Date: Sun, 27 Jun 2021 16:55:09 +0200
Subject: app-emulation/lxd: fix virtfs-proxy-helper path

Closes: https://bugs.gentoo.org/798924
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
---
 app-emulation/lxd/lxd-4.0.6.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'app-emulation/lxd')

diff --git a/app-emulation/lxd/lxd-4.0.6.ebuild b/app-emulation/lxd/lxd-4.0.6.ebuild
index e701c89b199a..92c4ad7891d6 100644
--- a/app-emulation/lxd/lxd-4.0.6.ebuild
+++ b/app-emulation/lxd/lxd-4.0.6.ebuild
@@ -82,6 +82,11 @@ src_prepare() {
 		doc/environment.md \
 		lxd/apparmor/instance_qemu.go \
 		lxd/instance/drivers/driver_qemu.go || die "Failed to fix hardcoded ovmf paths."
+
+	# Fix hardcoded virtfs-proxy-helper file path, see bug 798924
+	sed -i \
+		-e "s:/usr/lib/qemu/virtfs-proxy-helper:/usr/libexec/virtfs-proxy-helper:g" \
+		lxd/device/disk.go || die "Failed to fix virtfs-proxy-helper path."
 }
 
 src_configure() { :; }
-- 
cgit v1.2.3-65-gdbad