Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403997 - media-gfx/graphite2-1.1.0 fails to build
Summary: media-gfx/graphite2-1.1.0 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 03:04 UTC by Patrick Lauer
Modified: 2012-02-17 15:34 UTC (History)
5 users (show)

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


Attachments
ebuild environment file (environment,107.95 KB, text/plain)
2012-02-16 23:35 UTC, ZOleg
Details
output of 'emerge --info =media-gfx/graphite2-1.1.0' (info,5.81 KB, text/plain)
2012-02-16 23:36 UTC, ZOleg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2012-02-16 03:04:58 UTC
Scanning dependencies of target gr2fonttest
[ 96%] [100%] Building CXX object gr2fonttest/CMakeFiles/gr2fonttest.dir/gr2FontTest.cpp.o                                                                                                                                                   
Building CXX object gr2fonttest/CMakeFiles/gr2fonttest.dir/UtfCodec.cpp.o                                                                                                                                                                    
Linking CXX executable gr2fonttest                                                                                                                                                                                                           
[100%] Built target gr2fonttest                                                                                                                                                                                                              
Scanning dependencies of target gr2fonttest_copy_dll
[100%] Built target gr2fonttest_copy_dll
 * Using Module::Build
 * perl Build.PL --installdirs=vendor --libdoc= --destdir=/mnt/sdb1/build/portage/media-gfx/graphite2-1.1.0/image/ --create_packlist=0
WARNING: the following files are missing in your kit:
        README
Please inform the author.

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Text-Gr2' version '0.01'
Building Text-Gr2
x86_64-pc-linux-gnu-gcc -I/usr/lib64/perl5/5.12.4/x86_64-linux/CORE -DXS_VERSION="0.01" -DVERSION="0.01" -fPIC -Wall -Wno-unused-variable -c -march=amdfam10 -O2 -pipe -ggdb -march=amdfam10 -O2 -pipe -ggdb -o lib/Text/Gr2.o lib/Text/Gr2.c
lib/Text/Gr2.xs:5:20: fatal error: ppport.h: No such file or directory
compilation terminated.
error building lib/Text/Gr2.o from 'lib/Text/Gr2.c' at /usr/lib64/perl5/vendor_perl/5.12.4/ExtUtils/CBuilder/Base.pm line 175.
 * ERROR: media-gfx/graphite2-1.1.0 failed (compile phase):
 *   Compilation failed

Portage 2.2.0_alpha86 (!../usr/portage/profiles/default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.14.1-r2, 3.2.2-vs2.3.2.6 x86_64)
=================================================================
System uname: Linux-3.2.2-vs2.3.2.6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
Timestamp of tree: Unknown
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo kde x11 qt Testing
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /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"
CXXFLAGS="-march=amdfam10 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average=5 --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://gentoo.osuosl.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB de de_DE zh_CN"
MAKEOPTS="-j6"
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="/mnt/sdb1/build"
PORTDIR="/home/me/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/x11 /var/lib/layman/qt /home/me/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gd gdbm gdu gif gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber java javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms ldap libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs syslog taglib tcpd threads tidy tiff truetype udev unicode usb vlc vorbis wifi wmf wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xorg xpm xscreensaver xulrunner xv xvid zlib" 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 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" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_GB de de_DE zh_CN" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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 Sylvain Alain (RETIRED) gentoo-dev 2012-02-16 03:11:12 UTC
Bug confirmed.

I have the same error on my box too.
Comment 2 Drunkard Zhang 2012-02-16 03:33:09 UTC
Same here. But built successed without "perl" USE.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2012-02-16 08:24:04 UTC
Fixed in cvs.
Comment 4 Erik Zeek 2012-02-16 21:12:08 UTC
It's still failing for me.  The header file is different now, but it's still the same object file failing to build:


