Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944786 - media-gfx/freecad-1.0.0[-qt6]: src/App/Document.h:38:10: fatal error: QString: No such file or directory
Summary: media-gfx/freecad-1.0.0[-qt6]: src/App/Document.h:38:10: fatal error: QString...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 944817
  Show dependency tree
 
Reported: 2024-11-23 23:16 UTC by xiaojie+bugzillagentoo
Modified: 2024-12-01 16:05 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,416.41 KB, text/x-log)
2024-11-23 23:16 UTC, xiaojie+bugzillagentoo
Details
emerge --info (emerge-info,6.53 KB, text/plain)
2024-11-23 23:16 UTC, xiaojie+bugzillagentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xiaojie+bugzillagentoo 2024-11-23 23:16:29 UTC
Created attachment 911720 [details]
build.log

freecad-0.21.2-r3 compiling (and running) fine.
Update to freecad-1.0.0 fails to compile, with lots of errors like :

In file included from /var/tmp/portage/media-gfx/freecad-1.0.0/work/FreeCAD-1.0.0/src/Mod/Import/App/ExportOCAF.cpp:46:
/var/tmp/portage/media-gfx/freecad-1.0.0/work/FreeCAD-1.0.0/src/App/Document.h:38:10: fatal error: QString: No such file or directory
   38 | #include <QString>
      |          ^~~~~~~~~
Comment 1 xiaojie+bugzillagentoo 2024-11-23 23:16:51 UTC
Created attachment 911721 [details]
emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2024-11-23 23:26:32 UTC
This seems to still be building with Qt5, please emerge --sync which now forces Qt6 due to pyside2 being last-rited.

If it builds fine with Qt6, then there will be nothing to do here (hardly matters if the Qt5 build is broken now).
Comment 3 xiaojie+bugzillagentoo 2024-11-24 16:52:16 UTC
I confirm that with proper qt6 USE flags (I had "qt5 -qt6" in several places) Freecad 1.0.0 compiles ok - except if you meddle with the other, freecad-oriented USE flags, but that will be another bug report.
Comment 4 Larry the Git Cow gentoo-dev 2024-11-25 15:32:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d32adacc9b5a2053223ec125cbdd73ca8dba713c

commit d32adacc9b5a2053223ec125cbdd73ca8dba713c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-11-24 21:03:09 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-11-25 15:30:00 +0000

    media-gfx/freecad: Drop option to build with Qt5 and all quirks with it
    
    Closes: https://bugs.gentoo.org/944786
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/freecad/freecad-1.0.0-r1.ebuild | 73 +++++++------------------------
 media-gfx/freecad/freecad-9999.ebuild     | 73 +++++++------------------------
 2 files changed, 30 insertions(+), 116 deletions(-)