Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423525 - eselect binutils list - !!! Error: Pattern does not match any installed version of binutils!
Summary: eselect binutils list - !!! Error: Pattern does not match any installed ver...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2012-06-25 20:05 UTC by Mark Knecht
Modified: 2012-09-13 19:33 UTC (History)
0 users

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


Attachments
Patch for binutils.eselect (eselect-binutils.diff,697 bytes, patch)
2012-06-27 13:38 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Knecht 2012-06-25 20:05:40 UTC
I've now seen this on 2 of 6 systems I maintain at home. I'm unable to determine how to fix it. All my machines are basically stable with only a few ~amd64 packages. Two machines fail identically. All machines are up to date.

c2stable ~ # eselect binutils list
!!! Error: Pattern  does not match any installed version of binutils!                                           
exiting                                                                                                         
c2stable ~ #

However binutils is installed and I'm able to build all packages correctly. Other eselect binutils commands seems to give reasonable results:

c2stable ~ # eselect binutils show
x86_64-pc-linux-gnu-2.21.1                                                                                        
c2stable ~ # eselect binutils set x86_64-pc-linux-gnu-2.21.1
!!! Error: Profile "x86_64-pc-linux-gnu-2.21.1" is already active!                                                   
exiting                                                                                                              
c2stable ~ #


The contents of over the env.d files looks at least reasonable when compared with my other machines:

c2stable ~ # cat /etc/env.d/binutils/x86_64-pc-linux-gnu-2.21.1
TARGET="x86_64-pc-linux-gnu"
VER="2.21.1"
LIBPATH="/usr/lib64/binutils/x86_64-pc-linux-gnu/2.21.1"
FAKE_TARGETS="x86_64-pc-linux-gnu"
c2stable ~ # cat /etc/env.d/binutils/config-x86_64-pc-linux-gnu 
CURRENT=2.21.1
c2stable ~ #

All other eselect module commands (fontconfig, xvmc, kernel, etc.) seem to work correctly. This misoperation appears confined to binutils only.

I've tried emerging binutils again but it didn't help.

c2stable ~ # emerge --info binutils
Portage 2.2.0_alpha112 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r3, 3.3.8-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_X_980_@_3.33GHz-with-gentoo-2.1
Timestamp of tree: Mon, 25 Jun 2012 18:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo foo-overlay vmware
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-10.3 skype-eula google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs=5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.mirrors.hoobly.com/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j13 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/foo-overlay /var/lib/layman/vmware"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gstreamer gtk iconv java jpeg jpeg2k kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype type1 udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="mdraid" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

sys-devel/binutils-2.21.1-r1 was built with the following:
USE="(consolekit) cxx (multilib) nls (policykit) zlib -multislot -multitarget -static-libs -test -vanilla"

c2stable ~ #
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-27 01:11:33 UTC
Confirmed (on a system with a great variety of binutils versions/targets installed).

Since Mike Frysinger appears reluctant to commit to eselect modules, this one should probably be deprecated in favour of sys-devel/binutils-config.
Comment 2 Mark Knecht 2012-06-27 02:52:14 UTC
OK, it does appears that binutils-config is at least functional here. As I'm just an end user type I only have one package installed so I can't do much testing.

I suppose maybe other users will run across this one day or possibly Mike will do some updates when he gets time. If he does then I'll get a response to this report I suppose.

Thanks for confirming.
Comment 3 Ulrich Müller gentoo-dev 2012-06-27 05:32:38 UTC
What is the output of "echo -*" (in the same directory where you executed eselect)?
Comment 4 Mark Knecht 2012-06-27 13:13:49 UTC
Interesting. On one of the machines that's failing:

mark@c2stable ~ $ su -
Password: 
c2stable ~ # eselect binutils list
!!! Error: Pattern  does not match any installed version of binutils!
exiting
c2stable ~ # echo -*
--help -q
c2stable ~ #


whereas on a machine that's working it only reports -q and give 2.21.1 as the version that's set.
Comment 5 Ulrich Müller gentoo-dev 2012-06-27 13:38:57 UTC
Created attachment 316441 [details, diff]
Patch for binutils.eselect

Attached patch should fix it.
Please test.
Comment 6 Mark Knecht 2012-06-27 14:24:45 UTC
That seems to have worked for me, at least on this one machine:

c2stable modules # patch <~mark/Downloads/binselect.patch 
patching file binutils.eselect
c2stable modules # vi binutils.eselect                                                                       
c2stable modules # eselect binutils list                                                                     
Installed binutils for target x86_64-pc-linux-gnu                                                            
  [1]   2.21.1 *                                                                                             
c2stable modules #
Comment 7 Ulrich Müller gentoo-dev 2012-06-27 17:15:29 UTC
Fixed in Git: <http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=d1b1a4320db209587216626fa744e6e5fcd0e43d>

(In reply to comment #4)
> c2stable ~ # echo -*
> --help -q

As a workaround until the next eselect release, you could remove these files whose names start with a hyphen, or execute the eselect command from a different directory.
Comment 8 Mark Knecht 2012-06-27 19:09:01 UTC
Thanks. It's funny that those files were even there. I suppose they were left over from some mistyped CLI execution or something. Once I removed them eselect worked fine there just as it did in other directories.

Thanks for looking into this and good to know future users won't have to go through this confusion.
Comment 9 Ulrich Müller gentoo-dev 2012-09-13 19:33:55 UTC
Fixed in eselect-1.3.2.
Thanks for reporting.