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

Bug 187016

Summary: sys-apps/portage-2.1.3_rc9 does not include the env.d environment in USE_ORDER
Product: Portage Development Reporter: Benno Schulenberg <bensberg>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: dushistov
Priority: High Keywords: InVCS
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949, 189285    

Description Benno Schulenberg 2007-07-29 13:17:07 UTC
Running `emerge -pev world | grep LINGUAS` produces several lines that contain "-en_GB* -es*" and "-nl*".  Reexporting LINGUAS in the current shell with the same values in a different order, then running the same command doesn't produce any starred LINGUAS.

This same problem was fixed for ebuilds that don't use LANGS / LINGUAS by the patch in bug #184843.  Apparently the fix is not complete.


Portage 2.1.3_rc9 (hardened/x86/2.6, gcc-3.4.6-hardenednopie, glibc-2.6-r0, 2.6.20 i686)
=================================================================
System uname: 2.6.20 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 27 Jul 2007 11:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer notitles sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
LANG="en_GB.utf8"
LINGUAS="en en_GB en_US eo es es_ES nl nl_NL"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --human-readable                           --exclude-from=/etc/portage/rsync_excludes"
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"
USE="3dnow X aac alsa apm arts asf audiofile avi bash-completion berkdb bzip2 cdparanoia cdr cracklib crypt dbus dio dri encode exif fam fbcon ffmpeg flac gif glx gphoto2 gpm gtk gtk2 gtkhtml hardened imagemagick imap imlib jabber jpeg jpeg2k kde kdeenablefinal lcms lm_sensors mad mbox mbrola memlimit midi mikmod mime mmap mmx mng modplug mp3 mpeg musepack ncurses nls nptl nptlonly nsplugin ogg opengl pdf pic png python qt3 quicktime readline recode sasl scanner sdl shorten sndfile sox speex spell sqlite sse ssl svg test theora threads tidy tiff timidity truetype unicode urandom usb vcd vorbis win32codecs wmf x86 xface xine xml xorg xpm xsl xv xvid 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US eo es es_ES nl nl_NL" USERLAND="GNU" VIDEO_CARDS="via vesa nv fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS_FLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-29 19:28:02 UTC
Post some emerge -pv output here, really hard to guess. It works just fine for me.
Comment 2 Benno Schulenberg 2007-07-29 19:39:39 UTC
# emerge -pv amarok konversation

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-sound/amarok-1.4.5-r1  USE="aac arts kde noamazon opengl visualization -daap -debug -ifp -ipod -mtp -musicbrainz -mysql -njb -postgres -real -xinerama" LINGUAS="-af -ar -az -bg -br -ca -cs -cy -da -de -el -en_GB* -es* -et -fa -fi -fr -ga -gl -he -hi -hu -is -it -ja -ka -km -ko -lt -ms -nb -nl* -nn -pa -pl -pt -pt_BR -ro -ru -rw -se -sk -sl -sq -sr -sr@Latn -sv -ta -tg -th -tr -uk -uz -zh_CN -zh_TW" 0 kB [?=>0]
[ebuild   R   ] net-irc/konversation-1.0.1-r1  USE="arts -debug -xinerama" LINGUAS="-ar -bg -ca -cs -da -de -el -en_GB* -es* -et -fi -fr -gl -he -hu -it -ja -ka -ko -lt -nl* -pa -pt -pt_BR -ru -sr -sr@Latn -sv -ta -tr -zh_TW" 0 kB [?=>0]

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [?] indicates that the source repository could not be determined
Comment 3 Zac Medico gentoo-dev 2007-07-29 20:17:59 UTC
I think it might work for you if we add env.d to USE_ORDER.  Do you have LINGUAS defined in /etc/env.d that aren't defined in /etc/make.conf?  If you put all of the LINGUAS in /etc/make.conf then that would probably work too, but env.d probably belongs in USE_ORDER anyway.  Try putting this in make.conf:

USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
Comment 4 Benno Schulenberg 2007-07-29 21:15:42 UTC
Putting USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" in /etc/make.conf solves the problem for me.  Thanks.

(I have LINGUAS only defined in /etc/env.d/, not in /etc/make.conf.  Defining LINGUAS also in the latter solves the problem too.)
Comment 5 Zac Medico gentoo-dev 2007-07-29 22:22:28 UTC
In svn r7429 I've updated the default USE_ORDER to include env.d.
Comment 6 Zac Medico gentoo-dev 2007-08-01 23:31:34 UTC
This has been released in 2.1.3.1.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-08-12 21:39:07 UTC
*** Bug 188596 has been marked as a duplicate of this bug. ***