<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>124881</bug_id>
          
          <creation_ts>2006-03-03 15:52 0000</creation_ts>
          <short_desc>kpdf-3.5.1-r2 builds fail with poppler to 0.5.1</short_desc>
          <delta_ts>2006-04-02 01:55:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>KDE</component>
          <version>2005.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>radfoj@seznam.cz</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>alain.crespo@gmail.com</cc>
    
    <cc>alonbl@gentoo.org</cc>
    
    <cc>bugzilla@lourdas.name</cc>
    
    <cc>clbustos@apsique.com</cc>
    
    <cc>david@watzke.cz</cc>
    
    <cc>desintegr@gmail.com</cc>
    
    <cc>gralves@gmail.com</cc>
    
    <cc>howard_b_golden@yahoo.com</cc>
    
    <cc>jlp.bugs@gmail.com</cc>
    
    <cc>le.petit.fou@web.de</cc>
    
    <cc>matteo-ml@member.fsf.org</cc>
    
    <cc>patrick@gentoo.org</cc>
    
    <cc>polar88bear@hotmail.com</cc>
    
    <cc>printing@gentoo.org</cc>
    
    <cc>spock@gentoo.org</cc>
    
    <cc>Tinitus1@onlinehome.de</cc>

      

      
          <long_desc isprivate="0">
            <who>radfoj@seznam.cz</who>
            <bug_when>2006-03-03 15:52:31 0000</bug_when>
            <thetext>Hi, just upgraded poppler and poppler-bindings to version 0.5.1. Afterwards I had to reemerge kpdf-3.5.1-r2 becouse it stopped working and emerge failed:

