summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2023-03-02 22:30:42 +0300
committerormorph <roma251078@mail.ru>2023-03-03 06:20:23 +0300
commit9d8ffc347d89760c298c78799ec7b735a9a08418 (patch)
treef351f605b4d7560d4d96cb318df5fb4e86a1d213
parenta19d584e191c5be3c9566772718ba5af57a42baf (diff)
downloadtde-packaging-gentoo-9d8ffc347d89760c298c78799ec7b735a9a08418.tar.gz
tde-packaging-gentoo-9d8ffc347d89760c298c78799ec7b735a9a08418.zip
Fixed kword build error for new versions of libpaper-2.0.x
Signed-off-by: ormorph <roma251078@mail.ru>
-rw-r--r--trinity-apps/kword/files/kword-libpaper.patch11
-rw-r--r--trinity-apps/kword/kword-14.0.13.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/trinity-apps/kword/files/kword-libpaper.patch b/trinity-apps/kword/files/kword-libpaper.patch
new file mode 100644
index 00000000..74e79cb9
--- /dev/null
+++ b/trinity-apps/kword/files/kword-libpaper.patch
@@ -0,0 +1,11 @@
+--- a/filters/kword/pdf/xpdf/xpdf/GlobalParams.cpp
++++ b/filters/kword/pdf/xpdf/xpdf/GlobalParams.cpp
+@@ -146,7 +146,7 @@
+ displayCIDFonts = new GHash();
+ displayNamedCIDFonts = new GHash();
+ #ifdef HAVE_PAPER_H
+- char *paperName;
++ const char *paperName;
+ const struct paper *paperType;
+ paperinit();
+ if ((paperName = systempapername())) {
diff --git a/trinity-apps/kword/kword-14.0.13.ebuild b/trinity-apps/kword/kword-14.0.13.ebuild
index 9bb28dfb..f45d3aa4 100644
--- a/trinity-apps/kword/kword-14.0.13.ebuild
+++ b/trinity-apps/kword/kword-14.0.13.ebuild
@@ -44,6 +44,7 @@ KMCOPYLIB="libkformula lib/kformula
libkspreadcommon kspread"
src_prepare() {
+ eapply "${FILESDIR}/kword-libpaper.patch"
local search_path="${TDEDIR}/${get_libdir}"
local libname dirname dirlist x
libname=""