Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149627 - app-admin/eselect-1.0.5 - eselect binutils inconsistencies
Summary: app-admin/eselect-1.0.5 - eselect binutils inconsistencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-09-30 08:46 UTC by Charlie Shepherd (RETIRED)
Modified: 2006-10-03 12:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix handling of stray config-${target} files in /etc/env.d/binutils/ (eselect-binutils-stray-config.diff,1.63 KB, patch)
2006-09-30 17:35 UTC, Danny van Dyk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Shepherd (RETIRED) gentoo-dev 2006-09-30 08:46:26 UTC
The numbers of chaza@Mars ~ $ sudo eselect binutils list
Installed binutils for target i386-pc-linux-gnu
Installed binutils for target i686-pc-linux-gnu
  [1]   2.17.50.0.3 *
  [2]   2.17.50.0.4
  [3]   2.17.50.0.5
chaza@Mars ~ $ sudo eselect binutils set 3
Switching to i686-pc-linux-gnu-2.17.50.0.4...
Regenerating /etc/ld.so.cache...
Please remember to run:

  # source /etc/profile

in order to let changes take effect!
chaza@Mars ~ $ sudo eselect binutils set 4
Switching to i686-pc-linux-gnu-2.17.50.0.5...
Regenerating /etc/ld.so.cache...
Please remember to run:

  # source /etc/profile

in order to let changes take effect!
chaza@Mars ~ $ sudo eselect binutils set 1
!!! Error: Need exactly 2 arguments!
Call stack:
    * is_active (binutils.eselect:45)
    * switch_profile (binutils.eselect:67)
    * do_set (binutils.eselect:203)
    * check_do (core.bash:26)
    * do_action (core.bash:91)
    * main (eselect:190)
exiting.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 09:00:15 UTC
eselect version, emerge --info plus binutils-config -l output, please.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 09:00:45 UTC
Eh, not FIXED.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 09:01:16 UTC
Reopen with info requested in Comment #1, thanks.
Comment 4 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-30 09:04:37 UTC
chaza@Mars ~ $ eselect version
eselect 1.0.5

Copyright (c) 2005 Gentoo Foundation. Distributed under the
terms of the GNU General Public License v2.
chaza@Mars ~ $ binutils-config -l
 [1] i686-pc-linux-gnu-2.17.50.0.3
 [2] i686-pc-linux-gnu-2.17.50.0.4
 [3] i686-pc-linux-gnu-2.17.50.0.5 *
chaza@Mars ~ $ emerge --info
Portage 2.1.2_pre2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4.20060329-r0, 2.6.18-rc4-viper i686)
=================================================================
System uname: 2.6.18-rc4-viper i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 09:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r3, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3, 2.17.50.0.4, 2.17.50.0.5
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe -fno-ident -fweb -frename-registers -ftracer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache collision-protect confcache distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict stricter userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1 -Wl,-zdynsort -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/initng /usr/local/overlays/xgl-coffee /usr/local/overlays/pkgcore /usr/portage/local/layman/liquidx /usr/portage/local/layman/vmware /usr/portage/local/layman/initng /usr/portage/local/layman/hanno-xgl /usr/portage/local/layman/geneticone"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X aac acl acpi alsa amd amuled ansi apache2 arts asf audacious bash-completion bzip2 cap ccache cdda cddb cdinstall cdparanoia cdr cdrom cgi chroot ck-plus cracklib crypt css cups curl curlwrappers dbus dhcp dillo dio directfb djbfft dnd dri dv dvdread edl elibc_glibc encode erandom exif ext-png ext-zlib extensions fastcgi fbcon fbsplash ffmpeg firefox flash fortify fpx geoip gif gimp gimpprint ginac glgd glibc-compat20 glibc-omitfp glitz glut gmp gmtfull gnuplot gpm graphviz gs gsl gtk gtk2 hal hardenedphp hbci hdf iconv icq ide idl image imap imlib imlib2 infopipe initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc4 initng_plugins_pause initng_plugins_pidfile initng_plugins_provide initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded innodb input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 irda irmc j2ee jabber javacomm javamail javascript jbig jboss jce jms jmx joystick jpeg jpeg2k jta jython kakasi kde kdehiddenvisibility kdenewldflags kdexdeltas kerberos kernel_linux kqemu krb4 latex lcms leim libclamav libdsk libgd libgda libsamplerate libwww linguas_en linguas_en_GB live lua lzo lzw m17n-lib mad maildir matroska mbox migemo mime mixer mjpeg mmap mmx mmxext mono mozcalendar mozdevelop mozsvg mozxmlterm mp3 mpeg mpi mplayer msn mule multislot music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netcdf network neural nis nls no-old-linux nomalloccheck nowin nptl nptlonly ntlm ntpl oav objc ocaml offensive ogg oggvorbis openal opengl oscar ospfapi pam parse-clocks pcap pcntl pcre pdf perl pertty pg-hier pg-intdatetime pg-vacuumdelay php physfs pic plotutils png portaudio povray ppds pri print procmail python qa qt3 qt4 quicktime quotas quotes readline real reiser4 reiserfs risky rogue rplay sdl seamonkey semanticfix session sftplogging shared sharedmem slp smime sndfile snortsam socks5 sox sse sse-filters sse2 ssl suspend2 svga symlink sysvipc szip tcltk tcpd tga theora tidy tk transcode truetype uim unicode usb userland_GNU v4l v4l2 vcd vda video_cards_i810 videos virus-scan vorbis wddx webdav wifi win32codecs winbind wma wmf wxwindows xanim xchatdccserver xchattext xcomposite xface xgetdefault xine xml xmlreader xmlrpc xmlwriter xmms xorg xosd xpm xprint xrandr xscreensaver xsettings xv xvid xvmc yahoo yaz yp yv12 zaptel zeo zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 09:20:48 UTC
Thanks. Well uh, this behaviour doesn't make any sense indeed.
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2006-09-30 16:40:10 UTC
Please post the output of "ls -l of /etc/env.d/binutils/".

I guess the problem is hidden here:
The numbers of chaza@Mars ~ $ sudo eselect binutils list
Installed binutils for target i386-pc-linux-gnu <-- Why is there an empty section?
Installed binutils for target i686-pc-linux-gnu

Did you recently change your CHOST? If yes, i'd bet you haven't cleaned up
binutils settings properly. Anyway, this is definitely a bug.

ASSIGNED.
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2006-09-30 17:09:08 UTC
I was able to reproduce this with a stray config file for a non-existing
target. Workaround: Remove /etc/env.d/binutils/config-i386-pc-linux-gnu
I'll now change binutils.eselect to die on stray config files and display
a message to remove that file.
Comment 8 Danny van Dyk (RETIRED) gentoo-dev 2006-09-30 17:35:51 UTC
Created attachment 98488 [details, diff]
Fix handling of stray config-${target} files in /etc/env.d/binutils/

Attached patch works for me. Please test.
Comment 9 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-30 23:16:22 UTC
Thanks for the quick response. The patch worked, and removing the offending file makes eselect happy again.
Comment 10 Danny van Dyk (RETIRED) gentoo-dev 2006-10-01 05:11:41 UTC
Thanks. InSVN. Will be fixed by next release (1.0.6)
Comment 11 Danny van Dyk (RETIRED) gentoo-dev 2006-10-03 12:41:58 UTC
Fixed as of eselect-1.0.6.