Opened 4 weeks ago

Last modified 2 days ago

#57663 assigned defect

mpv@0.29.1_1: failed to apply patch on SnowLeopard

Reported by: mrkapqa Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: snowleopard leopard tiger Cc:
Port: mpv

Description (last modified by kencu (Ken))

sudo port install mpv +audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11
--->  Computing dependencies for mpv
--->  Fetching archive for mpv
--->  Attempting to fetch mpv-0.29.1_1+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11.darwin_10.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/mpv
--->  Attempting to fetch mpv-0.29.1_1+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/mpv
--->  Attempting to fetch mpv-0.29.1_1+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11.darwin_10.x86_64.tbz2 from https://packages.macports.org/mpv
--->  Fetching distfiles for mpv
--->  Verifying checksums for mpv
--->  Extracting mpv
--->  Applying patches to mpv
Error: Failed to patch mpv: command execution failed

Hello , i had an working mpv on snow leopard , but today i evoked an "sudo port upgrade outdated" , which in the end resulted in the above.

It seems to to try to install mpv 0.29 latest in 10.6.8, maybe therefore the error?

Change History (13)

comment:1 Changed 4 weeks ago by kencu (Ken)

What is the last version you have installed?

sudo port -v installed mpv

comment:2 Changed 4 weeks ago by kencu (Ken)

Description: modified (diff)
Keywords: snowleopard tiger added; mpv snow removed
Owner: set to Ionic
Status: newassigned
Summary: (mpv@snow_leopard)(upgrade outdated) - failed to apply patch mpv: command execution failedmpv@20.1_1: failed to apply patch on SnowLeopard

comment:3 Changed 4 weeks ago by kencu (Ken)

FYI -- Not many people have a working SnowLeopard installation any longer, and of those, even fewer are capable of sorting out the patches needed to make it work the way Ionic did several years ago.

SO - we can peg it at a previous version (use my SnowLeopardFixes port repo if you want), or help dig in on how this might be repaired, if indeed it can be repaired.

comment:4 Changed 4 weeks ago by kencu (Ken)

Summary: mpv@20.1_1: failed to apply patch on SnowLeopardmpv@0.29.1_1: failed to apply patch on SnowLeopard

comment:5 Changed 4 weeks ago by kencu (Ken)

The last one that I have installed is

$ port -v installed mpv
The following ports are currently installed:
  mpv @0.26.0_8+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+smb+x11 (active) platform='darwin 10' archs='x86_64' date='2018-11-18T21:19:11-0800'

comment:6 Changed 4 weeks ago by mrkapqa

Thank you, it gives

The following ports are currently installed:

mpv @0.26.0_0+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11 (active) platform='darwin 10' archs='x86_64' date='2018-08-08T18:35:00+0200'

upon evoking mpv

mpv ffmpeg library versions:

libavutil 56.14.100 (runtime 56.22.100) libavcodec 58.18.100 (runtime 58.35.100) libavformat 58.12.100 (runtime 58.20.100) libswscale 5.1.100 (runtime 5.3.100) libavfilter 7.16.100 (runtime 7.40.101) libswresample 3.1.100 (runtime 3.3.100)

ffmpeg version: 4.1

mpv was compiled against a different version of FFmpeg/Libav than the shared library it is linked against. This is most likely a broken build and could result in misbehavior and crashes.

mpv does not support this configuration and will not run - rebuild mpv instead.

i was under the impression that macports does only allow the last succesful build for each iteration os macos to be compiled, even when upgrading the ports. tried also on a recently new installed leopard 10.5 macbook pro 32bit to build mpv , and also there it failed. if there is a command to limit mpv to version 0.26 i would like to use it.

comment:7 in reply to:  6 ; Changed 4 weeks ago by kencu (Ken)

Replying to mrkapqa:

i was under the impression that macports does only allow the last succesful build for each iteration os macos to be compiled, even when upgrading the ports.

Ah, if only it were that easy.

tried also on a recently new installed leopard 10.5 macbook pro 32bit to build mpv , and also there it failed.

Not a surprise. I have no idea about the 10.7 to 10.9 crowd. The buildbots are not looking too friendly to older versions.

if there is a command to limit mpv to version 0.26 i would like to use it.

The mpv portfile is already very complex -- adding in a peg for 0.26.0 is doable, but mind-melting.

I think we will probably see an mpv-legacy port someday, with an older version updated less frequently that works on older systems.

