Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301250 - media-gfx/inkscape-0.47 fails build with dev-libs/poppler-0.12.3
Summary: media-gfx/inkscape-0.47 fails build with dev-libs/poppler-0.12.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-17 04:24 UTC by Nick Novikov
Modified: 2010-01-31 12:36 UTC (History)
10 users (show)

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


Attachments
build log (build.log,888.10 KB, text/plain)
2010-01-17 04:26 UTC, Nick Novikov
Details
ebuild which applies the patch (inkscape-0.47-r1.ebuild,2.30 KB, text/plain)
2010-01-31 12:36 UTC, Dieter Ries
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Novikov 2010-01-17 04:24:54 UTC
Inkscape fails to build due to a change in poppler API.


Reproducible: Always

Steps to Reproduce:
1. emerge inkscape

Actual Results:  
Build fails with
extension/internal/pdfinput/pdf-parser.cpp:812: error: no matching function for
call to ‘GfxColorSpace::parse(Object*)’



the commit that broke inkscape:
http://cgit.freedesktop.org/poppler/poppler/commit/?id=b174ebd6b323c7a58a19d59c1a9e4ac4e6cba7d9

discussion on launchpad:
https://bugs.launchpad.net/inkscape/+bug/487038

emerge --info:
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1-n1 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-n1-i686-Intel-R-_Celeron-R-_CPU_2.53GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 16 Jan 2010 16:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA Nero-EULA-US PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -floop-interchange -floop-strip-mine -floop-block -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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=native -O2 -floop-interchange -floop-strip-mine -floop-block -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror2.corbina.ru/gentoo-distfiles/ http://gentoo-mirror.spb.ru/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,--as-needed"
LINGUAS="en ru"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/haskell /usr/local/own-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa applet archive artworkextra bash-completion berkdb blas branding bzip2 cairo caps cblas cdda cddb cdr cli consolekit cracklib crypt cups curl cxx dbus dga dhcp dirac djvu doc dri dts dvd dvdr dvi eds emboss encode evo examples exif expat extras fam ffmpeg fftw firefox flac fontconfig fortran galago gdbm gif git glade glitz gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk hal hdri hscolour iconv icu idn jadetex jpeg jpeg2k lame lapack lasi latex lcms libedit libnotify libsamplerate lua lzma mad matroska mikmod mmap mmx mng modplug modules mono mp3 mp4 mpeg mudflap musepack mysql nautilus ncurses nls nptl nptlonly ogg openexr opengl openmp openssl pam pcre pdf perl phonon plugins png policykit ppds pppd python qt3support qt4 quicktime raw readline reflection schroedinger scrobbler sdl session slang sndfile source spell spl sqlite sse sse2 ssl startup-notification subversion suid svg sysfs t1lib taglib tcl theora threads thumbnail thunar tiff tk tools truetype unicode usb utils v4l2 vorbis wavpack webkit win32codecs wmf wxwidgets x264 x86 xattr xcb xml xmp xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nick Novikov 2010-01-17 04:26:50 UTC
Created attachment 216715 [details]
build log
Comment 2 Markus Meier gentoo-dev 2010-01-18 19:51:48 UTC
fedora uses this patch to fix this issue:
http://cvs.fedoraproject.org/viewvc/rpms/inkscape/devel/inkscape-0.47-newpoppler.patch?content-type=text%2Fplain&view=co
it should work with all versions of poppler. but I'll have to test it first.
Comment 3 Tobias Klausmann (RETIRED) gentoo-dev 2010-01-22 20:59:43 UTC
That patch works for me (on ~x86)
Comment 4 Jose Antonio Rodríguez 2010-01-24 10:39:27 UTC
Patch also works here in x86_64.
Comment 5 Jose Antonio Rodríguez 2010-01-24 10:40:16 UTC
Patch also works here in x86_64.
Comment 6 labor_ratte 2010-01-25 15:18:30 UTC
Can you provide a .diff for the ebuild (on how to apply the patch)?

I tried this, but it couldn't find epatch command at preparing?

src_prepare() {
        epatch "${FILESDIR}"/${P}-poppler-0.12.3.patch

        gnome2_src_prepare
}
Comment 7 labor_ratte 2010-01-25 15:23:27 UTC
(In reply to comment #6)
> I tried this, but it couldn't find epatch command at preparing?

Solved. Obviously, in haste I forgot to inherit eutils ;-)
Comment 8 Nick Novikov 2010-01-26 09:53:27 UTC
Patch works for me.
Thank you!
Comment 9 Matías Costa 2010-01-26 17:36:37 UTC
The patch works here too with ~amd64
Comment 10 tman 2010-01-29 13:21:43 UTC
would be nice if someone put the fixed ebuild as soon as in portage
Comment 11 Markus Meier gentoo-dev 2010-01-31 12:33:23 UTC
patch from comment #2 committed to cvs. you may resync in a bit to get it building again. thanks for testing the patch!

  31 Jan 2010; Markus Meier <maekke@gentoo.org> inkscape-0.47.ebuild,
  +files/inkscape-0.47-poppler.patch:
  add patch from fedora to build with poppler-0.12.3 wrt bug #301250
Comment 12 Dieter Ries 2010-01-31 12:36:26 UTC
Created attachment 217990 [details]
ebuild which applies the patch