Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88642 - Portage gives the wrong command to upgrade to the 2005.0 x86 profile.
Summary: Portage gives the wrong command to upgrade to the 2005.0 x86 profile.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-10 14:09 UTC by hzulu_4
Modified: 2005-04-13 16:45 UTC (History)
0 users

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 hzulu_4 2005-04-10 14:09:28 UTC
I was using the 2004.3 profile, and upgraded as recommended by Portage, and used the following command as printed by Portage:
# emerge -n '>=sys-apps/portage-2.0.51'
# cd /etc/
# rm make.profile
# ln -s ../usr/portage/profiles/default-linux/x86/2005.0/2.4 make.profile

When I later tried to do "emerge -s alsa", Portage said:

!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?


I removed the make.profile symbolic link, and replaced the last command above by

ln -s /usr/portage/profiles/default-linux/x86/2005.0/2.4 make.profile

(i.e. no periods before /usr), and Portage worked.

Reproducible: Always
Steps to Reproduce:
1. cd /etc
2. rm make.profile
3. ln -s ../usr/portage/profiles/default-linux/x86/2005.0/2.4 make.profile


Actual Results:  
Portage complained about ARCH not being set when I used emerge commands.

Expected Results:  
The last suggested command should be:

ln -s /usr/portage/profiles/default-linux/x86/2005.0/2.4 make.profile

for x86 profile with 2.4 kernel.
Comment 1 SpanKY gentoo-dev 2005-04-10 17:46:33 UTC
do you have your file system setup in some way with symlinks / bind mounts / etc... ?

what is your `emerge info` ?
Comment 2 hzulu_4 2005-04-11 03:34:58 UTC
No to the first question.

emerge info:

Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.4.26-gentoo-r13 i686)
=================================================================
System uname: 2.4.26-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 15:32:12)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.oregonstate.edu http://www.gtlib.cc.gatech.edu/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts bonobo canna cdr cjk crypt cups curl divx4linux dvd dvdr emboss encode esd fam flac foomaticdb fortran freewnn gdbm gif gnome gphoto2 gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang snmp spell ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib linguas_en linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-04-11 05:55:29 UTC
No problems here. Are you certain you typed it correctly? Can you reproduce it? If so, what does `ls -ln /etc/make.profile` after updating?
Comment 4 hzulu_4 2005-04-13 15:13:10 UTC
You're right, I must have typed it incorrectly.  When I tried pasting the command instead of typing, it worked.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-04-13 16:45:29 UTC
Okay.