Date: Monday, September 14, 2020 @ 15:02:57 Author: freswa Revision: 706062
fix FS#64297 Added: qpdfview/trunk/fix-gcc10-build.patch Modified: qpdfview/trunk/PKGBUILD -----------------------+ PKGBUILD | 13 ++++++++----- fix-gcc10-build.patch | 12 ++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-09-14 14:54:46 UTC (rev 706061) +++ PKGBUILD 2020-09-14 15:02:57 UTC (rev 706062) @@ -3,7 +3,7 @@ pkgname=qpdfview pkgver=0.4.18 -pkgrel=1 +pkgrel=2 pkgdesc='A tabbed PDF viewer using the poppler library.' url='https://launchpad.net/qpdfview' arch=('x86_64') @@ -13,9 +13,11 @@ optdepends=('libspectre: for PostScript support' 'djvulibre: for DjVu support') source=("https://launchpad.net/qpdfview/trunk/$pkgver/+download/qpdfview-$pkgver.tar.gz" - "https://launchpad.net/qpdfview/trunk/$pkgver/+download/qpdfview-$pkgver.tar.gz.asc") + "https://launchpad.net/qpdfview/trunk/$pkgver/+download/qpdfview-$pkgver.tar.gz.asc" + fix-gcc10-build.patch) sha256sums=('cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c' - 'SKIP') + 'SKIP' + '5314091e35031f5ebf38a827b64e524e2f5dab8a5c2d3c0e081fb7a634ebe301') # Adam Reichold <adam.reich...@t-online.de> validpgpkeys=('1F521FF0F87E9E1CDE46B8A9F4928C4DD24D4DF8') @@ -22,10 +24,11 @@ prepare() { cd $pkgname-$pkgver sed -e 's|2.0.0|1.21.0|' -i application.pro + patch -Np1 < ../fix-gcc10-build.patch } build() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver lrelease-qt5 qpdfview.pro qmake-qt5 qpdfview.pro make @@ -32,7 +35,7 @@ } package() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver make INSTALL_ROOT="$pkgdir" install } Added: fix-gcc10-build.patch =================================================================== --- fix-gcc10-build.patch (rev 0) +++ fix-gcc10-build.patch 2020-09-14 15:02:57 UTC (rev 706062) @@ -0,0 +1,12 @@ +diff --git a/sources/model.h b/sources/model.h +index 6363c32..dc10a8c 100644 +--- a/sources/model.h ++++ b/sources/model.h +@@ -27,6 +27,7 @@ along with qpdfview. If not, see <http://www.gnu.org/licenses/>. + #include <QtPlugin> + #include <QWidget> + #include <QVector> ++#include <QPainterPath> + + class QAbstractItemModel; + class QColor;