Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64890 closed defect (fixed)

ffmpeg: samba4 dependency

Reported by: jpmelko Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: ffmpeg samba4

Description

On catalina

Bacchus:root root# port echo requested
AtomicParsley                  @0.9.0_1 
exiftool                       @12.400.0_0+perl5_34 
ffmpeg                         @4.4.1_1+darwinssl+gpl2+gpl3+jack+libdc1394+librtmp+nonfree+x11 
inetutils                      @2.2_0+client 
mediainfo                      @21.09_0 
MPlayer                        @1.3.0_8+a52+aa+caca+dirac+dts+dv+esd+faac+fribidi+glx+live+man_all_lang+mencoder_extras+mng+osd+sdl+smb+speex+twolame+x11+x264+xvid 
rtmpdump                       @2.4-20190330_2 
unrar                          @6.1.6_0 
youtube-dl                     @2021.12.17_1+ffmpeg+python310 
Bacchus:root root# port upgrade ffmpeg
--->  Computing dependencies for samba4
Error: Can't install samba4 because conflicting ports are active: samba3
Error: Problem while installing samba4
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Change History (10)

comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Port: samba4 added
Status: newassigned
Summary: ffmpeg and samba4 dependencyffmpeg: samba4 dependency
Version: 2.7.2

This is not a bug per se, as samba3 and samba4 cannot currently be installed at the same time. (Though I plan to fix that, eventually.)

Can you check whether any installed ports require the former, via port dependents samba3?

comment:2 Changed 3 years ago by jpmelko

titi@Bacchus ~ % port dependents samba3
MPlayer depends on samba3
ffmpeg depends on samba3

comment:3 in reply to:  2 Changed 3 years ago by mascguy (Christopher Nielsen)

Replying to jpmelko:

titi@Bacchus ~ % port dependents samba3
MPlayer depends on samba3
ffmpeg depends on samba3

Thanks for confirming. I'll add a variant to allow the use of samba3, for folks who need/want it. (Thankfully ffmpeg works with both.)

comment:4 Changed 3 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In f758761f96b467a22d33fec462889dcb4ca09bd3/macports-ports (master):

ffmpeg/ffmpeg-devel: add variant samba3

  • Since 'samba3' and 'samba4' can't co-exist yet, allow users to override default

Fixes: #64890

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

This change should be available after two hours have passed.

At that point, resync your ports via sudo port selfupdate. And then install via:

sudo port -N install ffmpeg +darwinssl +gpl3 +jack +libdc1394 +librtmp +nonfree +x11 +samba3.

And let me know if all is well after the update!

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:6 Changed 3 years ago by jpmelko

all works fine

comment:7 in reply to:  6 Changed 3 years ago by mascguy (Christopher Nielsen)

Replying to jpmelko:

all works fine

Great, glad we were able to resolve your issue!

comment:8 Changed 3 years ago by mouse07410 (Mouse)

Well, I think I resolved this issue in a simpler/better way:

$ sudo port -f deactivate samba3
$ sudo port upgrade ffmpeg
$ sudo port uninstall inactive

After this, samba3 is replaced with samba4, which is probably for the better. ;-)

Note that neither ffmpeg nor Mplayer ports list samba (either 3 or 4) as a dependency - either build or library dependency:

$ port info Mplayer
MPlayer @1.3.0_8 (multimedia)
Variants:             a52, aa, caca, debug, dirac, dts, dv, esd, faac, fribidi, glx, lirc, live, man_all_lang, mencoder_extras, mng,
                      noappleremote, nodvd, osd, sdl, smb, speex, twolame, x11, x264, xvid

Description:          The MPlayer movie player built from SVN. It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4,
                      RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim,
                      and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and even H.264 movies.
Homepage:             http://www.mplayerhq.hu/

Extract Dependencies: xz
Build Dependencies:   pkgconfig, yasm
Library Dependencies: libjpeg-turbo, openjpeg15, lame, libiconv, libmad, gnutls, libogg, libopus, libpng, libtheora, libvorbis, lzo2,
                      ncurses, zlib, bzip2, liboil, libass, rtmpdump
Platforms:            darwin
License:              GPL-2+
Maintainers:          Email: jeremyhu@macports.org, GitHub: jeremyhu
                      Policy: openmaintainer

comment:9 in reply to:  8 Changed 3 years ago by mascguy (Christopher Nielsen)

Replying to mouse07410:

Note that neither ffmpeg nor Mplayer ports list samba (either 3 or 4) as a dependency - either build or library dependency:

Bear in mind that Samba comes into play when ffmpeg is installed with variant +gpl3. As for mplayer, that occurs when variant +smb is selected.

So, you'll need to enable the appropriate variant when checking a port, to see the dependency.

In any case, relative to a better fix, we might be able to switch to a path-style dep for Samba everywhere. But I'll first need to test the other dependents, to see whether Samba 4 works elsewhere too.

In the interim, I'll update ffmpeg to do so, and eliminate the samba3 variant.

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:10 Changed 3 years ago by Christopher Nielsen <mascguy@…>

In 67bbabc559afa21076ed4b5553f21b89670bd8a7/macports-ports (master):

ffmpeg/ffmpeg-devel: use path dep for samba3; remove variant samba3

  • Port works with both 'samba3' and 'samba4', allowing user to install either
  • Also switch back to 'samba3' as the default, to minimize user pain

See: #64890

Note: See TracTickets for help on using tickets.