pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Qt6 needs patch?



On Tue, 2023-06-27 at 22:28 -0400, David H. Gutteridge wrote:
> On Tue, 27 Jun 2023 at 20:04:49 -0500, Jason Bacon wrote:
> > I'll look into this when I get a change, assuming someone else
> > doesn't
> > know the solution.  Seems NetBSD 9.3 has no C++ <filesystem> header,
> > so
> > 
> > #include <QFileDialog>
> > 
> > generates the following error:
> > 
> > In file included from
> > /home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/incl
> > ude
> /QtCore/qdir.h:8:0,
> >                 from
> > /home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/incl
> > ude
> /QtWidgets/qfiledialog.h:8,
> >                 from
> > /home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/incl
> > ude
> /QtWidgets/QFileDialog:1,
> >                 from QShell.cpp:2:
> > /home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/incl
> > ude
> /QtCore/qfile.h:13:10:
> > fatal error: filesystem: No such file or directory
> > #include <filesystem>
> >          ^~~~~~~~~~~~
> > compilation terminated.
> > *** [QShell.o] Error code 1
> > 
> > bmake: stopped in
> > /home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/qmediamanager-
> dcc06eb2bae989c24f17714948e39ce57f164dde
> > 1 error
> 
> Yes, the GCC in base for NetBSD 9.x doesn't offer some C++17 features
> that are now expected by some projects, including <filesystem>. The
> workaround/kludge is to force a newer version of GCC to be used from
> pkgsrc, e.g., with GCC_REQD+= 8 or newer (not an ideal approach). This
> has come up before with other packages, see for example:
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56604

I see that x11/qt6-qtbase/Makefile.common contains

# https://doc.qt.io/qt-6/supported-platforms.html
GCC_REQD+=		9

(However, that's not included in the buildlink settings.)

Regards,

Dave



Home | Main Index | Thread Index | Old Index