Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 382203

Summary: app-text/kbibtex-0.3: missing dependency to app-text/poppler[qt4]
Product: Gentoo Linux Reporter: Florian Schmaus <flow>
Component: New packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: fischer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Florian Schmaus gentoo-dev 2011-09-07 20:58:05 UTC
Shared          -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-O1 -Wl,--as-needed

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POPPLER_QT4_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /var/tmp/portage/app-text/kbibtex-0.3/work/kbibtex-0.3/src/libkbibtexio
POPPLER_QT4_LIBRARY
    linked by target "kbibtexio" in directory /var/tmp/portage/app-text/kbibtex-0.3/work/kbibtex-0.3/src/libkbibtexio

-- Configuring incomplete, errors occurred!
 * ERROR: app-text/kbibtex-0.3 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 4055:  Called kde4-base_src_configure
 *   environment, line 3184:  Called cmake-utils_src_configure
 *   environment, line 1290:  Called _execute_optionaly 'src_configure'
 *   environment, line  667:  Called enable_cmake-utils_src_configure
 *   environment, line 1613:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =app-text/kbibtex-0.3',
 * the complete build log and the output of 'emerge -pqv =app-text/kbibtex-0.3'.
 * The complete build log is located at '/var/tmp/portage/app-text/kbibtex-0.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/kbibtex-0.3/temp/environment'.
 * S: '/var/tmp/portage/app-text/kbibtex-0.3/work/kbibtex-0.3'


Reproducible: Always

Steps to Reproduce:
1. emerge kbibtex



 emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 3.1.0-rc4 x86_64)
=================================================================
System uname: Linux-3.1.0-rc4-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 31 Aug 2011 22:30:02 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1::sage-on-gentoo, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo arcon belak scarabeus_local_overlay dustin pentoo gnome local flow bitcoin sage-on-gentoo sunrise gentoo-haskell
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j 4"
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"
PORTDIR_OVERLAY="/var/lib/layman/arcon /var/lib/layman/belak /var/lib/layman/scarabeus /var/lib/layman/dustin /var/lib/layman/pentoo /var/lib/layman/gnome /usr/local/portage /usr/local/flo_portage /usr/local/bitcoin-gentoo /usr/local/sage-on-gentoo /usr/local/sunrise /usr/local/gentoo-haskell"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aalib acl acpi adns alsa amd64 ao applet asyncns autoipd avahi bash-completion berkdb bluetooth bzip2 cairo canvas caps cdda cdparanoia cdr chipcard2 cli consolekit cracklib crypt cuda cups curl cvs cxx daap darcs dbus dedicated device-mapper dga dia dirac divx4linux dri dv dvd dvdr dvdread dynamic eap-sim emacs escreen exif extra extras fat ffmpeg firefox flac fontconfig fortran ftp fuse gajim galago gcrypt gd gdbm gdu gedit geldkarte gif gimp git glitz gnome gnome-keyring gnutls gpg gphoto2 gpm gps gtk gtk2 hddtemp howl howl-compat iconv icu id3tag idn ieee1394 imap inkjar iproute2 ipv6 ithreads jadetex java java6 javascript jingle jpeg jpeg2k kde kdrive keyring kpathsea kvm latex libcaca libedit libnotify lm_sensors logrotate lua mad matroska mdnsresponder-compat mercurial mmx mmxext mng modules mozilla mozsvg mp2 mp3 mpeg mplayer mudflap multilib musicbrainz nas nautilus ncurses networkmanager nls nptl nptlonly nsplugin nss ntfs ocamlopt offensive ogg openal openct opengl openmp otr pam pcmcia pcre pcsc-lite pdf perl pixbuf png policykit posix pppd preview-latex pulseaudio python qemu qt qt3support qt4 quicktime rar readline rtc ruby samba schroedinger sdl secure-delete session slang smartcard smp speex spell sqlite srv sse sse2 ssl ssse3 stars subtitles subversion svg sysfs system-sqlite tagwriting tga theora threads tiff tk tordns tpm truetype twolame udev unicode upnp usb utils v4l v4l2 vcd vorbis webkit wifi wxwidgets x264 xattr xcb xforms xft xinerama xorg xv xvid xvmc zeroconf zlib zrtp zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-09-08 10:07:27 UTC
Please attach your full build.log
Comment 2 Thomas Fischer 2011-09-08 13:10:41 UTC
KBibTeX depends on Poppler with Qt bindings as ldd shows:

# ldd /usr/bin/kbibtex  | grep -i poppler
  libpoppler-qt4.so.3 => /usr/lib/libpoppler-qt4.so.3 (0xb428e000)
  libpoppler.so.13 => /usr/lib/libpoppler.so.13 (0xb38e8000)

It looks like the dependencies in the ebuild script do not include poppler and should be fixed by adding app-text/poppler with the use flag "qt4".

I assume this hasn't been a problem before as most people who use KDE and KBibTeX have poppler with Qt bindings installed due to some other program's dependency.

A good hint which libraries or packages a software depends on is using ldd (as shown above) or looking into CMakeLists.txt to see for which libraries tests are run:
find_package(PopplerQt4)
Comment 3 Florian Schmaus gentoo-dev 2011-09-09 19:20:16 UTC
Build log can be found here: http://paste.pocoo.org/show/473214/
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-09-09 20:20:05 UTC
Fixed, thanks!
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2011-09-10 08:20:44 UTC
(In reply to comment #2)
> KBibTeX depends on Poppler with Qt bindings as ldd shows:
> 
> # ldd /usr/bin/kbibtex  | grep -i poppler
>   libpoppler-qt4.so.3 => /usr/lib/libpoppler-qt4.so.3 (0xb428e000)
>   libpoppler.so.13 => /usr/lib/libpoppler.so.13 (0xb38e8000)

Next time use lddtree, objdump -p, or scanelf to figure out NEEDED entries, since `ldd` will also print libs used by libs it's using (indirect dependencies) and is thus, unreliable for this kind of work