Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200057 - portage in cross environment always tries to fetch dependencies of host environment
Summary: portage in cross environment always tries to fetch dependencies of host envir...
Status: RESOLVED DUPLICATE of bug 174552
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 09:19 UTC by Alon Bar-Lev (RETIRED)
Modified: 2007-11-23 10:24 UTC (History)
0 users

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


Attachments
xemerge (xemerge,262 bytes, text/plain)
2007-11-23 09:20 UTC, Alon Bar-Lev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-23 09:19:07 UTC
Hello,

When using portage in cross-compile environment, it seems like dependencies are always fetched on both the host system and the cross-compile environment.

# xemerge --pretend --tree mcrypt
[ebuild  N    ] app-crypt/mcrypt-2.6.4 to /usr/i586-pc-linux-uclibc/ USE="(-nls)"
[ebuild  N    ]  dev-libs/libmcrypt-2.5.8 to /usr/i586-pc-linux-uclibc/
[ebuild  N    ]  app-crypt/mhash-0.9.9-r1 to /usr/i586-pc-linux-uclibc/
[ebuild  N    ]  dev-libs/libmcrypt-2.5.8
[ebuild  N    ]  app-crypt/mhash-0.9.9-r1

# xemerge --pretend --tree ntfs3g
[ebuild  N    ] sys-fs/ntfs3g-1.1120 to /usr/i586-pc-linux-uclibc/ USE="-suid"
[ebuild  N    ]  sys-fs/fuse-2.7.0 to /usr/i586-pc-linux-uclibc/
[ebuild  N    ]  sys-fs/fuse-2.7.0

# xemerge --info
Portage 2.1.3.19 (uclibc/x86, gcc-4.2.2, unavailable, 2.6.23-gentoo-r1 i686)
=================================================================
System uname: 2.6.23-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.80GHz
Timestamp of tree: Fri, 23 Nov 2007 01:47:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc6
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe"
CHOST="i586-pc-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/var/gentoo/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo http://gentoo.osuosl.org"
LANG="he_IL.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/var/gentoo/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bitmap-fonts cli cracklib dri midi mudflap ncurses openmp pcre readline reflection session spl truetype-fonts type1-fonts uclibc x86 xorg 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" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

======
BTW: I think ROOT and PORTAGE_CONFIGROOT are missing from emerge --info
======

Thanks!
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-23 09:20:07 UTC
Created attachment 136743 [details]
xemerge

This is the xemerge script I use.
Comment 2 Zac Medico gentoo-dev 2007-11-23 09:34:50 UTC
The problem is that DEPEND, RDEPEND, and PDEPEND are insufficient to fully model the types of dependency relationships that exist in a cross environment (bug 174552).

With the current types, the designed behavior is to merge only DEPEND to the host system and all 3 types to the cross-compiled system.
Comment 3 Zac Medico gentoo-dev 2007-11-23 09:39:16 UTC
(In reply to comment #2)
> With the current types, the designed behavior is to merge only DEPEND to the
> host system and all 3 types to the cross-compiled system.

Err, that's wrong. It's DEPEND to the host system, and only RDEPEND and PDEPEND to the cross-compiled system.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-11-23 10:24:25 UTC
Thanks!
I thought that specifying ROOT should force portage to look at the ROOT for all dependencies.


*** This bug has been marked as a duplicate of bug 174552 ***