For whatever reason, the latest kde-base/kpdf-3.5.1-r2 rotates all KPDF rendered images embedded inside PDFs at 90 degree angles. The bug does not exist in kde-base/kpdf-3.5.1-r1. Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.11 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.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/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" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac acl adns alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt djbfft dts dvd dvdr eds emboss encode ethereal expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 hal idn imlib ipv6 java jpeg kde kdeenablefinal lcms libg++ libwww mad mikmod mmx mmxext mng motif mp3 mpeg nptl nvidia ogg oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline spell sse ssl tcpd theora threads tiff truetype truetype-fonts type1-fonts udev urandom usb vorbis xine xml xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Might be a poppler problem, can you provide an example pdf that shows that behaviour?
I had thought that all images were displayed this way, but as I search for some links to post, I found that a few aren't, though may are. Here are some links to PDFs as well as links to images to how an example page renders on my system. PDF: http://www.fda.gov/cder/about/whatwedo/testtube.pdf Image of Page 1: http://putfile.com/pic.php?pic=3/6613205327.jpg&s=x10 PDF: http://www.truecrypt.org/docs/TrueCrypt User Guide.pdf Image of Page 6: http://putfile.com/pic.php?pic=3/6613224247.jpg&s=x10 PDF: http://download.microsoft.com/download/0/7/1/0715a190-70f5-4b0d-8ced-f9d1e046aa6a/netbench.pdf Image of Page 17: http://putfile.com/pic.php?pic=3/6613231276.jpg&s=x10 On the last link is an example of Page 17, where the images in the main document are not rotated, but the lower left image in the footer is. I have these installed: [I--] [ ] app-text/poppler-0.5.0-r4 (0) [I--] [ ] app-text/poppler-bindings-0.5.0 (0) However, I tried recompiling the problem version KPDF with each of the following, which resulted in no change at all: app-text/poppler-0.4.3-r4 app-text/poppler-0.5.0-r5 Also, I discovered what may be a related bug. This latest r2 version of KPDF crashes altogether when trying to load the following PDF, but kde-base/kpdf-3.5.1-r1 does not crash and loads it correctly: http://theory.lcs.mit.edu/~rivest/LiskovRivestWagner-TweakableBlockCiphers.pdf The crash I get seems to be either one of: Error (62272): Unexpected end of file in flate stream Error (62785): Unexpected end of file in flate stream kpdf: Fatal IO error: client killed KCrash: Application 'kpdf' crashing... --OR-- *** glibc detected *** double free or corruption (out): 0x082c8080 *** KCrash: Application 'kpdf' crashing...
Hmm they all works fine here, not rotated nor they crash. Which version of poppler are you using right now?
Using: [I--] [ ] app-text/poppler-0.5.0-r4 (0) -cairo +jpeg +zlib
Build poppler with -zlib or upgrade to a newer version (which has no zlib support at all).
Arches: Please stabilize the bugfix-revision poppler-0.5.0-r5 It fixes some bugs(like this one) from -r4 and I do not want a lot of dupes.
I just want to make clear what I said in comment #2. At that time I had tried every poppler in my portage tree, recompiling kpdf each time as well. These versions were app-text/poppler-0.4.3-r4 app-text/poppler-0.5.0-r4 (current) app-text/poppler-0.5.0-r5 Granted 0.4.3-r4 and 0.5.0-r4 were done so with +zlib, 0.5.0-r5 does not have a zlib flag, so I had already tried a version without zlib. To double check, I checked the configure output and it does say "use zlib: no". Now, I went ahead and tried recompiling with the other two versions that have the zlib option without zlib (USE=-zlib), along kpdf, as you suggested, but the problems persist. I should have synced before initially posting, because I noticed app-text/poppler-0.5.1 is there that I didn't have, which also has no zlib flag. I synced and I am now in the process of trying to get this version tested, and it compiles fine. However KPDF compilation is bailing on configure: checking for poppler-qt >= 0.3.1... configure: error: --with-poppler was given, but test for poppler failed If I can get it compiled, I'll report on whether using poppler-0.5.1 fixes the rotate problem. Again, building without zlib in poppler does not appear to solve either rotation or crashing problem, at least for those in portage < 0.5.1.
I have now successfully compiled app-text/poppler-0.5.0-r5 by doing this http://bugs.gentoo.org/show_bug.cgi?id=125248#c2. The installed components on my system now look like this: app-text/poppler-0.5.1 +jpeg app-text/poppler-bindings-0.5.1 -cairo -gtk +qt kde-base/kpdf-3.5.1-r2 +arts -debug +kdeenablefinal -kdexdeltas -xinerama However, things actually got worse. Not only are the images still rotated, but when trying to click through a page from a PDF with an embedded rotated image, KPDF crashes whenever it reaches the page to load it in the main view. Is there a "bugfix-revision poppler-0.5.0-r5" that's not in portage? I have tried every ebuild version that is in portage right now and all cause these problems on my system.
CORRECTION: Comment #8 should instead being "I have now successfully compiled app-text/poppler-0.5.1 by doing this http://bugs.gentoo.org/show_bug.cgi?id=125248#c2." I wrote the wrong version of poppler in that sentence. Sorry...
I fixed both the image rotation and crash bugs with by removing "-Os" from CFLAGS for the app-text/poppler package. I tried with both newer poppler (0.5.1) that doesn't have zlib and later poppler (0.5.0-r4) with zlib built in and both work fine. This particular problem doesn't involve zlib but this CFLAG option should probably be stripped or reduced to something functional for poppler ebuilds.
sparc stable.
I added the -Os -> -O2 replacing in the 0.5.0-r4 and -r5 ebuilds. Stabilization of -r5 because of the zlib issue is still needed!
stable on ppc64
Stable on ppc
arm done
stable on alpha
hppa done.
x86 done (X_X)
stable on amd64
mips team: do your work! By the way, it is better to have no package stable at all, then to mark packages stable late. Because usually old stable versions suffer from bugs like this one. I suggest you to drop the stable mips keyword.
All done here.