mmon -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o gp_outputdev.lo `test -f &apos;gp_outputdev.cpp&apos; || echo &apos;./&apos;`gp_outputdev.cpp
gp_outputdev.cpp: In member function `KPDFLink* KPDFOutputDev::generateLink(LinkAction*)&apos;:
gp_outputdev.cpp:249: error: no matching function for call to `KPDFOutputDev::decodeViewport(UGooString*, LinkDest*)&apos;
gp_outputdev.h:74: note: candidates are: DocumentViewport KPDFOutputDev::decodeViewport(GooString*, LinkDest*)
gp_outputdev.cpp:259: error: no matching function for call to `KPDFOutputDev::decodeViewport(UGooString*, LinkDest*)&apos;
gp_outputdev.h:74: note: candidates are: DocumentViewport KPDFOutputDev::decodeViewport(GooString*, LinkDest*)
gp_outputdev.cpp: In member function `DocumentViewport KPDFOutputDev::decodeViewport(GooString*, LinkDest*)&apos;:
gp_outputdev.cpp:330: error: no matching function for call to `PDFDoc::findDest(GooString*&amp;)&apos;
/usr/include/poppler/PDFDoc.h:127: note: candidates are: LinkDest* PDFDoc::findDest(UGooString*)
make[4]: *** [gp_outputdev.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
generator_pdf.cpp: In member function `virtual void PDFGenerator::putFontInfo(KListView*)&apos;:
generator_pdf.cpp:395: error: no matching function for call to `Dict::lookup(const char[10], Object*)&apos;
/usr/include/poppler/Dict.h:52: note: candidates are: Object* Dict::lookup(const UGooString&amp;, Object*)
generator_pdf.cpp: In member function `virtual QString PDFGenerator::getMetaData(const QString&amp;, const QString&amp;)&apos;:
generator_pdf.cpp:496: error: no matching function for call to `PDFDoc::findDest(GooString*&amp;)&apos;
/usr/include/poppler/PDFDoc.h:127: note: candidates are: LinkDest* PDFDoc::findDest(UGooString*)
generator_pdf.cpp: In member function `void PDFGenerator::scanFonts(Dict*, KListView*, Ref**, int&amp;, int&amp;)&apos;:
generator_pdf.cpp:556: error: no matching function for call to `Dict::lookupNF(const char[5], Object*)&apos;
/usr/include/poppler/Dict.h:53: note: candidates are: Object* Dict::lookupNF(const UGooString&amp;, Object*)
generator_pdf.cpp:583: error: no matching function for call to `Dict::lookup(const char[8], Object*)&apos;
/usr/include/poppler/Dict.h:52: note: candidates are: Object* Dict::lookup(const UGooString&amp;, Object*)
generator_pdf.cpp:591: error: no matching function for call to `Dict::lookup(const char[10], Object*)&apos;
/usr/include/poppler/Dict.h:52: note: candidates are: Object* Dict::lookup(const UGooString&amp;, Object*)
generator_pdf.cpp: In member function `QString PDFGenerator::getDocumentInfo(const QString&amp;) const&apos;:
generator_pdf.cpp:691: error: no matching function for call to `Dict::lookup(char*, Object*)&apos;
/usr/include/poppler/Dict.h:52: note: candidates are: Object* Dict::lookup(const UGooString&amp;, Object*)
generator_pdf.cpp: In member function `QString PDFGenerator::getDocumentDate(const QString&amp;) const&apos;:
generator_pdf.cpp:749: error: no matching function for call to `Dict::lookup(char*, Object*)&apos;
/usr/include/poppler/Dict.h:52: note: candidates are: Object* Dict::lookup(const UGooString&amp;, Object*)
generator_pdf.cpp: In member function `void PDFGenerator::addSynopsisChildren(QDomNode*, GooList*)&apos;:
generator_pdf.cpp:805: error: cannot convert `UGooString*&apos; to `GooString*&apos; in initialization
make[4]: *** [generator_pdf.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core/generator_pdf&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1&apos;
make: *** [all] Error 2

!!! ERROR: kde-base/kpdf-3.5.1-r2 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile
  kpdf-3.5.1-r2.ebuild, line 37:   Called kde-meta_src_compile
  kde-meta.eclass, line 400:   Called kde_src_compile
  kde.eclass, line 111:   Called kde_src_compile &apos;compile&apos;
  kde.eclass, line 228:   Called kde_src_compile &apos;all&apos; &apos;myconf&apos; &apos;configure&apos;

!!! died running emake, kde_src_compile:make

Here is my emerge info:

Portage 2.1_pre5-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-ck1 i686)
=================================================================
System uname: 2.6.15-ck1 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/mnt/mandrake/opt/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;cs_CZ&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
LINGUAS=&quot;cs&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://necropolis.bilovec/gentoo-portage&quot;
USE=&quot;x86 3dnow X aac acpi alsa apache2 asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr crypt cups curl dbus dts dvd dvdread emboss encode exif expat ffmpeg firefox flac flash foomaticdb fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 hal iconv icq idn imagemagick imlib jabber java jpeg kde kdeenablefinal lcms libg++ libwww mad maildir mbox mikmod mime mmx mng motif moznoirc moznomail mozsvg mp3 mpeg msn musepack mysql nas ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl oss pam pcre pdflib perl php pic png python qt quicktime readline recode ruby sdl slang sndfile speex spell ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts usb vorbis win32codecs wma xine xml xml2 xosd xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs userland_GNU video_cards_nvidia&quot;
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-03-04 01:48:18 0000</bug_when>
            <thetext>*** Bug 124910 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-03-04 04:00:09 0000</bug_when>
            <thetext>Created an attachment (id=81279)
Patch to fix current kpdf

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-03-04 04:01:00 0000</bug_when>
            <thetext>I fixed xpdf in version -r8, kpdf patch for kde folks applied.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2006-03-04 05:20:45 0000</bug_when>
            <thetext>*** Bug 124892 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chris@realcomputerguy.com</who>
            <bug_when>2006-03-04 10:32:28 0000</bug_when>
            <thetext>With patch I get this error:
