Re: installation of youtube-dl

Scott Hannahs via Fink-users <[email protected]> Fri, 14 Jun 2024 09:25:12 -0400
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
Giuliano,

By running Xcode 15.4, I assume you are building on MacOS Sonoma or later.

It seems that youtube-dl requires python2.7.   This is not in the build depends or the regular depends for that package.  I think it assumes an older OS which had python 2.7 installed by default.

So make a copy of the youtube-dl into your local tree.  Edit it to have a depends on python 2.7.  Then find which script has the explicit path to python2.7 and change it from "/usr/bin/python2.7” to /opt/sw/bin/python2.7.

If that then builds, then create a patch that edits that script changing /usr/bin/python2.7 to %p/bin/python2.7

Submit the updates to the maintainers.

-Scott

> On Jun 14, 2024, at 04:25, Franchetti, Giuliano Dr. <[email protected]> wrote:
> 
> Hello, 
> 
> YouTube-dl does not install. Below is the message from fink
> 
> Thanks 
> 
> 	Giuliano
> 
> rm -rf zip
> echo '#!/usr/bin/python2.7' > youtube-dl
> cat youtube-dl.zip >> youtube-dl
> rm youtube-dl.zip
> chmod a+x youtube-dl
> COLUMNS=80 /usr/bin/python2.7 youtube_dl/__main__.py --help | /usr/bin/python2.7 devscripts/make_readme.py
> /bin/sh: /usr/bin/python2.7: No such file or directory
> /bin/sh: /usr/bin/python2.7: No such file or directory
> make: *** [Makefile:76: README.md] Error 127
> ### execution of make failed, exit code 2
> ### execution of /tmp/fink.Mn614 failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /opt/sw2/bin/dpkg-lockwait -r fink-buildlock-youtube-dl-2021.12.17-2
> (Reading database ... 282568 files and directories currently installed.)
> Removing fink-buildlock-youtube-dl-2021.12.17-2 (2024.06.14-10.23.24) ...
> Failed: phase installing: youtube-dl-2021.12.17-2 failed
> 
> Also include the following system information:
> Package manager version: 0.45.99.git
> Distribution version: selfupdate-git Thu Jun 13 11:30:13 2024, 13.0, x86_64
> Trees: local/main stable/main local/injected
> Xcode.app: 15.4
> Xcode command-line tools: 15.3.0.0.1.1708646388
> Max. Fink build jobs:  1
\

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users