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

Bug 599060

Summary: sys-apps/portage: egencache --update-use-local-desc catches lang="fr" use flag descs for sys-boot/refind
Product: Portage Development Reporter: Raymond Jennings <shentino>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: infra-bugs, radhermit, saintdev
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 604854    

Description Raymond Jennings 2016-11-06 13:50:15 UTC
Something slurped up the french USE flag descriptions instead of the english USE flag descriptions from sys-boot/refind/metadata.xml when it autogenerated /usr/portage/profiles/use.local.desc

I found out when I tried to track down a unicode related crash in app-portage/flaggie.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-11-06 14:28:49 UTC
The French descriptions are also on master rsync, so CC-ing infra-bugs@ to copy the patch once it's in Portage.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-11-06 14:29:40 UTC
Hmm, it also affects pkgcore and therefore gentoo-mirror.
Comment 3 Felix Janda 2016-11-06 14:32:00 UTC
egencache uses parse_metadata_use() from portage.xml.metadata, and from
looking at it (in sys-apps/portage-2.3.1), it seems that if the same
use flag appears in different <use> tags (even with different "lang"
attribute), only the last one in the metadata.xml will appear in the
dict returned by parse_metadata_use().

I tested that for sys-boot/refind reordering the English and French
<use> flags in metadata.xml fixes the descriptions in use.local.desc.
Comment 6 Zac Medico gentoo-dev 2017-02-10 18:52:17 UTC
Fixed in portage-2.3.3.