-------------------------------------------------
make[4]: Entering directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core/generator_pdf&apos;
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../.. -I../../../kpdf -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/include/poppler     -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o generator_pdf.lo `test -f &apos;generator_pdf.cpp&apos; || echo &apos;./&apos;`generator_pdf.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../.. -I../../../kpdf -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/include/poppler     -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o gp_outputdev.lo `test -f &apos;gp_outputdev.cpp&apos; || echo &apos;./&apos;`gp_outputdev.cpp
generator_pdf.cpp: In member function `virtual void PDFGenerator::putFontInfo(KListView*)&apos;:
generator_pdf.cpp:396: error: conversion to non-const reference type `class UGooString&amp;&apos; from rvalue of type `const char*&apos;
generator_pdf.cpp: In member function `void PDFGenerator::scanFonts(Dict*, KListView*, Ref**, int&amp;, int&amp;)&apos;:
generator_pdf.cpp:557: error: conversion to non-const reference type `class UGooString&amp;&apos; from rvalue of type `const char*&apos;
generator_pdf.cpp:584: error: conversion to non-const reference type `class UGooString&amp;&apos; from rvalue of type `const char*&apos;
generator_pdf.cpp:592: error: conversion to non-const reference type `class UGooString&amp;&apos; from rvalue of type `const char*&apos;
make[4]: *** [generator_pdf.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core/generator_pdf&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf/core&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1/kpdf&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kpdf-3.5.1-r2/work/kpdf-3.5.1&apos;
make: *** [all] Error 2

!!! ERROR: kde-base/kpdf-3.5.1-r2 failed.
-------------------------------------------------
 $ emerge --info
Portage 2.1_pre5-r3 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=i686 -mtune=pentium4 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig candy distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;ftp://gentoo.mirrors.pair.com http://mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo&quot;
LC_ALL=&quot;en_US.utf8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X a52 aac aalib acl acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr crypt cups curl dlloader dts dv dvb dvd dvdr dvdread emboss encode exif ffmpeg flac fortran gdbm ggvorbis gif gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imap imlib ipv6 jack java jpeg jpeg2k kde kdeenablefinal lcd lcms ldap libg++ libwww mad mikmod mmx motif mozcalendar mozilla mp3 mpeg musicbrainz ncurses nls nodrm nptl nvidia ofx ogg openexr opengl oss pam pda pdf pdflib perl png ppds python qt quicktime readline samba sasl scanner sdl slp sndfile spell sse ssl subversion svg svga tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l v4l2 vcd vorbis win32codecs wmf xcomposite xine xml xmms xscreensaver xv xvid zlib elibc_glibc kernel_linux userland_GNU video_cards_nvidia video_cards_vmware&quot;
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, LINGUAS
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-03-04 12:06:15 0000</bug_when>
            <thetext>I can confirm this on my system.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>patrick@gentoo.org</who>
            <bug_when>2006-03-05 00:54:35 0000</bug_when>
            <thetext>also affects kdegraphics for monolithic KDE users :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-03-05 01:19:51 0000</bug_when>
            <thetext>http://genstef.homelinux.org/kpdf-poppler-0.5.1.patch

better patch, please try it out</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>renewieben@home.nl</who>
            <bug_when>2006-03-05 02:23:41 0000</bug_when>
            <thetext>the patch in #8 works for me. Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakubpol@poczta.onet.pl</who>
            <bug_when>2006-03-05 02:25:46 0000</bug_when>
            <thetext>Patch in #8 also works for me. Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>le.petit.fou@web.de</who>
            <bug_when>2006-03-05 05:47:38 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; http://genstef.homelinux.org/kpdf-poppler-0.5.1.patch

Works for me, too. Thanks.

(I never understood why API changes were made in a x.x.1 release.)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-03-05 05:58:35 0000</bug_when>
            <thetext>Both those patches ARE NO FIXES.
They unbreak compilation, but are forcing stuff that works only out of sheer luck and that is likely to break.
If I&apos;m able to have the system stable for more than 20 minutes without GCC 4.1.0 to bite me, I&apos;ll see to provide a working one, in the mean time PLEASE DON&apos;T APPLY THIS PATCH! REALLY!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-03-05 07:07:24 0000</bug_when>
            <thetext>Okay I have a patch that should work without being evil.
Leave me a bit of time that I rebuild it and I&apos;ll apply it.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-03-05 11:28:17 0000</bug_when>
            <thetext>*** Bug 125096 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-03-05 11:33:39 0000</bug_when>
            <thetext>Okay now that I solved my connectivity problems, the patch is now merged for both kpdf and kdegraphics 3.5.1-r2, that would solve.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-03-05 12:13:31 0000</bug_when>
            <thetext>*** Bug 125109 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-03-05 14:52:16 0000</bug_when>
            <thetext>*** Bug 125139 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rumen@qrypto.org</who>
            <bug_when>2006-03-06 00:56:32 0000</bug_when>
            <thetext>Hi,
Coming from Bug-125109, which is Solved for me, even before reading this one.
Found two patched:
kpdf-3.5.1-poppler-0.5.1.patch(.bz2) and kpdf-3.5.1-poppler-0.5.1-bis.patch(.bz2).
In kpdf-3.5.1-r2.ebuild there&apos;s a line to do &quot;epatch ${DISTDIR}/patch-name&quot;, but as of 6-mar-06 there&apos;s no such patch in $DISTDIR although a emessage says it&apos;s applied ;) Maybe epatch doesn&apos;t check if a file/patch exists, haven&apos;t checked.
So made an overlay, put &quot;kpdf-3.5.1-poppler-0.5.1.patch&quot; in ${FILESDIR} and all went OK. Could attach the patches if necessary, but don&apos;t think it&apos;ll be needed ;)
PS:don&apos;t know what&apos;s the difference between the two patches (-bis part).
Thanks.Rumen</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-03-06 12:50:15 0000</bug_when>
            <thetext>*** Bug 125287 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-03-12 00:32:53 0000</bug_when>
            <thetext>*** Bug 125891 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugreports@tittel.net</who>
            <bug_when>2006-04-02 01:09:11 0000</bug_when>
            <thetext>Shouldn&apos;t the xpdf-3.01-r7 ebuild be modified accordingly, so it also depends on poppler &lt; 0.51? From my understanding the dependencies of xpdf-3.01-r7 are just wrong at the moment, because even if &gt;=app-text/poppler-0.5.0-r4 is installed xpdf won&apos;t compile due to the wrong poppler version.

