Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228291 - sys-devel/crossdev-0.9.18-r8 doesn't run correctly in a prefixed environment
Summary: sys-devel/crossdev-0.9.18-r8 doesn't run correctly in a prefixed environment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 07:09 UTC by Damien Thébault
Modified: 2008-06-21 07:48 UTC (History)
1 user (show)

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


Attachments
crossdev-eprefix.diff (crossdev-eprefix.diff,993 bytes, patch)
2008-06-19 07:12 UTC, Damien Thébault
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Damien Thébault 2008-06-19 07:09:38 UTC
The prefix is not used in some operations, for example /etc/portage instead of ${EPREFIX}/etc/portage.

Reproducible: Always

Steps to Reproduce:
1. emerge "=sys-devel/crossdev-0.9.18-r8"
2. crossdev -v --target <target>
Actual Results:  
crossdev fails

Expected Results:  
crossdev works

 $ crossdev -v --target mips-unknown-linux-uclibc
--------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   mips
 * Target System:         mips-unknown-linux-uclibc
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  uclibc-[latest]

 * PORTDIR_OVERLAY:       /prefix/usr/local/portage
 * PORT_LOGDIR:           /prefix/var/log/portage
 * PKGDIR:                /prefix/usr/portage/packages/cross/mips-unknown-linux-uclibc
 * PORTAGE_TMPDIR:        /prefix/var/tmp/cross/mips-unknown-linux-uclibc
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
mkdir: cannot create directory `/etc/portage': Permission denied
/prefix/usr/sbin/crossdev: line 538: /etc/portage/categories: No such file or directory
/prefix/usr/sbin/crossdev: line 540: cd: /etc/portage: No such file or directory
[...]

 $ emerge --info
Portage 2.2.00.10347-prefix (default-prefix/linux/x86, gcc-4.2.4, unavailable, 2.6.24-18-generic i686)
=================================================================
System uname: 2.6.24-18-generic i686 Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
Timestamp of tree: Unknown
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r01.1
sys-devel/automake:  1.7.9-r1, 1.10.1-r1
sys-devel/binutils:  2.18.50.0.7
sys-devel/gcc-config: 1.4.0-r04.3
sys-devel/libtool:   1.5.26
ACCEPT_KEYWORDS="~x86-linux"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=i686 -mtune=prescott"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=i686 -mtune=prescott"
DISTDIR="/prefix/usr/portage/distfiles"
EPREFIX="/prefix"
FEATURES="collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS=""
PKGDIR="/prefix/usr/portage/packages"
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="/prefix/var/tmp"
PORTDIR="/prefix/usr/portage"
PORTDIR_OVERLAY="/prefix/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X cracklib cscope iconv ipv6 midi mudflap ncurses nls prefix readline ssl unicode x86 zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Damien Thébault 2008-06-19 07:12:02 UTC
Created attachment 157551 [details, diff]
crossdev-eprefix.diff

This patch solves the problem, and crossdev works with it.
Comment 2 Fabian Groffen gentoo-dev 2008-06-21 07:48:20 UTC
Thank you very much, I applied your patch.