Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342163 - sys-devel/crossdev-20101011 emerge-wrapper --init misses __CHOST__ replacement
Summary: sys-devel/crossdev-20101011 emerge-wrapper --init misses __CHOST__ replacement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 09:59 UTC by Matteo 'The Peach' Pescarin
Modified: 2010-10-28 04:17 UTC (History)
1 user (show)

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


Attachments
Re-add __CHOST__ replacement in SYSROOT/etc/make.conf to emerge-wrapper (emerge-wrapper-CHOST-replacement.patch,546 bytes, patch)
2010-10-22 10:47 UTC, Sven 'sleipnir' Rebhan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo 'The Peach' Pescarin 2010-10-22 09:59:25 UTC
using emerge-wrapper --init will not replace __CHOST__ in $SYSROOT/etc/make.conf resulting in bad errors like:

# powerpc-unknown-linux-gnu-emerge --info                           [227/462]
!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/__CHOST__/usr/local/portage'
!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/__CHOST__/usr/local/portage/ls-wiki'
Portage 2.1.8.3 (embedded, gcc-4.2.4, unavailable, 2.6.35-tuxonice-r3 x86_64)
=================================================================
System uname: Linux-2.6.35-tuxonice-r3-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-ge
Timestamp of tree: Thu, 21 Oct 2010 18:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -mcpu=603e -fno-strict-aliasing -fsigned-char -fomit-frame-pointer -I/usr/__
__/include/"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.co
etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /
etc/terminfo"
CXXFLAGS="-Os -pipe -mcpu=603e -fno-strict-aliasing -fsigned-char -fomit-frame-pointer -I/usr/
ST__/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news nodoc noinfo noman parallel-fetch
ct unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gento
ributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-L/usr/__CHOST__/lib -L/usr/__CHOST__/usr/lib"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/__CHOST__/packages/"
PORTAGE_CONFIGROOT="/usr/powerpc-unknown-linux-gnu/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whol
80 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/__CHOST__/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gechi /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bindist cups kdrive make-symlinks minimal modules multicall ppc samba usb zlib" ELIBC="gl
board tslib" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS
SYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
Comment 1 Sven 'sleipnir' Rebhan 2010-10-22 10:45:58 UTC
The problem here is that emerge-wrapper's cross_wrap_etc has lost the sed line to replace __CHOST__ with the actual variable. Patch follows.
Comment 2 Sven 'sleipnir' Rebhan 2010-10-22 10:47:01 UTC
Created attachment 251541 [details, diff]
Re-add __CHOST__ replacement in SYSROOT/etc/make.conf to emerge-wrapper
Comment 3 Matteo 'The Peach' Pescarin 2010-10-22 21:02:36 UTC
(In reply to comment #2)
> Created an attachment (id=251541) [details]
> Re-add __CHOST__ replacement in SYSROOT/etc/make.conf to emerge-wrapper
> 

tested on my platform looks like it fixed it launching from a fresh crossdev installation
powerpc-unknown-linux-gnu-emerge --info follows:

Portage 2.2_rc67 (default/linux/powerpc/ppc32/10.0/server, gcc-4.2.4, unavailable, 2.6.35-tuxonice-r3 x86_64)
=================================================================
System uname: Linux-2.6.35-tuxonice-r3-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 21 Oct 2010 18:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -mcpu=603e -fno-strict-aliasing -fsigned-char -I/usr/powerpc-unknown-linux-gnu/usr/include/ -I/usr/powerpc-unknown-linux-gnu/include/"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/rev
dep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -pipe -mcpu=603e -fno-strict-aliasing -fsigned-char -I/usr/powerpc-unknown-linux-gnu/usr/include/ -I/usr/powerpc-unknown-linux-gnu/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-L/usr/powerpc-unknown-linux-gnu/lib -L/usr/powerpc-unknown-linux-gnu/usr/lib"
MAKEOPTS="-j5"
PKGDIR="/usr/powerpc-unknown-linux-gnu/packages/"
PORTAGE_CONFIGROOT="/usr/powerpc-unknown-linux-gnu/"
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="/usr/powerpc-unknown-linux-gnu/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/powerpc-unknown-linux-gnu/usr/local/portage /usr/powerpc-unknown-linux-gnu/usr/local/portage/ls-wiki /var/lib/layman/gechi /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb bindist bzip2 cracklib crypt cups cxx dri fortran gdbm gpm iconv make-symlinks minimal modules mudflap mysql ncurses nls nptl nptlonly openmp perl ppc pppd python readline samba snmp ssl sysfs tcpd truetype unicode usb xml xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" 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 mach64 mga nv r128 radeon savage tdfx trident 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, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Matteo 'The Peach' Pescarin 2010-10-25 11:14:55 UTC
Sorry, pushed the wrong buttons :P

The attached patch fixes the problem for me.
Thanks sleipnir!