Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287686 - app-text/calibre: Compille error when poppler is less than 0.12.0
Summary: app-text/calibre: Compille error when poppler is less than 0.12.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-10-05 00:47 UTC by Stephen Inkpen
Modified: 2009-10-07 22:48 UTC (History)
1 user (show)

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


Attachments
calibre-0.6.16-r1.ebuild.diff (calibre-0.6.16-r1.ebuild.diff,609 bytes, patch)
2009-10-06 19:49 UTC, René 'Necoro' Neumann
Details | Diff
calibre build log (build.log,10.83 KB, text/plain)
2009-10-07 21:05 UTC, René 'Necoro' Neumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Inkpen 2009-10-05 00:47:40 UTC
The method signature for drawImageMask in /usr/include/poppler/OutputDev.h changed from version 0.10.7 to 0.12.0.

The build fails when the compiler can't find the method with the appropriate arguments.

Sorry... don't have the logs.

Reproducible: Always

Steps to Reproduce:
1. Have poppler 0.10.7 installed
2. Emerge calibre
3. Build will fail
Comment 1 René 'Necoro' Neumann 2009-10-06 19:06:34 UTC
poppler-0.12 is also mentioned as a dependency on the calibre site
Comment 2 Stephen Inkpen 2009-10-06 19:21:28 UTC
True enough... just figured it should be in the ebuild. I've started looking at ebuilds but I wouldn't be comfortable making the change *yet*...

(In reply to comment #1)
> poppler-0.12 is also mentioned as a dependency on the calibre site
> 

Comment 3 René 'Necoro' Neumann 2009-10-06 19:49:25 UTC
Created attachment 206259 [details, diff]
calibre-0.6.16-r1.ebuild.diff

Here you go ...

I also changed the libusb dependency to reflect calibres requirements.

A couple of issues still reside:

- calibre also mentiones >=media-libs/libwmf-0.28 as requirement. I do not know whether and where this is really required. So I haven't added it here.

- DEPEND repeates some dependencies from SHARED_DEPEND. As I thought this to be intentional, I have not cleaned this :).

- during compilation, calibre complains, that it could not find poppler-qt4. I do not know, if this is just optional, forgotten or whatever. It is not mentioned on the homepage, and the source does also not contain any documentation about the dependencies (and it compiles fine besides the warning :P)...
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2009-10-07 20:44:20 UTC
Olease provide an example build.log from a failed build and a link to the requirements on the calibre website.
Comment 5 Zac Medico gentoo-dev 2009-10-07 21:04:52 UTC
http://calibre.kovidgoyal.net/download_linux

I see poppler 0.12.0 listed there. For libusb it says 0.1.12 though, so maybe the :0 slot dep is appropriate, since SLOT 1 is libusb-1.x.
Comment 6 René 'Necoro' Neumann 2009-10-07 21:05:14 UTC
Created attachment 206368 [details]
calibre build log

Here you are ... 

emerge --info
Portage 2.2_rc44 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 06 Oct 2009 10:45:03 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.3
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3"
FEATURES="assume-digests candy distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/binfiles"
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"
PORTDIR_OVERLAY="/usr/local/layman/sunrise /usr/local/layman/bazaar /usr/local/layman/sping /usr/local/layman/portato /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdread emboss encode evo fam flac gdbm gif gpm gtk hal iconv ipv6 isdnlog jpeg latex libnotify mad matroska mikmod mmap mmx modules mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pcre pdf perl png ppds pppd python qt3support quicktime readline reflection scanner sdl session spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vim-syntax vorbis win32codecs x264 x86 xcb xml xorg xulrunner xv xvid xvmc zlib zsh-completion" ALSA_CARDS="hda-intel" 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="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 René 'Necoro' Neumann 2009-10-07 21:05:51 UTC
And here the link: http://calibre.kovidgoyal.net/download_linux

Dependencies are at the bottom of the page
Comment 8 René 'Necoro' Neumann 2009-10-07 21:07:30 UTC
Concerning the libusb-dep ...

perhaps: >=dev-libs/libusb-0.1.12:0 ?

because there is also a libusb-0.1.11 in the tree
Comment 9 Zac Medico gentoo-dev 2009-10-07 22:48:33 UTC
Thanks, this is fixed in cvs now.