mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 16:06:16 -05:00
143fc1a591
* gnu/packages/patches/poppler-CVE-2018-19149.patch: Delete file. * gnu/packages/patches/inkscape-poppler-compat3.patch, gnu/packages/patches/texlive-bin-luatex-poppler-compat.patch, gnu/packages/patches/texlive-bin-pdftex-poppler-compat.patch, gnu/packages/patches/texlive-bin-xetex-poppler-compat.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/pdf.scm (poppler): Update to 0.72.0. [replacement]: Remove field. (poppler/fixed): Remove variable. * gnu/packages/inkscape.scm (inkscape)[source](patches): Add 'inkscape-poppler-compat{3..5}.patch'. * gnu/packages/tex.scm (texlive-bin)[source](patches): Update 'texlive-poppler-compat.patch'. Add 'texlive-bin-{lua,pdf,xe}tex-poppler-compat.patch'. * gnu/packages/emacs.scm (emacs-pdf-tools)[source](modules, snippet): New fields. * gnu/packages/scribus.scm (scribus)[source](patches): Add upstream patch origins. [source](modules, snippet): New fields. * gnu/packages/libreoffice.scm (libreoffice)[source](patches): Add three upstream origins. [source](snippet, modules): New field.
31 lines
888 B
Diff
31 lines
888 B
Diff
Fix compatibility with Poppler 0.72.
|
|
|
|
Patch taken from upstream:
|
|
https://tug.org/svn/texlive/trunk/Build/source/texk/web2c/xetexdir/pdfimage.cpp?r1=44964&r2=48969&diff_format=u
|
|
|
|
--- a/texk/web2c/xetexdir/pdfimage.cpp 2017/08/06 07:12:02 44964
|
|
+++ b/texk/web2c/xetexdir/pdfimage.cpp 2018/10/22 04:01:42 48969
|
|
@@ -82,19 +82,19 @@
|
|
switch (pdf_box) {
|
|
default:
|
|
case pdfbox_crop:
|
|
- r = page->getCropBox();
|
|
+ r = (PDFRectangle *)page->getCropBox();
|
|
break;
|
|
case pdfbox_media:
|
|
- r = page->getMediaBox();
|
|
+ r = (PDFRectangle *)page->getMediaBox();
|
|
break;
|
|
case pdfbox_bleed:
|
|
- r = page->getBleedBox();
|
|
+ r = (PDFRectangle *)page->getBleedBox();
|
|
break;
|
|
case pdfbox_trim:
|
|
- r = page->getTrimBox();
|
|
+ r = (PDFRectangle *)page->getTrimBox();
|
|
break;
|
|
case pdfbox_art:
|
|
- r = page->getArtBox();
|
|
+ r = (PDFRectangle *)page->getArtBox();
|
|
break;
|
|
}
|