Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653478 - app-office/libreoffice fails with >=app-text/poppler-0.64.0: error: invalid conversion from ‘const GooString*’ to ‘GooString*’
Summary: app-office/libreoffice fails with >=app-text/poppler-0.64.0: error: invalid c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: poppler-0.64.0
  Show dependency tree
 
Reported: 2018-04-18 15:33 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2018-05-21 10:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,25.20 KB, application/x-xz)
2018-04-18 15:33 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
Fix app-office/libreoffice-5.4.5.1 build with app-text/poppler-0.64 (libreoffice-5.4.5.1-poppler-0.64.patch,559 bytes, patch)
2018-05-21 10:17 UTC, Daniel Harding
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-04-18 15:33:28 UTC
Created attachment 527930 [details]
build.log.xz

S=/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/sdext/source/pdfimport/xpdfwrapper/ $W/Dep/CxxObject/sdext/source/pdfimport/xpdfwrapper/ && cd /var/tmp/
portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2 &&    x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHRE
ADS -D_REENTRANT  -DSYSTEM_ZLIB   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe  -Wduplica
ted-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14   -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -march=native -
mtune=native -O2 -pipe   -DLIBO_INTERNAL_ONLY  -c $S/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx -o $W/CxxObject/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.o  -isystem /usr/include/poppler -I$S/include  -I/usr/lib64/iced
tea8/include -I/usr/lib64/icedtea8/include/linux -I$S/config_host  -I/usr/include    -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    
In file included from /var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:20:0:
/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:226:22: error: ‘virtual void pdfi::PDFOutDev::drawString(GfxState*, GooString*)’ marked ‘override’, but does n
ot override
         virtual void drawString(GfxState *state, GooString *s) override;
                      ^~~~~~~~~~
/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:226:22: warning:   by ‘virtual void pdfi::PDFOutDev::drawString(GfxState*, GooString*)’ [-Woverloaded-virtual]
/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx: In member function ‘int pdfi::PDFOutDev::parseFont(long long int, GfxFont*, GfxState*) const’:
/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:449:42: error: invalid conversion from ‘const GooString*’ to ‘GooString*’ [-fpermissive]
     GooString* pFamily = gfxFont->getName();
                          ~~~~~~~~~~~~~~~~^~
/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx: In member function ‘virtual void pdfi::PDFOutDev::updateFont(GfxState*)’:
/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:745:34: error: invalid conversion from ‘const Ref*’ to ‘Ref*’ [-fpermissive]
         Ref* pID = gfxFont->getID();
                    ~~~~~~~~~~~~~~^~
make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/solenv/gbuild/LinkTarget.mk:293: /var/tmp/portage/app-office/libreoffice-6.0.3.2/work/libreoffice-6.0.3.2/workdir/CxxObject/sdext/source/pdfimport/xpd
fwrapper/pdfioutdev_gpl.o] Error 1
Comment 2 Larry the Git Cow gentoo-dev 2018-04-25 16:15:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81d0795c69b29a666e67a14ccaed0f0f846a268b

commit 81d0795c69b29a666e67a14ccaed0f0f846a268b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-04-25 15:07:23 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-04-25 16:14:45 +0000

    app-office/libreoffice: Fix build with poppler-0.64
    
    Bug: https://bugs.gentoo.org/653478
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 app-office/libreoffice/Manifest                    |  2 +-
 .../files/libreoffice-6.0.3.2-poppler-0.64.patch   | 71 ++++++++++++++++++++++
 app-office/libreoffice/libreoffice-6.0.3.2.ebuild  |  2 +
 3 files changed, 74 insertions(+), 1 deletion(-)}
Comment 3 Daniel Harding 2018-05-21 10:17:30 UTC
Created attachment 532544 [details, diff]
Fix app-office/libreoffice-5.4.5.1 build with app-text/poppler-0.64

libreoffice-5.4.5.1 is also broken in the same way.  The patch for libreoffice-6.0.3.2 applies cleanly - I've attached an initial patch that gets libreoffice-5.4.5.1 building for me again.