app-text/xpdf: fix build w/ libpaper-2

Closes: https://bugs.gentoo.org/870217
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-01-09 10:16:02 +00:00
parent 8525e47cfd
commit 7e33adc640
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
https://bugs.gentoo.org/870217
https://forum.xpdfreader.com/viewtopic.php?t=42367
https://github.com/rrthomas/libpaper/issues/29
--- a/xpdf/GlobalParams.cc
+++ b/xpdf/GlobalParams.cc
@@ -655,7 +655,7 @@ GlobalParams::GlobalParams(const char *cfgFileName) {
base14SysFonts = new GHash(gTrue);
sysFonts = new SysFontList();
#if HAVE_PAPER_H
- char *paperName;
+ const char *paperName;
const struct paper *paperType;
paperinit();
if ((paperName = systempapername())) {

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -55,6 +55,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-automagic.patch
"${FILESDIR}"/${PN}-visibility.patch
"${FILESDIR}"/${PN}-shared-libs.patch
"${FILESDIR}"/${PN}-4.04-libpaper-2.patch
)
DOCS=( ANNOUNCE CHANGES README )