Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431268 - media-libs/libextractor-0.6.3-r1 fails to build after upgrading to app-text/poppler-0.20.3
Summary: media-libs/libextractor-0.6.3-r1 fails to build after upgrading to app-text/p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: poppler-0.20
  Show dependency tree
 
Reported: 2012-08-13 18:07 UTC by Mattia Rossi
Modified: 2012-08-14 09:49 UTC (History)
2 users (show)

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


Attachments
libextractor-0.6.3-r1.ebuild diff (libextractor-0.6.3_poppler-0.20.3.diff,484 bytes, text/plain)
2012-08-14 05:46 UTC, Rick Harris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Rossi 2012-08-13 18:07:23 UTC
After upgrading to poppler-0.20.3 today I had to run an emerge @preserved-rebuild which then fails when trying to build libextractor-0.6.3-r1

The error:

libtool: link: mv -f ".libs/libextractor_ogg.expT" ".libs/libextractor_ogg.exp"
libtool: link: echo "{ global:" > .libs/libextractor_ogg.ver
libtool: link:  cat .libs/libextractor_ogg.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libextractor_ogg.ver
libtool: link:  echo "local: *; };" >> .libs/libextractor_ogg.ver
libtool: link:  x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/ogg_extractor.o   -L/usr/lib64/qt4 -lvorbisfile -lvorbis -logg  -march=native -O2 -Wl,-Bsymbolic -Wl,-O1 -Wl,--as-needed   -Wl,-soname -Wl,libextractor_ogg.so -Wl,-version-script -Wl,.libs/libextractor_ogg.ver -o .libs/libextractor_ogg.so
libtool: link: ( cd ".libs" && rm -f "libextractor_ogg.la" && ln -s "../libextractor_ogg.la" "libextractor_ogg.la" )
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/common  -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg    -march=native -O2 -pipe -fomit-frame-pointer -c -o pdf_extractor.lo pdf_extractor.cc
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/common -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtSvg -march=native -O2 -pipe -fomit-frame-pointer -c pdf_extractor.cc  -fPIC -DPIC -o .libs/pdf_extractor.o
In file included from pdf_extractor.cc:30:0:
/usr/include/poppler/goo/gmem.h:29:28: fatal error: poppler-config.h: No such file or directory
compilation terminated.
make[4]: *** [pdf_extractor.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-libs/libextractor-0.6.3-r1/work/libextractor-0.6.3/src/plugins'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-libs/libextractor-0.6.3-r1/work/libextractor-0.6.3/src/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/libextractor-0.6.3-r1/work/libextractor-0.6.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/libextractor-0.6.3-r1/work/libextractor-0.6.3'
make: *** [all] Error 2

emerge --info:
Portage 2.2.0_alpha120_p23 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r2, 3.5.1-gentoo x86_64)
=================================================================
System uname: Linux-3.5.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Mon, 13 Aug 2012 13:15:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.2
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo Mat
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA nomachine AdobeFlash-10.3 skype-eula skype-4.0.0.7-copyright PUEL dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X \ a52 aac accessibility acl acpi alsa amd64 amr apache2 apng avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cdda cddb cdparanoia cdr chm cli consolekit cracklib crypt cups curl cxx dbus declarative desktopglobe device-mapper dhcpcd dirac djvu dlna dri drm dts dvb dvd dvdr ebook emboss encode exif extras faac faad fam fat fbcondecor ffmpeg fftw firefox flac fortran g3dvl gadu gbm gdbm geoip geolocation gif glitz gnutls gphoto2 gpm groupwise gs gstreamer gtk hfs iconv id3tag ieee1394 imagemagick ios ipod ipv6 jfs jingle jpeg jpeg2k kde kipi lame lastfm latex lcms ldap libkms libnotify libssh2 libv4l2 lzma lzo mad matroska meanwhile midi mmap mmx mmxext mng modules motif mp3 mp3tunes mp4 mpeg msn mudflap multilib multimedia musepack musicbrainz mysql ncurses network networkmanager nls nptl nss ntfs ogg opengl openmp openvg optimiation oscar oss otr pam pango pcre pdf perl phonon pic plasma plymouth png pnm policykit ppds pppd python qalculate qq qt3support qt4 qwt raw rdp readline reiser4 reiserfs resolvconf rss rtmp rtsp samba schroedinger scim sdl semantic-desktop server session skins skype sms sna speex spell sql sqlite sqlite3 sse sse2 ssh ssl startup-notification stream strong-optimization subversion svg symlink taglib tcpd theora threads tiff truetype twolame udev udisks unicode upnp upower usb v4l v4l2 vaapi vcd vcdx vdpau video vnc vorbis vpx webinterface webkit wicd wifi wxwidgets x264 xcb xcomposite xfs xft xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" 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 sheets stage tables krita karbon braindump" CAMERAS="canon nikon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" 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" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Reproducible: Always

Steps to Reproduce:
1. emerge app-text/poppler-0.20.3
2. emerge media-libs/libextractor-0.6.3-r1
or run emerge @preserved-rebuild
Actual Results:  
build of libextractor fails due to missing  poppler-config.h

Expected Results:  
build succeeds
Comment 1 Rick Harris 2012-08-14 05:46:54 UTC
Created attachment 321280 [details]
libextractor-0.6.3-r1.ebuild diff

Me too!
And you need to enable the 'pdf' USE flag for libextractor to have it error out.

Judging by https://bugs.freedesktop.org/show_bug.cgi?id=52193 poppler are now assuming that other packages will be using pkg-config to find it's include path but libextractor does not do it this way and compiles a series of small test programs instead.

Appending cppflags in ebuild using pkg-config as we already do for USE 'qt4' seems to do the trick.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-08-14 09:49:35 UTC
Yeah, I'm OK with these sort of 'workarounds' for libextractor. Not going to rewrite their build system to not suck.

Applied to Portage, thank you.