Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 110098

Summary: portage doesnt restore env properly across functions
Product: Portage Development Reporter: SpanKY <vapier>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: critical CC: flameeyes
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2005-10-21 22:06:38 UTC
noticed because freebsd guys were complaining about e2fsprogs running ldconfig
during the build phase

src_unpack() {
    export LDCONFIG=/bin/true
}

src_compile() {
    einfo EXPORT:
    export | grep LDCONFIG
    einfo SET:
    set | grep LDCONFIG
}

you will see this with 2.0.53_rc6:
EXPORT:
SET:
LDCONFIG=/bin/true

you *should* see this:
EXPORT:
declare -x LDCONFIG="/bin/true"
SET:
LDCONFIG=/bin/true




Portage 2.0.53_rc6 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.11.12-grsec x86_64)
=================================================================
System uname: 2.6.11.12-grsec x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
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, 2.16-r1, 2.16.1, 2.16.90.0.3, 2.16.91.0.1,
2.16.91.0.2, 2.16.91.0.3
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache cvs distlocks noauto noinfo sandbox sfperms sign"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo/gentoo-portage"
USE="amd64 X a52 aac aalib acl adns alsa audiofile avi berkdb bitmap-fonts bzip2
cairo cddb cdparanoia cdr crypt cups curl dba directfb dts dvd dvdr dvdread
emboss encode esd exif fam fbcon flac flash foomaticdb gd gif glitz gphoto2 gpm
gtk gtk2 imagemagick imap imlib ipv6 jack joystick jpeg jpeg2k libcaca libedit
libwww lzo lzw lzw-tiff mad maildir mikmod mime mng motif mp3 mpeg mplayer mysql
ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis openal opengl pcre
pdflib perl pic png python quicktime readline real samba sdl sndfile spell
sqlite ssl subtitles svg tcltk tcpd threads tiff truetype truetype-fonts
type1-fonts udev usb userlocales vorbis wmf xanim xine xml xml2 xmms xpm xv xvid
xvmc zlib video_cards_nvidia linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-10-21 22:54:41 UTC

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