Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915054 - sys-apps/portage: wrong "Applications found" number
Summary: sys-apps/portage: wrong "Applications found" number
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, PullRequest
Depends on: 912676
Blocks:
  Show dependency tree
 
Reported: 2023-10-01 20:58 UTC by Alexander Kurakin
Modified: 2023-10-03 15:39 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 Alexander Kurakin 2023-10-01 20:58:28 UTC
Why 4?

> $ emerge -1 -v ninja
> 
> Local copy of remote index is up-to-date and will be used.
> 
> Local copy of remote index is up-to-date and will be used.
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies /
> 
>   
> [ Results for search key : ninja ]
> *  dev-util/ninja
>       Latest version available: 1.11.1-r2
>       Latest version installed: 1.11.1-r2
>       Size of files: 225 KiB
>       Homepage:      https://ninja-build.org/
>       Description:   A small build system similar to make
>       License:       Apache-2.0
> 
>  -*  net-irc/ninja
>       Latest version available: 1.5.9_pre14-r2
>       Latest version installed: [ Not Installed ]
>       Size of files: 900 KiB
>       Homepage:      https://wiki.gentoo.org/wiki/No_homepage
>       Description:   Ninja IRC Client
>       License:       GPL-2
> 
> [ Applications found : 4 ]
> 
> !!! The short ebuild name "ninja" is ambiguous. Please specify
> !!! one of the above fully-qualified ebuild names instead.
> 
> ... done!
> Dependency resolution took 9.17 s.
>
Comment 1 Larry the Git Cow gentoo-dev 2023-10-02 11:47:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=2b0a904f6b3e0376d0ee2359469d8732c11e376b

commit 2b0a904f6b3e0376d0ee2359469d8732c11e376b
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-10-01 21:36:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-02 11:47:53 +0000

    search: fix 'mlen' counter for ambiguous package names
    
    self.mlen was being incremented in both addCP() and output().
    
    Drop the increment in addCP(), and convert mlen to a function-local
    variable in output().
    
    Bug: https://bugs.gentoo.org/915054
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Closes: https://github.com/gentoo/portage/pull/1106
    Signed-off-by: Sam James <sam@gentoo.org>

 NEWS                  |  3 +++
 lib/_emerge/search.py | 14 +++-----------
 2 files changed, 6 insertions(+), 11 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2023-10-03 15:39:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f9211a35abef13079f93a96f57f3a96083c69a7

commit 9f9211a35abef13079f93a96f57f3a96083c69a7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-03 15:38:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-03 15:38:41 +0000

    sys-apps/portage: add 3.0.52
    
    Closes: https://bugs.gentoo.org/704866
    Closes: https://bugs.gentoo.org/877793
    Closes: https://bugs.gentoo.org/889300
    Closes: https://bugs.gentoo.org/900224
    Closes: https://bugs.gentoo.org/912676
    Closes: https://bugs.gentoo.org/912808
    Closes: https://bugs.gentoo.org/913070
    Closes: https://bugs.gentoo.org/913103
    Closes: https://bugs.gentoo.org/914159
    Closes: https://bugs.gentoo.org/915054
    Closes: https://bugs.gentoo.org/915119
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.52.ebuild | 235 +++++++++++++++++++++++++++++++++
 2 files changed, 236 insertions(+)