From a597f3531442a490d74c0cbfdd06340e30912f34 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 1 Feb 2023 15:03:39 +0100 Subject: [virt-manager] Set prefix to /usr/local to avoid broken build For some reason, virt-manager always installs to /usr/local, no matter what you set --prefix to. However, in that case it will "helpfully" write the wrong path to the virt-manager startup wrapper, which then points to nowhere. So set the prefix to where it stubbornly installs anyways to fix this issue. --- core/modules/virt-manager/module.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/modules/virt-manager') diff --git a/core/modules/virt-manager/module.build b/core/modules/virt-manager/module.build index c16042c4..53ccac76 100644 --- a/core/modules/virt-manager/module.build +++ b/core/modules/virt-manager/module.build @@ -10,9 +10,9 @@ build() { # Work-aound newer setuptools requirement grep -qF 'py_modules' "setup.py" || sed -i '/^distutils.core.setup/a py_modules=[],' "setup.py" - python3 setup.py configure --default-hvs qemu,lxc --default-graphics spice || perror "'setup.py configure' failed." + python3 setup.py configure --prefix /usr/local --default-hvs qemu,lxc --default-graphics spice || perror "'setup.py configure' failed." python3 setup.py build || perror "'setup.py build' failed." - python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "${DSTDIR}" --no-compile -O0 || perror "'setup.py install' failed." + python3 setup.py --no-update-icon-cache --no-compile-schemas install --prefix /usr/local --root "${DSTDIR}" --no-compile -O0 || perror "'setup.py install' failed." } post_copy() { -- cgit v1.2.3-55-g7522