Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616800

Summary: app-portage/gentoolkit: `equery uses package` does not respect LANG, prints first lang listed in metadata.xml
Product: Gentoo Linux Reporter: Sam Jorna (wraeth) <wraeth>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: metadata.xml

Description Sam Jorna (wraeth) gentoo-dev 2017-04-28 00:28:15 UTC
Created attachment 471118 [details]

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.


> $ 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.