Opened 5 years ago

Closed 5 years ago

#57385 closed defect (fixed)

mpv@0.29.1 fails to configure on Mavericks

Reported by: tehcog (tehcog) Owned by: yan12125 (Chih-Hsuan Yen)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: Ionic (Mihai Moldovan), yan12125 (Chih-Hsuan Yen)
Port: mpv

Description

Please see attached log file...

Oct 14 14:46:18 xxxXXXxxx === Update MacPorts
Oct 14 14:46:18 xxxXXXxxx --->  Updating MacPorts base sources using rsync
Oct 14 14:46:24 xxxXXXxxx MacPorts base version 2.5.4 installed,
Oct 14 14:46:24 xxxXXXxxx MacPorts base version 2.5.4 downloaded.
Oct 14 14:46:24 xxxXXXxxx --->  Updating the ports tree
Oct 14 14:46:32 xxxXXXxxx --->  MacPorts base is already the latest version
Oct 14 14:46:32 xxxXXXxxx
Oct 14 14:46:32 xxxXXXxxx The ports tree has been updated. To upgrade your installed ports, you should run
Oct 14 14:46:32 xxxXXXxxx   port upgrade outdated
Oct 14 14:46:33 xxxXXXxxx === Update Portfiles
Oct 14 14:46:33 xxxXXXxxx --->  Updating the ports tree
Oct 14 14:46:40 xxxXXXxxx
Oct 14 14:46:40 xxxXXXxxx === List Outdated Ports
Oct 14 14:46:40 xxxXXXxxx mpv                            @0.28.2_1+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband
Oct 14 14:46:41 xxxXXXxxx
Oct 14 14:46:41 xxxXXXxxx === Clean Outdated Ports
Oct 14 14:46:41 xxxXXXxxx --->  Cleaning mpv
Oct 14 14:46:41 xxxXXXxxx
Oct 14 14:46:41 xxxXXXxxx === Fetch Outdated Ports
Oct 14 14:46:42 xxxXXXxxx --->  Fetching distfiles for mpv
Oct 14 14:46:42 xxxXXXxxx
Oct 14 14:46:42 xxxXXXxxx === Upgrade Outdated Ports (port -p upgrade --enforce-variants outdated)
Oct 14 14:46:48 xxxXXXxxx --->  Computing dependencies for mpv
Oct 14 14:46:48 xxxXXXxxx --->  Fetching archive for mpv
Oct 14 14:46:48 xxxXXXxxx --->  Attempting to fetch mpv-0.29.1_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/mpv
Oct 14 14:46:49 xxxXXXxxx --->  Attempting to fetch mpv-0.29.1_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband.darwin_13.x86_64.tbz2 from https://packages.macports.org/mpv
Oct 14 14:46:50 xxxXXXxxx --->  Attempting to fetch mpv-0.29.1_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mpv
Oct 14 14:46:51 xxxXXXxxx --->  Verifying checksums for mpv
Oct 14 14:46:51 xxxXXXxxx --->  Extracting mpv
Oct 14 14:46:52 xxxXXXxxx --->  Configuring mpv
Oct 14 14:46:52 xxxXXXxxx Error: Failed to configure mpv: configure failure: command execution failed
Oct 14 14:46:52 xxxXXXxxx Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/main.log for details.
Oct 14 14:46:52 xxxXXXxxx Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Oct 14 14:46:52 xxxXXXxxx
Oct 14 14:46:52 xxxXXXxxx === List Inactive Duplicate Ports
Oct 14 14:46:53 xxxXXXxxx
Oct 14 14:46:53 xxxXXXxxx === Uninstall Inactive Duplicate Ports
Oct 14 14:46:53 xxxXXXxxx Error: No ports matched the given expression
Oct 14 14:46:53 xxxXXXxxx
Oct 14 14:46:53 xxxXXXxxx === Upgrade Done

Attachments (5)

