Opened 4 months ago

Last modified 4 months ago

#62889 assigned defect

mpv check version error: ValueError: invalid version number '11'

Reported by: keke-cute (小可可可爱多) Owned by: keke-cute (小可可可爱多)
Priority: Normal Milestone:
Component: ports Version: 2.7.0
Keywords: bigsur Cc: i0ntempest, Ionic (Mihai Moldovan), keke-cute (小可可可爱多)
Port: mpv

Description


full main.log see


π sudo port -v install mpv                                                                               ─╯
--->  Computing dependencies for mpv.
--->  Fetching archive for mpv
--->  mpv-0.33.1_1+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39.darwin_20.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch mpv-0.33.1_1+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39.darwin_20.arm64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/mpv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
--->  Attempting to fetch mpv-0.33.1_1+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39.darwin_20.arm64.tbz2 from https://kmq.jp.packages.macports.org/mpv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
--->  Attempting to fetch mpv-0.33.1_1+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39.darwin_20.arm64.tbz2 from https://packages.macports.org/mpv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
--->  Configuring mpv
--->  Patching config-maintainer: s/@@NETWORK@@//
Warning: reinplace s/@@NETWORK@@// didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.1/TOOLS/config-maintainer
--->  Patching config-maintainer: s/@@HWDEC@@//
Warning: reinplace s/@@HWDEC@@// didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.1/TOOLS/config-maintainer
--->  Patching config-maintainer: s/@@HWDEC_CUDA@@//
Warning: reinplace s/@@HWDEC_CUDA@@// didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.1/TOOLS/config-maintainer
--->  Patching config-maintainer: s/@@BACKEND@@/cocoa/
Warning: reinplace s/@@BACKEND@@/cocoa/ didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.1/TOOLS/config-maintainer
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.1" && /opt/local/bin/python3.9 ./waf configure --prefix=/opt/local --enable-manpage-build --enable-coreaudio --enable-cocoa --enable-cplugins --enable-zlib --enable-swift --disable-html-build --disable-cuda-hwaccel --disable-opensles --disable-egl-drm --disable-egl-angle-lib --disable-egl-angle-win32 --disable-audiounit --disable-ios-gl --disable-direct3d --disable-android --disable-rpi --disable-dvbin --disable-caca --enable-cdda --disable-clang-database --disable-debug-build --enable-dvdnav --disable-egl-x11 --enable-gl --enable-gl-cocoa --disable-gl-x11 --disable-jack --disable-javascript --disable-jpeg --enable-libarchive --disable-openal --disable-pdf-build --disable-pulse --disable-rubberband --disable-test --disable-tv --disable-uchardet --disable-vapoursynth --disable-x11 --disable-xv --enable-videotoolbox-gl --enable-lua --lua=52fbsd 
Setting top to                           : /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366 
Setting out to                           : /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/build 
Checking for waf version in 1.8.4-2.1.0  : ok 
Checking for program 'cc'                : /usr/bin/clang 
Checking for program 'pkg-config'        : /opt/local/bin/pkg-config 
Checking for program 'ar'                : /usr/bin/ar 
Checking for program 'rst2html'          : /opt/local/bin/rst2html.py 
Checking for program 'rst2man-3.9'       : /opt/local/bin/rst2man-3.9.py 
Checking for program 'rst2pdf'           : not found 
Checking for program 'windres'           : not found 
Checking for program 'perl'              : /opt/local/bin/perl 
Checking for 'clang' (C compiler)        : /usr/bin/clang 
Detected target OS:                      : os-darwin 
Checking for macOS SDK                   : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk (version found: 11) 
Checking for swift (Swift compiler)      : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift 
Checking for dynamic Swift Library       : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx 
Checking for static Swift Library        : not found 
Checking for compiler flags -std=c11     : yes 
Checking for compiler flags -Werror -Werror=implicit-function-declaration : yes 
Checking for compiler flags -Werror -Wno-error=deprecated-declarations    : yes 
Checking for compiler flags -Werror -Wno-error=unused-function            : yes 
Checking for compiler flags -Werror -Wempty-body                          : yes 
Checking for compiler flags -Werror -Wdisabled-optimization               : yes 
Checking for compiler flags -Werror -Wstrict-prototypes                   : yes 
Checking for compiler flags -Werror -Wno-format-zero-length               : yes 
Checking for compiler flags -Werror -Werror=format-security               : yes 
Checking for compiler flags -Werror -Wno-redundant-decls                  : yes 
Checking for compiler flags -Werror -Wvla                                 : yes 
Checking for compiler flags -Werror -Wno-format-truncation                : no 
Checking for compiler flags -Werror -Wimplicit-fallthrough                : yes 
Checking for compiler flags -Werror -fno-math-errno                       : yes 
Checking for LGPL (version 2.1 or later) build                            : disabled 
Checking for GPL (version 2 or later) build                               : yes 
Checking for mpv CLI player                                               : yes 
Checking for shared library                                               : disabled 
Checking for static library                                               : disabled 
Checking for static build                                                 : disabled 
Checking for whether to include binary compile time                       : yes 
Checking for whether to optimize                                          : yes 
Checking for whether to compile-in debugging information                  : disabled 
Checking for unit tests (development only)                                : disabled 
Checking for enable ta leak report by default (development only)          : disabled 
Checking for manpage generation                                           : yes 
Checking for html manual generation                                       : disabled 
Checking for pdf manual generation                                        : disabled 
Checking for dynamic loader                                               : yes 
Checking for C plugins                                                    : yes 
Checking for inline assembly (currently without effect)                   : yes 
Checking for generate a clang compilation database                        : disabled 
Checking for static Swift linking                                         : disabled 
Checking for compiler support for noexecstack                             : no 
Checking for linker support for --nxcompat --no-seh --dynamicbase         : no 
Checking for -lm                                                          : yes 
Checking for MinGW                                                        : os-win32 not found 
Checking for POSIX environment                                            : yes 
Checking for Android environment                                          : disabled 
Checking for tvOS environment                                             : disabled 
Checking for Android EGL support                                          : android not found 
Checking for development environment                                      : yes 
Checking for macOS Swift build tools                                      : Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 119, in waf_entry_point
    run_commands()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 182, in run_commands
    ctx=run_command(cmd_name)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Scripting.py", line 173, in run_command
    ctx.execute()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Configure.py", line 85, in execute
    super(ConfigurationContext,self).execute()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Context.py", line 92, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Context.py", line 133, in recurse
    user_function(self)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/wscript", line 962, in configure
    ctx.parse_dependencies(main_dependencies)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/.waf3-2.0.22-1241519b19b496207abef1f72bbf61c2/waflib/Configure.py", line 175, in fun
    return f(*k,**kw)
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/dependencies.py", line 160, in parse_dependencies
    [__check_dependency__(ctx, dependency) for dependency in dependencies]
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/dependencies.py", line 160, in <listcomp>
    [__check_dependency__(ctx, dependency) for dependency in dependencies]
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/dependencies.py", line 155, in __check_dependency__
    Dependency(ctx,
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/dependencies.py", line 47, in check
    self.check_autodetect_func()
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/dependencies.py", line 76, in check_autodetect_func
    if self.attributes['func'](self.ctx, self.identifier):
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/checks/generic.py", line 180, in fn
    return all([check(ctx, dependency_identifier) for check in checks])
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/checks/generic.py", line 180, in <listcomp>
    return all([check(ctx, dependency_identifier) for check in checks])
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-player-mpv-4c9d366/waftools/checks/generic.py", line 199, in fn
    if StrictVersion(ctx.env.MACOS_SDK_VERSION) >= StrictVersion(version):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/version.py", line 40, in __init__
    self.parse(vstring)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/version.py", line 137, in parse
    raise ValueError("invalid version number '%s'" % vstring)
ValueError: invalid version number '11'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.1" && /opt/local/bin/python3.9 ./waf configure --prefix=/opt/local --enable-manpage-build --enable-coreaudio --enable-cocoa --enable-cplugins --enable-zlib --enable-swift --disable-html-build --disable-cuda-hwaccel --disable-opensles --disable-egl-drm --disable-egl-angle-lib --disable-egl-angle-win32 --disable-audiounit --disable-ios-gl --disable-direct3d --disable-android --disable-rpi --disable-dvbin --disable-caca --enable-cdda --disable-clang-database --disable-debug-build --enable-dvdnav --disable-egl-x11 --enable-gl --enable-gl-cocoa --disable-gl-x11 --disable-jack --disable-javascript --disable-jpeg --enable-libarchive --disable-openal --disable-pdf-build --disable-pulse --disable-rubberband --disable-test --disable-tv --disable-uchardet --disable-vapoursynth --disable-x11 --disable-xv --enable-videotoolbox-gl --enable-lua --lua=52fbsd 
Exit code: 2
Error: Failed to configure mpv: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port mpv failed


full main.log see


Change History (10)

comment:1 Changed 4 months ago by keke-cute (小可可可爱多)

Cc: keke-cute added

comment:2 Changed 4 months ago by i0ntempest

Doesn’t happen in arm64 buildbot. Try again with MacPorts 2.6.4 or 2.7 beta.

comment:3 Changed 4 months ago by jmroot (Joshua Root)

Keywords: arm64 removed
Milestone: MacPorts Future

It looks like this was with the beta, or at least a commit fairly close to it.

comment:4 in reply to:  2 Changed 4 months ago by keke-cute (小可可可爱多)

Replying to i0ntempest:

Doesn’t happen in arm64 buildbot. Try again with MacPorts 2.6.4 or 2.7 beta.

2.6.4 work, thanks!

comment:5 in reply to:  3 Changed 4 months ago by keke-cute (小可可可爱多)

Replying to jmroot:

It looks like this was with the beta, or at least a commit fairly close to it.

I use the master branch

comment:6 in reply to:  2 Changed 4 months ago by keke-cute (小可可可爱多)

Replying to i0ntempest:

Doesn’t happen in arm64 buildbot. Try again with MacPorts 2.6.4 or 2.7 beta.

2.6.4 work , but 2.7.0 release still have the bug .

comment:7 Changed 4 months ago by keke-cute (小可可可爱多)

Version: 2.6.992.7.0

comment:8 Changed 4 months ago by keke-cute (小可可可爱多)

Owner: set to keke-cute
Status: newassigned

comment:9 Changed 4 months ago by i0ntempest

Seems to be caused by a override of MACOS_SDK_VERSION that was added to fix M1 build before MP 2.7. Will push a change to remove it soon.

comment:10 in reply to:  9 Changed 4 months ago by keke-cute (小可可可爱多)

Replying to i0ntempest:

Seems to be caused by a override of MACOS_SDK_VERSION that was added to fix M1 build before MP 2.7. Will push a change to remove it soon.

thanks!

Note: See TracTickets for help on using tickets.