app-office/libreoffice-7.3.2.2-r1 with enabled pdfimport use fails to build with dev-libs/boost-1.79.0 /var/tmp/portage/app-office/libreoffice-7.3.2.2-r1/work/libreoffice-7.3.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx: In member function ‘int pdfi::PDFOutDev::parseFont(long long int , GfxFont*, const GfxState*) const’: /var/tmp/portage/app-office/libreoffice-7.3.2.2-r1/work/libreoffice-7.3.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:477:46: error: no matching function for call to ‘GfxFont::readEmb FontFile(XRef*, int*)’ 477 | char* pBuf = gfxFont->readEmbFontFile( m_pDoc->getXRef(), &nSize ); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/tmp/portage/app-office/libreoffice-7.3.2.2-r1/work/libreoffice-7.3.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:37, from /var/tmp/portage/app-office/libreoffice-7.3.2.2-r1/work/libreoffice-7.3.2.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:20: /usr/include/poppler/GfxFont.h:282:47: note: candidate: ‘std::optional<std::vector<unsigned char> > GfxFont::readEmbFontFile(XRef*)’ 282 | std::optional<std::vector<unsigned char>> readEmbFontFile(XRef *xref); | ^~~~~~~~~~~~~~~ Reproducible: Always
Created attachment 777542 [details] compressed build.log
Created attachment 777545 [details] emerge --info
This is due to poppler-22.05, not boost-1.79. I built LO[pdfimport] successfully with 1.79, but got the same error after updating to the new poppler version, which causes a rebuild.
(In reply to Holger Hoffstätte from comment #3) > This is due to poppler-22.05, not boost-1.79. I built LO[pdfimport] > successfully with 1.79, but got the same error after updating to the new > poppler version, which causes a rebuild. Thank you! I'll fix the bug description
Same here with new Poppler.
app-office/libreoffice-9999 fails the same. libreoffice upstream does not seem to be aware of this. They internally still use an older version of poppler. Please someone report at https://bugs.documentfoundation.org also.
Here is a working patch instead of libreoffice-7.2.6.2-poppler-22.03.0.patch https://github.com/KaOSx/apps/blob/f42ce5822ae81c35990fe74cb9e3f221792a43a4/libreoffice/poppler.diff
(In reply to Sergey Dulko from comment #7) > Here is a working patch instead of libreoffice-7.2.6.2-poppler-22.03.0.patch > > https://github.com/KaOSx/apps/blob/f42ce5822ae81c35990fe74cb9e3f221792a43a4/ > libreoffice/poppler.diff I think the patch is not fully correct. It misses to set nSize to pBuf.size().
(In reply to Stephan Hartmann from comment #8) > (In reply to Sergey Dulko from comment #7) > > Here is a working patch instead of libreoffice-7.2.6.2-poppler-22.03.0.patch > > > > https://github.com/KaOSx/apps/blob/f42ce5822ae81c35990fe74cb9e3f221792a43a4/ > > libreoffice/poppler.diff > > I think the patch is not fully correct. It misses to set nSize to > pBuf.size(). pBuf->size() of course.
(In reply to jospezial from comment #6) > They internally still use an older version of poppler. > Please someone report at https://bugs.documentfoundation.org also. We are using the Archlinux patch so far, and they should naturally pursue the upstreaming.
See also 22.04.0 Archlinux apply on top of 22.03.0.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af49d8e308d23be5066757c0c624a4f71d6fdaa4 commit af49d8e308d23be5066757c0c624a4f71d6fdaa4 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-08 21:52:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-08 21:57:03 +0000 app-office/libreoffice: add 7.3.3.2 (unkeyworded) Unkeyworded briefly until I get a chance to test PDF import/export with Poppler patches. Bug: https://bugs.gentoo.org/843311 Thanks-to: Stephan Hartmann <sultan@gentoo.org> (improvement on the FreeBSD patch) Signed-off-by: Sam James <sam@gentoo.org> app-office/libreoffice/Manifest | 2 + ...Add-missing-nSize-set-for-Poppler-22.04.0.patch | 25 + ...t-FreeBSD-patch-for-Poppler-22.04.0-build.patch | 76 +++ app-office/libreoffice/libreoffice-7.3.3.2.ebuild | 669 +++++++++++++++++++++ 4 files changed, 772 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9101ddf57435043ca5d01567d482269e69e7a78 commit d9101ddf57435043ca5d01567d482269e69e7a78 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-09 00:00:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-09 00:01:44 +0000 app-office/libreoffice: fix version check in Poppler 22.04.0 patch On a machine with Poppler 22.03.0 still, it failed, as it tried to take the new branch. Bug: https://bugs.gentoo.org/843311 Signed-off-by: Sam James <sam@gentoo.org> ...-Import-FreeBSD-patch-for-Poppler-22.04.0-build.patch | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
All versions of media-gfx/inkscape fails also to build with app-text/poppler-22.05.0
Then don't post this in unrelated bugs.
(In reply to iba68 from comment #14) > All versions of media-gfx/inkscape fails also to build with > app-text/poppler-22.05.0 No. Git version (9999 == 1.3, from portage) compiles and works.
The three app-office/libreoffice/files/ poppler patches apply cleanly to app-office/libreoffice-9999 Compiling in progress now.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e04ddc64562f2226e344ddb8fa4307340efb2b46 commit e04ddc64562f2226e344ddb8fa4307340efb2b46 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-09 19:11:48 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-09 19:12:21 +0000 app-office/libreoffice: slight tweak to Poppler 22.04.0 patch Bug: https://bugs.gentoo.org/843311 Thanks-to: Stephan Hartmann <sultan@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org> ...3.3.2-Add-missing-nSize-set-for-Poppler-22.04.0.patch | 16 +++++++++++----- ...fice-7.3.3.2.ebuild => libreoffice-7.3.3.2-r1.ebuild} | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd4432e14c37a4f5a828d5a0aa4c5193326ed535 commit fd4432e14c37a4f5a828d5a0aa4c5193326ed535 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-09 20:17:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-09 20:17:58 +0000 app-office/libreoffice: ... uncomment patch Thanks asturm. And I'll keyword this shortly. Bug: https://bugs.gentoo.org/843311 Signed-off-by: Sam James <sam@gentoo.org> .../{libreoffice-7.3.3.2-r1.ebuild => libreoffice-7.3.3.2-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44fe69877d3a4b5e2d655a0d795a20c2b27fb7c7 commit 44fe69877d3a4b5e2d655a0d795a20c2b27fb7c7 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-09 21:48:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-09 21:48:06 +0000 app-office/libreoffice-l10n: keyword 7.3.3.2 Closes: https://bugs.gentoo.org/843311 Signed-off-by: Sam James <sam@gentoo.org> app-office/libreoffice-l10n/libreoffice-l10n-7.3.3.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd260cfc2e85e51814decb0c7d80a7118b008d3b commit cd260cfc2e85e51814decb0c7d80a7118b008d3b Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-09 21:47:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-09 21:47:33 +0000 app-office/libreoffice: keyword 7.3.3.2-r2 Closes: https://bugs.gentoo.org/843311 Signed-off-by: Sam James <sam@gentoo.org> app-office/libreoffice/libreoffice-7.3.3.2-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
(In reply to jospezial from comment #17) > The three app-office/libreoffice/files/ poppler patches apply cleanly to > app-office/libreoffice-9999 Upstream patches in libreoffice master git: https://github.com/LibreOffice/core/commit/0d0469b4302dfe95b016a6f04b145834b79d5ed3 "Update for Poppler 22.06 " https://github.com/LibreOffice/core/commit/ad1ffc62e40c2409b610dfff25a8483b1f2556ad "Follow-up for Poppler 22.06 update "
See also https://gitweb.gentoo.org/repo/gentoo.git/commit/app-office/libreoffice?id=1f6eaf50b2d30a9fbc4cdb3a2f1a31bc1879fd12