You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ferringb
changed the title
/etc/portage/* content parsing doesn't force sorting on file loading.
/etc/portage/* content parsing doesn't force sorting for ordering of file loading.
Dec 25, 2022
Specifically, alphanumeric sorting; a '00' should always be
parsed before an '01' or 'a'.
The ordering must be stable so that globals- in a 00 file- can
be overridden per package via other files. If there is no stable
ordering forced on how the order of files read, then this isn't supported.
Closespkgcore#385
Signed-off-by: Brian Harring <ferringb@gmail.com>
ferringb
added a commit
to ferringb/pkgcore
that referenced
this issue
Dec 26, 2022
Specifically, alphanumeric sorting; a '00' should always be
parsed before an '01' or 'a'.
The ordering must be stable so that globals- in a 00 file- can
be overridden per package via other files. If there is no stable
ordering forced on how the order of files read, then this isn't supported.
Closespkgcore#385
Signed-off-by: Brian Harring <ferringb@gmail.com>
Package.use in particular is affected by this. Currently pkgcore/ebuild/domain's
load_property
invokes livefs iter_scan to get the list of files; that returns whatever ordering the underlying FS uses.That in turn can lead to situations where a 00_* package.use files isn't used as the base for files that follow, leading to incorrect USE stacking.
TL;DR: force ordering here. Portage's logic for this appears to just be a straight up sort, and I can't see any fault w/ doing the same.
The text was updated successfully, but these errors were encountered: