summaryrefslogtreecommitdiffstats
path: root/core/modules/virt-manager
diff options
context:
space:
mode:
authorSimon Rettberg2023-02-01 15:03:39 +0100
committerSimon Rettberg2023-02-01 15:06:59 +0100
commita597f3531442a490d74c0cbfdd06340e30912f34 (patch)
tree9f53e5865f740fde0a32cecd41244060030b7638 /core/modules/virt-manager
parent[libvirt-glib] Use same meson version everywhere (diff)
downloadmltk-a597f3531442a490d74c0cbfdd06340e30912f34.tar.gz
mltk-a597f3531442a490d74c0cbfdd06340e30912f34.tar.xz
mltk-a597f3531442a490d74c0cbfdd06340e30912f34.zip
[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.
Diffstat (limited to 'core/modules/virt-manager')
-rw-r--r--core/modules/virt-manager/module.build4
1 files changed, 2 insertions, 2 deletions
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() {