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

Bug 870373

Summary: app-portage/gentoolkit-0.5.1-r1: equery completion confused by .conf~ files with tilde
Product: Gentoo Linux Reporter: m1027 <m1027>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: watermanpaint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description m1027 2022-09-16 14:23:21 UTC
Hi,

some gentoo tools seem to create backups of conf files below /etc/portage by adding a tilde. I don't care (here) where these come from. It's not from my editor. Maybe from flaggie or crossdev or equery repository.

The issue: equery tab completion seems to read these disabled files. In turn it complains when these files point to invalid data. Is it correct that equery reads such backup config files with tilde at all?

For example:

- I had /etc/portage/repos.conf/eselect-repo.conf~ pointing to (non existent) /var/db/repos/wayland-desktop.
- equery <TAB>

Output:
- garbled console, then
- bash: cd: /var/db/repos/wayland-desktop: No such file or directory

Obvious fix:

- Remove the invalid conf + tile file.


Thanks
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-13 21:19:28 UTC

*** This bug has been marked as a duplicate of bug 730624 ***
Comment 2 Larry the Git Cow gentoo-dev 2023-03-13 21:23:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81aa9d9a0ee5f9f33fb9ab1f591c79f1fb134ffd

commit 81aa9d9a0ee5f9f33fb9ab1f591c79f1fb134ffd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-13 21:23:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-13 21:23:33 +0000

    app-shells/gentoo-bashcomp: add 20230313
    
    Bug: https://bugs.gentoo.org/730624
    Bug: https://bugs.gentoo.org/870373
    Bug: https://bugs.gentoo.org/834038
    Signed-off-by: Sam James <sam@gentoo.org>

 app-shells/gentoo-bashcomp/Manifest                 |  1 +
 .../gentoo-bashcomp/gentoo-bashcomp-20230313.ebuild | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)