okular: fix build for x86 arch

This commit is contained in:
Gerasim Troeglazov
2022-05-11 19:35:07 +10:00
parent 4a99d61496
commit c1835151d4
2 changed files with 33 additions and 1 deletions

View File

@@ -9,10 +9,11 @@ Features:
HOMEPAGE="https://okular.kde.org"
COPYRIGHT="2010-2022 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/okular-$portVersion.tar.xz"
CHECKSUM_SHA256="47eebac10c3415b245907e572efe810348f6b51b8df89fe96254827aa8b2e3bf"
SOURCE_DIR="okular-$portVersion"
PATCHES="okular-$portVersion.patchset"
ADDITIONAL_FILES="okular.rdef.in"
ARCHITECTURES="all !x86_gcc2"

View File

@@ -0,0 +1,31 @@
From 23a891995568559f60e018038b43ae65daa882b1 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Wed, 11 May 2022 19:29:57 +1000
Subject: Fix build for x86
diff --git a/generators/tiff/generator_tiff.cpp b/generators/tiff/generator_tiff.cpp
index 76ecb1d..f5ee8ee 100644
--- a/generators/tiff/generator_tiff.cpp
+++ b/generators/tiff/generator_tiff.cpp
@@ -243,7 +243,7 @@ QImage TIFFGenerator::image(Okular::PixmapRequest *request)
}
QImage image(width, height, QImage::Format_RGB32);
- uint32_t *data = reinterpret_cast<uint32_t *>(image.bits());
+ uint32 *data = reinterpret_cast<uint32 *>(image.bits());
// read data
if (TIFFReadRGBAImageOriented(d->tiff, width, height, data, orientation) != 0) {
@@ -373,7 +373,7 @@ Okular::Document::PrintError TIFFGenerator::print(QPrinter &printer)
}
QImage image(width, height, QImage::Format_RGB32);
- uint32_t *data = reinterpret_cast<uint32_t *>(image.bits());
+ uint32 *data = reinterpret_cast<uint32 *>(image.bits());
// read data
if (TIFFReadRGBAImageOriented(d->tiff, width, height, data, ORIENTATION_TOPLEFT) != 0) {
--
2.30.2