<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16312</bug_id>
          
          <creation_ts>2026-06-10 18:35:46 +0000</creation_ts>
          <short_desc>Circular dependency between ffmpeg and x264</short_desc>
          <delta_ts>2026-10-22 15:30:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>multimedia</component>
          <version>6.99</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vyacheslav Yurkov">uvv.mail</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>mathieu.dubois-briand</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105812</commentid>
    <comment_count>0</comment_count>
    <who name="Vyacheslav Yurkov">uvv.mail</who>
    <bug_when>2026-06-10 18:35:46 +0000</bug_when>
    <thetext>ERROR: Task /work/build/openembedded-core/meta/recipes-multimedia/ffmpeg/ffmpeg_8.0.1.bb:do_create_recipe_spdx has circular dependency on /work/build/openembedded-core/meta/recipes-multimedia/x264/x264_git.bb:do_create_recipe_spdx

Seen on Wrynose. I suspect it&apos;s the same in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105813</commentid>
    <comment_count>1</comment_count>
    <who name="Vyacheslav Yurkov">uvv.mail</who>
    <bug_when>2026-06-10 18:38:02 +0000</bug_when>
    <thetext>Correction, only when the ffmpeg config is extended with:

ffmpeg_%.bbappend:1:PACKAGECONFIG:append = &quot; x264&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105848</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2026-06-11 15:52:13 +0000</bug_when>
    <thetext>This appears to be because ffmpeg and x264 actually have a circular dependency on each other, and not specific to SPDX. ffmpeg.bb has:

PACKAGECONFIG[x264] = &quot;--enable-libx264,--disable-libx264,x264&quot;

while x264.bb has:

PACKAGECONFIG[ffmpeg] = &quot;--enable-lavf --enable-swscale,--disable-lavf --disable-swscale,ffmpeg&quot;


Thus, if &quot;x264&quot; is enabled in ffmpeg and &quot;ffmpeg&quot; is enabled in x264, they have a circular build time dependency.

I&apos;m not sure how to break this other than add a comment in each recipe that indicates this is the case (or some sort of ffmpeg-minimal shenanigans). I will add a comment at least.

Regardless, it&apos;s not an SPDX problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105849</commentid>
    <comment_count>3</comment_count>
    <who name="Vyacheslav Yurkov">uvv.mail</who>
    <bug_when>2026-06-11 16:05:42 +0000</bug_when>
    <thetext>Yes, I also came to the same conclusion. It seems like x264 doesn&apos;t need the whole ffmpeg, but only a few libraries from there. If we split them in a subpackage, would that work for DEPENDS? But I doubt it, IIRC it works on a recipe level, not on a package level, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105850</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2026-06-11 16:09:24 +0000</bug_when>
    <thetext>Correct; since it&apos;s a build time dependency loop, it occurs before packaging is even known (in fact, circular runtime dependencies are allowed).

The solution is _probably_ some sort of &quot;minimal&quot; or &quot;initial&quot; ffmpeg build that doesn&apos;t produce packages and that x264 can depend on at build time, but then it&apos;s runtime dependencies are on the &quot;full&quot; ffmepg; making sure the two versions of ffmpeg are built the same (such that they are interchangeable at runtime) is the tricky part of that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106573</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-20 12:41:25 +0000</bug_when>
    <thetext>Comment was added: https://git.openembedded.org/openembedded-core/commit/?id=757a032c5c7672ee66ec4984d34e1f03052936ad

I believe the underlying issue still has to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107173</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2026-10-22 15:30:10 +0000</bug_when>
    <thetext>Not sure how to fix the circular dependency. The comment lets the users know of the problem, but I won&apos;t have time to fix it &quot;properly&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>