pkgsrc-Users archive

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

Re: Latest textproc/md4c update seems to break x11/qt6-qtbase build



On Fri, Oct 02, 2026 at 12:15:08PM +0100, Tobias Nygren wrote:
> On Fri, 2 Oct 2026 11:19:25 +0200
> Adam <adam%netbsd.org@localhost> wrote:
> 
> > > Hi,
> > > 
> > > It looks like the latest textproc/md4c update seems to break
> > > x11/qt6-qtbase build (NetBSD/amd64 11.0 using bob):
> > > 
> > > /home/builder/work/x11/qt6-qtbase/work/qtbase-everywhere-src-6.11.2/src/gui/text/qtextmarkdownimporter.cpp:54:57: error: static assertion failed
> > >   54 | static_assert(int(QTextMarkdownImporter::DialectGitHub) ==
> > >      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
> > >   55 |               (MD_DIALECT_GITHUB | MD_FLAG_UNDERLINE | QTextMarkdownImporter::FeatureFrontMatter));
> > >      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > /home/builder/work/x11/qt6-qtbase/work/qtbase-everywhere-src-6.11.2/src/gui/text/qtextmarkdownimporter.cpp:54:57: note: the comparison reduces to '(1068812 == 1593100)'
> > 
> > Try this:
> > 
> > --- src/gui/text/qtextmarkdownimporter.cpp.orig 2026-10-02 06:17:11.634188029 +0000
> > +++ src/gui/text/qtextmarkdownimporter.cpp
> > @@ -51,8 +51,6 @@ static_assert(int(QTextMarkdownImporter:
> >  static_assert(int(QTextMarkdownImporter::FeatureTasklists) == MD_FLAG_TASKLISTS);
> >  static_assert(int(QTextMarkdownImporter::FeatureNoHTML) == MD_FLAG_NOHTML);
> >  static_assert(int(QTextMarkdownImporter::DialectCommonMark) == MD_DIALECT_COMMONMARK);
> > -static_assert(int(QTextMarkdownImporter::DialectGitHub) ==
> > -              (MD_DIALECT_GITHUB | MD_FLAG_UNDERLINE | QTextMarkdownImporter::FeatureFrontMatter));
> >    // --------------------------------------------------------
> >  // MD4C callback function wrappers
> > 
> > 
> > By the way, qt6 6.12.0 has the same problem :]
> 
> This fix is not sufficient.
> md4c broke ABI compatibility so you need to bump it's bl3.mk plus qt5-qtbase, libreoffice and maybe some others.
> This commit inserted a new entry in the middle of the MD_SPANTYPE enum without an solib bump.
> https://github.com/mity/md4c/commit/12657f76e0a2640e209077b577c777135c01#diff-70c6a0936edb55fbae172fcbfb59333945059460c0425124c52ce254c10853c1L153
> 
> I guess you could also scoot the new MD_SPAN_INS to the end of the enum to restore ABI compat.
> 
> The static assert is also a real bug but upstream is dealing with that.
> https://qt-project.atlassian.net/browse/QTBUG-149921

I've downgraded md4c for now, so these problems can be fixed properly.
 Thomas


Home | Main Index | Thread Index | Old Index