Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870373 - app-portage/gentoolkit-0.5.1-r1: equery completion confused by .conf~ files with tilde
Summary: app-portage/gentoolkit-0.5.1-r1: equery completion confused by .conf~ files w...
Status: RESOLVED DUPLICATE of bug 730624
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-16 14:23 UTC by m1027
Modified: 2023-03-13 21:23 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 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(+)