<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0faf981cdbb3d07ec2ff636b037f51bf15a1725a">https://github.com/macports/macports-ports/commit/0faf981cdbb3d07ec2ff636b037f51bf15a1725a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 0faf981cdbb virt-manager: update to 3.2.0; migrate to python 3.9
</span>0faf981cdbb is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0faf981cdbb3d07ec2ff636b037f51bf15a1725a
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Mon Jun 7 11:08:59 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> virt-manager: update to 3.2.0; migrate to python 3.9
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63041
</span>---
gnome/virt-manager/Portfile | 70 +++++++++++++---------
gnome/virt-manager/files/not-in-usr.diff | 26 --------
...-kvm-warning.diff => patch-no-kvm-warning.diff} | 11 ++--
gnome/virt-manager/files/patch-not-in-usr.diff | 25 ++++++++
.../virt-manager/files/patch-setup.py-rst2man.diff | 14 +++++
5 files changed, 86 insertions(+), 60 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/virt-manager/Portfile b/gnome/virt-manager/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c0831cffa4f..441b01e1f31 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/virt-manager/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/virt-manager/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,8 +6,8 @@ PortGroup github 1.0
</span> PortGroup active_variants 1.1
PortGroup app 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup virt-manager virt-manager 2.2.1 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup virt-manager virt-manager 3.2.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories gnome emulators
supported_archs noarch
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,24 +27,17 @@ long_description \
</span> platform for this application\; its primary use on macOS is for \
remote administration of Linux boxes.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 9c06e912feb3f44f0ba4b50d94b22118106d380e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 cfd88d66e834513e067b4d3501217e21352fadb673103bacb9e646da9f029a1b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 2623754
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 7a7900c1c8521938408653f4a609716c1a561d64 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2b6fe3d90d89e1130227e4b05c51e6642d89c839d3ea063e0e29475fd9bf7b86 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2858909
</span>
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles no-kvm-warning.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- not-in-usr.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-no-kvm-warning.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-not-in-usr.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-setup.py-rst2man.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.default_version 37
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s|/usr/bin/env python3|${python.bin}|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- virt-clone virt-convert virt-install virt-manager virt-xml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- virtManager/createconn.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.default_version 39
</span>
depends_build \
port:intltool \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,32 +58,53 @@ depends_run \
</span> port:spice-gtk \
port:libosinfo
<span style='display:block; white-space:pre;background:#ffe0e0;'>-app.name Virtual Machine Manager
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-app.executable ${workpath}/virt-manager.sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-app.icon data/icons/256x256/apps/virt-manager.png
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-app.use_launch_script yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.name Virtual Machine Manager
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.executable ${workpath}/virt-manager.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.icon data/icons/256x256/apps/virt-manager.png
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+app.use_launch_script yes
</span>
use_configure yes
configure.cmd ${build.cmd} configure
configure.args --prefix ${python.prefix}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set depspecs [list cairo glib2 gtk3 librsvg pango py${python.version}-cairo spice-gtk gtksourceview4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set virtmgr_python_replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [list virt-clone virt-install virt-manager virt-xml]
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant quartz conflicts x11 {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach dep ${depspecs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- require_active_variants $dep quartz x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f ${virtmgr_python_replace} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/bin/env python3|${python.bin}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/${f}
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ unset f
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/virtManager/createconn.py
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-configure {
</span> copy ${filespath}/virt-manager.sh ${workpath}
reinplace s+@PREFIX@+${prefix}+ ${workpath}/virt-manager.sh
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set virtmgr_deps_validate \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [list cairo glib2 gtk3 librsvg pango py${python.version}-cairo spice-gtk gtksourceview4]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant quartz conflicts x11 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note: Based on testing, this strictness isn't needed. But keep just-in-case
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #foreach dep ${virtmgr_deps_validate} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # require_active_variants $dep quartz x11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #unset dep
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant x11 conflicts quartz {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach dep $depspecs {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- require_active_variants $dep x11 quartz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note: Based on testing, this strictness isn't needed. But keep just-in-case
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #foreach dep ${virtmgr_deps_validate} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # require_active_variants $dep x11 quartz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #unset dep
</span>
depends_run-append path:bin/Xquartz:xorg-server
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/virt-manager/files/not-in-usr.diff b/gnome/virt-manager/files/not-in-usr.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index a6c779a031c..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/virt-manager/files/not-in-usr.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,26 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git virtManager/createconn.py virtManager/createconn.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- virtManager/createconn.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ virtManager/createconn.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -65,15 +65,15 @@ class vmmCreateConn(vmmGObjectUI):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- os.path.exists("/proc/xen")):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return 'xen:///'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- if (os.path.exists("/usr/bin/qemu") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- os.path.exists("/usr/bin/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- os.path.exists("/usr/bin/kvm") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- os.path.exists("/usr/libexec/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- glob.glob("/usr/bin/qemu-system-*")):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (os.path.exists("@PREFIX@/bin/qemu") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ os.path.exists("@PREFIX@/bin/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ os.path.exists("@PREFIX@/bin/kvm") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ os.path.exists("@PREFIX@/libexec/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ glob.glob("@PREFIX@/bin/qemu-system-*")):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return "qemu:///system"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- if (os.path.exists("/usr/lib/libvirt/libvirt_lxc") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- os.path.exists("/usr/lib64/libvirt/libvirt_lxc")):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (os.path.exists("@PREFIX@/lib/libvirt/libvirt_lxc") or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ os.path.exists("@PREFIX@/lib64/libvirt/libvirt_lxc")):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return "lxc:///"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return None
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/virt-manager/files/no-kvm-warning.diff b/gnome/virt-manager/files/patch-no-kvm-warning.diff
</span>similarity index 65%
rename from gnome/virt-manager/files/no-kvm-warning.diff
rename to gnome/virt-manager/files/patch-no-kvm-warning.diff
<span style='display:block; white-space:pre;color:#808080;'>index c2c774730cf..dfff2757319 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/virt-manager/files/no-kvm-warning.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/virt-manager/files/patch-no-kvm-warning.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,5 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git virtManager/createvm.py virtManager/createvm.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- virtManager/createvm.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ virtManager/createvm.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- virtManager/createvm.py 2020-11-14 16:07:55.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ virtManager/createvm.py.new 2021-06-07 10:59:45.000000000 -0400
</span> @@ -7,6 +7,7 @@
import io
import pkgutil
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,10 +8,10 @@ diff --git virtManager/createvm.py virtManager/createvm.py
</span> import threading
import time
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -609,7 +610,8 @@ class vmmCreateVM(vmmGObjectUI):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- self._show_startup_warning(error)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -594,7 +595,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uiutil.set_grid_row_visible(self.widget("arch-expander"), show_arch)
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- elif self.conn.is_qemu():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if self.conn.is_qemu():
</span> - if not self._capsinfo.guest.is_kvm_available():
+ if (sys.platform == 'linux' and
+ not self._capsinfo.guest.is_kvm_available()):
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/virt-manager/files/patch-not-in-usr.diff b/gnome/virt-manager/files/patch-not-in-usr.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5c0a3a07952
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/virt-manager/files/patch-not-in-usr.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- virtManager/createconn.py 2020-09-20 22:11:09.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ virtManager/createconn.py.new 2021-06-07 10:51:26.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,15 +31,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os.path.exists("/proc/xen")):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 'xen:///'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (os.path.exists("/usr/bin/qemu") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- os.path.exists("/usr/bin/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- os.path.exists("/usr/bin/kvm") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- os.path.exists("/usr/libexec/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- glob.glob("/usr/bin/qemu-system-*")):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (os.path.exists("@PREFIX@/bin/qemu") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ os.path.exists("@PREFIX@/bin/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ os.path.exists("@PREFIX@/bin/kvm") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ os.path.exists("@PREFIX@/libexec/qemu-kvm") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ glob.glob("@PREFIX@/bin/qemu-system-*")):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return "qemu:///system"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (os.path.exists("/usr/lib/libvirt/libvirt_lxc") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- os.path.exists("/usr/lib64/libvirt/libvirt_lxc")):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (os.path.exists("@PREFIX@/lib/libvirt/libvirt_lxc") or
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ os.path.exists("@PREFIX@/lib64/libvirt/libvirt_lxc")):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return "lxc:///"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return None
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/virt-manager/files/patch-setup.py-rst2man.diff b/gnome/virt-manager/files/patch-setup.py-rst2man.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b2e06a76db3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/virt-manager/files/patch-setup.py-rst2man.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py 2021-06-07 08:46:47.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py.new 2021-06-07 08:46:23.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -162,9 +162,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def _make_man_pages(self):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from distutils.spawn import find_executable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- rstbin = find_executable("rst2man")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ rstbin = find_executable("rst2man-3.9")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if not rstbin:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- rstbin = find_executable("rst2man.py")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ rstbin = find_executable("rst2man-3.9.py")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if not rstbin:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sys.exit("Didn't find rst2man or rst2man.py")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>