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

Bug 184843

Summary: sys-apps/portage-2.1.2.9 breaks several configure scripts: locales do not get installed
Product: Portage Development Reporter: Benno Schulenberg <bensberg>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: VERIFIED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949    
Attachments: allow LINGUAS to be used outside of the USE_EXPAND context

Description Benno Schulenberg 2007-07-10 13:59:22 UTC
Today I noticed that the new tar and e2fsprogs didn't install their locale *mo files.  To see what has changed I remerged grep and diffed with a previous log:

 checking for bison... bison
-checking version of bison... 2.2, ok
-checking for catalogs to be installed...  eo es nl
+checking version of bison... 2.3, ok
+checking for catalogs to be installed...

Downgrading bison did not help, though.  Downgrading portage from 2.1.2.9 to 2.1.2.7 did: then re-emerging grep reinstalled the *mo files.  Just to make sure this was really it: after upgrading portage again, another re-emerge of grep deinstalled the *mo files again.

It has something to do with LINGUAS not getting exported to the portage build environment.  The weird thing is, when explicitly exporting a _different_ LINGUAS (from the one defined in /etc/env.d) in the root shell from which emerge is run, it _does_ work. But when exporting the exact same LINGUAS as already  defined, no message catalogs will be installed.  This happens for grep, gawk, parted, tar, e2fsprogs, ...
Comment 1 Benno Schulenberg 2007-07-10 17:38:37 UTC
Hmm, maybe adding emerge --info would be good:

Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6-hardenednopie, glibc-2.5-r4, 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: Tue, 10 Jul 2007 07: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.60
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.17-r2
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 userfetch userpriv usersandbox"
LANG="en_GB.utf8"
LINGUAS="en eo es 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 eo es nl" USERLAND="GNU" VIDEO_CARDS="via vesa nv fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS_FLAGS
Comment 2 Zac Medico gentoo-dev 2007-07-10 23:25:33 UTC
Created attachment 124494 [details, diff]
allow LINGUAS to be used outside of the USE_EXPAND context

This patch should solve the problem.  In cases where there are no linguas_* flags in IUSE, the LINGUAS variable will be allowed to pass through.

(In reply to comment #0)
> It has something to do with LINGUAS not getting exported to the portage build
> environment.  The weird thing is, when explicitly exporting a _different_
> LINGUAS (from the one defined in /etc/env.d) in the root shell from which
> emerge is run, it _does_ work.

This is an interaction between /etc/env.d and the way that portage allows the calling environment to override make.conf and profile settings.  Variables in the calling environment that are identical to those in /etc/profile.env will be automatically filtered so that they don't override new settings in /etc/profile.env if it is updated during a series of installations.
Comment 3 Zac Medico gentoo-dev 2007-07-11 20:38:00 UTC
This has been released in 2.1.3_rc8.
Comment 4 Benno Schulenberg 2007-07-17 10:24:45 UTC
Thanks.  Works correct now.