Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599060 - sys-apps/portage: egencache --update-use-local-desc catches lang="fr" use flag descs for sys-boot/refind
Summary: sys-apps/portage: egencache --update-use-local-desc catches lang="fr" use fla...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 604854
  Show dependency tree
 
Reported: 2016-11-06 13:50 UTC by Raymond Jennings
Modified: 2017-02-10 18:52 UTC (History)
3 users (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 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.