Created attachment 360702 [details, diff] proposed patch from build.log: python scripts/setisFixedPitch-fonttools.py src/LiberationMono-*.ttf File "scripts/setisFixedPitch-fonttools.py", line 37 print fontfile ^ SyntaxError: invalid syntax This issue may already have been reported in 472756, but for clarity I preferred to open a new bug report. The issue is pretty simple: a python script executed in the build phase uses statements which are not valid anymore in python3. My main python interpreter is python3 (note that this is a fresh install and I did not set the interpreter manually), and therefore it fails to emerge. The proposed fix is quite simple: it ensures that python2 is used. emerge --info: Portage 2.2.7 (default/linux/amd64/13.0/developer, gcc-4.8.1, glibc-2.15-r3, 3.11.4-gentoo x86_64) ================================================================= System uname: Linux-3.11.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-3667U_CPU_@_2.00GHz-with-gentoo-2.2 KiB Mem: 8047620 total, 1933680 free KiB Swap: 0 total, 0 free Timestamp of tree: Fri, 11 Oct 2013 20:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r2, 3.2.5-r2, 3.3.2-r2 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.2 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.12.6 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.6.3, 4.8.1-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo local science x11 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA skype-4.0.0.7-copyright AdobeFlash-11.x" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" 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 /usr/share/themes/oxygen-gtk/gtk-3.0" 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="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n " FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo" LANG="en_US.utf-8" LC_ALL="en_US.utf-8" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/usr/local/overlays/local /usr/local/overlays/sci /usr/local/overlays/x11" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aacplus acl acpi alsa amd64 amr apm avx bash-completion berkdb bluetooth bzip2 cairo caps cdda cdr chm clang cli consolekit cracklib crypt cryptsetup cups curl custom-cflags custom-optimization cxx dbus djvu dri dts dvd dvdr ebook egl emboss encode epspdf exif faac fam ffmpeg fftw firefox flac fontconfig fontforge fortran frei0r gdbm gif gles gles1 gles2 gpm graphics graphite gstreamer gtk iconv icu idn inotify ipv6 jpeg jpeg2k kde kernel lapack latex lcms ldap libkms libnotify lto lzma mad matplotlib matroska minizip mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses netlink nettle network nls nptl numpy ocaml ogg opengl openmp optimization opus pam pango pcre pdf perl pgf pgo png policykit ppds pstricks publishers pyqt4 python qt3support qt4 readline rtmp ruby schroedinger science sdl secure-delete session sndfile snmp sparse speex spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg system-cairo system-icu system-jpeg system-sqlite taglib tcpd theora threads tiff tools truetype tty-helpers twolame udev udisks unicode upower usb utils vaapi vim-pager vim-syntax vlc vorbis vpx wayland wxwidgets x264 xa xattr xcb xetex xlib-xcb xml xorg xv xvfb xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby19 ruby20" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Thank you - I'll take a look :D
(In reply to Jeffrey Gardner from comment #1) > Thank you - I'll take a look :D Here is a patch that uses the python-any-r1 eclass which is imo the better solution than poking at the build system. It would be nice if this can be resolved in a time frame less than another 6 months, the age of this bug ;-). --- liberation-fonts-2.00.1.ebuild.orig 2014-04-04 15:15:38.264475581 +0200 +++ liberation-fonts-2.00.1.ebuild 2014-04-04 15:45:32.502841535 +0200 @@ -4,7 +4,9 @@ EAPI=4 -inherit font +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit font python-any-r1 DESCRIPTION="A Helvetica/Times/Courier replacement TrueType font set, courtesy of Red Hat" HOMEPAGE="https://fedorahosted.org/liberation-fonts" @@ -20,7 +22,8 @@ FONT_CONF=( "${FILESDIR}/60-liberation.conf" ) -DEPEND="fontforge? ( +DEPEND="${PYTHON_DEPS} + fontforge? ( media-gfx/fontforge dev-python/fonttools )" @@ -33,5 +36,6 @@ FONT_S="${WORKDIR}/${PN}-ttf-${PV}" S="${FONT_S}" fi + python-any-r1_pkg_setup font_pkg_setup }
Fixed in portage - thanks!
Created attachment 374736 [details, diff] liberation-fonts-2.00.1-r1.ebuild.patch Dependency on Python is not needed with USE="-fontforge". Please apply this patch.