Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942964 - media-libs/aubio-0.4.9-r4[ffmpeg] does not build against ffmpeg-7
Summary: media-libs/aubio-0.4.9-r4[ffmpeg] does not build against ffmpeg-7
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 953559
Blocks: ffmpeg-7.0
  Show dependency tree
 
Reported: 2024-11-06 23:35 UTC by Alexey Chernyak
Modified: 2025-04-11 19:37 UTC (History)
2 users (show)

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


Attachments
aubio-9999.ebuild (aubio-9999.ebuild,3.98 KB, text/plain)
2024-11-14 05:14 UTC, Egor Y. Egorov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernyak 2024-11-06 23:35:39 UTC
ffmpeg-7 has changed API which causes build to fail:

../src/io/source_avcodec.c: In function ‘new_aubio_source_avcodec’:
../src/io/source_avcodec.c:266:35: error: ‘AVCodecContext’ has no member named ‘channels’
  266 |   s->input_channels   = avCodecCtx->channels;
      |                                   ^~
../src/io/source_avcodec.c: In function ‘aubio_source_avcodec_reset_resampler’:
../src/io/source_avcodec.c:319:28: error: implicit declaration of function ‘av_get_default_channel_layout’ [-Wimplicit-function-declaration]
  319 |     int64_t input_layout = av_get_default_channel_layout(s->input_channels);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/io/source_avcodec.c: In function ‘aubio_source_avcodec_readframe’:
../src/io/source_avcodec.c:376:67: error: ‘AVCodecContext’ has no member named ‘channels’
  376 |   int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
      |                                                                   ^~
../src/io/source_avcodec.c:443:14: error: ‘AVFrame’ has no member named ‘channels’
  443 |   if (avFrame->channels != (sint_t)s->input_channels) {
      |              ^~
In file included from ../src/io/source_avcodec.c:21:
../src/io/source_avcodec.c:446:16: error: ‘AVFrame’ has no member named ‘channels’
  446 |         avFrame->channels, s->input_channels, s->path);
      |                ^~
../src/aubio_priv.h:240:81: note: in definition of macro ‘AUBIO_WRN’
  240 | #define AUBIO_WRN(...)               aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__)
      |                                                                                 ^~~~~~~~~~~
../src/io/source_avcodec.c:465:63: error: ‘AVCodecContext’ has no member named ‘channels’
  465 |   max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
      |                                                               ^~



Builds fine against the upstream latest source_avcodec.c (see URL).
Comment 1 Egor Y. Egorov 2024-11-14 05:14:24 UTC
Created attachment 908694 [details]
aubio-9999.ebuild
Comment 2 Egor Y. Egorov 2024-11-14 05:15:06 UTC
aubio-9999 build fine with ffmpeg-7 in my case
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-06 02:08:54 UTC
Last release is from 2019. Maybe we want a snapshot. See also https://github.com/aubio/aubio/issues/397.
Comment 4 Larry the Git Cow gentoo-dev 2025-03-12 10:14:40 UTC
The bug has been referenced in the following commit(s):

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

commit 094fdcf4149ba78197dad438b7545ff4a145cf90
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-03-12 00:42:09 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-03-12 10:11:42 +0000

    media-libs/aubio: use ffmpeg-compat
    
    Seems already fixed upstream, but not planning to handle a potential
    snapshot or backports + testing myself.
    
    Given no code changes, plans are to sync keywords back with stable
    when ready.
    
    Bug: https://bugs.gentoo.org/942964
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/aubio/aubio-0.4.9-r5.ebuild | 182 +++++++++++++++++++++++++++++++++
 1 file changed, 182 insertions(+)