Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757540 - app-portage/portage-utils: q utility usage alignment
Summary: app-portage/portage-utils: q utility usage alignment
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-29 03:36 UTC by thesummernightcat
Modified: 2021-07-06 07:03 UTC (History)
0 users

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 thesummernightcat 2020-11-29 03:36:05 UTC
I found q utility usage output is not aligned at the "qmanifest" line.
The reason is "qmanifest" is longer than 8 chars specified in `fprintf`.
Is this behavior on purpose or a bug?    

q utility usage:
usage: q <applet> <args>  : invoke a portage utility applet

currently defined applets:
        q <applet> <args> : virtual applet
    qatom <pkg>           : split atom strings
   qcheck <pkgname>       : verify integrity of installed packages
 qdepends <pkgname>       : show dependency info
    qfile <filename>      : list all pkgs owning files
    qgrep <expr> [pkg ...]: grep in ebuilds
 qkeyword <action> <args> : list packages based on keywords
    qlist <pkgname>       : list files owned by pkgname
     qlop <pkgname>       : emerge log analyzer
 qmanifest <misc args>     : verify or generate thick Manifest files
   qmerge <pkgnames>      : fetch and merge binary package
     qpkg <misc args>     : create or manipulate Gentoo binpkgs
  qsearch <regex>         : search pkgname/desc
    qsize <pkgname>       : calculate size usage
    qtbz2 <misc args>     : manipulate tbz2 packages
 qtegrity <misc args>     : verify files with IMA
     quse <useflag>       : find pkgs using useflags
    qxpak <misc args>     : manipulate xpak archives


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-11-29 09:13:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=b377edf73ec277e2d85d102a325f789663720142

commit b377edf73ec277e2d85d102a325f789663720142
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2020-11-29 09:12:41 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2020-11-29 09:12:41 +0000

    main: fix alignment wrt qmanifest applet, bug #757540
    
    Bug: https://bugs.gentoo.org/757540
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Fabian Groffen gentoo-dev 2020-11-29 09:15:01 UTC
thanks, non-intentional, just never noticed :O
Comment 3 thesummernightcat 2020-11-29 09:26:56 UTC
Same problem in q utility man page

$ man q
APPLETS
       This applet also has sub applets:
               q <applet> <args> : virtual applet
           qatom <pkg>           : split atom strings
          qcheck <pkgname>       : verify integrity of installed packages
        qdepends <pkgname>       : show dependency info
           qfile <filename>      : list all pkgs owning files
           qgrep <expr> [pkg ...]: grep in ebuilds
        qkeyword <action> <args> : list packages based on keywords
           qlist <pkgname>       : list files owned by pkgname
            qlop <pkgname>       : emerge log analyzer
        qmanifest <misc args>     : verify or generate thick Manifest files
          qmerge <pkgnames>      : fetch and merge binary package
            qpkg <misc args>     : create or manipulate Gentoo binpkgs
         qsearch <regex>         : search pkgname/desc
           qsize <pkgname>       : calculate size usage
           qtbz2 <misc args>     : manipulate tbz2 packages
        qtegrity <misc args>     : verify files with IMA
            quse <useflag>       : find pkgs using useflags
           qxpak <misc args>     : manipulate xpak archives
Comment 4 Fabian Groffen gentoo-dev 2020-11-29 09:29:19 UTC
yes, that one is generated from the utility, so it's fixed now also
Comment 5 Larry the Git Cow gentoo-dev 2021-07-06 07:03:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65b5ac4b8140f7ff1ab5c27af5c690288ec1419b

commit 65b5ac4b8140f7ff1ab5c27af5c690288ec1419b
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-07-06 07:03:02 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-07-06 07:03:15 +0000

    app-portage/portage-utils-0.92: version bump + cleanup
    
    Closes: https://bugs.gentoo.org/792273
    Closes: https://bugs.gentoo.org/791571
    Closes: https://bugs.gentoo.org/787089
    Closes: https://bugs.gentoo.org/769929
    Closes: https://bugs.gentoo.org/757540
    Package-Manager: Portage-3.0.20, Repoman-3.0.2
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-portage/portage-utils/Manifest                 |  3 +-
 .../portage-utils/portage-utils-0.90.1.ebuild      | 67 ----------------------
 ...utils-0.91.ebuild => portage-utils-0.92.ebuild} |  0
 3 files changed, 1 insertion(+), 69 deletions(-)