Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924830 - app-shells/gentoo-bashcomp-20230313 emerge completion doesn't complete --verbose-conflicts
Summary: app-shells/gentoo-bashcomp-20230313 emerge completion doesn't complete --verb...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2024-02-17 19:40 UTC by Duncan
Modified: 2024-05-21 18:34 UTC (History)
3 users (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 Duncan 2024-02-17 19:40:02 UTC
With portage-3.0.61-r1 I'm currently trying to upgrade qt:6 packages from 6.6.1 to 6.6.2.  Such upgrades tend to require manual intervention because existing installed packages subslot-depend on the previous subslot, and I either need to include them in the upgrade (which requires knowing what existing packages to include) or force it with --nodeps (which of course is its own hassle, given the multiple qt packages' dependencies on each other, thus tending to require multiple --nodeps runs) then try again to see what's broken.

In the mean time, emerge --update --deep --ask @world returns an abbreviated list of conflicts along with this:

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

So I try to do that using tab-completion on --v ... and get only --verbose, not
--verbose-conflicts (tho of course once knowing about it from the note quoted above I can easily complete the supplied --verbose into --verbose-conflicts).

Grepping the completion file for "verbose-conflicts" returns no hits, appearing to confirm that it's missing.

Time for a gentoo-bashcomp update including recent portage/emerge changes?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-21 07:23:07 UTC
It's not a very new option, either!

commit 9a2b1f7742f91bb128038f467e0639441ceadb46
Author: Alexander Berntsen <alexander@plaimi.net>
Date:   Fri Sep 20 11:00:39 2013 +0200

    _emerge: Implement verbose-conflicts, bug #481366
Comment 2 Larry the Git Cow gentoo-dev 2024-02-21 07:23:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=1f3b30d5e4d5b39601fb403db492c2f844960975

commit 1f3b30d5e4d5b39601fb403db492c2f844960975
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-02-21 07:23:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-02-21 07:23:35 +0000

    completions/emerge: add --verbose-conflicts
    
    Bug: https://bugs.gentoo.org/924830
    Signed-off-by: Sam James <sam@gentoo.org>

 completions/emerge | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-21 07:35:02 UTC
I also did:

commit 01bd80421d77d8e538495aafffef34c23ef3cd6d
Author: Sam James <sam@gentoo.org>
Date:   Wed Feb 21 07:29:23 2024 +0000

    completions/emerge: add --changed-* options

    * --changed-deps
    * --changed-deps-report
    * --changed-slot
    * --changed-use

    Signed-off-by: Sam James <sam@gentoo.org>

commit 6a3d1b3d78a174db6711deb8335ab998ec6bb6c5 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Wed Feb 21 07:34:19 2024 +0000

    completions/emerge: add various further options

    Signed-off-by: Sam James <sam@gentoo.org>

and got bored.

Eli may or may not be interested...
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-11 03:18:01 UTC
This release (just made) contains those fixes:

commit 5af5f9898cfe42bbff09e720ce6ccd7eb1e002db (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Sat May 11 04:14:34 2024 +0100

    app-shells/gentoo-bashcomp: add 20240511

    Lucio Sauer (2):
          portageq envvar: preserve PATH to avoid command validation warnings
          portageq envvar: fix variables selected for completion

    Sam James (8):
          completions/emerge: add additional options
          completions/emerge: add --verbose-conflicts
          completions/emerge: add --with-test-deps
          helpers/gentoo-common.sh: fix whitespace
          completions/emerge: add --changed-* options
          completions/emerge: add various further options
          completions/emerge: fix indentation
          Makefile: bzip2 -> xz

    Bug: https://bugs.gentoo.org/588642
    Bug: https://bugs.gentoo.org/931671
    Signed-off-by: Sam James <sam@gentoo.org>

But other options still need doing.
Comment 5 Larry the Git Cow gentoo-dev 2024-05-21 18:34:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=a5fbc58454e6cd8544096b1def1f7c30f45e97c1

commit a5fbc58454e6cd8544096b1def1f7c30f45e97c1
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-05-21 18:34:11 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-05-21 18:34:41 +0000

    emerge: use array for opts & format the code
    
    Closes: https://bugs.gentoo.org/924830
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 completions/emerge | 144 +++++++++++++++++++++++++++--------------------------
 1 file changed, 73 insertions(+), 71 deletions(-)