Hello,

I have a patch from openSUSE to propose, I will do the package in the evening.
Best regards.


Le ven. 20 nov. 2020 à 17:55, <seb95.s...@gmail.com> a écrit :

> Good evening,
> I will see on my own, I cannot guarantee my availability unfortunately
> due to the death of a loved one.
> Best regards.
>
> Seb
>
> Le jeudi 19 novembre 2020 à 10:34 +0100, Lucas Nussbaum a écrit :
> > Source: ghostwriter
> > Version: 1.8.1-1
> > Severity: serious
> > Justification: FTBFS on amd64
> > Tags: bullseye sid ftbfs
> > Usertags: ftbfs-20201119 ftbfs-bullseye
> >
> > Hi,
> >
> > During a rebuild of all packages in sid, your package failed to build
> > on amd64.
> >
> > Relevant part (hopefully):
> > > g++ -c -pipe -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-
> > > protector-strong -Wformat -Werror=format-security -Wdate-time
> > > -D_FORTIFY_SOURCE=2 -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC
> > > -DAPPVERSION=\"v1.8.1\" -DDATADIR=\"/usr/share/ghostwriter\"
> > > -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WEBENGINEWIDGETS_LIB
> > > -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB
> > > -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB
> > > -DQT_CONCURRENT_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB
> > > -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB
> > > -I. -Isrc -Isrc/spelling -I/usr/include/hunspell
> > > -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtSvg -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtWebEngineWidgets -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtWebEngine
> > > -I/usr/include/x86_64-linux-gnu/qt5/QtWebEngineCore
> > > -I/usr/include/x86_64-linux-gnu/qt5/QtQuick -I/usr/include/x86_64-
> > > linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtConcurrent -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtQmlModels -I/usr/include/x86_64-linux-
> > > gnu/qt5/QtWebChannel -I/usr/include/x86_64-linux-gnu/qt5/QtQml
> > > -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork
> > > -I/usr/include/x86_64-linux-gnu/qt5/QtPositioning
> > > -I/usr/include/x86_64-linux-gnu/qt5/QtCore -Ibuild/release
> > > -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o
> > > build/release/HtmlPreview.o src/HtmlPreview.cpp
> > > src/MarkdownEditor.cpp: In member function ‘virtual void
> > > MarkdownEditor::paintEvent(QPaintEvent*)’:
> > > src/MarkdownEditor.cpp:301:30: error: aggregate ‘QPainterPath path’
> > > has incomplete type and cannot be defined
> > >   301 |                 QPainterPath path;
> > >       |                              ^~~~
> > > src/MarkdownEditor.cpp: In member function ‘void
> > > MarkdownEditor::setupPaperMargins(int)’:
> > > src/MarkdownEditor.cpp:497:63: warning: ‘const QRect
> > > QDesktopWidget::screenGeometry(int) const’ is deprecated: Use
> > > QGuiApplication::screens() [-Wdeprecated-declarations]
> > >   497 |     int screenWidth = QApplication::desktop()-
> > > >screenGeometry().width();
> > >       |
> > >    ^
> > > In file included from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/QDesktopWidget:1,
> > >                  from src/MarkdownEditor.cpp:33:
> > > /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:79:67:
> > > note: declared here
> > >    79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const
> > > QRect screenGeometry(int screen = -1) const;
> > >       |
> > >        ^~~~~~~~~~~~~~
> > > src/MarkdownEditor.cpp: In member function ‘virtual bool
> > > MarkdownEditor::eventFilter(QObject*, QEvent*)’:
> > > src/MarkdownEditor.cpp:771:67: warning:
> > > ‘QList<QTextLayout::FormatRange> QTextLayout::additionalFormats()
> > > const’ is deprecated: Use formats() [-Wdeprecated-declarations]
> > >   771 |                 cursorForWord.block().layout()-
> > > >additionalFormats();
> > >       |
> > >        ^
> > > In file included from /usr/include/x86_64-linux-
> > > gnu/qt5/QtGui/qabstracttextdocumentlayout.h:45,
> > >                  from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/qplaintextedit.h:51,
> > >                  from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/QPlainTextEdit:1,
> > >                  from src/MarkdownEditor.h:24,
> > >                  from src/MarkdownEditor.cpp:41:
> > > /usr/include/x86_64-linux-gnu/qt5/QtGui/qtextlayout.h:155:57: note:
> > > declared here
> > >   155 |     QT_DEPRECATED_X("Use formats()") QList<FormatRange>
> > > additionalFormats() const;
> > >       |                                                         ^~~
> > > ~~~~~~~~~~~~~~
> > > src/MarkdownEditor.cpp: In member function ‘void
> > > MarkdownEditor::setTabulationWidth(int)’:
> > > src/MarkdownEditor.cpp:1410:55: warning: ‘int
> > > QFontMetrics::width(QChar) const’ is deprecated: Use
> > > QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> > >  1410 |     this->setTabStopWidth(fontMetrics.width(QChar(' ')) *
> > > tabWidth);
> > >       |                                                       ^
> > > In file included from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/qwidget.h:50,
> > >                  from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/qscrollbar.h:44,
> > >                  from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/QScrollBar:1,
> > >                  from src/MarkdownEditor.cpp:25:
> > > /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:110:9: note:
> > > declared here
> > >   110 |     int width(QChar) const;
> > >       |         ^~~~~
> > > src/MarkdownEditor.cpp:1410:67: warning: ‘void
> > > QPlainTextEdit::setTabStopWidth(int)’ is deprecated [-Wdeprecated-
> > > declarations]
> > >  1410 |     this->setTabStopWidth(fontMetrics.width(QChar(' ')) *
> > > tabWidth);
> > >       |
> > >        ^
> > > In file included from /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/QPlainTextEdit:1,
> > >                  from src/MarkdownEditor.h:24,
> > >                  from src/MarkdownEditor.cpp:41:
> > > /usr/include/x86_64-linux-
> > > gnu/qt5/QtWidgets/qplaintextedit.h:179:24: note: declared here
> > >   179 |     QT_DEPRECATED void setTabStopWidth(int width);
> > >       |                        ^~~~~~~~~~~~~~~
> > > make[1]: *** [Makefile:1083: build/release/MarkdownEditor.o] Error
> > > 1
> >
> > The full build log is available from:
> >
> > http://qa-logs.debian.net/2020/11/19/ghostwriter_1.8.1-1_unstable.log
> >
> > A list of current common problems and possible solutions is available
> > at
> > http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to
> > contribute!
> >
> > About the archive rebuild: The rebuild was done on EC2 VM instances
> > from
> > Amazon Web Services, using a clean, minimal and up-to-date chroot.
> > Every
> > failed build was retried once to eliminate random failures.
>
>
From: Chavaux Sebastien <seb95.s...@gmail.com>
Date: Mon, 23 Nov 2020 10:03:01 +0200
Subject: [PATCH] Fix build with Qt 5.15

---
 src/MarkdownEditor.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/MarkdownEditor.cpp b/src/MarkdownEditor.cpp
index 2e4a9a1..39ddadb 100644
--- a/src/MarkdownEditor.cpp
+++ b/src/MarkdownEditor.cpp
@@ -36,6 +36,7 @@
 #include <QPainter>
 #include <QFileInfo>
 #include <QDir>
+#include <QPainterPath>
 
 #include "ColorHelper.h"
 #include "MarkdownEditor.h"
-- 
2.26.2

Reply via email to