Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234311 - emerge --newuse doesn't remove a package after recompile
Summary: emerge --newuse doesn't remove a package after recompile
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-09 13:17 UTC by David Philippi
Modified: 2010-07-25 18:40 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 David Philippi 2008-08-09 13:17:56 UTC
Since a few weeks emerge -upvDN world always shows me:

[ebuild   R   ] net-irc/konversation-1.1_rc1  USE="-debug -xinerama" LINGUAS="(-de%)

I don't know how often I've recompiled konversation, the annoying entry stays present. If real changes USE flag changes occur I can either compile the packages or have emerge -uDN world waste time on yet another konversation compile that changes nothing.

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2008-08-09 20:23:37 UTC
Please post emerge --info output and also the output of this command:

portageq metadata / ebuild net-irc/konversation-1.1_rc1 IUSE
Comment 2 Zac Medico gentoo-dev 2008-08-09 20:48:14 UTC
(In reply to comment #1)
> portageq metadata / ebuild net-irc/konversation-1.1_rc1 IUSE
> 

Please also add USE to that query, and aslo post the output of the equivalent command for the installed package:

portageq metadata / ebuild net-irc/konversation-1.1_rc1 IUSE USE
portageq metadata / installed net-irc/konversation-1.1_rc1 IUSE USE
Comment 3 David Philippi 2008-08-10 00:12:10 UTC
Portage 2.2_rc6 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-glibc2.2.5
Timestamp of tree: Sat, 09 Aug 2008 12:06:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3 -fgcse-after-reload -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse3 -fgcse-after-reload -frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sfperms strict unemerge-orphans unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://www.ibiblio.org/pub/Linux/distributions/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--eh-frame-hdr"
LINGUAS="de en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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 /usr/local/portage/layman/java-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa amd64 bash-completion berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dri dvb dvd encode exif ffmpeg fortran gdbm gpm hal iconv isdnlog java6 jpeg kde kdeenablefinal kdehiddenvisibility kdenewldflags kdexdeltas mad midi mmx mmxext mp3 mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python qt readline reflection samba session spl sse sse2 sse3 ssl sysfs tcpd theora unicode userlocales vorbis x264 xcb xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


portageq metadata / ebuild net-irc/konversation-1.1_rc1 IUSE
debug xinerama elibc_FreeBSD


portageq metadata / ebuild net-irc/konversation-1.1_rc1 IUSE USE
debug xinerama elibc_FreeBSD


portageq metadata / installed net-irc/konversation-1.1_rc1 IUSE USE
debug xinerama elibc_FreeBSD linguas_de
amd64 elibc_glibc kernel_linux multilib userland_GNU

Comment 4 Zac Medico gentoo-dev 2008-08-10 00:54:55 UTC
(In reply to comment #3)
> portageq metadata / installed net-irc/konversation-1.1_rc1 IUSE USE
> debug xinerama elibc_FreeBSD linguas_de

When you reinstall, the linguas_de value should disappear from IUSE. Does the IUSE value returned above match the value displayed by the following command?

  cat /var/db/pkg/sys-apps/portage-2.2_rc6_p11376/IUSE

The value is cached in /var/cache/edb/vdb_metadata.pickle and it's supposed to invalidate the cache if the directory mtime of the /var/db/pkg/sys-apps/portage-2.2_rc6_p11376/ changes.
Comment 5 Zac Medico gentoo-dev 2008-08-10 00:56:18 UTC
Pardon, replace sys-apps/portage-2.2_rc6_p11376 with net-irc/konversation-1.1_rc1 in comment #4.
Comment 6 David Philippi 2008-08-10 01:03:15 UTC
cat /var/db/pkg/net-irc/konversation-1.1_rc1/IUSE
debug xinerama elibc_FreeBSD linguas_de
Comment 7 Zac Medico gentoo-dev 2008-08-10 01:30:31 UTC
(In reply to comment #6)
> cat /var/db/pkg/net-irc/konversation-1.1_rc1/IUSE
> debug xinerama elibc_FreeBSD linguas_de
> 

If you remove that file and then reinstall konversation, does the problem persist? I don't understand why linguas_de is still there, since it's been removed from IUSE.
Comment 8 David Philippi 2008-08-10 01:48:29 UTC
Removed the file, emerged again and the problem persists. I suppose I can simply remove the flag manually?
Comment 9 Zac Medico gentoo-dev 2008-08-10 01:54:09 UTC
But I don't understand how this linguas_de comes to be in the IUSE. Is the ebuild from the official portage tree or is it coming from your overlay?
Comment 10 David Philippi 2008-08-10 01:56:56 UTC
No overlay involved, that'd be an easy reason. 
Comment 11 Zac Medico gentoo-dev 2008-08-10 03:53:52 UTC
Anything in /etc/portage/bashrc or perhaps /etc/profile or /etc/env.d? I guess if you have IUSE=linguas_de in the calling environment then that might do it.
Comment 12 Zac Medico gentoo-dev 2008-08-10 04:00:58 UTC
The most likely source I can think of is /etc/portage/bashrc. It can't come from the calling environment since we've got the following line in /usr/lib/portage/bin/ebuild.sh:

  unset DEPEND RDEPEND PDEPEND IUSE
Comment 13 David Philippi 2008-08-10 10:48:34 UTC
Nothing set in any of those files, I've only LINGUAS in /etc/make.conf and no other package shows any problems...
Comment 14 Marius Mauch 2010-03-13 17:43:16 UTC
This has just shown up in the forums again, it is caused by qt4-r2 eclass, which uses LANGS annd LANGSLONG variables to populate IUSE. If one of those is set by the user in the environment it affects the IUSE variable of all packages using the eclass (violating the metadata cache contraints).
So it's not really a portage issue, could be considered as a user configuration problem or as a bug in the eclass.

http://forums.gentoo.org/viewtopic-t-819207.html
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2010-03-13 18:03:15 UTC
(In reply to comment #14)
> This has just shown up in the forums again, it is caused by qt4-r2 eclass,

That eclass didn't exist in 2008, when this bug was filed.

What you're seeing wrt qt4-r2.eclass is a duplicate of bug #304061.
Comment 16 Giuseppe Foti 2010-07-25 13:15:42 UTC
Hi, I have the same problem with LINGUAS="it" and the following ebuilds:
[ebuild   R   ] app-crypt/qca-ossl-2.0.0_beta3-r2  USE="-debug" LINGUAS="(-it%)" 0 kB
[ebuild   R   ] dev-python/PyQt4-4.7.3  USE="X dbus kde opengl sql svg webkit -assistant -debug -doc -examples -multimedia -phonon -xmlpatterns" LINGUAS="(-it%)" 0 kB
[ebuild   R   ] x11-libs/qscintilla-2.4.3  USE="python -doc" LINGUAS="(-it%)" 0 kB

portageq says:

giuseppe@peppebook ~ $ portageq metadata / ebuild dev-python/PyQt4-4.7.3 IUSE
X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns

giuseppe@peppebook ~ $ portageq metadata / ebuild dev-python/PyQt4-4.7.3 IUSE USE
X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns

giuseppe@peppebook ~ $ portageq metadata / installed dev-python/PyQt4-4.7.3 IUSE
X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns linguas_it

giuseppe@peppebook ~ $ portageq metadata / installed dev-python/PyQt4-4.7.3 IUSE USE
X assistant +dbus debug doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns linguas_it
X dbus elibc_glibc kde kernel_linux opengl sql svg userland_GNU webkit x86


giuseppe@peppebook ~ $ portageq metadata / ebuild app-crypt/qca-ossl-2.0.0_beta3-r2 IUSE
debug

giuseppe@peppebook ~ $ portageq metadata / ebuild app-crypt/qca-ossl-2.0.0_beta3-r2 IUSE USE
debug

giuseppe@peppebook ~ $ portageq metadata / installed app-crypt/qca-ossl-2.0.0_beta3-r2 IUSE
debug linguas_it

giuseppe@peppebook ~ $ portageq metadata / installed app-crypt/qca-ossl-2.0.0_beta3-r2 IUSE USE
debug linguas_it
elibc_glibc kernel_linux userland_GNU x86


giuseppe@peppebook ~ $ portageq metadata / ebuild x11-libs/qscintilla-2.4.3 IUSE
doc python

giuseppe@peppebook ~ $ portageq metadata / ebuild x11-libs/qscintilla-2.4.3 IUSE USE
doc python

giuseppe@peppebook ~ $ portageq metadata / installed x11-libs/qscintilla-2.4.3 IUSE
doc python linguas_it

giuseppe@peppebook ~ $ portageq metadata / installed x11-libs/qscintilla-2.4.3 IUSE USE
doc python linguas_it
elibc_glibc kernel_linux python userland_GNU x86

in /etc/make.conf
this variables are set:
LANGS="it"
LINGUAS="it"
LANGUAGE="ITAL"

and this is the output of emerge --info:
peppebook ~ # emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.11.2-r0, 2.6.30-tuxonice-r6 i686)
=================================================================
System uname: Linux-2.6.30-tuxonice-r6-i686-Mobile_AMD_Athlon-tm-_XP_2800+-with-gentoo-1.12.13
Timestamp of tree: Sat, 17 Jul 2010 15:45:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r2, 3.1.2-r3
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.65
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests candy ccache distlocks fixpackages metadata-transfer moo news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.klid.dk/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://91.121.124.139/gentoo-distfiles/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.kiev.ua/ftp/"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
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/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 apm arts audiofile avahi berkdb bluetooth branding bzip2 cairo cddb cdr cli consolekit cracklib crypt cups curl cxx dbus directfb dri dts dvb dvd dvdr eds emacs emboss encode esd exif expat fam fbcon fbsplash ffmpeg firefox flac flash fortran fpx gb gd gdbm gif glut gpm gstreamer gtk hal iconv idn imagemagick imlib ipod ipv6 java jbig joystick jpeg jpeg2k kde kerberos laptop lcms ldap libcaca libnotify lirc live lm_sensors mad matroska mhash mikmod mmx mng modules motif mp3 mp4 mpeg mplayer mudflap musicbrainz mysql nas ncurses network nls nodrm nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oss pam pango pcre pda pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline recode reflection rtsp samba scanner sdl session shout slang snmp speex spell spl sqlite ssl startup-notification suexec svg svga sysfs tcpd theora thumbnail tidy tiff truetype unicode usb userlocales v4l vcd vhosts vorbis win32codecs wmf x264 x86 xcb xcomposite xine xinerama xml xmms xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="evdev keyboard mouse aiptek synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev radeon vga vmware v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 17 Zac Medico gentoo-dev 2010-07-25 18:40:30 UTC
(In reply to comment #16)
> in /etc/make.conf
> this variables are set:
> LANGS="it"

Never set the LANGS variable. See bug #304061, comment #27.