--- Begin Message ---
Subject: |
[PATCH] gnu: libreoffice: Fix build with Poppler >= 0.62.0. |
Date: |
Tue, 30 Jan 2018 04:08:24 -0500 |
I'll push this if and when the build finishes and I confirm that
LibreOffice is still working.
* gnu/packages/libreoffice.scm (libreoffice)[arguments]: Patch header and
function names in 'prepare-src' phase.
---
gnu/packages/libreoffice.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 799b06243..3c04ba8c4 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -945,6 +945,12 @@ and to return information on pronunciations, meanings and
synonyms.")
(add-before 'configure 'prepare-src
(lambda* (#:key inputs #:allow-other-keys)
(let ((xmlsec (assoc-ref inputs "xmlsec-src")))
+ (substitute*
+ "sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx"
+ ;; This header was renamed in Poppler 0.62.0.
+ (("UTF8.h") "UnicodeMapFuncs.h")
+ ;; And mapUCS2() was renamed to mapUTF16().
+ (("UCS2") "UTF16"))
(substitute*
(list "sysui/CustomTarget_share.mk"
"solenv/gbuild/gbuild.mk"
--
2.16.1
--- End Message ---
--- Begin Message ---
Subject: |
Re: [PATCH] gnu: libreoffice: Fix build with Poppler >= 0.62.0. |
Date: |
Thu, 1 Feb 2018 15:51:43 -0500 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Tue, Jan 30, 2018 at 03:38:08PM -0500, Leo Famulari wrote:
> On Tue, Jan 30, 2018 at 04:08:24AM -0500, Leo Famulari wrote:
> > I'll push this if and when the build finishes and I confirm that
> > LibreOffice is still working.
> >
> > * gnu/packages/libreoffice.scm (libreoffice)[arguments]: Patch header and
> > function names in 'prepare-src' phase.
>
> This does allow the build to finish but I can't start the resulting
> libreoffice.
>
> During start it shows a dialogue that says "Fatal Error: The application
> cannot be started. User installation could not be completed.".
The issue is related to how NSS is configured on my Debian system, and
glibc 2.26 retiring libnss_compat.so. If nscd is running, then
libreoffice has no problem figuring out where to install it's per-user
files. That general issue was discussed in <https://bugs.gnu.org/30298>.
So, pushed as eb096cdebab56680375b26069ec524ddec60267e.
signature.asc
Description: PGP signature
--- End Message ---