Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187263 - app-admin/eselect produces an error if $foo is already enabled
Summary: app-admin/eselect produces an error if $foo is already enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-31 16:56 UTC by Kevin O'Gorman
Modified: 2009-04-17 13:52 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 Kevin O'Gorman 2007-07-31 16:56:26 UTC
Elog message advises a command, but the command gives an error.

Reproducible: Always

Steps to Reproduce:
1. Read elog messages
2. Command: eselect bashcomp enable eselect
3. Read error message.  Scowl.

Actual Results:  
Error message

Expected Results:  
Nothing: either no instruction to use the command, or a better command
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-31 18:18:10 UTC
`eselect bashcomp enable eselect` gives no error whatsoever here.
Comment 2 Kevin O'Gorman 2007-08-01 08:57:17 UTC
Hmm.  I guess I should have expected this wouldn't happen everywhere.  But here I get an error, which may make this more than merely 'trivial'.

treat ~ # eselect bashcomp enable eselect
!!! Error: eselect is already installed
treat ~ #  

And there is no warning that this might happen in the ELOG message.  I don't know what to make of it, unless it just means I already used that command.
But that would be a bit off too...

Here's my emerge -info

treat ~ # emerge --info
Portage 2.1.2.9 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.5-r4, 2.6.20-gentoo-r8-kosmanor i686)
=================================================================
System uname: 2.6.20-gentoo-r8-kosmanor i686 Intel(R) XEON(TM) CPU 1.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 31 Jul 2007 08:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse2 -mmmx"
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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://fido.online.kz/gentoo/pub http://gentoo.inf.elte.hu/ ftp://ftp.isu.edu.tw/pub/Linux/Gentoo http://gentoo.scphost.com"
MAKEOPTS="-j4"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi adns aim alsa apache2 apm arts audiofile bash-completion bcmath berkdb bitmap-fonts bzip2 cairo calendar caps cdr cli cracklib crypt cscope ctype cups dbm dbus dbx doc dri dvd dvdr eds emacs emboss encode esd exif fam fastcgi firefox flatfile foomaticdb fortran ftp gdbm gif gnome gphoto2 gpm gstreamer gtk guile hal iconv icq imap imlib ipv6 isdnlog java joystick jpeg jpeg2k junit kde kdeenablefinal ldap libg++ libwww mad mbox mcal midi mikmod mime mmap mmx motif mp3 mpeg mpi mudflap mysql ncurses nis nls nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp oscar oss pam pcre pdf perl pic png posix postgres ppds pppd python qt3 qt4 quicktime readline reflection ruby sdl session snmp sockets spell spl sse ssl svga sysvipc tcl tcpd tetex tiff tk truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xml xorg xpm xprint xv yahoo 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga r128 mach64 radeon fbdev fglrx vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

treat ~ # 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-01 09:19:31 UTC
Uhm, tf you have already enabled it, don't enable it twice. Seriously, using common sense ++
Comment 4 Kevin O'Gorman 2007-08-02 01:01:22 UTC
This is puzzling, and my common sense is somewhat overloaded.  Consider:  You get no error message at all: does this mean you never enabled it before?  Was that workable?

Does it still give no error message?  If so, why not when it does so for me?

What is there about the command "eselect bashcomp enable eselect" that my common sense should connect with a message about "already installed"?  Had it said "already enabled", this bug would probably not exist.  I think of installation and enabling as quite different processes.

Consider too: as near as I can recall, I never did this command before, so a message that it's already done troubles me a bit.  Besides, it's not in my world file, I don't know what it does, or what dragged it into the tree, or why I should have to enable it rather than that happening automatically. As a dependency I would expect it to be needed and dealt with in the process of installation.

To me, this is just one 80% or so of the things in my tree that are terra incognito to me.  I just read the ELOG messages and try to comply.  When things don't make sense to me, I speak up.  

I like my software to communicate clearly and unambiguously, especially the bits that are unfamiliar.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-02 04:09:34 UTC
This has nothing to do w/ the elog messages, if you dislike how eselect behaves then don't complain about ebuild's elog messages which are perfectly fine and there's nothing wrong with them.
Comment 6 Ulrich Müller gentoo-dev 2009-04-17 13:52:31 UTC
I've clarified the elog message.

Thank you for reporting the issue, and apologies that it took us such a long time to fix it.