Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23992 - portage-2.0.48-r3 userland: "GNU" vs. "Linux"
Summary: portage-2.0.48-r3 userland: "GNU" vs. "Linux"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 24697 (view as bug list)
Depends on:
Blocks: 24230
  Show dependency tree
 
Reported: 2003-07-06 08:19 UTC by TGL
Modified: 2011-10-30 22:20 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2003-07-06 08:19:13 UTC
I've had several emerge issues with portage-2.0.48-r3 because of some commands
not being in the PATH environment for ebuilds. It seems to be yet another
GNU/Linux clash, in the new userland code:

 * in portage.py, there is this code:
if ostype=="Linux":
   userland="GNU"

 * in ebuild.sh, there is this code:
if [ "$USERLAND" == "Linux" ]; then
   source /etc/profile.env &>/dev/null

At emerge runtime, my USERLAND becomes "GNU", hence profile.env is not sourced,
hence ROOTPATH is not defined, hence the PATH is not complete. Everything runs
fine if I change the "Linux" in "GNU" in ebuild.sh.

Hope this helps,
TGL.

Reproducible: Always
Steps to Reproduce:
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-07-06 20:58:19 UTC
Ummmm... What kind of system are you on?

emerge -v info, please.
Comment 2 TGL 2003-07-06 23:18:05 UTC
Woops, yes, I've fogot that.

