Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315611 - app-portage/eix should ignore hidden files in /etc/portage/sets
Summary: app-portage/eix should ignore hidden files in /etc/portage/sets
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 14:31 UTC by Jimmy.Jazz
Modified: 2010-04-23 22:20 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 Jimmy.Jazz 2010-04-16 14:31:35 UTC
To illustrate the issue, open a file in /etc/portage tree where vim will create its temporary swp file.

For instance, 
Open an existing file with vim in a terminal.
# vi /etc/portage/sets/stage1
...
"/etc/portage/sets/stage1" 41L, 707C écrit(s)

In a second terminal, 

# eix diffs
-- Invalid line 1 in /etc/portage/sets/.stage1.swp: 'b0VIM 7.2^P���K\gcRrootgento3210'/portage/sets/stage1utf-8
    Can't read category.

* dev-util/diffstat
     Available versions:  1.51
     Homepage:            http://invisible-island.net/diffstat/diffstat.html
     Description:         Display a histogram of diff changes

gentoo ~ # eix diffsss
-- Invalid line 1 in /etc/portage/sets/.stage1.swp: 'b0VIM 7.2^P���K\gcRrootgento3210'/portage/sets/stage1utf-8
    Can't read category.

No matches found.
gentoo ~ #
# eix diffutils
-- Invalid line 1 in /etc/portage/sets/.stage1.swp: 'b0VIM 7.2^P���K\gcRrootgento3210'/portage/sets/stage1utf-8
    Can't read category.

[I] sys-apps/diffutils
     Available versions:  2.8.7-r2 (~)2.9{tbz2} (~)2.9-r1{tbz2} {nls static}
     Installed versions:  2.9-r1{tbz2}(19:42:09 01/04/2010)(nls -static)
     Homepage:            http://www.gnu.org/software/diffutils/
     Description:         Tools to make diffs and compare files


Error until vi is closed


Close vim and the issue goes away by itself.

# eix diffutils

[I] sys-apps/diffutils
     Available versions:  2.8.7-r2 (~)2.9{tbz2} (~)2.9-r1{tbz2} {nls static}
     Installed versions:  2.9-r1{tbz2}(19:42:09 01/04/2010)(nls -static)
     Homepage:            http://www.gnu.org/software/diffutils/
     Description:         Tools to make diffs and compare files


Reproducible: Always




# emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.34-rc4-radeon x86_64)
=================================================================
System uname: Linux-2.6.34-rc4-radeon-x86_64-AMD_Phenom-tm-_9500_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Fri, 16 Apr 2010 06:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1, 3.1.2-r2
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA MIT GPL-3 PSF-2.2 X11 GPL-2 ETQW RTCW-ETEULA ut2003"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d/02distcc /etc/splash/livecd-2007.0/1280x1024.cfg /lib/rcscripts/addons /sbin/rc /sbin/splash-functions-bl1.sh /sbin/splash-functions.sh /usr/local/share/cursors/xorg-x11/default/index.theme /usr/share/X11/xkb /usr/share/hddtemp/hddtemp.db /usr/src/linux/.config /var/bind /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/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="-march=barcelona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distcc distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j8 -l5"
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="/var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/gnome /usr/local/portage/java /usr/local/portage/overlay"
SYNC="rsync://..."
USE="3dnow 3dnowext acl amd64 avahi bindist bzip2 cli cracklib crypt cups cxx dbus dri expat gdbm gpm iconv latex logrotate maildir mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly ogg openmp pam pcre perl pppd pulseaudio python readline reflection session spl sse sse2 ssl ssse3 sysfs tcpd threads udev unicode userlocales vorbis xinetd xorg xulrunner zlib" ALSA_CARDS="hda-intel usb-audio virmidi" 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" APACHE2_MPMS="worker" CAMERAS="ptp2" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" LIRC_DEVICES="devinput userspace" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-04-16 14:36:09 UTC
What version of eix are you using?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-04-16 14:37:12 UTC
Nothing to do with portage development.
Comment 3 Jimmy.Jazz 2010-04-16 15:26:04 UTC
(In reply to comment #1)
> What version of eix are you using?
> 

Sorry, I thought it was described in emerge --info

app-portage/eix-0.20.3
Comment 4 Martin Väth 2010-04-19 17:53:05 UTC
Changed the Summary: Hidden files in /etc/portage/package.* are ignored by eix.

Hidden files in /etc/portage/sets were intentionally not ignored,
because also portage did not ignore them (IIRC).

It appears that the portage behavior has changed, so also eix' behavior
should change correspondingly.

The change is now in eix' svn trunk (>=app-portage/eix-0.20.4).
Comment 5 Martin Väth 2010-04-23 22:20:38 UTC
Closing, since eix-0.20.4 is now in the tree which should fix the issue.