Skip to content

github: install custom dia version#328

Merged
Tropicao merged 1 commit into
bootlin:masterfrom
Tropicao:update_dia_in_container
May 19, 2026
Merged

github: install custom dia version#328
Tropicao merged 1 commit into
bootlin:masterfrom
Tropicao:update_dia_in_container

Conversation

@Tropicao
Copy link
Copy Markdown
Contributor

The version of Dia packaged in Fedora, even on recent Fedora releases (44) is super old: it targets the 0.97.3 which has been released in 2014 ([1], [2]). This version brings some issues in the container, like not being able to correctly embed PNG files when exporting diagrams to SVG. Dia is still receiving update and fixes though, even if there's no official release, and those newer versions do not expose the same bug and are capable of outputing correct SVG files.

One possibility to fix this issue could be to bisect the dia project to identify when the SVG export broke (or started working again ?), but:

  • the base version is super old
  • there are some major changes in between, like the whole build system having switched to meson

Rather than keeping on using this old version, build and install a fresher version of dia. Use the same version as the one currently targeted by the dia-git package exposed by Archlinux, as multiple Bootlin trainers are already successfully using this version to build training materials ([3], [4]). The custom build involve some additional development tools installation. It also needs some ldconfig update, as dia is vendoring its own libxml2

[1] https://src.fedoraproject.org/rpms/dia/blob/rawhide/f/dia.spec
[2] https://gitlab.gnome.org/GNOME/dia/-/commit/9f4220c0ba97239be45fbdd6b5138305e5c5db3e
[3] https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=dia-git&id=86cb4af3f8fccb8b36961e6e1973fb1e5ac74dd5
[3] https://gitlab.gnome.org/GNOME/dia/-/commit/3ce95975211707efe15d936923a2ae62433f27ec

The version of Dia packaged in Fedora, even on recent Fedora releases
(44) is super old: it targets the 0.97.3 which has been released in
2014 ([1], [2]). This version brings some issues in the container, like
not being able to correctly embed PNG files when exporting diagrams to
SVG. Dia is still receiving update and fixes though, even if there's no
official release, and those newer versions do not expose the same bug
and are capable of outputing correct SVG files.

One possibility to fix this issue could be to bisect the dia project to
identify when the SVG export broke (or started working again ?), but:
- the base version is super old
- there are some major changes in between, like the whole build system
  having switched to meson

Rather than keeping on using this old version, build and install a
fresher version of dia. Use the same version as the one currently
targeted by the dia-git package exposed by Archlinux, as multiple
Bootlin trainers are already successfully using this version to build
training materials ([3], [4]). The custom build involve some additional
development tools installation. It also needs some ldconfig update, as
dia is vendoring its own libxml2

[1] https://src.fedoraproject.org/rpms/dia/blob/rawhide/f/dia.spec
[2] https://gitlab.gnome.org/GNOME/dia/-/commit/9f4220c0ba97239be45fbdd6b5138305e5c5db3e
[3] https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=dia-git&id=86cb4af3f8fccb8b36961e6e1973fb1e5ac74dd5
[3] https://gitlab.gnome.org/GNOME/dia/-/commit/3ce95975211707efe15d936923a2ae62433f27ec

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
@Tropicao Tropicao merged commit 87110c3 into bootlin:master May 19, 2026
14 checks passed
@Tropicao Tropicao deleted the update_dia_in_container branch May 19, 2026 08:30
@github-actions github-actions Bot locked and limited conversation to collaborators May 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant