github: install custom dia version#328
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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