Tachyon is needed for Sage, please import it to prefix. The only change I made was adding the ~x86-linux keyword. Reproducible: Always Steps to Reproduce: Portage 2.2.01.15553-prefix (prefix/linux/x86, gcc-4.4.4, unavailable, 2.6.34-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.34-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 14 Oct 2010 09:11:22 +0000 app-shells/bash: 4.1_p7 dev-lang/python: 2.6.6-r1::sage-on-gentoo dev-util/cmake: 2.8.1-r2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.51.0.10 sys-devel/gcc: 4.4.4-r1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 ACCEPT_KEYWORDS="~x86-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/home/gnuke/gentoo/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/home/gnuke/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/home/gnuke/gentoo/" 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="/home/gnuke/gentoo/var/tmp" PORTDIR="/home/gnuke/gentoo/usr/portage" PORTDIR_OVERLAY="/home/gnuke/sage-experiments/sage-on-gentoo /home/gnuke/sage-experiments/sage-on-prefix" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="berkdb bzip2 cli cracklib crypt cxx dri fortran iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pcre perl pppd prefix python readline reflection session ssl sysfs tcpd unicode x86 xorg 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 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
this change would be necessary for Linux Prefix: Index: tachyon-0.98.9-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9-r1.ebuild,v retrieving revision 1.2 diff -u -r1.2 tachyon-0.98.9-r1.ebuild --- tachyon-0.98.9-r1.ebuild 8 Nov 2010 18:45:47 -0000 1.2 +++ tachyon-0.98.9-r1.ebuild 11 Nov 2010 07:23:42 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9-r1.ebuild,v 1.2 2010/11/08 18:45:47 xarthisius Exp $ -EAPI="2" +EAPI="3" inherit eutils toolchain-funcs @@ -85,7 +85,7 @@ fi if use mpi ; then - sed -i "s:MPIDIR=:MPIDIR=/usr:g" Make-config || die "sed failed" + sed -i "s:MPIDIR=:MPIDIR=${EPREFIX}/usr:g" Make-config || die "sed failed" sed -i "s:linux-lam:linux-mpi:g" Make-config || die "sed failed" fi sed -i \ but in order to support Darwin and Solaris, the following change could do it: Index: tachyon-0.98.9-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9-r1.ebuild,v retrieving revision 1.2 diff -u -r1.2 tachyon-0.98.9-r1.ebuild --- tachyon-0.98.9-r1.ebuild 8 Nov 2010 18:45:47 -0000 1.2 +++ tachyon-0.98.9-r1.ebuild 11 Nov 2010 07:53:00 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/tachyon/tachyon-0.98.9-r1.ebuild,v 1.2 2010/11/08 18:45:47 xarthisius Exp $ -EAPI="2" +EAPI="3" inherit eutils toolchain-funcs @@ -34,32 +34,53 @@ TACHYON_MAKE_TARGET= pkg_setup() { - if use threads ; then - if use opengl ; then + case "${CHOST}:$(usev threads):$(usev mpi):$(usev opengl)" in + *-linux-gnu:threads::opengl) TACHYON_MAKE_TARGET=linux-thr-ogl - if use mpi ; then - die "tachyon does not support MPI with OpenGL and threads" - fi - elif use mpi ; then + ;; + *-linux-gnu:threads:mpi:) TACHYON_MAKE_TARGET=linux-mpi-thr - else + ;; + *-linux-gnu:threads::) TACHYON_MAKE_TARGET=linux-thr - fi - - # TODO: Support for linux-athlon-thr ? - else - if use opengl ; then - # TODO: Support target: linux-lam-64-ogl - - die "OpenGL is only available with USE=threads!" - elif use mpi ; then - TACHYON_MAKE_TARGET=linux-mpi - else + ;; + *-linux-gnu::mpi:) + TACHYON_MAKE_TARGET=linux-mpi + ;; + *-linux-gnu:::) TACHYON_MAKE_TARGET=linux - fi - - # TODO: Support for linux-p4, linux-athlon, linux-ps2 ? - fi + ;; + i?86-*-darwin*:threads::opengl) + TACHYON_MAKE_TARGET=macosx-x86-thr-ogl + ;; + powerpc*-darwin*:threads::) + TACHYON_MAKE_TARGET=macosx-thr + ;; + *-darwin*:threads::) + TACHYON_MAKE_TARGET=macosx-x86-thr + ;; + *-darwin*:::) + TACHYON_MAKE_TARGET=macosx + ;; + sparc-*-solaris*:threads::opengl) + TACHYON_MAKE_TARGET=solaris-ultra-thr-ogl + ;; + sparc-*-solaris*:threads::) + TACHYON_MAKE_TARGET=solaris-thr + ;; + sparcv9-*-solaris*:threads::) + TACHYON_MAKE_TARGET=solaris-64-thr + ;; + sparc-*-solaris*::mpi:) + TACHYON_MAKE_TARGET=solaris-mpi + ;; + *-solaris*:::) + TACHYON_MAKE_TARGET=solaris + ;; + *) + die "tachyon does not support selected combination of MPI, OpenGL and threads for target ${CHOST}" + ;; + esac if [[ -z "${TACHYON_MAKE_TARGET}" ]]; then die "No target found, check use flags" @@ -85,7 +106,7 @@ fi if use mpi ; then - sed -i "s:MPIDIR=:MPIDIR=/usr:g" Make-config || die "sed failed" + sed -i "s:MPIDIR=:MPIDIR=${EPREFIX}/usr:g" Make-config || die "sed failed" sed -i "s:linux-lam:linux-mpi:g" Make-config || die "sed failed" fi sed -i \ @maintainer: what do you think?
Created attachment 254233 [details, diff] tachyon.patch alexxy, sci-herd: I would like to apply this change to the tachyon ebuild, preferably to rev -r2. My make_arch func makes most of the flag sedding unnecessary, and allows more control over how the targets are built. Make-arch does nothing more than setting some defines, cflags (for optimisation) and libs.
Same problem for me. Your patch works for me. I had to add the USEFLAG threads to tachyon to have a successfull build. Thanks !
If you add ~x86-linux, please also add ~amd64-linux. Thanks!
Looks good to me. @alexxy: You or me?
The recent version, tachyon-0.98.9-r2, contains prefix love from the sci overlay.