[MacPorts] #37733: ffmpeg fails to build against libsdl-devel

MacPorts noreply at macports.org
Tue Jan 22 17:06:59 PST 2013


#37733: ffmpeg fails to build against libsdl-devel
--------------------------+------------------------
  Reporter:  lllactive@…  |      Owner:  jeremyhu@…
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.1.2
Resolution:               |   Keywords:
      Port:  ffmpeg       |
--------------------------+------------------------

Comment (by lllactive@…):

 Replying to [comment:12 ryandesign@…]:
 > Replying to [comment:11 lllactive@…]:
 > > With sudo port installed dependentof:libsdl-devel I get:
 > >
 > > {{{
 > > The following ports are currently installed:
 > >   ffmpeg @0.5_5+darwin_10
 > >   ffmpeg @0.5.1_0+darwin_10
 > >   ffmpeg @0.5.1_1+darwin_10
 > >   ffmpeg @0.7.11_1+mmx
 > >   ffmpeg @0.7.13_2+gpl2+mmx
 > >   gegl @0.1.0_2+darwin_10
 > >   gegl @0.1.0_4+darwin_10
 > >   gegl @0.2.0_0+python27
 > >   gegl @0.2.0_2+python27
 > >   gegl @0.2.0_4+python27 (active)
 > > }}}
 > >
 > > Is that expected?
 >
 > It is, if those ports were installed while libsdl-devel was active. It's
 possible that at one time one of those ports did actually require libsdl-
 devel. But they don't now:
 > {{{
 > $ port -v deps ffmpeg gegl
 > Full Name: ffmpeg @1.0.1_1+gpl2
 > Build Dependencies:   port:pkgconfig, port:gmake, port:texi2html,
 port:yasm
 > Library Dependencies: port:lame, port:libvorbis, port:libopus,
 port:libogg,
 >                       port:libtheora, port:libmodplug, port:jack,
 port:dirac,
 >                       port:schroedinger, port:openjpeg, port:freetype,
 >                       path:lib/libspeex.dylib:speex, port:libvpx,
 >                       path:lib/pkgconfig/sdl.pc:libsdl, port:bzip2,
 port:zlib,
 >                       port:XviD, port:x264
 > --
 > Full Name: gegl @0.2.0_4+python27
 > Build Dependencies:   port:pkgconfig, port:intltool, port:w3m,
 port:python27
 > Library Dependencies: port:babl, port:gtk2, port:lua, port:openexr,
 port:exiv2,
 >                       port:libopenraw, port:librsvg,
 path:lib/pkgconfig/sdl.pc:libsdl,
 >                       path:lib/libavcodec.dylib:ffmpeg, port:libspiro,
 port:lensfun
 > }}}
 > And while they both declare a ''path'' dependency on libsdl (which means
 they're supposed to accept either libsdl or libsdl-devel), libsdl-devel is
 a rather different version of the software so I wouldn't be surprised if
 it doesn't actually work anymore in this case.
 >
 > > Should I now do:
 > >
 > > {{{
 > > sudo port -f deactivate libsdl-devel
 > > sudo port install libsdl
 > > sudo port clean ffmpeg
 > > sudo port upgrade ffmpeg
 > > }}}
 >
 > Yes.
 >
 > Assuming that works, I would also rebuild gegl, since your gegl was
 built against libsdl-devel, and it would be a good idea to rebuild it
 against libsdl.
 >
 > {{{
 > sudo port clean gegl
 > sudo port -ns upgrade --force gegl
 > }}}


 Tanks for the quick reply. I tried the first two steps:
 {{{
 #  sudo port installed dependentof:libsdl-devel
 Password:
 The following ports are currently installed:
   ffmpeg @0.5_5+darwin_10
   ffmpeg @0.5.1_0+darwin_10
   ffmpeg @0.5.1_1+darwin_10
   ffmpeg @0.7.11_1+mmx
   ffmpeg @0.7.13_2+gpl2+mmx
   gegl @0.1.0_2+darwin_10
   gegl @0.1.0_4+darwin_10
   gegl @0.2.0_0+python27
   gegl @0.2.0_2+python27
   gegl @0.2.0_4+python27 (active)

 #  sudo port -f deactivate libsdl-devel

 --->  Deactivating libsdl-devel @1.3.0-6248_0
 --->  Unable to deactivate libsdl-devel @1.3.0-6248_0, the following ports
 depend on it:
 --->    gegl @0.2.0_4+python27
 Warning: Deactivate forced.  Proceeding despite dependencies.
 --->  Cleaning libsdl-devel

 #  sudo port install libsdl
 --->  Computing dependencies for libsdl
 --->  Fetching archive for libsdl
 --->  Attempting to fetch libsdl-1.2.15_2+x11.darwin_11.x86_64.tbz2 from
 http://lil.fr.packages.macports.org/libsdl
 --->  Attempting to fetch libsdl-1.2.15_2+x11.darwin_11.x86_64.tbz2.rmd160
 from http://lil.fr.packages.macports.org/libsdl
 --->  Installing libsdl @1.2.15_2+x11
 --->  Activating libsdl @1.2.15_2+x11
 --->  Cleaning libsdl
 --->  Updating database of binaries: 100.0%
 --->  Scanning binaries for linking errors: 100.0%
 --->  Found 11 broken file(s), matching files to ports
 --->  Found 3 broken port(s), determining rebuild order
 --->  Rebuilding in order
      gegl @0.2.0 +python27
      opencv @2.4.3
      strigi @0.7.7
 --->  Computing dependencies for gegl
 --->  Dependencies to be installed: ffmpeg
 --->  Building ffmpeg
 Error: org.macports.build for port ffmpeg returned: command execution
 failed
 Error: Failed to install ffmpeg
 Please see the log file for port ffmpeg for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/main.log
 Error: The following dependencies were not installed: ffmpeg
 --->  Computing dependencies for opencv
 --->  Dependencies to be installed: ffmpeg
 --->  Building ffmpeg
 Error: org.macports.build for port ffmpeg returned: command execution
 failed
 Error: Failed to install ffmpeg
 Please see the log file for port ffmpeg for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/main.log
 Error: The following dependencies were not installed: ffmpeg
 --->  Computing dependencies for strigi
 --->  Dependencies to be installed: ffmpeg
 --->  Building ffmpeg
 Error: org.macports.build for port ffmpeg returned: command execution
 failed
 Error: Failed to install ffmpeg
 Please see the log file for port ffmpeg for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/main.log
 Error: The following dependencies were not installed: ffmpeg
 --->  Scanning binaries for linking errors: 100.0%
 --->  Found 11 broken file(s), matching files to ports
 --->  Found 3 broken port(s), determining rebuild order
 --->  Rebuilding in order
      gegl @0.2.0 +python27
      opencv @2.4.3
      strigi @0.7.7
 --->  Computing dependencies for gegl
 --->  Dependencies to be installed: ffmpeg
 --->  Building ffmpeg
 Error: org.macports.build for port ffmpeg returned: command execution
 failed
 Error: Failed to install ffmpeg
 Please see the log file for port ffmpeg for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/main.log
 Error: The following dependencies were not installed: ffmpeg
 Error: Unable to upgrade port: 1
 Error rebuilding gegl
     while executing
 "error "Error rebuilding $portname""
     (procedure "revupgrade_scanandrebuild" line 370)
     invoked from within
 "revupgrade_scanandrebuild broken_port_counts $opts"
     (procedure "macports::revupgrade" line 5)
     invoked from within
 "macports::revupgrade $opts"
     (procedure "action_revupgrade" line 2)
     invoked from within
 "action_revupgrade $action $portlist $opts"
     (procedure "action_target" line 94)
     invoked from within
 "$action_proc $action $portlist [array get global_options]"
     (procedure "process_cmd" line 95)
     invoked from within
 "process_cmd $remaining_args"
     invoked from within
 "if { [llength $remaining_args] > 0 } {

     # If there are remaining arguments, process those as a command
     set exit_status [process_cmd $remaining..."
     (file "/opt/local/bin/port" line 4784)
 }}}
 _______________________________________________________________________________

 :-(  Error again.

 {{{
 --->  Building ffmpeg
 Error: org.macports.build for port ffmpeg returned: command execution
 failed
 Error: Failed to install ffmpeg
 }}}

 What now?

-- 
Ticket URL: <https://trac.macports.org/ticket/37733#comment:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list