Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379599 - [app-portage/gentoolkit-0.3.0.4-r1] euse traverses cascading profiles in wrong order
Summary: [app-portage/gentoolkit-0.3.0.4-r1] euse traverses cascading profiles in wron...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-08-17 17:45 UTC by Ian Abbott
Modified: 2011-08-26 21:45 UTC (History)
0 users

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


Attachments
Patch to traverse cascading profiles in correct order (gentoolkit-0.3.0.4-euse-traverse.patch,857 bytes, patch)
2011-08-17 17:54 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2011-08-17 17:45:03 UTC
euse builds the list of files found in cascading/stackable profiles in the wrong order when the 'parent' file contains more than one line.

For example, when "/etc/make.profile" links to "/usr/portage/profiles/default/linux/amd64/10.0/desktop", the euse script sets:

MAKE_DEFAULTS='/usr/portage/profiles/targets/desktop/make.defaults /usr/portage/profiles/releases/make.defaults /usr/portage/profiles/releases/10.0/make.defaults /usr/portage/profiles/features/multilib/make.defaults /usr/portage/profiles/features/multilib/lib32/make.defaults /usr/portage/profiles/arch/amd64/make.defaults /usr/portage/profiles/default/linux/make.defaults /usr/portage/profiles/base/make.defaults'

It should set:

MAKE_DEFAULTS='/usr/portage/profiles/base/make.defaults /usr/portage/profiles/default/linux/make.defaults /usr/portage/profiles/features/multilib/make.defaults /usr/portage/profiles/features/multilib/lib32/make.defaults /usr/portage/profiles/arch/amd64/make.defaults /usr/portage/profiles/releases/make.defaults /usr/portage/profiles/releases/10.0/make.defaults /usr/portage/profiles/targets/desktop/make.defaults'

Reproducible: Always
Comment 1 Ian Abbott 2011-08-17 17:54:38 UTC
Created attachment 283679 [details, diff]
Patch to traverse cascading profiles in correct order
Comment 2 Ian Abbott 2011-08-18 09:50:26 UTC
Note that this bug causes most mischief on profiles containing negative USE flags, such as the "server" profiles.  For example, for the "/usr/portage/profiles/default/linux/x86/10.0/server" profile, "euse -g -i perl python" shows the "perl" and "python" USE flags as enabled by default when in reality they are disabled by default for that profile.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2011-08-24 17:31:42 UTC
Thanks for the patch, it is in git now.

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=6edc15a5690a3c26a3c530669a922e01f50ab830

This will be in gentoolkit-0.3.0.4-r2
Comment 4 Paul Varner (RETIRED) gentoo-dev 2011-08-26 21:45:11 UTC
Released in gentoolkit-0.3.0.4-r2.  Thanks for the patch.