Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834424 - www-plugins/lightspark-0.8.5 with ffmpeg-5.0: src/backends/decoder.cpp:164:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
Summary: www-plugins/lightspark-0.8.5 with ffmpeg-5.0: src/backends/decoder.cpp:164:43...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 21:52 UTC by Kobboi
Modified: 2022-09-02 00:51 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,5.50 KB, application/gzip)
2022-02-28 21:52 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 21:52 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 21:52:10 UTC
[20/248] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_LIBAVCODEC -DGNASH_PATH=\"/usr/bin/gnash\" -DHAVE_ATOMIC -DHAVE_AVCODECID -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVCODEC_RECEIVE_FRAME -DHAVE_AVCODEC_SEND_PACKET -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_AV_FRAME_ALLOC -DHAVE
_AV_FRAME_UNREF -DHAVE_AV_PACKET_UNREF -DHAVE_LIBSWRESAMPLE -DLIGHTSPARK_64 -DLS_DATADIR=\"/usr/share/lightspark\" -DPRIVATELIBDIR=\"/usr/lib64/lightspark\" -Dspark_EXPORTS -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5_build -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/includ
e -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/SDL2 -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src -I/var/tmp/po
rtage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/scripting -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/3rdparty/jxrlib/jxrgluelib  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Wdisabled-optimization -Wext
ra -Wno-unused-parameter -Wno-invalid-offsetof -fPIC -MD -MT src/CMakeFiles/spark.dir/backends/decoder.cpp.o -MF src/CMakeFiles/spark.dir/backends/decoder.cpp.o.d -o src/CMakeFiles/spark.dir/backends/decoder.cpp.o -c /var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp
FAILED: src/CMakeFiles/spark.dir/backends/decoder.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_LIBAVCODEC -DGNASH_PATH=\"/usr/bin/gnash\" -DHAVE_ATOMIC -DHAVE_AVCODECID -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVCODEC_RECEIVE_FRAME -DHAVE_AVCODEC_SEND_PACKET -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_AV_FRAME_ALLOC -DHAVE_AV_FRAME
_UNREF -DHAVE_AV_PACKET_UNREF -DHAVE_LIBSWRESAMPLE -DLIGHTSPARK_64 -DLS_DATADIR=\"/usr/share/lightspark\" -DPRIVATELIBDIR=\"/usr/lib64/lightspark\" -Dspark_EXPORTS -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5_build -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/
include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/SDL2 -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src -I/var/tmp/portage/www
-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/scripting -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/3rdparty/jxrlib/jxrgluelib  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Wdisabled-optimization -Wextra -Wno-u
nused-parameter -Wno-invalid-offsetof -fPIC -MD -MT src/CMakeFiles/spark.dir/backends/decoder.cpp.o -MF src/CMakeFiles/spark.dir/backends/decoder.cpp.o.d -o src/CMakeFiles/spark.dir/backends/decoder.cpp.o -c /var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp: In member function ‘virtual void lightspark::FFMpegVideoDecoder::switchCodec(lightspark::LS_VIDEO_CODEC, uint8_t*, uint32_t, double)’:
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:164:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  164 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:172:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  172 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:183:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  183 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:194:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  194 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp: In constructor ‘lightspark::FFMpegVideoDecoder::FFMpegVideoDecoder(AVCodecParameters*, double)’:
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:245:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  245 |         AVCodec* codec=avcodec_find_decoder(codecPar->codec_id);
      |                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            const AVCodec*


Reproducible: Always
Comment 1 Kobboi 2022-02-28 21:52:33 UTC
Created attachment 766103 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 21:52:37 UTC
Created attachment 766104 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 21:58:24 UTC
Compiles fine with 
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-26 05:46:57 UTC
(In reply to Sam James from comment #4)
> Patches (not checked if they apply):
> https://github.com/lightspark/lightspark/commit/
> 50297fc5f79cd88aebf7ef86aa9466d7933dce65
> https://github.com/lightspark/lightspark/commit/
> e525ae0c317e79b2eabe9d4e657833e3dc290eb7
> https://github.com/lightspark/lightspark/commit/
> cd8328de3655074f527a168a254053c168766dd6

... aaand they don't. I guess we can beg upstream for a new release.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 00:51:44 UTC
(In reply to Sam James from comment #5)
> (In reply to Sam James from comment #4)
> > Patches (not checked if they apply):
> > https://github.com/lightspark/lightspark/commit/
> > 50297fc5f79cd88aebf7ef86aa9466d7933dce65
> > https://github.com/lightspark/lightspark/commit/
> > e525ae0c317e79b2eabe9d4e657833e3dc290eb7
> > https://github.com/lightspark/lightspark/commit/
> > cd8328de3655074f527a168a254053c168766dd6
> 
> ... aaand they don't. I guess we can beg upstream for a new release.

Done:

commit 392165de958292aac934ec355055a1093d7e656f
Author: Michał Górny <mgorny@gentoo.org>
Date:   Tue Aug 30 07:18:25 2022 +0200

    www-plugins/lightspark: Bump to 0.8.6.1

    Signed-off-by: Michał Górny <mgorny@gentoo.org>