Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917519 - app-portage/gentoolkit-0.6.1-r3: "!!! Invalid package: '-'" in wrong line
Summary: app-portage/gentoolkit-0.6.1-r3: "!!! Invalid package: '-'" in wrong line
Status: CONFIRMED
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: 2023-11-17 19:10 UTC by lekto
Modified: 2023-11-26 04:49 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 lekto 2023-11-17 19:10:20 UTC
Hi, I accidentally run "equery uses llvm -" (I meant -f) and got this:
> lekto@blaszak ~ $ equery uses llvm -
> [ Legend : U - final flag setting for installation]
> [        : I - package is installed with flag     ]
> [ Colors : set, unset                             ]
>  * Found these USE flags for sys-devel/llvm-16.0.6:
>  U I
>  - - abi_x86_32      : 32-bit (x86) libraries
>  + + binutils-plugin : Build the binutils plugin
>  - - debug           : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
>  - - doc             : Build and install the HTML documentation and regenerate the man pages
>  - - exegesis        : Enable performance counter support for llvm-exegesis tool that can be used to measure host machine instruction characteristics
>  - - libedit         : Use the libedit library (replacement for readline)
>  + + libffi          : Enable support for Foreign Function Interface library
>  + + ncurses         : Support querying terminal properties using ncurses' terminfo
> !!! Invalid package: '-'
>  - - test            : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
>  + + verify-sig      : Verify upstream signatures on distfiles
>  - - xar             : Support dumping LLVM bitcode sections in Mach-O files (uses app-arch/xar)
>  + + xml             : Add support for XML files
>  - - z3              : Enable support for sci-mathematics/z3 constraint solver
>  - - zstd            : Enable support for ZSTD compression

There is a "Invalid package" message in the middle of list. I tried it on three different machines and different packages, and error is always in wrong place.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-26 00:34:04 UTC Comment hidden (obsolete)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-26 00:48:24 UTC Comment hidden (obsolete)
Comment 3 Zac Medico gentoo-dev 2023-11-26 04:49:40 UTC
It looks like we need to flush stdout earlier in order to prevent it from being interleaved with stderr following the error output here:

bin/equery:        sys.stderr.write(pp.error(str(err)))