This is a patch trying to support Prefix profile switching. Prefix uses ARCH-KERNEL as keyword. Reproducible: Always
Created attachment 351164 [details, diff] eselect-profile.patch
(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".
Created attachment 351170 [details, diff] Patch for package-manager.bash.in Please test if attached patch works for you.
(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.
The real problem is that the prefix/linux profiles define ARCH incorrectly. I've opened bug 473598 for this.
Workaround committed to git: http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=6cf0931afd8a47eebd1b8f9fefe33327957c41a1
This is in eselect-1.3.5. Thanks for reporting.