Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110729 - portage should clear aliases in ebuild env
Summary: portage should clear aliases in ebuild env
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 09:43 UTC by Ianislav Trendafilov
Modified: 2007-01-29 17:06 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 Ianislav Trendafilov 2005-10-28 09:43:40 UTC
I've found an problem in gcc-lang-supported().
the function looks like:
gcc-lang-supported ()
{
    grep ^language=\"${1}\" ${S}/gcc/*/config-lang.in >/dev/null && return 0;
    return 1
}

If you do:
alias grep="grep -E"

When you do the command in function from bash shell you get:

Reproducible: Always
Steps to Reproduce:
1.execute: cd /usr/tmp/portage/gcc-3.3.6/work/gcc-3.3.6
2.execute: alias grep="grep -E"

Actual Results:  
# grep ^language=\"c++\" gcc/*/config-lang.in
#

Expected Results:  
# grep ^language=\"c++\" gcc/*/config-lang.in
gcc/cp/config-lang.in:language="c++"
#


Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.1, glibc-2.3.5-r2,
2.6.13-gentoo-r3-ianis i686)
=================================================================
System uname: 2.6.13-gentoo-r3-ianis i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts build
crypt cups eds emboss encode foomaticdb fortran gd gdbm gif gpm gstreamer gtk2
iconv imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls
ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline
sdl snmp spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev
unicode vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-28 10:07:58 UTC
How on earth is this related to Recruiters/New developers bugzilla product?!

<snip>
Gentoo Linux: The Gentoo Linux Distribution - Ebuilds and System related issues.
If you're unsure where your bugs go, then file them here.
</snip>

Re-assign.
Comment 2 SpanKY gentoo-dev 2005-10-29 03:19:48 UTC
this falls under 'portage sanitizing env' since i imagine aliasing grep can
break more packages than just gcc
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-29 17:06:40 UTC
# Prevent aliases from causing portage to act inappropriately.
# Make sure it's before everything so we don't mess aliases that follow.
unalias -a

This has been in ebuild.sh for a looong time