Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473542 - app-admin/eselect: Prefix profile support
Summary: app-admin/eselect: Prefix profile support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo eselect Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2013-06-17 05:24 UTC by Benda Xu
Modified: 2013-06-22 16:02 UTC (History)
1 user (show)

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


Attachments
eselect-profile.patch (eselect-profile.patch,338 bytes, patch)
2013-06-17 05:26 UTC, Benda Xu
Details | Diff
Patch for package-manager.bash.in (package-manager.bash.diff,741 bytes, patch)
2013-06-17 06:54 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2013-06-17 05:24:02 UTC
This is a patch trying to support Prefix profile switching. Prefix uses ARCH-KERNEL as keyword.

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2013-06-17 05:26:05 UTC
Created attachment 351164 [details, diff]
eselect-profile.patch
Comment 2 Ulrich Müller gentoo-dev 2013-06-17 06:53:31 UTC
(In reply to Benda Xu from comment #1)
> Created attachment 351164 [details, diff] [details, diff]
> eselect-profile.patch

This won't work on non-Linux architectures, e.g. the prefix/darwin/macos/10.8/x64 profile has ARCH="x64-macos" and your patch would change that to "x64-macos-Darwin".
Comment 3 Ulrich Müller gentoo-dev 2013-06-17 06:54:39 UTC
Created attachment 351170 [details, diff]
Patch for package-manager.bash.in

Please test if attached patch works for you.
Comment 4 Benda Xu gentoo-dev 2013-06-17 14:24:20 UTC
(In reply to Ulrich Müller from comment #3)
> Created attachment 351170 [details, diff] [details, diff]
> Patch for package-manager.bash.in
> 
> Please test if attached patch works for you.

Thanks, Ulrich! I've digged out the IRC log. Yes, SunOS vs solaris, Darwin vs macosx sucks, which I didn't expect. Before settling down the convention of KERNEL vs KEYWORD, let's go with this patch.
Comment 5 Ulrich Müller gentoo-dev 2013-06-17 15:15:23 UTC
The real problem is that the prefix/linux profiles define ARCH incorrectly. I've opened bug 473598 for this.
Comment 7 Ulrich Müller gentoo-dev 2013-06-22 16:02:57 UTC
This is in eselect-1.3.5.
Thanks for reporting.