Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616800 - app-portage/gentoolkit: `equery uses package` does not respect LANG, prints first lang listed in metadata.xml
Summary: app-portage/gentoolkit: `equery uses package` does not respect LANG, prints f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 00:28 UTC by Sam Jorna (wraeth)
Modified: 2017-04-28 00:28 UTC (History)
0 users

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


Attachments
metadata.xml (metadata.xml,3.83 KB, text/xml)
2017-04-28 00:28 UTC, Sam Jorna (wraeth)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Jorna (wraeth) gentoo-dev 2017-04-28 00:28:15 UTC
Created attachment 471118 [details]
metadata.xml

When metadata.xml for a given package contains multiple languages, and a language other than the system's default is first, equery prefers the first-listed language in metadata.xml rather than one based on LANG.

This was reported with sys-boot/refind which has FR USE descriptions first, followed by EN, but `equery uses refind` was printing FR descriptions on EN systems.

Example:

> $ LANG=en_US equery uses refind
> [ Legend : U - final flag setting for installation]
> [        : I - package is installed with flag     ]
> [ Colors : set, unset                             ]
>  * Found these USE flags for sys-boot/refind-0.10.7:
>  U I
>  + + btrfs         : Construire le gestionnaire EFI pour le système de fichier btrfs
>  - - custom-cflags : Build with user-specified CFLAGS (unsupported)
>  - - doc           : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
>  + - ext2          : Construire le gestionnaire EFI pour le système de fichier ext2
>  + - ext4          : Construire le gestionnaire EFI pour le système de fichier ext4

Sample metadata.xml attached - I will be updating it in-tree as a workaround.