Skip to contentSkip to conversation

Docs build/workers need inkscape?

DISCUSSION Richard Purdie 5 participants 6 messages Oct 12, 2024 – Oct 14, 2024

lore
Share & tools
lore
#0 lore raw

Hi All,

We've seeing docs build failures:

https://valkyrie.yoctoproject.org//#/builders/34/builds/6

The issue is that inkscape isn't installed on the workers and isn't in the docs buildtools tarball either.

I'm reluctant to start requiring installing inkscape on all autobuilder workers as we try and keep the packages installed minimal for the other builds.

I'm wondering if we should just pre-generate those png files alongside the svg sources? I can send a patch doing that...

Cheers,

Richard

#1 lore raw
Quoted 9 lines · Richard Purdie

Hi All,

We've seeing docs build failures:

https://valkyrie.yoctoproject.org//#/builders/34/builds/6

The issue is that inkscape isn't installed on the workers and isn't in the docs buildtools tarball either.

Quoted 6 lines

I'm reluctant to start requiring installing inkscape on all autobuilder workers as we try and keep the packages installed minimal for the other builds.

I'm wondering if we should just pre-generate those png files alongside the svg sources? I can send a patch doing that...

Antonin was suggesting using librsvg in an email you didn't receive, I'm going to forward it to you.

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
In reply to Richard Purdie

Hi Richard,

Quoted 9 lines · Richard Purdie via lists.yoctoproject.org

Hi All,

We've seeing docs build failures:

https://valkyrie.yoctoproject.org//#/builders/34/builds/6

The issue is that inkscape isn't installed on the workers and isn't in the docs buildtools tarball either.

Quoted 7 lines

I'm reluctant to start requiring installing inkscape on all autobuilder workers as we try and keep the packages installed minimal for the other builds.

I'm wondering if we should just pre-generate those png files alongside the svg sources? I can send a patch doing that...

This will necessarily mean we'll forget to update one or the other :/ It's bound to happen.

librsvg is Rust-based IIRC, so that adds up A LOT of build time to generate the buildtools tarball.

For my company's user manual, we use rsvg-convert (which seems to be coming from librsvg :) ).

Cheers,
Quentin

#3 lore raw
Quoted 20 lines · Quentin Schulz via lists.yoctoproject.org

Hi Richard,

Quoted 16 lines · Richard Purdie via lists.yoctoproject.org

Hi All,

We've seeing docs build failures:

https://valkyrie.yoctoproject.org//#/builders/34/builds/6

The issue is that inkscape isn't installed on the workers and isn't in
the docs buildtools tarball either.

I'm reluctant to start requiring installing inkscape on all autobuilder
workers as we try and keep the packages installed minimal for the other
builds.

Quoted 7 lines
Quoted 4 lines

I'm wondering if we should just pre-generate those png files alongside
the svg sources? I can send a patch doing that...

This will necessarily mean we'll forget to update one or the other :/ It's bound to happen.

Well, one is clearly derived from the other and listed in the makefile so I'd hope that makes it clear and relatively easy to fix.

I know what you mean though.

Quoted 2 lines

librsvg is Rust-based IIRC, so that adds up A LOT of build time to generate the buildtools tarball.

I think that ship has sailed...

Quoted 2 lines

For my company's user manual, we use rsvg-convert (which seems to be coming from librsvg :) ).

That could be easier for us to build rather than the whole of inkscape.

Cheers,

Richard

#4 lore raw
Quoted 9 lines · Richard Purdie
Quoted 2 lines

librsvg is Rust-based IIRC, so that adds up A LOT of build time to generate the buildtools tarball.

I think that ship has sailed...

Quoted 2 lines

For my company's user manual, we use rsvg-convert (which seems to be coming from librsvg :) ).

That could be easier for us to build rather than the whole of inkscape.

I don't think it's Rust-based, I was using librsvg2-2 which provides rsvg-convert, and has the following dependencies on debian/ubuntu:

libc6 (>= 2.34), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.15.12), libgcc-s1 (>= 4.2), libgdk-pixbuf-2.0-0 (>= 2.31.1), libglib2.0-0 (>= 2.50.0), libpango-1.0-0 (>= 1.45.5), libpangocairo-1.0-0 (>= 1.44.0), libxml2 (>= 2.9.0)

So yes, using rsvg-convert from this package would probably a lighter option compared to inkscape. It's also what Sphinx uses to convert images using the "sphinx.ext.imgconverter" extension (this would need to be double-checked though I'm not sure) with its LaTeX builder, I believe.

Cheers,
Antonin

--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#5 lore raw
Quoted 6 lines · Antonin Godard via lists.yoctoproject.org

I don't think it's Rust-based, I was using librsvg2-2 which provides rsvg-convert, and has the following dependencies on debian/ubuntu:

libc6 (>= 2.34), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.15.12), libgcc-s1 (>= 4.2), libgdk-pixbuf-2.0-0 (>= 2.31.1), libglib2.0-0 (>= 2.50.0), libpango-1.0-0 (>= 1.45.5), libpangocairo-1.0-0 (>= 1.44.0), libxml2 (>= 2.9.0)

Rust binaries don't have runtime dependencies on anything rust-based. It's all statically linked in.

But for building them rust is very much required:
https://packages.debian.org/source/sid/librsvg

Alex