<?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>9104</bug_id>
          
          <creation_ts>2016-02-12 03:09:01 +0000</creation_ts>
          <short_desc>ffmpeg libraries are missing -dbg packaging</short_desc>
          <delta_ts>2022-08-24 11:35:11 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Pavel Zhukov">pavel</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>58939</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2016-02-12 03:09:01 +0000</bug_when>
    <thetext>At least when built for i.MX6
  OE-core: 7d5d8d0cd985edf507c8d00e2e162d1b9fff3589 (Poky)
Here are the packages that are built:
$ ls tmp/work/cortexa9hf-neon-amltd-linux-gnueabi/ffmpeg/2.8.5-r0/packages-split -1
ffmpeg
ffmpeg-dbg
ffmpeg-dev
ffmpeg-doc
ffmpeg-locale
ffmpeg.shlibdeps
ffmpeg-staticdev
libavcodec
libavcodec-dev
libavcodec.shlibdeps
libavcodec-staticdev
libavdevice
libavdevice-dev
libavdevice.shlibdeps
libavdevice-staticdev
libavfilter
libavfilter-dev
libavfilter.shlibdeps
libavfilter-staticdev
libavformat
libavformat-dev
libavformat.shlibdeps
libavformat-staticdev
libavutil
libavutil-dev
libavutil.shlibdeps
libavutil-staticdev
libpostproc
libpostproc-dev
libpostproc.shlibdeps
libpostproc-staticdev
libswresample
libswresample-dev
libswresample.shlibdeps
libswresample-staticdev
libswscale
libswscale-dev
libswscale.shlibdeps
libswscale-staticdev

The missing -dbg may be a result of the packaging &quot;magic&quot; in the recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58958</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-12 15:50:23 +0000</bug_when>
    <thetext>This looks to be more core than ffmpeg-specific, I&apos;ll take this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58980</commentid>
    <comment_count>2</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2016-02-13 03:23:39 +0000</bug_when>
    <thetext>The actual problem seems to be that dependent packages expect libXXX-dbg whereas ffmpeg-dbg is where the debug info actually is.  For example, mplayer2 built with ffmpeg in DEPENDS doesn&apos;t get the necessary debug package[s]:

# opkg install mplayer2-dbg
Installing mplayer2-dbg (2.0+gitr0+2c378c71a4-r13.1) on root.
mplayer2-dbg: unsatisfied recommendation for libavformat-dbg
mplayer2-dbg: unsatisfied recommendation for libavutil-dbg
mplayer2-dbg: unsatisfied recommendation for libfaad-dbg
mplayer2-dbg: unsatisfied recommendation for libasound-dbg
mplayer2-dbg: unsatisfied recommendation for libavcodec-dbg
mplayer2-dbg: unsatisfied recommendation for libswresample-dbg
mplayer2-dbg: unsatisfied recommendation for libpostproc-dbg
mplayer2-dbg: unsatisfied recommendation for ncurses-libtinfo-dbg
mplayer2-dbg: unsatisfied recommendation for libswscale-dbg

If I manually install ffmpeg-dbg, all the necessary debug info is available.

Note: this is with IPK (opkg) packaging.  Other packaging has not [yet] been tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58983</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-13 22:58:49 +0000</bug_when>
    <thetext>Yes, that&apos;s basically the problem.  This happens before format-specific packaging code so it will impact all formats.

Basically the magic rdepends on foo-dbg assume that if package foo depends on bar then foo-dbg should depend on bar-dbg.  This obviously doesn&apos;t work well with recipes that split up into a number of libraries like ffmpeg.

I think the easiest fix would be to inject rprovides at packaging time.  Changing the depends so that mplayer-dbg depends on ffmpeg-dbg would be more accurate but more complicated to solve.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79512</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-20 20:09:35 +0000</bug_when>
    <thetext>Fixing this is way more than M4 material so bumping to 2.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92691</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-03-01 06:50:46 +0000</bug_when>
    <thetext>rpm generated -dbg but it doesn&apos;t look very useful:

$ rpm -qpl tmp/deploy/rpm/core2_64/ffmpeg-dbg-5.0-r0.core2_64.rpm 
(contains no files)


$ rpm -qpR tmp/deploy/rpm/core2_64/ffmpeg-dbg-5.0-r0.core2_64.rpm 
rpmlib(CompressedFileNames) &lt;= 3.0.4-1
rpmlib(FileDigests) &lt;= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) &lt;= 4.0-1
rpmlib(PayloadIsZstd) &lt;= 5.4.18-1


$ rpm -qpP tmp/deploy/rpm/core2_64/ffmpeg-dbg-5.0-r0.core2_64.rpm 
ffmpeg-dbg = 5.0-r0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93887</commentid>
    <comment_count>6</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-08-24 11:33:27 +0000</bug_when>
    <thetext>Looks like the issue is gone in latest master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93888</commentid>
    <comment_count>7</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-08-24 11:35:11 +0000</bug_when>
    <thetext>  ls tmp/work/*/ffmpeg/*/packages-split  -1
ffmpeg
ffmpeg-dbg
ffmpeg-dev
ffmpeg-doc
ffmpeg-locale
ffmpeg.shlibdeps
ffmpeg-src
ffmpeg-staticdev
libavcodec
libavcodec.shlibdeps
libavdevice
libavdevice.shlibdeps
libavfilter
libavfilter.shlibdeps
libavformat
libavformat.shlibdeps
libavutil
libavutil.shlibdeps
libpostproc
libswresample
libswresample.shlibdeps
libswscale
libswscale.shlibdeps

$ rpm -qpP tmp/deploy/rpm/core2_64/ffmpeg-dbg-5.1-r0.core2_64.rpm
ffmpeg-dbg = 5.1-r0
$ rpm -qpl tmp/deploy/rpm/core2_64/ffmpeg-dbg-5.1-r0.core2_64.rpm
/usr
/usr/bin
/usr/bin/.debug
/usr/bin/.debug/ffmpeg
/usr/bin/.debug/ffprobe
/usr/lib
/usr/lib/.debug
/usr/lib/.debug/libavcodec.so.59.37.100
/usr/lib/.debug/libavdevice.so.59.7.100
/usr/lib/.debug/libavfilter.so.8.44.100
/usr/lib/.debug/libavformat.so.59.27.100
/usr/lib/.debug/libavutil.so.57.28.100
/usr/lib/.debug/libswresample.so.4.7.100
/usr/lib/.debug/libswscale.so.6.7.100</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>