circular dependency ffmpeg<->x264 - broken pkgng database???

Kubilay Kocak koobs.freebsd at
Sun Feb 23 09:09:44 UTC 2014

On 19/02/2014 9:41 AM, Bengt Ahlgren wrote:
> I build and update my ports using portmaster on 9.1-REL with pkgng
> enabled, and create a repo with pkg create -a and pkg repo.
> One of my client machines upgrading ports from that repo suddenly
> complained about a lot of unresolved dependencies and refused to
> upgrade.  Of the long list of unresolved dependencies, these two,
> circular, stand out:
> multimedia/x264: multimedia/ffmpeg
> multimedia/ffmpeg: multimedia/x264
> Strange...  Checking the build machine, x264 seems to have a bogus
> dependency on ffmpeg:
> # pkg info -d x264
> x264-0.136.2358_3:
>         gpac-libgpac-0.5.0,1
>         ffmpeg-2.1.1_1,1
> The complaining client has this instead, which I believe is correct:
> #  pkg info -d x264
> x264-0.136.2358_1:
>         gpac-libgpac-0.5.0,1
>         png-1.5.17
>         jpeg-8_4
> I tried rebuilding multimedia/x264, but there was no change, despite
> that the the ports tree seems ok:
> # make -C /usr/ports/multimedia/x264 run-depends-list
> /usr/ports/multimedia/gpac-libgpac
> The client was upgraded the last time on Jan 11, so I guess that the
> problem appeared after that date.  How come the incorrect (circular)
> dependency gets created?  How can I fix this?
> Pkg version is:
> # pkg -v
> 1.2.6
> The build machine has a ports tree updated with portsnap on Feb 14 at
> about 21:16 CET (UTC+1).
> Bengt
> _______________________________________________
> freebsd-ports at mailing list
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at"

Thanks for your report Bengt, I'm working on isolating it.

Thus far it looks like:

a) the swscale feature is autodetecting the presence of ffmpeg and
linking against it.
b) pkg is seeing the link and automagically registering the dependency
on the ffmpeg port/pkg.

Should have something to commit soon.

More information about the freebsd-ports mailing list