Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Mar 2014 22:22:37 +0100
From:      Jan Henrik Sylvester <me@janh.de>
To:        ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   Circular dependency, because x264 links ffmpeg
Message-ID:  <5316441D.8080607@janh.de>

next in thread | raw e-mail | index | archive | help
# pkg info -r ffmpeg
ffmpeg-2.1.1_1,1:
        libxine-1.2.4_5
        vlc-2.1.2_2,4
        libstreamanalyzer-0.7.8_3
        x264-0.136.2358_3
# pkg info -r x264
x264-0.136.2358_3:
        ffmpeg-2.1.1_1,1
        ffmpeg0-0.7.16_1,1
        opal-3.10.10_2
        vlc-2.1.2_2,4

Not good. Since multimedia/ffmpeg depends on multimedia/x264 by default
(the option X264 is enabled by default), my x264 installation must be
broken.

After forcibly deleting x264 and rebuilding the port, it still depends
on ffmpeg:

# pkg which /usr/local/bin/x264
/usr/local/bin/x264 was installed by package x264-0.136.2358_3
# readelf -d /usr/local/bin/x264 | grep libav
 0x0000000000000001 (NEEDED)             Shared library: [libavutil.so.52]
# pkg which /usr/local/lib/libavutil.so.52
/usr/local/lib/libavutil.so.52 was installed by package ffmpeg-2.1.1_1,1

The x264 port is doing something wrong (in the presence of ffmpeg).

This will probably only happening building ports in an unclean
environment, but I would have expected pkg to detect this and warn while
registering the pkg, while creating a package from it, or while this
package is installed on another machine. I never saw a warning.

Cheers,
Jan Henrik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5316441D.8080607>