Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134352

Summary: eix does not like symlinks
Product: Gentoo Linux Reporter: Fab <netbox253>
Component: Current packagesAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: RESOLVED INVALID    
Severity: normal CC: emilbeinroth
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fab 2006-05-25 13:20:33 UTC
Hi,

I totally reorganized my system without reinstalling it (cp -a on each partition).

Now :

/var is a symlink to /temporaire/var.
/tmp is a symlink to /temporaire/tmp.

Then, I reboot.

Almost everything is ok, but eix stopped working.

When update-eix read the /var/portage directory, reading step is very fast : 100 % in less than one second.

Thanks.

==============================================
$ emerge -pv eix

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

Calculating dependencies ... done!
[ebuild   R   ] app-portage/eix-0.5.5  0 kB

Total size of downloads: 0 kB

$ eix eix

Found 0 matches


$ su -c 'update-eix'
Password:
Reading Portage settings ..
Building database (/var/cache/eix) from scratch ..
[0] /var/portage/ (cache: backport)
     Reading 100%
[1] /usr/local/portage (cache: none)
     Reading 100%
Applying masks ..
Database contains 26 packages in 147 categories.


$ eix eix

Found 0 matches


$ ls -l /var/cache/eix
-rw-rw-r-- 1 portage portage 5477 mai 25 22:07 /var/cache/eix

=============================================

$ emerge --info
Portage 2.1_rc1-r3 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/distpack/distfiles"
FEATURES="autoconfig buildpkg buildsyspkg candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/distpack/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups curl dbus dri dts dvd dvdr dvdread emboss encode esd fam ffmpeg flac foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 hal imlib isdnlog java jpeg kde ldap libg++ libnotify libwww logrotate mad mikmod mmx motif mozilla mozsvg mp3 mpeg mysql ncurses nls nptl nptlonly ogg openal opengl oss pam pcre pdflib perl png ppds pppd python qt quicktime readline reflection sdl session spell spl sse sse2 ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis win32codecs xine xml xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_fr linguas_fr_FR userland_GNU video_cards_nvidia video_cards_nv"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-25 13:28:46 UTC
Uh, this is completely wrong way to re-organize filesystems. Use mount -o bind or something more sane, this is just calling for trouble.
Comment 2 Fab 2006-05-25 14:14:46 UTC
It's not possible, because mount -o bind implies that I have 1 partition for /tmp and one for /var no ?
But I don't want this : I want only one partition for these directories, and, they must be separated from the root partition.

As I said, everything works fine for now, except some init scripts during booting sequence : little bash details.

Anyway, I'll see in the next hours if problems appears, but I am trustful :)

> something more sane

any idea ?
Comment 3 Emil Beinroth 2006-05-25 14:31:43 UTC
No, it doesn't require that.

Anyway, eix should be fine with symlinks. Please set PORTDIR_CACHE_METHOD=metadata in your /etc/eixrc (or ~/.eixrc), and run update-eix.
If you insist upon using "backport", try 'emerge --metadata && update-eix' and make sure you don't have a /etc/portage/modules.
Comment 4 Fab 2006-05-25 15:00:19 UTC
/etc/portage/modules doesn't exist, and

# emerge --metadata && update-eix

doesn't work, but with :

PORTDIR_CACHE_METHOD="metadata"

it works fine, but I don't understand where is the difference.

Finally not a bug. Thanks.