Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901003 - net-misc/freerdp-2.10.0 does not build with media-video/ffmpeg-6.0: error: ‘AV_CODEC_CAP_TRUNCATED’ undeclared
Summary: net-misc/freerdp-2.10.0 does not build with media-video/ffmpeg-6.0: error: ‘A...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 901257
  Show dependency tree
 
Reported: 2023-03-13 13:17 UTC by Daniel M. Weeks
Modified: 2023-06-07 10:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2023-03-13 13:17:56 UTC
Relevant snippet of build log:

/tmp/portage/net-misc/freerdp-2.10.0/work/freerdp-2.10.0/libfreerdp/codec/h264_ffmpeg.c:532:55: error: ‘AV_CODEC_CAP_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_HARDWARE’?
  532 |                 if (sys->codecDecoder->capabilities & AV_CODEC_CAP_TRUNCATED)
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~
      |                                                       AV_CODEC_CAP_HARDWARE
/tmp/portage/net-misc/freerdp-2.10.0/work/freerdp-2.10.0/libfreerdp/codec/h264_ffmpeg.c:532:55: note: each undeclared identifier is reported only once for each function it appears in
/tmp/portage/net-misc/freerdp-2.10.0/work/freerdp-2.10.0/libfreerdp/codec/h264_ffmpeg.c:534:60: error: ‘AV_CODEC_FLAG_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_QSCALE’?
  534 |                         sys->codecDecoderContext->flags |= AV_CODEC_FLAG_TRUNCATED;
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                            AV_CODEC_FLAG_QSCALE


Upstream issue: https://github.com/FreeRDP/FreeRDP/issues/8686
Patch to fix: https://github.com/FreeRDP/FreeRDP/commit/aa2cb9aa5ff5562433598ba168a466e0752bca0e

Reproducible: Always
Comment 1 Alexey Chernyak 2023-05-28 13:21:08 UTC
Upstream Stable patch to fix v2.10.0:
https://github.com/FreeRDP/FreeRDP/pull/8779/commits/c5d91f8ef584174310970d0f7e31d6ffad7c5246

Tested and works as a User Patch.
Comment 2 Larry the Git Cow gentoo-dev 2023-06-07 10:34:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da38705a58769604bc1561a23fc7bcd4f60d0056

commit da38705a58769604bc1561a23fc7bcd4f60d0056
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-07 10:33:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-07 10:33:36 +0000

    net-misc/freerdp: fix build w/ ffmpeg 6
    
    Closes: https://bugs.gentoo.org/901003
    Signed-off-by: Sam James <sam@gentoo.org>

 .../freerdp/files/freerdp-2.10.0-ffmpeg-6.patch    |  37 ++++++
 net-misc/freerdp/freerdp-2.10.0-r3.ebuild          | 137 +++++++++++++++++++++
 2 files changed, 174 insertions(+)