For right now today, you're a bit stuck. My best suggestion is to read this <https://guide.macports.org/chunked/development.local-repositories.html>, and set up a local repository for yourself, possibly using mine <https://github.com/kencu/SnowLeopardPorts> as a starting point.

comment:8 in reply to:  7 Changed 4 weeks ago by mrkapqa

Replying to kencu:

Replying to mrkapqa:

i was under the impression that macports does only allow the last succesful build for each iteration os macos to be compiled, even when upgrading the ports.

Ah, if only it were that easy.

It would be nice if there is such a fallback mechanism , eg. that in case of failed build it would ask to build the last known succesful version or something similar (maybe i am too easy here altogether)

tried also on a recently new installed leopard 10.5 macbook pro 32bit to build mpv , and also there it failed.

Not a surprise. I have no idea about the 10.7 to 10.9 crowd. The buildbots are not looking too friendly to older versions.

I still have a working similar version running on my Lion 10.7.5

port -v installed mpv Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'. The following ports are currently installed:

mpv @0.26.0_7+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11 platform='darwin 11' archs='x86_64' date='2018-03-29T13:21:07+0200' mpv @0.26.0_8+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11 (active) platform='darwin 11'

now that i learned bit better i will think twice before runninng "port selfupdate" :)

QUESTION: is it possible/advisable to copy the running port of MPV from Lion over to the SnowLeopard partition?

if there is a command to limit mpv to version 0.26 i would like to use it.

The mpv portfile is already very complex -- adding in a peg for 0.26.0 is doable, but mind-melting.

I think we will probably see an mpv-legacy port someday, with an older version updated less frequently that works on older systems.

For right now today, you're a bit stuck. My best suggestion is to read this <https://guide.macports.org/chunked/development.local-repositories.html>, and set up a local repository for yourself, possibly using mine <https://github.com/kencu/SnowLeopardPorts> as a starting point.

thank you , i hope to contribute in some way or another, as i really like snow leopard very much.

Last edited 4 weeks ago by mrkapqa (previous) (diff)

comment:9 Changed 4 weeks ago by kencu (Ken)

Hmm. Not so hard to fix, in the end:

$ port -v installed mpv
  mpv @0.29.1_1+audiocd+bundle+dvd+libarchive+network+opengl+osd+python27+rubberband+x11 (active) platform='darwin 10' archs='x86_64' date='2018-11-23T11:18:17-0800'

I have a couple of small tweaks to make, and we'll see if Ionic likes it.

comment:10 Changed 3 weeks ago by mrkapqa

Hello , thanks, looking forward to that!

I have installed Xcode 3.2.6 and ve seen there is an Xcode 4 also available for Snow Leopard on the Developer Downloads Page. Does this make a difference or is it better to stick with with the 3.2.6?

comment:11 Changed 11 days ago by mrkapqa

Hello ,

i have another question - crossreference -

do use a working port of Mpv 0.26 on a Lion 10.7.5 in combination with a Firefox plugin "watch with mpv" and firefox 45 - 52. This works very well on this Partition, and also on Linux systems (normally) and Windows.

However, i cannot seem to get this Extension to enable MPV any longer on a fresh install, eg. on a Partition with MaVERICKS and MPV 0.29 and latest youtube-dl and patches.

I don't understand what is causing this misbehaviour, and am not experienced in troubleshooting such things.

So my question is , is it possible to copy over a whole working MacPorts directory from the Lion Partition over to the freshly installed Mavericks partition to see if it is working with the older installation of Mpv?

It could be that the issue is also caused by later changes in youtube-dl. It is my understanding, that when i try to install an older port, eg. git checkout Mpv at version 0.26, it still would try to install the latest youtube-dl, and this could be troublesome as i understand it;

comment:12 Changed 11 days ago by mrkapqa

The firefox extension is no longer available on the Firefox-Add-ons page, but it is available on GitHub

https://github.com/antoniy/mpv-youtube-dl-binding

comment:13 Changed 2 days ago by kencu (Ken)

mrkapqa:

try this <https://github.com/kencu/macports-ports/commit/85fa0186bfc6a375c747fa24a4dee79bcbe71d47>.

It works for me, without the gui (just the command-line command mpv ). Maybe it will fulfill your needs.

I haven't yet tested gcc builds, 10.4 and 10.5, etc, etc.

Fixing the gui is obviously better. Just tedious.

Note: See TracTickets for help on using tickets.