Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272793 - emerge -s should not require @ when category is specified
Summary: emerge -s should not require @ when category is specified
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-05 14:18 UTC by Martin Mokrejš
Modified: 2022-10-20 02:43 UTC (History)
1 user (show)

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 Martin Mokrejš 2009-06-05 14:18:19 UTC
nfssrv ~ # layman --list-local
* science                   [Git       ] (git://git.overlays.gentoo.org/proj/sci.git                    )
* sunrise                   [Subversion] (svn://overlays.gentoo.org/proj/sunrise/reviewed/              )
nfssrv ~ # emerge -s sys-cluster/empi
Searching...   
[ Results for search key : sys-cluster/empi ]
[ Applications found : 0 ]
 
nfssrv ~ # emerge --version
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.2.4, glibc-2.9_p20081201-r2, 2.6.24.7-default x86_64)
nfssrv ~ # 

nfssrv ~ # emerge sys-cluster/empi

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) app-admin/eselect-mpi-0.0.5 from science
 * checking ebuild checksums ;-) ...                                                                                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-admin/eselect-mpi-0.0.5/work
>>> Compiling source in /var/tmp/portage/app-admin/eselect-mpi-0.0.5/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-admin/eselect-mpi-0.0.5

>>> Install eselect-mpi-0.0.5 into /var/tmp/portage/app-admin/eselect-mpi-0.0.5/image/ category app-admin
>>> Completed installing eselect-mpi-0.0.5 into /var/tmp/portage/app-admin/eselect-mpi-0.0.5/image/


>>> Installing (1 of 2) app-admin/eselect-mpi-0.0.5

>>> Emerging (2 of 2) sys-cluster/empi-0.5 from science
 * checking ebuild checksums ;-) ...                                                                                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/sys-cluster/empi-0.5/work
>>> Compiling source in /var/tmp/portage/sys-cluster/empi-0.5/work/empi-0.5 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-cluster/empi-0.5

>>> Install empi-0.5 into /var/tmp/portage/sys-cluster/empi-0.5/image/ category sys-cluster
>>> Completed installing empi-0.5 into /var/tmp/portage/sys-cluster/empi-0.5/image/


>>> Installing (2 of 2) sys-cluster/empi-0.5

>>> Recording sys-cluster/empi in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

nfssrv ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.2.4, glibc-2.9_p20081201-r2, 2.6.24.7-default x86_64)
=================================================================
System uname: Linux-2.6.24.7-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 04 Jun 2009 20:30:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.8
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/nfslarge/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/nfslarge/usr/portage"
PORTDIR_OVERLAY="/nfslarge/usr/portage/local/layman/science /nfslarge/usr/portage/local/layman/sunrise /nfslarge/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 berkdb bzip2 crypt dri gdbm hal java jce kerberos laptop mmx mpi mpich2 multilib ncurses nptl nptlonly nsplugin pam python readline sse sse2 ssl svg sysfs syslog tcpd unicode xorg zlib" 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" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marijn Schouten (RETIRED) gentoo-dev 2009-06-05 14:35:19 UTC
You should use eix for searching anyway.
Comment 2 emerald 2009-06-05 16:13:14 UTC
really?
what's emerge -s for then?

i've never used eix in 3.5 years and really curious about the reason for eix 
being the portage search tool now
Comment 3 Viktor S 2009-06-05 19:51:25 UTC
On the other hand: Why not use eix? I was sceptical too before I tried it, nowadays it's simply the only thing I can think of when wanting to search for a package. emerge -s is like grep, eix is like ack - simply better in all ways. Once you've tried it you wonder why you'd ever want to use the alternative.

Besides, from the emerge man page:
"--search (-s)
    Searches for matches of the supplied string in the portage tree."

So I'd guess that it only searches the tree by design. Overlays are not always officially supported by gentoo, so why would their tool for packages list unknown and potentially dangerous atoms? The current behaviour seems reasonable to me.
Comment 4 Zac Medico gentoo-dev 2009-06-06 04:39:06 UTC
(In reply to comment #0)
> nfssrv ~ # emerge -s sys-cluster/empi

You have to prepend @ if you are going to include the category in the search. This is documented in `man emerge`.
Comment 5 Martin Mokrejš 2009-06-08 10:01:52 UTC
(In reply to comment #4)
> (In reply to comment #0)
> > nfssrv ~ # emerge -s sys-cluster/empi
> 
> You have to prepend @ if you are going to include the category in the search.
> This is documented in `man emerge`.

Hmm, but the '/' won't ever be in the package name, so emerge can safely fix that on my behalf and treat the substring in front of the slash as category, right? ;)
Comment 6 Martin Mokrejš 2009-06-08 10:03:46 UTC
(In reply to comment #3)
> Besides, from the emerge man page:
> "--search (-s)
>     Searches for matches of the supplied string in the portage tree."
> 
> So I'd guess that it only searches the tree by design. Overlays are not always
> officially supported by gentoo, so why would their tool for packages list
> unknown and potentially dangerous atoms? The current behaviour seems
> reasonable to me.

It should be simple to print a warning if emerge is not going to search through overlays, it knows from make.conf I use them ... if this was really the intent.
Comment 7 Zac Medico gentoo-dev 2009-06-08 10:30:59 UTC
(In reply to comment #5)
> Hmm, but the '/' won't ever be in the package name, so emerge can safely fix
> that on my behalf and treat the substring in front of the slash as category,
> right? ;)

That seems reasonable.