When searching with an exact package match, for example to see the package description/license/homepage, portage returns no applications found. Reproducible: Always Steps to Reproduce: 1. emerge --search screen 2. (oh dear, that's a long list) 3. emerge --search "app-misc/screen" (or app-vim/screen) Actual Results: # emerge --search app-misc/screen [ Results for search key : app-misc/screen ] Searching... [ Applications found : 0 ] Expected Results: * app-misc/screen Latest version available: 4.4.0 Latest version installed: [ Not Installed ] Size of files: 827 KiB Homepage: https://www.gnu.org/software/screen/ Description: screen manager with VT100/ANSI terminal emulation License: GPL-2
You need to search for "@app-misc/screen" in order to match the category. This is documented in the emerge man page. I think we could remove the requirement to use @, since the presence of a / character implies that there is a category.
Patch posted for review: https://github.com/gentoo/portage/pull/257 https://archives.gentoo.org/gentoo-portage-dev/message/5e3f0563f1a8704fe9718d882c9328ba
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=7a6099f046a0c1f7d45751daf13c1e68253878aa commit 7a6099f046a0c1f7d45751daf13c1e68253878aa Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2018-02-18 21:19:39 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2018-02-19 19:18:24 +0000 emerge --search: use slash to auto-detect category (bug 647940) Since search strings containing a slash do no work unless category match mode is enabled, use slash to auto-detect category match mode, so that users do not have to prefix the search string with the special @ symbol. Bug: https://bugs.gentoo.org/647940 Reviewed-by: Brian Dolbec <dolsen@gentoo.org> Reviewed-by: M. J. Everitt <m.j.everitt@iee.org> pym/_emerge/search.py | 4 ++++ 1 file changed, 4 insertions(+)}
Fixed in portage-2.3.40-r1.