Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304061 - dev-python/PyQt4-4.6.2 : "emerge -uDN world" wants to re-emerge it on every run because of LINGUAS
Summary: dev-python/PyQt4-4.6.2 : "emerge -uDN world" wants to re-emerge it on every r...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-08 20:44 UTC by Toralf Förster
Modified: 2010-02-22 17:08 UTC (History)
3 users (show)

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


Attachments
debug.log (debug.log,95.85 KB, text/plain)
2010-02-21 19:40 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2010-02-08 20:44:42 UTC
I updated my system, one package was dev-python/PyQt4-4.6.2. After that emerge told me to re-emerge it (changed USE flags). I did it however portage wants emerge it again:

[ebuild   R   ]    dev-python/PyQt4-4.6.2  USE="X dbus kde opengl sql svg webkit -assistant -debug -doc -examples -phonon -xmlpatterns" LINGUAS="(-de%) (-en%)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB




Reproducible: Always




tfoerste@n22 ~ $ emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31.12 i686)
=================================================================                            
System uname: Linux-2.6.31.12-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 08 Feb 2010 19:50:01 +0000                                               
ccache version 2.4 [enabled]                                                                     
app-shells/bash:     4.0_p35                                                                     
dev-java/java-config: 2.1.10                                                                     
dev-lang/python:     2.6.4                                                                       
dev-util/ccache:     2.4-r7                                                                      
dev-util/cmake:      2.6.4-r3                                                                    
sys-apps/baselayout: 1.12.13                                                                     
sys-apps/sandbox:    1.6-r2                                                                      
sys-devel/autoconf:  2.13, 2.63-r1                                                               
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2                                                  
sys-devel/binutils:  2.18-r3                                                                     
sys-devel/gcc:       4.3.4                                                                       
sys-devel/gcc-config: 1.4.1                                                                      
sys-devel/libtool:   2.2.6b                                                                      
virtual/os-headers:  2.6.29                                                                      
ACCEPT_KEYWORDS="x86"                                                                            
ACCEPT_LICENSE="* -@EULA"                                                                        
CBUILD="i686-pc-linux-gnu"                                                                       
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"                                            
CHOST="i686-pc-linux-gnu"                                                                        
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                       
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"                                                                        
DISTDIR="/usr/portage/distfiles"                                                                                               
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                        
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ http://de-mirror.org/distro/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/"                                                                                            
LDFLAGS="-Wl,-O1"                                                                                                              
LINGUAS="de en"                                                                                                                
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdda cddb cdio cdr cli consolekit cracklib crypt css cups curl cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam fastbuild fat ffmpeg firefox flac fortran gdbm geoip gif git gmp gphoto2 gpm gstreamer gtk hal hyphenation iconv ipv6 java jpeg kde kqemu ldap libnotify mad mbox mikmod mmx mng modules mp3 mp4 mpeg mudflap mysql nano-syntax ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime rdesktop readline reflection samba sdl session slp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd thinkpad thunar tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf x264 x86 xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2010-02-08 22:34:40 UTC
What do you mean by "portage wants emerge it again" ?
Also, what does "changed USE flags" mean to you ?
Comment 2 Toralf Förster gentoo-dev 2010-02-09 08:34:04 UTC
(In reply to comment #1)
> What do you mean by "portage wants emerge it again" ?
If I do a :
$> emerge --nospinner --newuse --update --ask --verbose --deep --tree --with-bdeps=y world

portage wants emerge it although this package was already emerged with the same (LINUGUAS) flags.

> Also, what does "changed USE flags" mean to you ?
These are in yellow color :
LINGUAS="(-de%) (-en%)"
Comment 3 Pacho Ramos gentoo-dev 2010-02-09 10:39:56 UTC
I get the same behavior, every time I run "emerge -avuDN world", PyQt4 wants to be re-emerged even if I already re-emerged it :-/
Comment 4 Rafał Mużyło 2010-02-09 16:46:51 UTC
*Attach* full output of 'emerge -upvD --with-bdeps y @world'.

Did you set those useflags in package.use ?
Comment 5 Toralf Förster gentoo-dev 2010-02-09 19:29:48 UTC
(In reply to comment #4)
> *Attach* full output of 'emerge -upvD --with-bdeps y @world'.
> 
> Did you set those useflags in package.use ?
> 
tfoerste@n22 ~ $ grep LINGUAS /etc/make.conf
LINGUAS="de en"

I use a stable system, therefore :

tfoerste@n22 ~ $ emerge -upvD --with-bdeps y @world
!!! '@world' is not a valid package atom.
!!! Please check ebuild(5) for full details.


tfoerste@n22 ~ $ emerge --keep-going --nospinner --newuse --update --ask --verbose --deep --tree --with-bdeps=y world
superuser access is required... adding --pretend to options


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

Calculating dependencies  /usr/lib/portage/pym/portage/dep.py:931: DeprecationWarning: portage.dep.dep_getkey() is deprecated, use portage.dep.Atom.cp instead
  DeprecationWarning)
/usr/lib/portage/pym/portage/dep.py:695: DeprecationWarning: portage.dep.dep_getcpv() is deprecated, use portage.dep.Atom.cpv instead
  DeprecationWarning)
