Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948980 - sys-apps/portage-3.0.66.1-r1: unclear error on packages that change name without a pkgmove entry
Summary: sys-apps/portage-3.0.66.1-r1: unclear error on packages that change name with...
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-28 21:03 UTC by Enne Eziarc
Modified: 2025-01-29 01:00 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 Enne Eziarc 2025-01-28 21:03:13 UTC
Sequence of events:

1. Installed media-video/obs-vkcapture::guru at some point in the past
2. Package was moved to media-plugins/obs-vkcapture::gentoo (i.e. deleted + added)
3. Tried to "emerge obs-vkcapture" again

Output:
``````
These are the packages that would be merged:

[ Results for search key : obs-vkcapture ]
*  media-plugins/obs-vkcapture
      Latest version available: 1.5.1
      Latest version installed: [ Not Installed ]
      Size of files: 60 KiB
      Homepage:      https://github.com/nowrep/obs-vkcapture
      Description:   OBS Linux Vulkan/OpenGL game capture
      License:       GPL-2

*  media-video/obs-vkcapture
      Latest version installed: 1.5.1
      Homepage:      https://github.com/nowrep/obs-vkcapture
      Description:   OBS Linux Vulkan/OpenGL game capture
      License:       GPL-2

[ Applications found : 2 ]

!!! The short ebuild name "obs-vkcapture" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.
``````

While the search output above isn't wrong per-se it's not at all obvious compared to the usual blocker error format, it's more like a spot-the-difference puzzle. The message that the name is ambiguous is pretty unhelpful too - emerge doesn't yet support reinstalling packages directly from /var/db/pkg, so picking the wrong one of the two will just yield a different error.

The user needs to uninstall what they currently have to proceed, so there ought to be an error message that says that directly. An "ideal" fix for this would be to offer to convert a colliding [pkgname@installed, pkgname::repo] pair to a softblock automatically so it can be done in one step.
Comment 1 Zac Medico gentoo-dev 2025-01-29 01:00:11 UTC
I'm inclined to close this bug as CANTFIX because portage has no way of knowing that these are the same package. On the other had, the ebuild author could add a soft blocker if they know about the collision.