[MacPorts] #57344: mpv dose not work niether variants nor info with Error: No python variant selected when variants.conf has +python37
MacPorts
noreply at macports.org
Thu Oct 11 10:01:12 UTC 2018
#57344: mpv dose not work niether variants nor info with Error: No python variant
selected when variants.conf has +python37
---------------------------+--------------------
Reporter: stanimura | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: variants.conf | Port: mpv
---------------------------+--------------------
info and variants dose not work for mpv
{{{
$ port info mpv
Error: No python variant selected. You must select at least one. The
highest value will be used.
Error: Unable to open port: Select a python variant.
}}}
{{{
$ port variants mpv
Error: No python variant selected. You must select at least one. The
highest value will be used.
Error: Unable to open port: Select a python variant.
}}}
This happens when +python37 and -python27 are added to variants.conf.
The solution is to edit Profile of mpv.
{{{
---
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/mpv/Portfile
2018-10-08 22:35:29.000000000 +0900
+++ mpv.Portfile 2018-10-11 18:51:19.000000000 +0900
@@ -277,9 +277,9 @@
# Shameless copy from ipe-tools.
-set python.versions {27 36}
+set python.versions {27 37}
# Remove after 07-30-2018.
-dict set python.legacy_versions 35 36
+dict set python.legacy_versions 35 36 37
set python.default_version 27
set python.version ""
}}}
This works both info and variants.
With the edited Portfile, mpv can build and the resulted mpv works for me.
--
Ticket URL: <https://trac.macports.org/ticket/57344>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list