Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304035 - app-text/poppler-0.12.3-r3 could have ewarn to notify reverse deps might need to be recompiled
Summary: app-text/poppler-0.12.3-r3 could have ewarn to notify reverse deps might need...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-08 17:17 UTC by Luke-Jr
Modified: 2010-02-11 00:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2010-02-08 17:17:21 UTC
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.
Comment 1 Rafał Mużyło 2010-02-08 18:06:32 UTC
Did you try to rebuild okular after poppler upgrade ?
Comment 2 Gordon Pettey 2010-02-08 22:32:17 UTC
Adding USE="lcms" to poppler packages should fix it. This should be marked duplicate of #296170.
Comment 3 Tobias Elze 2010-02-08 23:47:19 UTC
(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"
Comment 4 Luke-Jr 2010-02-09 00:06:48 UTC
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
Comment 5 Dmitri Pogosian 2010-02-09 05:04:09 UTC
Just rebuild okular after installing new poppler.  revdep-rebuild could do that for you.
Comment 6 Luke-Jr 2010-02-09 06:55:57 UTC
revdep-rebuild has no interest in rebuilding it...
Comment 7 Tobias Elze 2010-02-09 12:17:30 UTC
(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.

Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-02-10 21:25:12 UTC
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?
Comment 9 Luke-Jr 2010-02-10 21:31:25 UTC
There is no sign to suggest recompiling okular is needed currently. If there is no other sane method, ewarn is in order...
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-02-10 21:37:48 UTC
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...
Comment 11 Luke-Jr 2010-02-10 21:43:30 UTC
I don't suppose the .so version could be bumped or something to tip off revdep-rebuild/@preserved-libs
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2010-02-10 21:45:53 UTC
(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
Comment 13 Ben de Groot (RETIRED) gentoo-dev 2010-02-11 00:31:22 UTC
Ewarn added. Thanks!