Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609054 - app-text/pdfium - library for viewing, printing and form filling PDF files - required by >=LibreOffice-6
Summary: app-text/pdfium - library for viewing, printing and form filling PDF files - ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: https://pdfium.googlesource.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 09:59 UTC by jospezial
Modified: 2021-03-15 08:04 UTC (History)
6 users (show)

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


Attachments
libreoffice-9999.ebuild.patch (libreoffice-9999.ebuild.patch,7.11 KB, patch)
2017-02-12 09:59 UTC, jospezial
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2017-02-12 09:59:16 UTC
Created attachment 463404 [details, diff]
libreoffice-9999.ebuild.patch

diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild
index e0e9d615e0..6a16886204 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -60,6 +60,7 @@ ADDONS_SRC=(
        "${ADDONS_URI}/86b1daaa438f5a7bea9a52d7b9799ac0-xmlsec1-1.2.23.tar.gz" # modifies source code
        "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
        "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
+       "${ADDONS_URI}/9ac66c71463f9440e3ccc996c5e66556-pdfium-3004.tar.bz2"
        # no release for 8 years, should we package it?
        "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
        # Does not build with 1.6 rhino at all
@@ -78,7 +79,7 @@ unset ADDONS_SRC
 LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
 
 IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive
-gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport pdfium postgres quickstarter telepathy test vlc
 $(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
 
 LICENSE="|| ( LGPL-3 MPL-1.1 )"
@@ -492,6 +493,7 @@ src_configure() {
                $(use_enable quickstarter systray) \
                $(use_enable telepathy) \
                $(use_enable vlc) \
+               $(use_enable pdfium) \
                $(use_with coinmp system-coinmp) \
                $(use_with collada system-opencollada) \
                $(use_with gltf system-libgltf) \
Comment 1 jospezial 2017-02-12 10:10:16 UTC
with USE=-pdfium I get problems in install phase:

: SUCCESS: INSTDIR Source for libpdffilterlo.so: /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/instdir/./program/libpdffilterlo.so
: ERROR: Source for libpdfiumlo.so not found!
: SUCCESS: INSTDIR Source for libprotocolhandlerlo.so: /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/instdir/./program/libprotocolhandlerlo.so

...

: SUCCESS: INSTDIR Source for services.rdb: /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/instdir/./program/services/services.rdb
: 
: ERROR: Removing file libpdfiumlo.so from file list.
: 
: 
: Removing directory /var/tmp/portage/app-office/libreoffice-9999/temp/ooopackagingNO2PMr/i_74731486778893

...

: Setting Root Module: gid_Module_Root
: Using spellchecker file: /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/setup_native/source/packinfo/spellchecker_selection.txt 
: Collected spellchecker languages for spellchecker: en,es,fr 
: 
: *****************************************************************
: ERROR: ERROR: Missing files at /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/solenv/bin/modules/installer/scriptitems.pm line 1197.
: *****************************************************************

Sat Feb 11 03:08:16 2017 (00:03 min.)
Failed to install: No such file or directory at /var/tmp/portage/app-office/libreoffice-9999/work/libreoffice-9999/solenv/bin/ooinstall line 92.
make: *** [Makefile:303: install] Error 2
 * ERROR: app-office/libreoffice-9999::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_install
 *   environment, line 8307:  Called die
 * The specific snippet of code:
 *       make DESTDIR="${D}" distro-pack-install -o build -o check || die;
Comment 2 jospezial 2017-02-12 14:49:01 UTC
Compiles with pdfium enabled. It is enabled by default.
Comment 3 Andreas Sturmlechner gentoo-dev 2017-02-26 18:39:59 UTC
Thanks for your report, added --disable-pdfium for now, build with it disabled was supposedly fixed upstream.
Comment 4 jospezial 2017-03-19 10:03:56 UTC
for enabled pdfium now cfcb6b4f3b5b6097edc5df7903ef00ea-pdfium-3021.tar.bz2 is needed.
Comment 5 jospezial 2017-04-22 21:04:00 UTC
https://cgit.freedesktop.org/libreoffice/core/commit/?id=4e943da402ea5a7b450a9251ff75a6a3969dba74
external: upgrade to pdfium-3050 and stop using bundled zlib
Comment 6 jospezial 2017-05-10 20:21:03 UTC
libreoffice-9999 needs now xmlsec1-1.2.24.tar.gz
Comment 7 Andreas Sturmlechner gentoo-dev 2017-11-10 20:00:13 UTC
See also: https://plus.google.com/+PeterKasting/posts/5EjSyVPY2be