diff --git a/srcpkgs/ipe/patches/poppler-22.03.0-fix.patch b/srcpkgs/ipe/patches/poppler-22.03.0-fix.patch new file mode 100644 index 00000000000..df2894809c1 --- /dev/null +++ b/srcpkgs/ipe/patches/poppler-22.03.0-fix.patch @@ -0,0 +1,33 @@ +diff -Naur pdftoipe.cpp.orig pdftoipe.cpp +--- a/ipe-tools/pdftoipe/pdftoipe.cpp.orig ++++ b/ipe-tools/pdftoipe/pdftoipe.cpp +@@ -84,22 +84,20 @@ + if (quiet) + globalParams->setErrQuiet(quiet); + +- GooString *ownerPW, *userPW; ++ std::optional ownerPW, userPW; + if (ownerPassword[0]) { +- ownerPW = new GooString(ownerPassword); ++ ownerPW = GooString(ownerPassword); + } else { +- ownerPW = 0; ++ ownerPW = std::nullopt; + } + if (userPassword[0]) { +- userPW = new GooString(userPassword); ++ userPW = GooString(userPassword); + } else { +- userPW = 0; ++ userPW = std::nullopt; + } + + // open PDF file +- PDFDoc *doc = new PDFDoc(fileName, ownerPW, userPW); +- delete userPW; +- delete ownerPW; ++ PDFDoc *doc = new PDFDoc(std::make_unique(fileName), ownerPW, userPW); + + if (!doc->isOk()) + return 1; + diff --git a/srcpkgs/ipe/template b/srcpkgs/ipe/template index a84d5c036b2..72398e7ff92 100644 --- a/srcpkgs/ipe/template +++ b/srcpkgs/ipe/template @@ -1,7 +1,7 @@ # Template file for 'ipe' pkgname=ipe version=7.2.24 -revision=6 +revision=7 _tools_commit=v7.2.20.1 hostmakedepends="pkg-config doxygen qt5-qmake qt5-tools qt5-host-tools" makedepends="cairo-devel gsl-devel libcurl-devel libjpeg-turbo-devel