Building Text-Gr2
x86_64-pc-linux-gnu-gcc -I. -I../../include -I/usr/lib64/perl5/5.12.4/x86_64-linux/CORE -DXS_VERSION="0.01" -DVERSION="0.01" -fPIC -Wall -Wno-unused-variable -c -O2 -pipe -mtune=native -march=native -O2 -mabm -msse4a -ggdb -O2 -pipe -mtune=native -march=native -O2 -mabm -msse4a -ggdb -o lib/Text/Gr2.o lib/Text/Gr2.c
lib/Text/Gr2.xs:9:30: fatal error: graphite2/XmlLog.h: No such file or directory
compilation terminated.
error building lib/Text/Gr2.o from 'lib/Text/Gr2.c' at /usr/lib64/perl5/vendor_perl/5.12.4/ExtUtils/CBuilder/Base.pm line 175.
 * ERROR: media-gfx/graphite2-1.1.0 failed (compile phase):
 *   Compilation failed
Comment 5 ZOleg 2012-02-16 23:35:24 UTC
Created attachment 302215 [details]
ebuild environment file
Comment 6 ZOleg 2012-02-16 23:36:03 UTC
Created attachment 302217 [details]
output of 'emerge --info =media-gfx/graphite2-1.1.0'
Comment 7 ZOleg 2012-02-16 23:38:43 UTC
failed build for me:

[100%] Built target gr2fonttest
Scanning dependencies of target gr2fonttest_copy_dll
[100%] Built target gr2fonttest_copy_dll
 Using Module::Build
 perl Build.PL --installdirs=vendor --libdoc= --destdir=/var/tmp/portage/media-gfx/graphite2-1.1.0/image/ --create_packlist=0
WARNING: the following files are missing in your kit:
       README
Please inform the author.

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Text-Gr2' version '0.01'
Building Text-Gr2
x86_64-pc-linux-gnu-gcc -I. -I../../include -I/usr/lib64/perl5/5.12.4/x86_64-linux/CORE -DXS_VERSION="0.01" -DVERSION="0.01" -fPIC -Wall -Wno-unused-variable -c -O2 -pipe -march=nati
lib/Text/Gr2.xs:9:30: фатальная ошибка: graphite2/XmlLog.h: Нет такого файла или каталога
Компиляция прервана.
error building lib/Text/Gr2.o from 'lib/Text/Gr2.c' at /usr/lib64/perl5/vendor_perl/5.12.4/ExtUtils/CBuilder/Base.pm line 175.
  ERROR: media-gfx/graphite2-1.1.0 failed (compile phase):
  Compilation failed

  Call stack:
    ebuild.sh, line   85:  Called src_compile
    environment, line 3076:  Called perl-module_src_compile
    environment, line 2651:  Called die
  The specific snippet of code:
            ./Build build || die "Compilation failed";
Comment 8 Richard Grenville 2012-02-17 11:58:45 UTC
It's an upstream problem. They changed include/XmlLog.h to include/Log.h, but did not modify the Perl part...

A simple sed in the ebuild, and the problem is gone:

--- /usr/portage/media-gfx/graphite2/graphite2-1.1.0.ebuild	2012-02-15 20:09:02.000000000 +0800
+++ graphite2-1.1.0.ebuild	2012-02-17 19:53:00.023774736 +0800
@@ -47,6 +47,9 @@
 		sed -i \
 			-e "s:@BUILD_DIR@:\"${CMAKE_BUILD_DIR}/src\":" \
 			contrib/perl/Build.PL || die
+		for i in "${S}"/contrib/perl/lib/Text/Gr2.*; do
+			sed -i 's/XmlLog\.h/Log\.h/' "$i" || die
+		done
 	fi
 
 	# make tests optional
Comment 9 Jean-Francis Roy 2012-02-17 15:21:25 UTC
I confirm that this bug is not resolved and that the patch from comment #8 resolves it.
Comment 10 Jean-Francis Roy 2012-02-17 15:34:23 UTC
(In reply to comment #9)
> I confirm that this bug is not resolved and that the patch from comment #8
> resolves it.

Nevermind, the latest sync resolves this issue. Thanks!