... done!
[nomerge      ] kde-base/kdebase-meta-4.3.5  USE="(-aqua) (-kdeprefix) -policykit"
[nomerge      ]  kde-base/plasma-workspace-4.3.5  USE="handbook python (-aqua) -debug (-google-gadgets) (-kdeenablefinal) (-kdeprefix) -rss -semantic-desktop -xinerama"
[nomerge      ]   kde-base/pykde4-4.3.5-r1  USE="-akonadi (-aqua) -debug -doc -examples (-kdeenablefinal) (-kdeprefix) -policykit -semantic-desktop"
[ebuild   R   ]    dev-python/PyQt4-4.6.2  USE="X dbus kde opengl sql svg webkit -assistant -debug -doc -examples -phonon -xmlpatterns" LINGUAS="(-de%) (-en%)" 0 kB
[ebuild  NS   ] www-apps/websvn-2.3.0 [2.2.1] USE="-enscript -vhosts" 737 kB
[ebuild     U ] media-gfx/graphviz-2.26.0 [2.24.0-r2] USE="cairo gtk java nls perl python -doc -examples -lasi -ruby -tcl" 16,550 kB

Total: 3 packages (1 upgrade, 1 in new slot, 1 reinstall), Size of downloads: 17,287 kB
Comment 6 Rafał Mużyło 2010-02-09 23:09:00 UTC
(In reply to comment #5)
> 
This looks like a change in one of the eclasses.
Something that removed all LINGUAS from this package useflags.
Comment 7 Ben de Groot (RETIRED) gentoo-dev 2010-02-12 22:46:54 UTC
PyQt4 never had any LINGUAS flags. From what I can see this is either a user error or a portage bug. It should be reassigned accordingly.
Comment 8 Pacho Ramos gentoo-dev 2010-02-12 23:14:39 UTC
I am also affected by this, I get:
$ emerge -pv PyQt4

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

Calculating dependencies... done!
[ebuild   R   ] dev-python/PyQt4-4.6.2  USE="X dbus opengl sql svg webkit -assistant -debug -doc -examples -kde -phonon -xmlpatterns" LINGUAS="(-es%)" 0 kB

My emerge --info:
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.13
Timestamp of tree: Fri, 12 Feb 2010 08:30:21 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests autoaddcvs ccache cvs distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign strict test test-fail-continue unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/suka /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 applet avahi bash-completion berkdb branding bzip2 cairo cddb cdinstall cdr cleartype cli consolekit cracklib crypt css cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gif glitz gnome gnome-keyring gpm gstreamer gtk hal iconv imagemagick java jpeg kdehiddenvisibility kpathsea latex libnotify lyx lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network network-cron nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime readline reflection reiserfs scanner sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs t1lib tcpd threads thunar tiff truetype unicode usb v4l2 vcd vorbis webkit x264 xattr xcb xinetd xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Pacho Ramos gentoo-dev 2010-02-19 19:32:00 UTC
The same problem with net-p2p/qbittorrent :-/
Comment 10 Zac Medico gentoo-dev 2010-02-19 20:05:12 UTC
(In reply to comment #7)
> PyQt4 never had any LINGUAS flags.

That's right, I don't see any LINGUAS flags in `emerge -pv dev-python/PyQt4` output. I have no idea why the LINGUAS flags would appear for some users. Do you have anything in /etc/portage/bashrc or /etc/portage/env that is modifying IUSE? Or have you modified eclasses to change IUSE?

(In reply to comment #9)
> The same problem with net-p2p/qbittorrent :-/

Is it showing mysterious LINGUAS flags too? If not, I guess it's a separate issue.
Comment 11 Toralf Förster gentoo-dev 2010-02-19 20:21:36 UTC
(In reply to comment #10)
> Do you have anything in /etc/portage/bashrc or /etc/portage/env that is modifying
> IUSE? Or have you modified eclasses to change IUSE?
> 
no, nothing.
This is the only modification I made to compile some packages with debug info :

tfoerste@n22 /etc/portage/env $ find . -type l | xargs ls -l
lrwxrwxrwx 1 root root 10 Jan 17 10:42 ./app-emulation/qemu-kvm -> ../default
lrwxrwxrwx 1 root root 10 Feb  4 21:48 ./app-text/poppler -> ../default
lrwxrwxrwx 1 root root 10 Feb  5 09:47 ./dev-libs/glib -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:50 ./kde-base/kdelibs -> ../default
lrwxrwxrwx 1 root root 10 Jan 18 09:37 ./kde-base/kgpg -> ../default
lrwxrwxrwx 1 root root 10 Feb  4 21:36 ./kde-base/kompare -> ../default
lrwxrwxrwx 1 root root 10 Jan 18 09:30 ./kde-base/kwallet -> ../default
lrwxrwxrwx 1 root root 10 Jan 18 09:30 ./kde-base/kwalletd -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:42 ./sys-libs/glibc -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:50 ./x11-libs/qt-core -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:51 ./x11-libs/qt-dbus -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-gui -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-opengl -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-qt3support -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-script -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-sql -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-svg -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-test -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-webkit -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qt-xmlpatterns -> ../default
lrwxrwxrwx 1 root root 10 Jan 17 10:55 ./x11-libs/qtscriptgenerator -> ../default

tfoerste@n22 /etc/portage/env $ cat default
CFLAGS="-O2 -march=native -pipe -g -ggdb"
CXXFLAGS="${CFLAGS}"
FEATURES="${FEATURES} splitdebug"
Comment 12 Pacho Ramos gentoo-dev 2010-02-19 20:50:16 UTC
(In reply to comment #10)
> Do
> you have anything in /etc/portage/bashrc or /etc/portage/env that is modifying
> IUSE? Or have you modified eclasses to change IUSE?
> 

Nothing:
# LC_ALL=C ls -l /etc/portage/bashrc /etc/portage/env
ls: cannot access /etc/portage/bashrc: No such file or directory
ls: cannot access /etc/portage/env: No such file or directory

> (In reply to comment #9)
> > The same problem with net-p2p/qbittorrent :-/
> 
> Is it showing mysterious LINGUAS flags too? 

Yes:
# emerge -pv qbittorrent

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

Calculating dependencies... done!
[ebuild   R   ] net-p2p/qbittorrent-2.1.5  USE="X libnotify -geoip" LINGUAS="(-es%)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


And I have this problem in two different systems :-/
Comment 13 Zac Medico gentoo-dev 2010-02-19 21:07:01 UTC
(In reply to comment #12)
> Calculating dependencies... done!
> [ebuild   R   ] net-p2p/qbittorrent-2.1.5  USE="X libnotify -geoip"
> LINGUAS="(-es%)" 0 kB

I guess /var/db/pkg/net-p2p/qbittorrent-2.1.5/IUSE contains linguas_es for some reason. As a workaround, you can try to remove linguas_es from that file and then do this:

  touch /var/db/pkg/net-p2p/qbittorrent-2.1.5
Comment 14 Zac Medico gentoo-dev 2010-02-19 21:10:52 UTC
The variable is supposed to be marked readonly so I'm not sure how it could be corrupted. To see if we can figure out when it's getting corrupted, you can try rebuilding it something like this in /etc/portage/bashrc:

  elog "phase: $EBUILD_PHASE IUSE: $IUSE"
Comment 15 Pacho Ramos gentoo-dev 2010-02-20 11:12:47 UTC
(In reply to comment #14)
> The variable is supposed to be marked readonly so I'm not sure how it could be
> corrupted. To see if we can figure out when it's getting corrupted, you can try
> rebuilding it something like this in /etc/portage/bashrc:
> 
>   elog "phase: $EBUILD_PHASE IUSE: $IUSE"
> 

For some reason $EBUILD_PHASE is not recorded in /var/log/portage/elog/summary.log:
>>> Messages generated by process 2726 on 2010-02-20 12:05:50 CET for package net-p2p/qbittorrent-2.1.5:

LOG: other
phase:  IUSE: +X geoip libnotify   linguas_es
phase:  IUSE: +X geoip libnotify   linguas_es
phase:  IUSE: +X geoip libnotify   linguas_es
phase:  IUSE: +X geoip libnotify   linguas_es

But I will attach build.log then
Comment 16 Zac Medico gentoo-dev 2010-02-20 11:19:16 UTC
You might try building it with --debug so we get a trace of what bash is doing.
Comment 17 Pacho Ramos gentoo-dev 2010-02-20 11:26:59 UTC
 # cat /tmp/build.log | grep phase
 * phase: setup IUSE: +X geoip libnotify
 * phase: unpack IUSE: +X geoip libnotify   linguas_es
 * phase: prepare IUSE: +X geoip libnotify   linguas_es
 * phase: configure IUSE: +X geoip libnotify   linguas_es
 * phase: compile IUSE: +X geoip libnotify   linguas_es
 * phase: test IUSE: +X geoip libnotify   linguas_es
>>> Test phase [none]: net-p2p/qbittorrent-2.1.5
 * phase: install IUSE: +X geoip libnotify   linguas_es
 * phase:  IUSE: +X geoip libnotify   linguas_es
 * phase: preinst IUSE: +X geoip libnotify   linguas_es
 * phase:  IUSE: +X geoip libnotify   linguas_es
 * phase: postinst IUSE: +X geoip libnotify   linguas_es
 * phase:  IUSE: +X geoip libnotify   linguas_es
 * phase:  IUSE: +X geoip libnotify   linguas_es
 * phase: prerm IUSE: +X geoip libnotify   linguas_es
 * phase: postrm IUSE: +X geoip libnotify   linguas_es
Comment 18 Pacho Ramos gentoo-dev 2010-02-20 11:29:06 UTC
(In reply to comment #13)
> I guess /var/db/pkg/net-p2p/qbittorrent-2.1.5/IUSE contains linguas_es for some
> reason. 

Yes, it contains it, even after unmerging it for emerging it again later:
+X geoip libnotify linguas_es
Comment 19 Zac Medico gentoo-dev 2010-02-20 21:25:11 UTC
(In reply to comment #17)
>  # cat /tmp/build.log | grep phase
>  * phase: setup IUSE: +X geoip libnotify
>  * phase: unpack IUSE: +X geoip libnotify   linguas_es

It seems that the corruption occurred between the setup phase and the unpack phase. I guess it was probably during the setup phase. Please try running that phase with --debug to see if it gives us a clue:

  EBUILD=$PORTDIR/net-p2p/qbittorrent/qbittorrent-2.1.5.ebuild
  ebuild $EBUILD clean
  ebuild --debug $EBUILD setup &> ~/debug.log

Also, verify that $PORTAGE_TMPDIR/net-p2p/qbittorrent-2.1.5/temp/environment contains the corrupt IUSE setting after the setup phase.
Comment 20 Pacho Ramos gentoo-dev 2010-02-21 19:40:40 UTC
Created attachment 220627 [details]
debug.log

This is the file

Thanks :-)
Comment 21 Zac Medico gentoo-dev 2010-02-21 23:33:09 UTC
I guess people who experience this problem have LANGS set in their environment, because this code from qt4-r2.eclass is what does it:

# @ECLASS-VARIABLE: LANGS
# @DESCRIPTION:
# In case your Qt4 application provides various translations, use this variable
# to specify them in order to populate "linguas_*" IUSE automatically. Make sure
# that you set this variable BEFORE inheriting qt4-r2 eclass.
# example: LANGS="en el de"
for x in ${LANGS}; do
	IUSE="${IUSE} linguas_${x}"
done
Comment 22 Toralf Förster gentoo-dev 2010-02-22 08:21:31 UTC
(In reply to comment #21)
> I guess people who experience this problem have LANGS set in their environment,
Yes :

tfoerste@n22 ~ $ grep LANG /etc/make.conf
LANGS_DOC="de en"
LANGS="de en"
Comment 23 Zac Medico gentoo-dev 2010-02-22 09:13:31 UTC
(In reply to comment #22)
> tfoerste@n22 ~ $ grep LANG /etc/make.conf
> LANGS_DOC="de en"
> LANGS="de en"

So, your LANGS setting interferes with the way that qt4-r2.eclass uses that variable. Do you need that variable to be exported to other ebuilds or not? If not, we can just filter it out unconditionally for all ebuilds.
Comment 24 Toralf Förster gentoo-dev 2010-02-22 10:20:37 UTC
(In reply to comment #23)
> So, your LANGS setting interferes with the way that qt4-r2.eclass uses that
> variable. Do you need that variable to be exported to other ebuilds or not? If
> not, we can just filter it out unconditionally for all ebuilds.

Well, it's a looong time ago when I edited make.conf - therefore I'm unsure why I defined "LANGS" in it - isn't this variable use[d|full] anymore ?

Comment 25 Zac Medico gentoo-dev 2010-02-22 10:48:35 UTC
Well, if user needs to to set LANGS for any ebuild then we will have a conflict with the way that qt4-r2.eclass is using it. We have to either filter the variable or not, and obviously we can't do both.

I don't see any mention of LANGS in the localization guide:

  http://www.gentoo.org/doc/en/guide-localization.xml
Comment 26 Toralf Förster gentoo-dev 2010-02-22 11:53:32 UTC
If this variable isn't necessary to be set by the user I'll remove it asap - no problem.
BTW these installed packages at my system ebuilds uses LANGS as a variable :

n22 ~ # grep -Hrl LANGS /var/db/pkg/*
/var/db/pkg/app-office/openoffice-bin-3.2.0/openoffice-bin-3.2.0.ebuild
/var/db/pkg/kde-base/kde-l10n-4.3.5/kde-l10n-4.3.5.ebuild
/var/db/pkg/net-print/cups-1.3.11-r1/cups-1.3.11-r1.ebuild
/var/db/pkg/www-client/mozilla-firefox-3.5.8/mozilla-firefox-3.5.8.ebuild

Probably I set it in the past WRT to openoffice-bin.
Comment 27 Ben de Groot (RETIRED) gentoo-dev 2010-02-22 14:45:12 UTC
LANGS is an internal variable that should never be set by the user. The user should set LINGUAS to get the localizations that he needs. See also http://www.gentoo.org/doc/en/guide-localization.xml
Comment 28 Toralf Förster gentoo-dev 2010-02-22 16:01:31 UTC
I removed LANGS=... from make.conf - and issue went away.
Thx.

Comment 29 Pacho Ramos gentoo-dev 2010-02-22 17:08:10 UTC
I also had "LANGS" in my make.conf (I don't remember why I added it :-S)

Thanks a lot and sorry for the inconvenience