mpv_main.log (22.6 KB) - added by tehcog (tehcog) 5 years ago.
log
2807_main.log (235.6 KB) - added by tehcog (tehcog) 5 years ago.
2807 patch main.log
2807b_main.log (235.6 KB) - added by tehcog (tehcog) 5 years ago.
2nd patch attempt mavericks mpv build main.log
Portfiles_diff.png (114.0 KB) - added by tehcog (tehcog) 5 years ago.
screenshot of mpv Portfile diffs
mpv_vidplay.png (244.7 KB) - added by tehcog (tehcog) 5 years ago.
3rd time's a charm - video play on Mavericks proof

Download all attachments as: .zip

Change History (11)

Changed 5 years ago by tehcog (tehcog)

Attachment: mpv_main.log added

log

comment:1 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Cc: yan12125 added

comment:2 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

comment:3 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

From a mpv developer:

could you please give me the output of swift --version from your terminal. then i can fix the auto detection.

otherwise you can use --disable-swift to manually disable it for now.

For the second comment, you can add --disable-swift after configure.args-append in multimedia/mpv/Portfile and see if the built mpv can correctly play videos.

comment:4 in reply to:  3 ; Changed 5 years ago by tehcog (tehcog)

Replying to yan12125:

From a mpv developer:

could you please give me the output of swift --version from your terminal. then i can fix the auto detection.

Swift is not installed

otherwise you can use --disable-swift to manually disable it for now.

For the second comment, you can add --disable-swift after configure.args-append in multimedia/mpv/Portfile and see if the built mpv can correctly play videos.

'configure.args-append' appears in 2 places. When adding '--disable-swift' to either location, it still fails to configure.

It looks like it is looking for 10.10, while Mavericks is 10.9

:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1" && /opt/local/bin/python2.7 ./waf configure --prefix=/opt/local --enable-manpage-build --enable-libass --enable-coreaudio --enable-cocoa --enable-cplugins --enable-zlib --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-mali-fbdev --disable-direct3d --disable-android --disable-rpi --disable-dvbin --disable-pdf-build --disable-test --disable-clang-database --disable-debug-build --disable-libsmbclient --enable-dvdread --enable-dvdnav --enable-cdda --disable-vapoursynth --disable-vapoursynth-lazy --enable-libarchive --enable-rubberband --disable-pulse --disable-jack --disable-openal --enable-gl-cocoa --disable-x11 --disable-xv --disable-gl-x11 --disable-egl-x11 --disable-caca --disable-jpeg --disable-tv --enable-apple-remote --enable-gl --disable-zsh-comp --disable-javascript --disable-uchardet --disable-swift --enable-videotoolbox-gl --enable-lua --lua=52fbsd --enable-libass-osd 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1" && /opt/local/bin/python2.7 ./waf configure --prefix=/opt/local --enable-manpage-build --enable-libass --enable-coreaudio --enable-cocoa --enable-cplugins --enable-zlib --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-mali-fbdev --disable-direct3d --disable-android --disable-rpi --disable-dvbin --disable-pdf-build --disable-test --disable-clang-database --disable-debug-build --disable-libsmbclient --enable-dvdread --enable-dvdnav --enable-cdda --disable-vapoursynth --disable-vapoursynth-lazy --enable-libarchive --enable-rubberband --disable-pulse --disable-jack --disable-openal --enable-gl-cocoa --disable-x11 --disable-xv --disable-gl-x11 --disable-egl-x11 --disable-caca --disable-jpeg --disable-tv --enable-apple-remote --enable-gl --disable-zsh-comp --disable-javascript --disable-uchardet --disable-swift --enable-videotoolbox-gl --enable-lua --lua=52fbsd --enable-libass-osd 
:info:configure Setting top to                           : /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1 
:info:configure Setting out to                           : /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/build 
:info:configure Checking for waf version in 1.8.4-2.1.0  : ok 
:info:configure Checking for program 'cc'                : /usr/bin/clang 
:info:configure Checking for program 'pkg-config'        : /opt/local/bin/pkg-config 
:info:configure Checking for program 'ar'                : /opt/local/bin/ar 
:info:configure Checking for program 'rst2html'          : not found 
:info:configure Checking for program 'rst2man-2.7'       : /opt/local/bin/rst2man-2.7.py 
:info:configure Checking for program 'rst2pdf'           : not found 
:info:configure Checking for program 'windres'           : not found 
:info:configure Checking for program 'perl'              : /opt/local/bin/perl 
:info:configure Checking for 'clang' (C compiler)        : /usr/bin/clang 
:info:configure Detected target OS:                      : os-darwin 
:info:configure Checking for macOS SDK                   : /Applications/Utilities/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk 
:info:configure Checking for swift (Swift compiler)      : /Applications/Utilities/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift 
:info:configure Traceback (most recent call last):
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Scripting.py", line 118, in waf_entry_point
:info:configure     run_commands()
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Scripting.py", line 178, in run_commands
:info:configure     ctx=run_command(cmd_name)
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Scripting.py", line 169, in run_command
:info:configure     ctx.execute()
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Configure.py", line 85, in execute
:info:configure     super(ConfigurationContext,self).execute()
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Context.py", line 85, in execute
:info:configure     self.recurse([os.path.dirname(g_module.root_path)])
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Context.py", line 126, in recurse
:info:configure     user_function(self)
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/wscript", line 1023, in configure
:info:configure     ctx.load('detections.compiler_swift')
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/.waf-2.0.9-10a533182bd85c3f45a157fb5d62db50/waflib/Configure.py", line 155, in load
:info:configure     func(self)
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/waftools/detections/compiler_swift.py", line 69, in configure
:info:configure     __find_swift_compiler(ctx)
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/waftools/detections/compiler_swift.py", line 61, in __find_swift_compiler
:info:configure     __add_swift_flags(ctx)
:info:configure   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1/waftools/detections/compiler_swift.py", line 15, in __add_swift_flags
:info:configure     major, minor = [int(n) for n in ctx.env.SWIFT_VERSION.split('.')[:2]]
:info:configure ValueError: invalid literal for int() with base 10: '(swift-600'
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1" && /opt/local/bin/python2.7 ./waf configure --prefix=/opt/local --enable-manpage-build --enable-libass --enable-coreaudio --enable-cocoa --enable-cplugins --enable-zlib --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-mali-fbdev --disable-direct3d --disable-android --disable-rpi --disable-dvbin --disable-pdf-build --disable-test --disable-clang-database --disable-debug-build --disable-libsmbclient --enable-dvdread --enable-dvdnav --enable-cdda --disable-vapoursynth --disable-vapoursynth-lazy --enable-libarchive --enable-rubberband --disable-pulse --disable-jack --disable-openal --enable-gl-cocoa --disable-x11 --disable-xv --disable-gl-x11 --disable-egl-x11 --disable-caca --disable-jpeg --disable-tv --enable-apple-remote --enable-gl --disable-zsh-comp --disable-javascript --disable-uchardet --disable-swift --enable-videotoolbox-gl --enable-lua --lua=52fbsd --enable-libass-osd 
:info:configure Exit code: 2
:error:configure Failed to configure mpv: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/main.log for details.

comment:5 in reply to:  4 Changed 5 years ago by tehcog (tehcog)

Replying to tehcog:

Replying to yan12125:

From a mpv developer:

could you please give me the output of swift --version from your terminal. then i can fix the auto detection.

Swift is not installed

I Found it:

{ /Applications/Utilities/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin }-> swift -version
Swift version 1.1 (swift-600.0.57.4)
Target: x86_64-apple-darwin13.4.0

Changed 5 years ago by tehcog (tehcog)

Attachment: 2807_main.log added

2807 patch main.log

Changed 5 years ago by tehcog (tehcog)

Attachment: 2807b_main.log added

2nd patch attempt mavericks mpv build main.log

Changed 5 years ago by tehcog (tehcog)

Attachment: Portfiles_diff.png added

screenshot of mpv Portfile diffs

Changed 5 years ago by tehcog (tehcog)

Attachment: mpv_vidplay.png added

3rd time's a charm - video play on Mavericks proof

comment:6 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Owner: set to yan12125
Resolution: fixed
Status: newclosed

In 13203d8a0675284dab83427535acb2eb8f653e51/macports-ports (master):

mpv: fix building on Mavericks

And add --enable-swift following the explicit-enable convention of mpv.

Ref: https://github.com/mpv-player/mpv/pull/6214
Closes #57385

Note: See TracTickets for help on using tickets.