Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918613 - media-video/ffmpeg-6.1[svg] fails to build against <gnome-base/librsvg-2.52.0
Summary: media-video/ffmpeg-6.1[svg] fails to build against <gnome-base/librsvg-2.52.0
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-11-26 18:38 UTC by jonys
Modified: 2023-11-26 18:40 UTC (History)
0 users

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


Attachments
Patch fixing FFmpeg-6.1 compilation against librsvg <=2.51 (file_918613.txt,470 bytes, text/plain)
2023-11-26 18:38 UTC, jonys
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonys 2023-11-26 18:38:32 UTC
Created attachment 875732 [details]
Patch fixing FFmpeg-6.1 compilation against librsvg <=2.51

FFmpeg 6.1 contains a bug in include guards in librsvgdec.c, which causes compilation against older librsvg versions (<gnome-base/librsvg-2.52.0) to fail with the following error:

```
src/libavcodec/librsvgdec.c:93:5: error: ‘viewport’ undeclared (first use in this function)
```

Newer librsvg (>=gnome-base/librsvg-2.52.0) uses a different API and is not affected.

After adding the necessary include guards (see attached patch), FFmpeg compiles. I've tested SVG handling with the patched version and it works fine, including scaling.

Upstream bug: https://trac.ffmpeg.org/ticket/10635