Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358861 - eix-test-obsolete has misleading text for new /etc/portage/package.use defaults
Summary: eix-test-obsolete has misleading text for new /etc/portage/package.use defaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 12:22 UTC by Andre
Modified: 2011-07-05 14:31 UTC (History)
1 user (show)

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 Andre 2011-03-14 12:22:06 UTC
app-portage/eix: 
eix-test-obsolete does not find uninstalled entries in /etc/portage/package.use

# eix-test-obsolete -d

yields:
...
No  redundant  entries in /etc/portage/package.use
No uninstalled entries in /etc/portage/package.use
...

Although a non-installed entry is listed:

# cat /etc/portage/package.use | grep icon-theme
x11-themes/gnome-icon-theme -branding

# eix gnome-icon-theme
* x11-themes/gnome-icon-theme
     Available versions:  2.30.3!b!s ~2.91.6!b!s 2.91.7!b!s {branding}
     Homepage:            http://www.gnome.org/ http://people.freedesktop.org/~jimmac/icons/#git
     Description:         GNOME default icon themes


I tried eix-0.22.5 and .8

I use sys-apps/portage-2.2.0_alpha26.

emerge --info for eix:

# emerge --info app-portage/eix
Portage 2.2.0_alpha26 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36.2 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36.2-i686-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Mar 2011 12:00:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /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/init.d /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 /usr/share/X11 /usr/share/X11/xkb /usr/share/X11/xkb/compat /usr/share/X11/xkb/geometry /usr/share/X11/xkb/keycodes /usr/share/X11/xkb/keymap /usr/share/X11/xkb/rules /usr/share/X11/xkb/symbols/macintosh_vndr /usr/share/X11/xkb/symbols/sun_vndr /usr/share/X11/xkb/types"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US"

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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dri dts dvd dvdr emboss encode exif expat fam firefox flac fortran gdu gif gnutls gpm gtk iconv ipv6 java jpeg lcms mad mikmod minimal mmx mng modules mp3 mp4 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pango pcre pdf perl png policykit ppds pppd python qt3support readline session spell sqlite sse sse2 ssl svg sysfs system-sqlite tcpd threads tiff truetype udev unicode usb vim-syntax vorbis wmf x264 x86 xcb xml xorg xulrunner xv xvid zlib" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-portage/eix-0.22.8 was built with the following:
USE="bzip2 sqlite -debug -doc -hardened -nls -optimization -strong-optimization -tools -zsh-completion"
Comment 1 Martin Väth 2011-03-16 13:55:35 UTC
From the ChangeLog of eix-0.22.0:
 - Switch off REDUNDANT_IF_{IN,DOUBLE}_{USE,ENV,CFLAGS} by default:
   Usually, double entries are intentional here, and most people will
   want to leave some settings after deinstallation for later usage.

If you want the previous behavior you have to set the variables
correspondingly to the previous values, e.g. put into /etc/eixrc:
REDUNDANT_IF_IN_USE="-some"
REDUNDANT_IF_IN_ENV="-some"
REDUNDANT_IF_IN_CFLAGS="-some"
REDUNDANT_IF_DOUBLE_USE="some"
REDUNDANT_IF_DOUBLE_ENV="some"
REDUNDANT_IF_DOUBLE_CFLAGS="some"

(the very first line will switch on the test which you were missing.)
Comment 2 Andre 2011-03-16 14:11:44 UTC
Ah, thanks!
Obviously, I wasn't aware of that.

Although I agree on the rationale for some use cases,
the wording of the test results is wrong now, IMHO.
Comment 3 Martin Väth 2011-03-16 18:03:21 UTC
You are completely right.

I had omitted the "(or test switched off)" because the lines with this text
became too long, and starting a new line with only an repeated message gave
a rather confusing output.

I think it is necessary to make the script more intelligent to at least try
to guess why a test failed...
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-07-05 14:31:49 UTC
app-portage/eix-0.22.9 is in the tree