Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924545 - equery belongs returns matches symlinked files not owned by any package
Summary: equery belongs returns matches symlinked files not owned by any package
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-14 12:24 UTC by Fabian Groffen
Modified: 2024-02-14 12:24 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 Fabian Groffen gentoo-dev 2024-02-14 12:24:36 UTC
I guess this is due to https://bugs.gentoo.org/96515

it came up in https://github.com/gentoo/portage-utils/pull/22

For a symlink like /usr/bin/ar, which is created by binutils-config, equery belongs returns the package that is currently linked to, while this package doesn't own the file /usr/bin/ar.

I feel this is wrong output, it shouldn't match as it doesn't belong to a package, while the issue from 96515 seems to be more of the kind that is correct in that the path leading up to the file pointed to was symlinked somewhere.