On Mon, 16 May 2022 07:23:23 +0200 Helmut Grohne wrote:
> freetype participates in architecture bootstrap. As such, it must be
> careful about its Build-Depends. It now added librsvg2-dev, which is
> built from librsvg, which Build-Depends on rustc, which pulls llvm. This
> totally breaks architecture cross bootstrap.
>
> Beyond breaking practical architecture bootstrap, it also breaks
> theoretical architecture bootstrap, because librsvg Build-Depends on
> libfreetype-dev. This poses a cycle that cannot be solved.
>
> [snip]
>
>  * Judging the changlog, it could be demos that need rsvg without having
>    the main library actually use rsvg. In that case, it would be easy to
>    hide freetype2-demos behind a build profile (say
>    pkg.freetype.nodemos) and conditionalize the dependency to that
>    profile.

You are correct in saying that only the FreeType demos use librsvg if
it is available.

I've added support for your suggested build profile
(pkg.freetype.nodemos), since it's useful (and more efficient) to
build without the demos at times.

I have not yet added Build-Depends: librsvg2-dev <!stage1
!pkg.freetype.nodemos> to debian/control, as upstream is looking at
supporting other lighter SVG libraries that have a much smaller
dependency chain.

I hope this helps. Please let me know if you have any concerns.

Hugh

Reply via email to