# emerge -v info
Portage 2.0.48-r3 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r8)
=================================================================
System uname: 2.4.21-ck3 i686 AMD Athlon(tm) XP 1800+
XAUTHORITY="/home/thomas/.Xauthority"
USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv alsa berkdb bonobo cdr esd gdbm ggi gif gnome gnome-libs gpm gphoto2 gtk gtkhtml guile imlib java libwww motif mozilla mysql nas oggvorbis opengl pam perl png python qt readline ruby scanner sdl slang snmp ssl svga tcltk tcpd tetex tiff X aalib acpi acpi4linux apache2 clamav curl dga directfb doc dvd faad fbcon flash gd ggz imap ipv6 jack junit lcms leim lirc mbox memlimit moznocompose moznoirc moznomail mozsvg nls objc pda plotutils pnp samba sasl slp smooth tmpfs usb v4l wmf Xaw3d xface xml xvid xosd zeo zlib -arts -kde -ldap -pcmcia xfs"
FEATURES="ccache userpriv usersandbox sandbox digest manifest fixpackages"
LESS="-R"
GNOME_DESKTOP_SESSION_ID="Default"
QTDIR="/usr/qt/3"
CHARSET="iso-8859-15"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="2618"
LESSOPEN="|lesspipe.sh %s"
CHOICESPATH="/home/thomas/.config:/usr/local/rox/Choices:/usr/rox/Choices"
CVS_RSH="ssh"
LOGNAME="thomas"
USER="thomas"
INPUTRC="/etc/inputrc"
HOME="/home/thomas"
PATH="/home/thomas/local/softs/plt/bin/:/home/thomas/local/bin/:/usr/bin/wrappers/:/games/bin/:/usr/games:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/2.95:/opt/Acrobat5:/usr/X11R6/bin:/opt/sun-jdk-1.4.1.03/bin:/opt/sun-jdk-1.4.1.03/jre/bin:/usr/qt/3/bin:/usr/qt/2/bin:/usr/games/bin:/opt/vmware/bin"
PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]"
LD_LIBRARY_PATH="/home/thomas/local/softs/plt/lib:/home/thomas/local/lib:/home/thomas/local/softs/plt/lib:/home/thomas/local/lib:"
CHROMIUM_DATA="/usr/share/games/chromium/data"
SSH_AGENT_PID="1494"
LANG="fr_FR@euro"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/2.95/info"
TERM="xterm"
SHELL="/bin/bash"
INFODIR="/usr/share/info:/usr/X11R6/info"
LANGUAGE="fr_FR@euro"
SESSION_MANAGER="local/gromit.fasmz.org:/tmp/.ICE-unix/1474"
SHLVL="1"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
G_BROKEN_FILENAMES="1"
PWD="/big/mldonkey/incoming"
QMAKESPEC="linux-g++"
ACCEPT_KEYWORDS="x86 ~x86"
WINDOWID="20971914"
EDITOR="/usr/bin/vim"
MANPATH="/home/thomas/local/man:/home/thomas/local/share/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/2.95/man:/usr/X11R6/man:/usr/qt/3/man:/opt/vmware/man"
JAVA_HOME="/opt/sun-jdk-1.4.1.03"
APPPATH="/home/thomas/.local/Wrappers:/home/thomas/.local/Apps:/usr/local/rox/Apps:/usr/rox/Apps"
USERNAME="thomas"
XARGS="xargs -r"
TMAKEPATH="/usr/lib/tmake/linux-g++"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
CC="gcc"
SSH_AUTH_SOCK="/tmp/ssh-OCaM1474/agent.1474"
CLASSPATH="/opt/sun-jdk-1.4.1.03/jre/lib:/opt/sun-jdk-1.4.1.03/lib/tools.jar:."
USERLAND="GNU"
GDMSESSION="Gnome"
PRELINK_PATH_MASK=""
SGML_CATALOG_FILES="/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/html401.cat:/etc/sgml/xhtml1.cat:/etc/sgml/gentoo-guide.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/openjade-1.3.2.cat"
PRELINK_PATH=""
LC_ALL="fr_FR@euro"
XINITRC="/etc/X11/xinit/xinitrc"
LIBDIRPATH="/usr/local/rox/Libs:/usr/rox/Libs"
_="/usr/bin/emerge"
JDK_HOME="/opt/sun-jdk-1.4.1.03"
GNUSTEP_LOCAL_ROOT="/usr/lib/GNUstep"
DISPLAY=":0.0"
WINDOW_MANAGER="/usr/bin/sawfish"
JAVAC="/opt/sun-jdk-1.4.1.03/bin/javac"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
GDK_USE_XFT="1"
OLDPWD="/usr/portage"
HOSTNAME="gromit.fasmz.org"
GDM_LANG="fr_FR"
DEFAULT_TERM_TITLE="Terminal"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CXX="g++"
PORTAGE_CALLER="emerge"
SANE_CONFIG_DIR="/etc/sane.d"
PORTDIR_OVERLAY="/usr/local/portage"
ACCEPT_LICENSE=""
COLORTERM="gnome-terminal"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
PAGER="/usr/bin/less"
MAKEOPTS="-j2"
GENTOO_MIRRORS=" http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo// http://ftp.tu-clausthal.de/pub/linux/gentoo/"
ALSA_CARDS="emu10k1 intel8x0"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
RSYNC_TIMEOUT="120"
PORTAGE_NICENESS="5"
CXXFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
RSYNC_EXCLUDEFROM="/etc/portage/rsync_excludes"
AUTOCLEAN="yes"
PORT_LOGDIR="/var/log/portage/"
RSYNC_RETRIES="3"
ARCH="x86"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
CLEAN_DELAY="5"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
PORTDIR="/usr/portage"
NOCOLOR="false"
USE_ORDER="env:conf:auto:defaults"
PORTAGE_TMPDIR="/var/tmp"
Comment 3 SpanKY gentoo-dev 2003-07-11 21:14:29 UTC
i can confirm this 
 
the implications are that all ebuilds that utilize X binaries to build will fail 
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-07-13 21:23:30 UTC
It's fixed in cvs for 49_pre1.
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-17 04:44:59 UTC
This is still a problem with 2.0.49_pre11
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2003-07-17 05:13:34 UTC
Hmmmm... I wonder how that got unfixed. :-/

Fixed for 2.0.49_pre12
Comment 7 SpanKY gentoo-dev 2003-07-17 15:14:41 UTC
*** Bug 24697 has been marked as a duplicate of this bug. ***