Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176607 - bootsrap.sh doesn't work correctly with baselayout-2.0.0_alpha1
Summary: bootsrap.sh doesn't work correctly with baselayout-2.0.0_alpha1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-30 18:10 UTC by Alexey Shvetsov
Modified: 2007-05-05 01:41 UTC (History)
0 users

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


Attachments
bootstrap.sh (bootstrap.sh,12.87 KB, text/plain)
2007-05-02 11:31 UTC, Roy Marples (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2007-04-30 18:10:42 UTC
Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2006 Gentoo Foundation; Distributed under the GPLv2
Starting Bootstrap of base system ...
-------------------------------------------------------------------------------
  [[ (0/3) Locating packages ]]
./bootstrap.sh: line 294: einfo: command not found
./bootstrap.sh: line 295: einfo: command not found
./bootstrap.sh: line 296: einfo: command not found
./bootstrap.sh: line 297: einfo: command not found
./bootstrap.sh: line 298: einfo: command not found
./bootstrap.sh: line 299: einfo: command not found
./bootstrap.sh: line 300: einfo: command not found
./bootstrap.sh: line 301: einfo: command not found
./bootstrap.sh: line 302: einfo: command not found
./bootstrap.sh: line 303: einfo: command not found
-------------------------------------------------------------------------------
  [[ (1/3) Configuring environment ]]
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
./bootstrap.sh: line 314: einfo: command not found
-------------------------------------------------------------------------------
  [[ (3/3) Emerging packages ]]


Reproducible: Always
Comment 1 Alexey Shvetsov archtester gentoo-dev 2007-04-30 18:12:35 UTC
at least on armv5te 

emerge --info 
Portage 2.1.2.5 (default-linux/arm/2007.0, gcc-4.1.2, glibc-2.5-r1, 2.6.20-hh8 armv5tel)
=================================================================
System uname: 2.6.20-hh8 armv5tel XScale-PXA270 rev 7 (v5l)
Gentoo Base System release 2.0.0_alpha1
Timestamp of tree: Mon, 30 Apr 2007 10:30:10 +0000
distcc 2.18.3 armv5te-softfloat-linux-gnueabi (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.14
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="arm ~arm"
AUTOCLEAN="yes"
CBUILD="armv5te-softfloat-linux-gnueabi"
CFLAGS="-Os -pipe -march=armv5te -mtune=iwmmxt -fomit-frame-pointer"
CHOST="armv5te-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-Os -pipe -march=armv5te -mtune=iwmmxt -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg candy distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apm arm bash-completion bitmap-fonts bzip2 cli cracklib crypt cups iconv ipv6 isdnlog midi ncurses nls no-old-linux nptl nptlonly pam pcre perl ppds pppd profile python readline reflection session slang spl ssl tcpd truetype-fonts type1-fonts ucs2 unicode xattr xcb 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="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-05-02 11:31:13 UTC
Created attachment 117942 [details]
bootstrap.sh

Care to try this bootstrap.sh file? It should work with baselayout-1 and 2 and other shells too.
Comment 3 Alexey Shvetsov archtester gentoo-dev 2007-05-02 16:23:40 UTC
Thanks!
It works on arm ;-)

./bootstrap.sh

Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2006 Gentoo Foundation; Distributed under the GPLv2
Starting Bootstrap of base system ...
-------------------------------------------------------------------------------
  [[ (0/3) Locating packages ]]
 * Using baselayout : virtual/baselayout
 * Using portage    : >=sys-apps/portage-2.0.51.22
 * Using os-headers : >=sys-kernel/linux-headers-2.6.20-r2
 * Using binutils   : sys-devel/binutils
 * Using gcc        : sys-devel/gcc
 * Using gettext    : gettext
 * Using libc       : virtual/libc
 * Using texinfo    : sys-apps/texinfo
 * Using zlib       : sys-libs/zlib
 * Using ncurses    : sys-libs/ncurses
-------------------------------------------------------------------------------
  [[ (1/3) Configuring environment ]]
 * GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
 * PORTDIR="/usr/portage"
 * DISTDIR="/usr/portage/distfiles"
 * PKGDIR="/usr/portage/packages"
 * PORTAGE_TMPDIR="/var/tmp"
 * CFLAGS="-Os -pipe -march=armv5te -mtune=iwmmxt -fomit-frame-pointer"
 * CHOST="armv5te-softfloat-linux-gnueabi"
 * CXXFLAGS="-Os -pipe -march=armv5te -mtune=iwmmxt -fomit-frame-pointer"
 * MAKEOPTS="-j2"
 * ACCEPT_KEYWORDS="arm ~arm"
 * FEATURES="buildpkg candy distcc distlocks metadata-transfer sandbox sfperms strict"
 * STAGE1_USE="nptl nptlonly unicode"
-------------------------------------------------------------------------------
  [[ (2/3) Updating portage ]]
Comment 4 SpanKY gentoo-dev 2007-05-02 20:28:48 UTC
i fail to see how this issue was actually addressed ... there's nothing wrong with bootstrap.sh being in bash
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-05-03 06:51:02 UTC
(In reply to comment #4)
> i fail to see how this issue was actually addressed ... there's nothing wrong
> with bootstrap.sh being in bash

The issue was that it was sourcing /etc/profile without preserving $PATH.
Whilst I was there I just made it work with other shells.
Comment 6 SpanKY gentoo-dev 2007-05-03 14:55:34 UTC
# Don't stamp on path for baselayout-2
myPATH="${PATH}"
[ -e /etc/profile ] && . /etc/profile
export PATH="${myPATH}:${PATH}"

hrm ... i wonder how many other things this will be a problem for ... gcc-config for example sources init.d/functions.sh by default for access to e* funcs and at one point does `source /etc/profile` ...
Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-05-03 15:47:36 UTC
(In reply to comment #6)
> hrm ... i wonder how many other things this will be a problem for ...
> gcc-config for example sources init.d/functions.sh by default for access to e*
> funcs and at one point does `source /etc/profile` ...

Hopefully not many.
Possible solutions would be to add the e* funcs back to function.sh and reference by path or get /etc/profile to add it to $PATH if already there. Of those I prefer the latter if we have to go down that route.
Comment 8 SpanKY gentoo-dev 2007-05-03 20:52:21 UTC
it should be trivial in functions.sh to provide like:
einfo() { /some/full/path/einfo "$@" ; }
Comment 9 Roy Marples (RETIRED) gentoo-dev 2007-05-03 22:26:43 UTC
(In reply to comment #8)
> it should be trivial in functions.sh to provide like:
> einfo() { /some/full/path/einfo "$@" ; }

I concur, however that also involves maintaining functions.sh for each program in our bin dir. The more I think about it, the more I dislike any program stomping on $PATH really. gcc-config was a prime example of this as you had to store the path of for each program you used in a var.
Comment 10 SpanKY gentoo-dev 2007-05-03 23:11:40 UTC
ive already rewritten gcc-config to not screw with PATH anymore

we could just drop the /etc/profile source ...
Comment 11 SpanKY gentoo-dev 2007-05-05 01:41:53 UTC
ive changed the script so /etc/profile is sourced first before /etc/init.d/functions.sh