[Pkg-deepin-devel] Bug#972677: deepin-image-viewer: FTBFS with Qt 5.15: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined

Dmitry Shachnev mitya57 at debian.org
Sun Oct 25 17:40:14 GMT 2020


Control: tags -1 + pending

On Thu, Oct 22, 2020 at 02:05:20PM +0300, Dmitry Shachnev wrote:
> Dear Maintainer,
>
> deepin-image-viewer fails to build with Qt 5.15, currently available in
> experimental.
>
> After rebuilding dde-qt-dbus-factory and libqtxdg, and building a fixed
> version of dtkwidget (see #972155), I get this error:
>
>   widgets/popupmenustyle.cpp: In member function ‘virtual void PopupMenuStyle::drawPrimitive(QStyle::PrimitiveElement, const QStyleOption*, QPainter*, const QWidget*) const’:
>   widgets/popupmenustyle.cpp:117:22: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
>     117 |         QPainterPath path;
>         |                      ^~~~
>   widgets/popupmenustyle.cpp:133:13: error: ‘QPainterPathStroker’ was not declared in this scope; did you mean ‘QPainterPath’?
>     133 |             QPainterPathStroker stroker;
>         |             ^~~~~~~~~~~~~~~~~~~
>         |             QPainterPath
>   widgets/popupmenustyle.cpp:134:13: error: ‘stroker’ was not declared in this scope; did you mean ‘strtok_r’?
>     134 |             stroker.setWidth(FRAME_BORDER_WIDTH);
>         |             ^~~~~~~
>         |             strtok_r
>   widgets/popupmenustyle.cpp:136:26: error: variable ‘QPainterPath borderPath’ has initializer but incomplete type
>     136 |             QPainterPath borderPath = stroker.createStroke(path);
>         |                          ^~~~~~~~~~
>
>   widgets/thumbnaillistview.cpp: In member function ‘virtual void ThumbnailListView::paintEvent(QPaintEvent*)’:
>   widgets/thumbnaillistview.cpp:301:18: error: aggregate ‘QPainterPath bp’ has incomplete type and cannot be defined
>     301 |     QPainterPath bp;
>         |                  ^~
>
> This is fixed upstream, see the linked commit.

I have just uploaded the NMU fixing this to DELAYED/5.

The debdiff is attached.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deepin-image-viewer_5.0.0-1.1.diff
Type: text/x-diff
Size: 3286 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-deepin-devel/attachments/20201025/dc9690e7/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-deepin-devel/attachments/20201025/dc9690e7/attachment.sig>


More information about the Pkg-deepin-devel mailing list