Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76030 - [xpra] FTBFS due to incorrect ffmpeg version

Attached to Project: Community Packages
Opened by Moody (Moody) - Tuesday, 27 September 2022, 08:29 GMT
Last edited by Toolybird (Toolybird) - Friday, 24 March 2023, 02:57 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

ffmpeg deprecates the `channels` field, which causes:

xpra/codecs/enc_ffmpeg/encoder.c: In function ‘__pyx_pf_4xpra_6codecs_10enc_ffmpeg_7encoder_7Encoder_10init_audio’:
xpra/codecs/enc_ffmpeg/encoder.c:17605:3: error: ‘channels’ is deprecated [-Werror=deprecated-declarations]
17605 | __pyx_v_self->audio_ctx->channels = 2;
| ^~~~~~~~~~~~
In file included from xpra/codecs/enc_ffmpeg/encoder.c:848:
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
1006 | int channels;
| ^~~~~~~~
cc1: all warnings being treated as errors
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().

========
changing depends=ffmpeg to depends=ffmpeg4.4 resolves the problem


Additional info:
* package version(s): xpra 4.3.3-1, ffmpeg 2:5.1.1-3
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 24 March 2023, 02:57 GMT
Reason for closing:  Fixed
Additional comments about closing:  xpra 4.4.3-2
Comment by loqs (loqs) - Tuesday, 27 September 2022, 21:35 GMT
What if the deprecation is no longer treated as an error as upstream did in [1][2]? Does applying the attached PKGBUILD.diff [3] resolve the issue?
diff also updates pkgver for new upstream release and removes no longer used PKG_CONFIG_PATH export.

[1] https://github.com/Xpra-org/xpra/commit/3fc230dbdd78f564a01774c4b355cee4ad08cdb6
[2] https://github.com/Xpra-org/xpra/commit/4cf2eb6d34a79f9704b593fd0781495badefa9ea
[3] PKGBUILD.diff

Loading...