Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 654436

Summary: `emerge --search codec' fails to find media-libs/nv-codec-headers
Product: Portage Development Reporter: Coacher <itumaykin+gentoo>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge -s codec

Description Coacher 2018-04-30 18:42:53 UTC
Created attachment 529134 [details]
emerge --info

Hello.

Steps to reproduce:
1. emerge -s codec OR emerge -s "codec"

Expected results:
1. media-libs/nv-codec-headers is among the search results

Actual results:
1. media-libs/nv-codec-headers is NOT among the search results
   using either emerge -s codec OR emerge -s "codec"

Additional info.
Portage knows about the package:
$ equery list -p -o nv-codec-headers
 * Searching for nv-codec-headers ...
[-P-] [ ~] media-libs/nv-codec-headers-8.1.24.1:0


P.S. What is 'simple search' mentioned in emerge man under `--search' option desc?
Comment 1 Coacher 2018-04-30 18:43:31 UTC
Created attachment 529136 [details]
emerge -s codec
Comment 2 Zac Medico gentoo-dev 2018-04-30 19:44:01 UTC
It works for me. Maybe you have a stale pkg_desc_index located at $(portageq get_repo_path / gentoo)/metadata/pkg_desc_index?
Comment 3 Coacher 2018-04-30 19:58:41 UTC
(In reply to Zac Medico from comment #2)
> It works for me. Maybe you have a stale pkg_desc_index located at $(portageq
> get_repo_path / gentoo)/metadata/pkg_desc_index?
nv-codec-headers is indeed missing from thar file, so I guess it's stale.
I surely didn't touch it manually. Does portage handle it automatically?
Comment 4 Zac Medico gentoo-dev 2018-04-30 20:04:04 UTC
(In reply to Coacher from comment #3)
> (In reply to Zac Medico from comment #2)
> > It works for me. Maybe you have a stale pkg_desc_index located at $(portageq
> > get_repo_path / gentoo)/metadata/pkg_desc_index?
> nv-codec-headers is indeed missing from thar file, so I guess it's stale.
> I surely didn't touch it manually. Does portage handle it automatically?

It's never generated automatically, somebody has to run this command:

    egencache --update-pkg-desc-index --repo=gentoo
Comment 5 Coacher 2018-04-30 20:18:27 UTC
I see. I usually get a fresh copy from https://github.com/gentoo-mirror/gentoo
I guess it's not a portage problem then. Sorry for the noise.