In my opinion you shouldn&apos;t let people have to visit Bugzilla to find out why their packages don&apos;t build, if this can be solved properly by providing the correct depend statements in the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-04-02 01:55:36 0000</bug_when>
            <thetext>done, please open new bugs for such issues in future</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81279</attachid>
            <date>2006-03-04 04:00 0000</date>
            <desc>Patch to fix current kpdf</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXIga3BkZi0zLjUuMS5vcmlnL2twZGYvY29yZS9nZW5lcmF0b3JfcGRmL2dlbmVyYXRv
cl9wZGYuY3BwIGtwZGYtMy41LjEva3BkZi9jb3JlL2dlbmVyYXRvcl9wZGYvZ2VuZXJhdG9yX3Bk
Zi5jcHAKLS0tIGtwZGYtMy41LjEub3JpZy9rcGRmL2NvcmUvZ2VuZXJhdG9yX3BkZi9nZW5lcmF0
b3JfcGRmLmNwcAkyMDA2LTAzLTA0IDEyOjMwOjU4LjAwMDAwMDAwMCArMDEwMAorKysga3BkZi0z
LjUuMS9rcGRmL2NvcmUvZ2VuZXJhdG9yX3BkZi9nZW5lcmF0b3JfcGRmLmNwcAkyMDA2LTAzLTA0
IDEyOjU1OjAyLjAwMDAwMDAwMCArMDEwMApAQCAtMzcsNiArMzcsNyBAQAogI2luY2x1ZGUgInBv
cHBsZXIvVW5pY29kZU1hcC5oIgogI2luY2x1ZGUgInBvcHBsZXIvT3V0bGluZS5oIgogI2luY2x1
ZGUgInBvcHBsZXIvZ29vL0dvb1N0cmluZy5oIgorI2luY2x1ZGUgInBvcHBsZXIvVUdvb1N0cmlu
Zy5oIgogI2luY2x1ZGUgInBvcHBsZXIvZ29vL0dvb0xpc3QuaCIKIC8vI2luY2x1ZGUgInBvcHBs
ZXIvcG9wcGxlci1xdC5oIgogCkBAIC0zOTIsNyArMzkzLDcgQEAKICAgICAgICAgewogICAgICAg
ICAgICAgaWYgKGFubm90cy0+Z2V0QW5ub3QoaSktPmdldEFwcGVhcmFuY2UoJm9iajEpLT5pc1N0
cmVhbSgpKQogICAgICAgICAgICAgewotICAgICAgICAgICAgICAgIG9iajEuc3RyZWFtR2V0RGlj
dCgpLT5sb29rdXAoIlJlc291cmNlcyIsICZvYmoyKTsKKyAgICAgICAgICAgICAgICBvYmoxLnN0
cmVhbUdldERpY3QoKS0+bG9va3VwKChVR29vU3RyaW5nJikgIlJlc291cmNlcyIsICZvYmoyKTsK
ICAgICAgICAgICAgICAgICBpZiAob2JqMi5pc0RpY3QoKSkKICAgICAgICAgICAgICAgICB7CiAg
ICAgICAgICAgICAgICAgICAgIHNjYW5Gb250cyhvYmoyLmdldERpY3QoKSwgbGlzdCwgJmZvbnRz
LCBmb250c0xlbiwgZm9udHNTaXplKTsKQEAgLTQ5Myw3ICs0OTQsNyBAQAogICAgICAgICBEb2N1
bWVudFZpZXdwb3J0IHZpZXdwb3J0OwogICAgICAgICBHb29TdHJpbmcgKiBuYW1lZERlc3QgPSBR
U3RyaW5nVG9VR1N0cmluZyggb3B0aW9uICk7CiAgICAgICAgIGRvY0xvY2subG9jaygpOwotICAg
ICAgICBMaW5rRGVzdCAqIGRlc3RpbmF0aW9uID0gcGRmZG9jLT5maW5kRGVzdCggbmFtZWREZXN0
ICk7CisgICAgICAgIExpbmtEZXN0ICogZGVzdGluYXRpb24gPSBwZGZkb2MtPmZpbmREZXN0KChV
R29vU3RyaW5nKikgbmFtZWREZXN0ICk7CiAgICAgICAgIGlmICggZGVzdGluYXRpb24gKQogICAg
ICAgICB7CiAgICAgICAgICAgICBmaWxsVmlld3BvcnRGcm9tTGluayggdmlld3BvcnQsIGRlc3Rp
bmF0aW9uICk7CkBAIC01NTMsNyArNTU0LDcgQEAKIAogICAgIC8vIHNjYW4gdGhlIGZvbnRzIGlu
IHRoaXMgcmVzb3VyY2UgZGljdGlvbmFyeQogICAgIGdmeEZvbnREaWN0ID0gTlVMTDsKLSAgICBy
ZXNEaWN0LT5sb29rdXBORigiRm9udCIsICZvYmoxKTsKKyAgICByZXNEaWN0LT5sb29rdXBORigo
VUdvb1N0cmluZyYpICJGb250IiwgJm9iajEpOwogICAgIGlmIChvYmoxLmlzUmVmKCkpCiAgICAg
ewogICAgICAgICBvYmoxLmZldGNoKHBkZmRvYy0+Z2V0WFJlZigpLCAmb2JqMik7CkBAIC01ODAs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G9ydCgoR29vU3RyaW5nKikgZy0+Z2V0TmFtZWRE
ZXN0KCksIGctPmdldERlc3QoKSApICk7CiAgICAgICAgICAgICB9CiAgICAgICAgICAgICBicmVh
azsKIApAQCAtMjU2LDcgKzI1Niw3IEBACiAgICAgICAgICAgICAvLyBjb3B5IGxpbmsgZmlsZQog
ICAgICAgICAgICAgY29uc3QgY2hhciAqIGZpbGVOYW1lID0gZy0+Z2V0RmlsZU5hbWUoKS0+Z2V0
Q1N0cmluZygpOwogICAgICAgICAgICAgLy8gY2VhdGUgbGluazogZmlsZU5hbWUsIG5hbWVkRGVz
dCwgb2JqZWN0IHBvaW50ZXIKLSAgICAgICAgICAgIGxpbmsgPSBuZXcgS1BERkxpbmtHb3RvKCAo
UVN0cmluZylmaWxlTmFtZSwgZGVjb2RlVmlld3BvcnQoIGctPmdldE5hbWVkRGVzdCgpLCBnLT5n
ZXREZXN0KCkgKSApOworICAgICAgICAgICAgbGluayA9IG5ldyBLUERGTGlua0dvdG8oIChRU3Ry
aW5nKWZpbGVOYW1lLCBkZWNvZGVWaWV3cG9ydCgoR29vU3RyaW5nKikgZy0+Z2V0TmFtZWREZXN0
KCksIGctPmdldERlc3QoKSApICk7CiAgICAgICAgICAgICB9CiAgICAgICAgICAgICBicmVhazsK
IApAQCAtMzI3LDcgKzMyNyw3IEBACiAgICAgRG9jdW1lbnRWaWV3cG9ydCB2cCggLTEgKTsKIAog
ICAgIGlmICggbmFtZWREZXN0ICYmICFkZXN0ICkKLSAgICAgICAgZGVzdCA9IG1fZG9jLT5maW5k
RGVzdCggbmFtZWREZXN0ICk7CisgICAgICAgIGRlc3QgPSBtX2RvYy0+ZmluZERlc3QoKFVHb29T
dHJpbmcqKSBuYW1lZERlc3QgKTsKIAogICAgIGlmICggIWRlc3QgfHwgIWRlc3QtPmlzT2soKSAp
CiAgICAgICAgIHJldHVybiB2cDsK
</data>        

          </attachment>
    </bug>

</bugzilla>