Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483628 - sys-apps/portage: `emerge --info package_name` puts package USE flags prior to 'built with the following:' when output is redirected to file
Summary: sys-apps/portage: `emerge --info package_name` puts package USE flags prior t...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2013-09-04 16:53 UTC by Coacher
Modified: 2013-09-10 00:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info portage (info,5.48 KB, text/plain)
2013-09-04 16:53 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2013-09-04 16:53:08 UTC
`emerge --info package_name` outputs package USE flags after the phrase 'package_name was built with the following:' which is neat and shown properly when emerge prints its output to terminal.

However, if one redirects this output to the file like this: `emerge --info package_name > info` and then opens this file with text editor the output will differ. Now USEs are put before the 'package_name was built with the following:'.

Reproducible: Always

Steps to Reproduce:
1. run `emerge --info portage > info`
2. open this 'info' file in your favourite text editor
3. see that USE flags are misplaced
Actual Results:  
(copypasted from file)
=================================================================
                        Package Settings
=================================================================
USE="(ipc) (multilib) python3 -build -doc -epydoc (-pypy2_0) -python2 (-selinux) -xattr" ABI_X86="64" LINGUAS="ru -pl" PYTHON_TARGETS="python2_7 python3_2 -pypy1_9 (-pypy2_0) -python2_6 -python3_1 -python3_3 -python3_4"

sys-apps/portage-2.1.12.2 was built with the following:

Expected Results:  
(copypasted from terminal output)
=================================================================
                        Package Settings
=================================================================

sys-apps/portage-2.1.12.2 was built with the following:
USE="(ipc) (multilib) python3 -build -doc -epydoc (-pypy2_0) -python2 (-selinux) -xattr" ABI_X86="64" LINGUAS="ru -pl" PYTHON_TARGETS="python2_7 python3_2 -pypy1_9 (-pypy2_0) -python2_6 -python3_1 -python3_3 -python3_4"
Comment 1 Coacher 2013-09-04 16:53:45 UTC
Created attachment 357848 [details]
emerge --info portage
Comment 3 Coacher 2013-09-05 08:09:58 UTC
(In reply to Zac Medico from comment #2)
> This is fixed in git:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;
> h=f029338fd0e9417d7ed7700940b8506134fdb977

Thanks! Looking forward to see it in the new portage version.
Comment 4 Zac Medico gentoo-dev 2013-09-10 00:43:58 UTC
This is fixed in 2.2.2.