Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889984 - "--color=n" is ignored for certain error messages
Summary: "--color=n" is ignored for certain error messages
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 20:01 UTC by Mark Wagner
Modified: 2023-01-07 18:49 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 Mark Wagner 2023-01-06 20:01:26 UTC
Portage 3.0.41-r2 ignores the "--color=n" command-line option when printing certain error messages.

Reproducible: Always

Steps to Reproduce:
1. Place an old ebuild for an installed package in a local overlay
2. Run "emerge --update --deep --verbose --fetchonly --color=n world > errors.txt"

Actual Results:  
 [31;01m*[0m ERROR: gnome-base/librsvg-2.48.8::x-portage failed (depend phase):
 [31;01m*[0m   rust-toolchain: EAPI 6 not supported
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line 614:  Called source '/usr/local/portage/gnome-base/librsvg/librsvg-2.48.8.ebuild'
 [31;01m*[0m   librsvg-2.48.8.ebuild, line   8:  Called inherit 'gnome2' 'multilib-minimal' 'rust-toolchain' 'vala'
 [31;01m*[0m               ebuild.sh, line 294:  Called __qa_source '/usr/portage/eclass/rust-toolchain.eclass'
 [31;01m*[0m               ebuild.sh, line 109:  Called source '/usr/portage/eclass/rust-toolchain.eclass'
 [31;01m*[0m   rust-toolchain.eclass, line  16:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=gnome-base/librsvg-2.48.8::x-portage'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=gnome-base/librsvg-2.48.8::x-portage'`.
 [31;01m*[0m Working directory: '/usr/lib/python3.10/site-packages'
 [31;01m*[0m S: '/var/tmp/portage/gnome-base/librsvg-2.48.8/work/librsvg-2.48.8'

Expected Results:  
The above, only without any of the terminal control codes