Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617572 - app-admin/eselect-1.4.9: set 0 makes set <last item> with kernel and profile
Summary: app-admin/eselect-1.4.9: set 0 makes set <last item> with kernel and profile
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: 2017-05-05 10:43 UTC by otakuto.gentoo
Modified: 2017-12-25 11:10 UTC (History)
0 users

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


Attachments
Add-boundary-check.patch (0001-Add-boundary-check.patch,1.43 KB, patch)
2017-05-05 10:46 UTC, otakuto.gentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description otakuto.gentoo 2017-05-05 10:43:04 UTC
set 0 makes set <last item> with kernel and profile. Other modules can't set 0.

Reproducible: Always

Actual Results:  
#eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/plasma
  [7]   default/linux/amd64/13.0/desktop/plasma/systemd
  [8]   default/linux/amd64/13.0/developer
  [9]   default/linux/amd64/13.0/no-multilib
  [10]  default/linux/amd64/13.0/systemd *
  [11]  default/linux/amd64/13.0/x32
  [12]  hardened/linux/amd64
  [13]  hardened/linux/amd64/selinux
  [14]  hardened/linux/amd64/no-multilib
  [15]  hardened/linux/amd64/no-multilib/selinux
  [16]  hardened/linux/amd64/x32
  [17]  hardened/linux/musl/amd64
  [18]  hardened/linux/musl/amd64/x32
  [19]  default/linux/uclibc/amd64
  [20]  hardened/linux/uclibc/amd64
#eselect profile set 0
#eselect profile show
Current /etc/portage/make.profile symlink:
  hardened/linux/uclibc/amd64

#eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.11-rc3 *
  [2]   linux-4.11-rc4
  [3]   linux-4.11-rc5
  [4]   linux-4.11-rc8
#eselect kernel set 0
#eselect kernel show
Current kernel symlink:
  /usr/src/linux-4.11-rc8


Portage 2.3.5 (python 3.4.6-final-0, default/linux/amd64/13.0/systemd, gcc-6.3.0, glibc-2.24-r1, 4.11.0-rc4 x86_64)
=================================================================
System uname: Linux-4.11.0-rc4-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3
KiB Mem:    15911944 total,   1958172 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.0::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.8.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo

rindeal
    location: /var/lib/layman/rindeal
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-O2 -pipe -march=native -Wall"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="clang++"
CXXFLAGS="-O2 -pipe -march=native -Wall"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libsprotect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6modules multilib ncurses nptl openmp pam pcre readline seccomp session sslsystemd tcpd udev unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_defaultauthn_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 author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avxmmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayradcfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="i915 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4optionsipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 otakuto.gentoo 2017-05-05 10:46:24 UTC
Created attachment 471706 [details, diff]
Add-boundary-check.patch

I fix it and attached patch of add boundary check.
Comment 2 Ulrich Müller gentoo-dev 2017-05-06 13:28:21 UTC
Fixed in git, using a somewhat different approach:
https://gitweb.gentoo.org/proj/eselect.git/commit/?id=2c5554fe64ace6f8cb082b6bd442e13dc3999c0c

I've also improved error checking in the kernel.eselect:
https://gitweb.gentoo.org/proj/eselect.git/commit/?id=5fd090827d2f4464245bbd454371c040358d6b1d
Comment 3 otakuto.gentoo 2017-05-07 13:11:56 UTC
Thank you.
It works well.
Comment 4 Ulrich Müller gentoo-dev 2017-05-07 17:15:20 UTC
Thanks for reporting!

Please leave this bug open. I shall close it after the next eselect release.
Comment 5 Larry the Git Cow gentoo-dev 2017-12-25 11:10:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52962d756a157e0ddf24394160b6ea73dd63d3ac

commit 52962d756a157e0ddf24394160b6ea73dd63d3ac
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2017-12-25 11:05:58 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2017-12-25 11:10:28 +0000

    app-admin/eselect: Version bump.
    
    Closes: https://bugs.gentoo.org/614008
    Closes: https://bugs.gentoo.org/617572
    Closes: https://bugs.gentoo.org/640386
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-admin/eselect/Manifest              |  1 +
 app-admin/eselect/eselect-1.4.10.ebuild | 61 +++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)