pdf4qt: fix build against Qt 6.9

This commit is contained in:
Martin Joerg
2025-04-15 17:04:35 +00:00
parent 36e3893392
commit 56cc229427
+13
View File
@@ -30,6 +30,19 @@ stdenv.mkDerivation (finalAttrs: {
./find_lcms2_path.patch
];
# make calls to QString::arg compatible with Qt 6.9
# see https://doc-snapshots.qt.io/qt6-6.9/whatsnew69.html#new-features-in-qt-6-9
postPatch = ''
substituteInPlace Pdf4QtLibCore/sources/pdf{documentsanitizer,optimizer}.cpp \
--replace-fail \
'.arg(counter)' \
'.arg<PDFInteger>(counter)'
substituteInPlace Pdf4QtLibCore/sources/pdfoptimizer.cpp \
--replace-fail \
'.arg(bytesSaved)' \
'.arg<PDFInteger>(bytesSaved)'
'';
nativeBuildInputs = [
cmake
pkg-config