Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207889 - app-admin/eselect eselect kernel doesn't sort kernels properly
Summary: app-admin/eselect eselect kernel doesn't sort kernels properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-01-28 13:31 UTC by jieryn
Modified: 2009-06-06 19:23 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 jieryn 2008-01-28 13:31:38 UTC
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.23.9
  [2]   linux-2.6.24
  [3]   linux-2.6.24-rc7
  [4]   linux-2.6.24-rc8 *


Portage 2.1.4 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24-rc8 i686)
=================================================================
System uname: 2.6.24-rc8 i686 Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
Timestamp of tree: Mon, 28 Jan 2008 08:00:03 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r7, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --nospinner"
FEATURES="autoaddcvs buildsyspkg cvs distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/sajinet /usr/local/portage /usr/local/portage/krossai /usr/local/portage/ibm-internal/gentoo-ebuilds /usr/local/portage/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aio alsa amrr ao audiofile automount avahi bash-completion berkdb bitmap-fonts boost bzip2 cairo caps cdparanoia cdr cli console cracklib crypt cups curl dbus dri dts dvd dvdread ecc encode erandom fbcon ffmpeg file finger firefox flac font-server fontconfig ftp fusion gdbm gif gmp gnutls gpgme graphviz gtk hal icecast iconv icu id3 idea imagemagick imap imlib injection ipv6 ipw4965 isdnlog java java5 jce jpeg jpeg2k key-screen kqemu lame libedit libwww linuxthreads-tls lm_sensors log4j logrotate lzo mad maildir mailwrapper matroska mbrola md5sum mdnsresponder-compat meanwhile midi mikmod mmx mng mozilla moznocompose moznoirc moznomail mp3 mpd mpeg mplayer mpm-peruser msn mudflap multiuser musepack mysql ncurses network nntp no-helper nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcmcia pcre pdf perl pmu png pop pppd pulseaudio python quicktime rar readline real reflection rtc sasl sdl search-screen session shorten smime sndfile source spl sse sse2 ssl ssse3 subtitles subversion svg swat sysfs syslog tcpd tga theora threads tiff truetype truetype-fonts type1-fonts unicode utempter vcd vim-syntax vim-with-x vorbis wifi win32codecs wmf x264 x86 xgetdefault xinetd xml xorg xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="peruser" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev vga vesa nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always
Comment 1 Ulrich Müller gentoo-dev 2009-04-17 06:20:12 UTC
It's alphabetical order currently. How should it be sorted instead, in your opinion?

Since there may be vanilla-sources installed along with gentoo-sources or git sources, it looks non-trivial to me.
Comment 2 jieryn 2009-04-17 13:27:39 UTC
It would be quite nice if we could tap into the package which provided the available kernel in the list. That way, we could sort alphabetically by the package which installed the kernel (e.g. gentoo-sources comes before vanilla-sources) and then subsort based on the standard Gentoo package ordering (e.g. vanilla-sources-2.6.24-rc8 < vanilla-sources-2.6.24 < vanilla-sources-2.6.24.1).

If we were able to tap into the package which provided the available kernel, then it would probably make sense to display that information as well as, or instead of, the directory name.
Comment 3 Ulrich Müller gentoo-dev 2009-06-06 08:45:53 UTC
I've committed a fix to SVN (r579). It now sorts release candidates properly.

(In reply to comment #2)
> It would be quite nice if we could tap into the package which provided the
> available kernel in the list. That way, we could sort alphabetically by the
> package which installed the kernel (e.g. gentoo-sources comes before
> vanilla-sources) and then subsort based on the standard Gentoo package
> ordering (e.g. vanilla-sources-2.6.24-rc8 < vanilla-sources-2.6.24 <
> vanilla-sources-2.6.24.1).

This would be a lot of effort for very little benefit. Also the user may have his own custom sources in /usr/src with no corresponding package.
Comment 4 Ulrich Müller gentoo-dev 2009-06-06 19:23:13 UTC
Fixed in eselect-1.1.1.
Thank you for reporting the issue.