Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370799 - app-portage/eix: REDUNDANT_IF_MIXED does not work as expected
Summary: app-portage/eix: REDUNDANT_IF_MIXED does not work as expected
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 11:48 UTC by Ben Sagal
Modified: 2011-07-05 14:31 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 Ben Sagal 2011-06-09 11:48:58 UTC
When i add testing ebuild with a stable vertions to packages.accect_keyword and
have REDUNDANT_IF_MIXED=some set eixrc it will show up when running  eix-test-obsolete.

(i will use hplip as the exple but other ebuild have the same problem.
[I] net-print/hplip
     Available versions:  
                        3.10.9-r1 "amd64 ~arm ppc ppc64 x86" [X -acl doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds]
                (~)     3.11.5 "~amd64 ~arm ~ppc ~ppc64 ~x86" [X -acl doc fax +hpcups hpijs kde libnotify minimal parport policykit qt4 scanner snmp static-ppds]
     Installed versions:  3.11.5(23:19:38 21/05/11)(X doc fax hpcups kde libnotify policykit qt4 scanner udev-acl -hpijs -minimal -parport -snmp -static-ppds)
     Homepage:            http://hplipopensource.com/hplip-web/index.html
     Description:         HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools.
)


Reproducible: Always

Steps to Reproduce:
1. echo '~net-print/hplip-3.11.5::gentoo' >>  /etc/portage/package.accept_keywords
2. emerge hplip
3. echo 'REDUNDANT_IF_MIXED=some' >> /etc/eixrc
4. eix-test-obsolete 
Actual Results:  
Redundant in /etc/portage/package.{,accept_}keywords:

... considered as REDUNDANT_IF_MIXED
[I] net-print/hplip (3.11.5@21/05/11): HP Linux Imaging and Printing. Includes printer, scanner, fax drivers and service tools.

Found 1 matches.

Expected Results:  
should not find net-print/hplip

% eix --version
eix 0.22.8 (gcc-4.4.5, x86_64-pc-linux-gnu)

Portage 2.1.10 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.37-tuxonice-bms-tpe14 x86_64)
=================================================================
System uname: Linux-2.6.37-tuxonice-bms-tpe14-x86_64-Intel-R-_Core-TM-_i5_CPU_M_480_@_2.67GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 09 Jun 2011 05:00:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.65-r1
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE freedist"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --ask  --ask-enter-invalid --autounmask y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.isoc.org.il/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.romnet.org/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en he_IL he"
MAKEOPTS="-j3"
PKGDIR="/var/db/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--checksum"
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/layman/sunrise /usr/local/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 ao avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo calendar cdda cddb cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative djvu doc dri dts dv dvd dvdr emboss encode examples exif fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran freetds ftp gcj gd gdbm gdu gif gimp gnutls gphoto2 gpm gstreamer gtk iconv icu idn ieee1394 imagemagick imap ipod ipv6 jabber java java6 javascript jbig jingle jpeg jpeg2k kde kipi ladspa lame latex lcms libnotify libsamplerate lua lzma lzo mad matroska mmx mng modplug modules mp3 mp4 mpeg mplayer msn mssql mtp mudflap multilib musepack musicbrainz mysql mysqli ncurses networkmanager nls nptl nptlonly nsplugin odbc ogg openexr opengl openmp oscar pam pango pch pcmcia pcre pda pdf perl phonon plasma plotutils png policykit portaudio posix postgres ppds pppd python qt3support qt4 raw rdesktop readline recode rss samba scanner sdl semantic-desktop session slang slp smp sndfile speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs taglib tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vcd vnc vorbis wavpack wifi wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid yahoo zeroconf zlib zsh-completion" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="*" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en he_IL he" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i965 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Martin Väth 2011-06-09 18:35:22 UTC
Thanks for the report.

Due to a bug in eix the actually non-matching line
~net-print/hplip-3.11.5::gentoo
was treated for version 3.10.9-r1 as if you had there a line like
net-print/hplip amd64
which caused the strange "mixed" positive.

The bug should be fixed in eix svn trunk (>=eix-0.22.9).

(I know that one may discuss whether the line
net-print/hplip amd64
should really cause a "mixed" positive or only a "double" positive,
but it would require a much more complex algorithm to distinguish these
cases - since I cannot think about an application where the reliability
of this distinction is really essential, I leave this as it is now.)
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-07-05 14:31:21 UTC
app-portage/eix-0.22.9 is in the tree