[MacPorts] #66424: FFmpeg{-upstream} Portfiles seems to have an inordinate amount of dependencies? Is there a way to improve upon this?
MacPorts
noreply at macports.org
Fri Dec 9 03:40:54 UTC 2022
#66424: FFmpeg{-upstream} Portfiles seems to have an inordinate amount of
dependencies? Is there a way to improve upon this?
----------------------+-----------------------------
Reporter: artkiver | Owner: (none)
Type: request | Status: new
Priority: Low | Milestone: MacPorts Future
Component: ports | Version:
Keywords: | Port:
----------------------+-----------------------------
Hi there!
So I went to install FFmpeg and balked at the number of dependencies it
wants to install.
e.g.
{{{
% port -v rdeps ffmpeg-upstream
}}}
(then copy and paste that output into a file and run wc:)
{{{
% wc
344 344 10972
}}}
Or if running:
{{{
% port -v install
---> Computing dependencies for
ffmpeg...............................................................................................................................................................
The following dependencies will be installed:
}}}
(omitting 158 ports listed)
{{{
Continue? [Y/n]:
}}}
Some of these, seem, *excessive* to understate it. kerberos5? rsync?
So, I decided to instead:
{{{
% git clone https://git.ffmpeg.org/ffmpeg.git
% cd ffmpeg
% ./configure
% make
}}}
Which seemed to function with 0 issues and produce a functional FFmpeg
binary.
Taking this one step further, I decided to create my own Portfile, and see
if this was much different, and no surprise: it wasn't.
Albeit, due to use of xz, the rdeps are still 8, but I am guessing even
those could be whittled down if using a tar.gz instead of a .bz2?
{{{
% port -v rdeps
The following ports are dependencies of ffmpeg @5.1.2_0:
bin:xz:xz
port:gettext
port:diffutils-for-muniversal
port:libiconv
port:gperf
port:libtextstyle
port:ncurses
port:gettext-runtime
port:gettext-tools-libs
}}}
Now, I am guessing probably a lot of things in the existing Portfile are
maybe useful for older builds of OS X than Ventura?
Maybe there is some default variant stuff that is bringing along a lot of
unnecessary cruft?
Obviously, there's also the +nonfree variant which focuses on things which
shouldn't be redistributed, but even without that the default dependencies
seem to be an awful lot.
Is there a way to turn that off some of this extra cruft and have a more
minimal installation?
I mean, well, obviously the test Portfile I created is one possible way;
but I mean more generally?
Thanks!
--
Ticket URL: <https://trac.macports.org/ticket/66424>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list