<?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>15537</bug_id>
          
          <creation_ts>2024-07-01 04:55:13 +0000</creation_ts>
          <short_desc>Unable to build gstreamer1.0-plugins-ugly with a52dec (liba52) is enabled</short_desc>
          <delta_ts>2024-07-08 19:44:01 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>5.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anh Nguyen">anh.nguyen.pv</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>99299</commentid>
    <comment_count>0</comment_count>
    <who name="Anh Nguyen">anh.nguyen.pv</who>
    <bug_when>2024-07-01 04:55:13 +0000</bug_when>
    <thetext>Add these to local.conf:

LICENSE_FLAGS_ACCEPTED = &quot;commercial&quot;
PACKAGECONFIG:pn-gstreamer1.0-plugins-ugly = &quot;a52dec&quot;

and get error:

Nothing PROVIDES &apos;liba52&apos; (but poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.24.3.bb DEPENDS on or otherwise requires it).

because liba52 recipe has been removed by commit 148e0c87ccfa60b13f9548afdc8b4d9fb8f05716

With my point of view, in case we remove liba52, we should remove place where we use it as well, and consider which one can be used to replace it.
In this case, I am wondering if we can replace liba52 by libav?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99316</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-04 14:43:06 +0000</bug_when>
    <thetext>We leave the packageconfig so that the feature is deterministically disabled.
If  you have an idea of how this could be handled differently, please send a patch to the list.

- YP bug reivewers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99327</commentid>
    <comment_count>2</comment_count>
      <attachid>5057</attachid>
    <who name="Anh Nguyen">anh.nguyen.pv</who>
    <bug_when>2024-07-05 04:37:13 +0000</bug_when>
    <thetext>Created attachment 5057
Remove a52dec into gstreamer ugly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99328</commentid>
    <comment_count>3</comment_count>
    <who name="Anh Nguyen">anh.nguyen.pv</who>
    <bug_when>2024-07-05 04:40:06 +0000</bug_when>
    <thetext>Let me explain more details:
 - Build &apos;bitbake core-image-weston&apos; --&gt; OK because it doesn&apos;t build gstreamer1.0-plugins-ugly.

My case:
 - Add these to local.conf to enable a52dec:
LICENSE_FLAGS_ACCEPTED = &quot;commercial&quot;
PACKAGECONFIG:pn-gstreamer1.0-plugins-ugly = &quot;a52dec&quot;
 - Build &apos;bitbake gstreamer1.0-plugins-ugly&apos;
 - Got Error:
Nothing PROVIDES &apos;liba52&apos; (but poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.24.3.bb DEPENDS on or otherwise requires it).

My solutions:
 - Option 1: Remove plugin a52dec into gstreamer1.0-plugins-ugly_1.24.3.bb
I added a patch to do that, it works (please check the attachment)
 - Option 2: Replace liba52 by libav (I will try and share a patch later).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99332</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-08 19:44:01 +0000</bug_when>
    <thetext>You may be heading in the right direction but as you saw in 148e0c87ccfa60b13f9548afdc8b4d9fb8f05716 the library isn&apos;t actively maintained.
Interestingly it is still packaged for recent Fedora releases: 
    https://pkgs.org/download/liba52

Anyway, once you have the &quot;replace liba52 by libav&quot; patch, please send it to the list, ideally CCing people who have worked on this part of oe-core such as Alex Kanavin. That&apos;s the best way to get changes reviewed and merged.

I&apos;m happy to provide a bit of feedback here as well, when I can.
-- Randy</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5057</attachid>
            <date>2024-07-05 04:37:13 +0000</date>
            <delta_ts>2024-07-05 04:37:13 +0000</delta_ts>
            <desc>Remove a52dec into gstreamer ugly</desc>
            <filename>gstreamer_ugly_remove_a52dec.patch</filename>
            <type>text/plain</type>
            <size>1005</size>
            <attacher name="Anh Nguyen">anh.nguyen.pv</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1tdWx0aW1lZGlhL2dzdHJlYW1lci9nc3RyZWFtZXIx
LjAtcGx1Z2lucy11Z2x5XzEuMjQuMy5iYiBiL21ldGEvcmVjaXBlcy1tdWx0aW1lZGlhL2dzdHJl
YW1lci9nc3RyZWFtZXIxLjAtcGx1Z2lucy11Z2x5XzEuMjQuMy5iYgppbmRleCA1MzNkZTAyMzRm
Li4xMDc0ZDNhZDI0IDEwMDY0NAotLS0gYS9tZXRhL3JlY2lwZXMtbXVsdGltZWRpYS9nc3RyZWFt
ZXIvZ3N0cmVhbWVyMS4wLXBsdWdpbnMtdWdseV8xLjI0LjMuYmIKKysrIGIvbWV0YS9yZWNpcGVz
LW11bHRpbWVkaWEvZ3N0cmVh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