I can't view PDFs since Portage upgraded me from dev-libs/poppler-qt4-0.10.7 to app-text/poppler-0.12.3-r3 Downgrading restores Okular functionality.
Did you try to rebuild okular after poppler upgrade ?
Adding USE="lcms" to poppler packages should fix it. This should be marked duplicate of #296170.
(In reply to comment #0) > I can't view PDFs since Portage upgraded me from dev-libs/poppler-qt4-0.10.7 to > app-text/poppler-0.12.3-r3 > Downgrading restores Okular functionality. > I've got the same problem. After the update, poppler broke the pdf functionality of okular and in addition xpdf stopped working. poppler is compiled with the following use flags: abiword cairo doc jpeg lcms png qt4 utils xpdf-headers -cjk -debug -exceptions -jpeg2k revdep-rebuild tried to rebuild xpdf and okular, but the rebuild of xpdf already stops: GlobalParams.cc: In member function ‘CMap* GlobalParams::getCMap(GooString*, GooString*)’: GlobalParams.cc:2831: error: no matching function for call to ‘CMapCache::getCMap(GooString*&, GooString*&)’ /usr/include/poppler/CMap.h:119: note: candidates are: CMap* CMapCache::getCMap(GooString*, GooString*, Stream*) make: *** [GlobalParams.o] Error 1 [...] * ERROR: app-text/xpdf-3.02-r2 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2687: Called _eapi2_src_compile * ebuild.sh, line 646: Called die * The specific snippet of code: * emake || die "emake failed"
This is not a dupe of #296170. I already have USE=lcms [ebuild R ] app-text/poppler-0.12.3-r3 USE="abiword jpeg jpeg2k lcms png qt4 utils xpdf-headers -cairo -cjk -debug -doc -exceptions" 0 kB
Just rebuild okular after installing new poppler. revdep-rebuild could do that for you.
revdep-rebuild has no interest in rebuilding it...
(In reply to comment #5) > Just rebuild okular after installing new poppler. revdep-rebuild could do that > for you. > revdep-rebuild correctly identifies the broken packages, in my case xpdf, okular, and inkscape (all of which require poppler). Then it tries to rebuild xpdf - the result I described above. The manual rebuild of okular and inkscape worked for me: Both programs can handle PDFs now. However, xpdf remains broken with the current version of poppler.
I've fixed *all* okular ebuilds in tree to, okular-4.3.3.ebuild: pdf? ( >=app-text/poppler-0.12.3-r3[lcms,qt4] ) okular-4.3.4.ebuild: pdf? ( >=app-text/poppler-0.12.3-r3[lcms,qt4] ) okular-4.3.5.ebuild: pdf? ( >=app-text/poppler-0.12.3-r3[lcms,qt4] ) okular-4.4.0.ebuild: pdf? ( >=app-text/poppler-0.12.3-r3[lcms,qt4] ) And this bug is *only* for okular, not other random poppler failures. Is okular now working for everyone, with lcms enabled, and okular recompiled?
There is no sign to suggest recompiling okular is needed currently. If there is no other sane method, ewarn is in order...
yngwin, please see last comment, perhaps something like: ewarn 'You might need to recompile reverse deps after poppler upgrade.' ewarn 'If you have gentoolkit installed, you can use `equery d poppler`' ewarn 'to find out these deps.' similar to what dev-python/sip has...
I don't suppose the .so version could be bumped or something to tip off revdep-rebuild/@preserved-libs
(In reply to comment #11) > I don't suppose the .so version could be bumped or something to tip off > revdep-rebuild/@preserved-libs > Upstream needs to do that too... so not easily
Ewarn added. Thanks!