Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942306 - sci-libs/vtk-9.3.0-r3 - fails to compile with dev-libs/libfmt-11.0.2
Summary: sci-libs/vtk-9.3.0-r3 - fails to compile with dev-libs/libfmt-11.0.2
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal blocker
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 906077
  Show dependency tree
 
Reported: 2024-10-27 00:10 UTC by Timo van Veen
Modified: 2024-12-03 16:43 UTC (History)
9 users (show)

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


Attachments
emerge --info and build log (vtk.log.gz,208.99 KB, application/gzip)
2024-10-27 00:12 UTC, Timo van Veen
Details
fix-libfmt-missing-join-include.patch (fmt.patch,2.67 KB, patch)
2024-11-29 17:23 UTC, Gabriel Marcano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timo van Veen 2024-10-27 00:10:54 UTC
Upstream has fixed the issue in the linked pull request, but libfmt-11 cannot be unmasked until a stable release is ready.
Comment 1 Timo van Veen 2024-10-27 00:12:38 UTC
Created attachment 906942 [details]
emerge --info and build log
Comment 2 Petr Vaněk gentoo-dev 2024-11-25 12:30:10 UTC
How about restricting the libfmt version in ebuild for now, or backporting the patch?
Comment 3 Gabriel Marcano 2024-11-29 17:21:13 UTC
The upstream patch seems incomplete. I had to patch a ton more files to get compilation to succeed. My hypothesis is that upstream builds with IOSS_DEBUG_OUTPUT defined, which includes the necessary header throughout more of the project. Without that definition (as seems to be the case when building for Gentoo?), a ton more includes need to be added throughout the project. It should probably be cleaned up a bit, but I do have a patch I've applied myself to get vtk to build. I'll upload it in a second.
Comment 4 Gabriel Marcano 2024-11-29 17:23:55 UTC
Created attachment 912725 [details, diff]
fix-libfmt-missing-join-include.patch

his is my patch for building vtk against libfmt-11.0.2. Compared to upstream's patch, this adds the required fmt ranges.h include to a lot more places (pretty much anywhere that calls the libfmt join() function). With this I'm successfully able to build vtk-9.3.0-r3 against libfmt-11.0.2.
Comment 5 Bernd Feige 2024-12-03 16:17:00 UTC
(In reply to Gabriel Marcano from comment #4)
> Created attachment 912725 [details, diff] [details, diff]
> fix-libfmt-missing-join-include.patch
> 
> his is my patch for building vtk against libfmt-11.0.2. Compared to
> upstream's patch, this adds the required fmt ranges.h include to a lot more
> places (pretty much anywhere that calls the libfmt join() function). With
> this I'm successfully able to build vtk-9.3.0-r3 against libfmt-11.0.2.

Worked well here, thanks!
Comment 6 Rémi Cardona 2024-12-03 16:43:19 UTC
(In reply to Gabriel Marcano from comment #4)
> Created attachment 912725 [details, diff] [details, diff]
> fix-libfmt-missing-join-include.patch

WFM. vtk builds ok with it and freecad 1.0 seems to be happy to. Though I have yet to use the software for anything (other than launching it).