This is a follow-up of bug #132883 and an evince bug as reported in https://bugs.freedesktop.org/show_bug.cgi?id=7093 (at poppler bugzilla) The problem is: Evince developers want to depend only on poppler-glib, however within this wrapper there is no reference to GlobalParameters.h - the place where all poppler initializations are described. Due to that ALL CJK CMap stuff is uninitialized and those pdfs (with non-embedded CID fonts) are displayed incorrectly. The solution I gave got ignored - well, yeah it IS a hack, but for the time being I think it's the only way to make things work. So, I attach an ebuild and a patch that makes things work for me. It works by doing same initialization as for xpdf, namely it either reads ${HOME}/.xpdfrc or /etc/xpdfrc. If those files are correct and you have CMaps (ghostscript installs them with USE=cjk) and cidToUnicode files (those are from xpdf localization packages), cjk pdfs are displayed correctly.
Created attachment 97397 [details] Ebuild that works with cjk pdfs Only change is the patch.
Created attachment 97398 [details, diff] Required patch It's a bit different then the one described in above mentioned bugs, cause that one stoped working with gtk 2.10 (when file was loaded through dialog, command line still sort of worked) , this one works.
Both ebuild and patch are for app-text/evince-0.6.0 but patch should work with 0.5.x series too.
Why do we need two bugs for the same issue?
Cause previous bug was about several issues and probably was considered solved with one of previous popper/evince releases (what was not true). Anyhow, with poppler 0.5.4 issue is solved, but in a way that brings up something that I brought up nearly two years ago. Namely, I wrote back then that it would be a good idea to move all of CMaps to separate package (trigered by USE=cjk) , as xpdf AND ghostscript were using them, but keeping own copies. Now evince will parse /usr/share/poppler looking for ie. cMap and cidToUnicode files (those were were only in xpdf localizations), so now it would be a number three copy. As stated in bug #104107 most recent are installed by ghostscript BUT ghostscript installs those in /usr/share/ghostscript/${PV}/Resource -- the problem is ${PV} part, it means that with each new ghostscript version it moves and config files have to be fixed. One more thing, poppler-bindings-0.5.4 will need a little fix - in configure.ac they're PKG_CHECK_MODULES for glib instead of glib-2.0, so autoconf bails out.
What's more, they fixed it in poppler in a way that will make poppler-based xpdf first read xpdf.rc, and then scan those above mentioned directories anyway.
Changing description of this bug to a more fitting one. poppler-data installs all of those linguas-triggered xpdf files, what's more, many of those files seem not to be needed - the whole unicodeMap dir contains files that were needed for original xpdf but poppler-based one seems to work without them (pdftotext too).
so what needs to be changed? Care to propose a patch for the ebuild? :)
Well, as poppler-data provides all those files, instead of those linguas useflags maybe a dependency on poppler-data ? I'm not quite sure, but I think that for poppler-based xpdf those files are required only for cjk and perhaps for Bulgarian and Thai (from nameToUnicode), cause others were needed for xpdf cause it was not internaly unicode. As for cmaps, I stil belive that those installed by ghostscript and those installed by poppler should be compared, most recent versions should be chosen, and then should be moved to a separate package or at least somebody should inform poppler team about those more recent or missing files to add them to new release of poppler-data.
is this problem also with current version of poppler data? if not please close this bug.
(In reply to comment #10) > is this problem also with current version of poppler data? if not please close > this bug. > I don't know if this is the same issue repeating itself over again, but today's updated world brought in, among the rest, this: [ebuild N ] app-text/poppler-0.12.3-r3 USE="abiword cairo jpeg lcms png utils xpdf-headers -cjk -debug -doc -exceptions -jpeg2k -qt4" [uninstall ] dev-libs/poppler-0.10.7 [blocks b ] dev-libs/poppler ("dev-libs/poppler" is blocking app-text/poppler-0.12.3-r3) [uninstall ] dev-libs/poppler-glib-0.10.7 [blocks b ] app-text/poppler ("app-text/poppler" is blocking dev-libs/poppler-glib-0.10.7, dev-libs/poppler-0.10.7) [blocks b ] dev-libs/poppler-glib ("dev-libs/poppler-glib" is blocking app-text/poppler-0.12.3-r3) [ebuild U ] virtual/poppler-glib-0.12.3-r2 [0.10.7] [ebuild U ] virtual/poppler-0.12.3-r1 [0.10.7] USE="lcms%*" I then run revdep-rebuild, found out that app-text/xpdf-3.02-r2 was to be rebuilt. However, re-emerging xpdf produces these error messages: * ERROR: app-text/xpdf-3.02-r2 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2603: Called _eapi2_src_compile * ebuild.sh, line 646: Called die * The specific snippet of code: * emake || die "emake failed" * * If you need support, post the output of 'emerge --info =app-text/xpdf-3.02-r2', * the complete build log and the output of 'emerge -pqv =app-text/xpdf-3.02-r2'. * The complete build log is located at '/var/tmp/portage/app-text/xpdf-3.02-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/xpdf-3.02-r2/temp/environment'. * S: '/var/tmp/portage/app-text/xpdf-3.02-r2/work/xpdf-3.02-poppler' Full emerge build.log will be uploaded soon. I'm eagerly awaiting for your ideas. I wonder if anyone else has experienced anything like this as of lately. emerge --info stuff: Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r6-i686-Pentium_III_-Coppermine-with-gentoo-1.12.13 Timestamp of tree: Fri, 05 Feb 2010 17:15:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.lagis.at/ ftp://gentoo.lagis.at/ http://gentoo.wetzlmayr.com/ http://mirror.bih.net.ba/gentoo/ ftp://mirror.bih.net.ba/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ http://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ http://files.gentoo.gr ftp://files.gentoo.gr ftp://ftp.unina.it/pub/linux/distributions/gentoo " LANG="it_IT.utf8" LDFLAGS="-Wl,-O1" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apm audiofile avi berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cxx dbus dga directfb dri dts dvd dvdr emboss encode evo fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv id3 imlib ipv6 jikes jpeg ldap lesstif libnotify mad mbox mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support quicktime readline reflection rtc scanner sdl seamonkey session spell spl sse ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb v4l2 vcd vorbis win32codecs x264 x86 xinetd xml xorg xulrunner xv xvid zlib" ALSA_CARDS="es1938 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="fbdev i740 mga r128 s3 s3virge savage" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 218581 [details] Full /var/tmp/portage/app-text/xpdf-3.02-r2/temp/build.log emerge log file (146K)
(In reply to comment #11) > I don't know if this is the same issue repeating itself over again, but today's > updated world brought in, among the rest, this: I just found out bug #303461: app-text/xpdf-3.02-r4: stabilize as current stable is broken with recently stabilized app-text/poppler-0.12.x This is just what I was experiencing. Running ACCEPT_KEYWORDS='~x86' emerge --oneshot xpdf solved the issue.
Alessandro: that is completely unrelated to this bug. Closing this one, as I assume the original issue is fixed. Feel free to reopen if you have evidence it is not.