Gentoo Archives: gentoo-alt

From: Johan Hattne <johan.hattne@××××××××××××××.edu>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] x64-macos and profiles
Date: Fri, 15 Jan 2010 16:45:54
Message-Id: 98FB8D0C-304C-4F73-87DD-98FE778A59B2@utsouthwestern.edu
In Reply to: Re: [gentoo-alt] x64-macos and profiles by Heiko Przybyl
1 On 15 Jan 2010, at 10:28, Heiko Przybyl wrote:
2
3 > On Jan 15, 2010, at 5:14 PM, Johan Hattne wrote:
4 >
5 >> That's a different issue. What I failed to understand is why this
6 >>
7 >> arch=$(arch)
8 >> echo "-->${arch}<--" > /dev/stderr
9 >>
10 >> i.e. just inserting an echo into the find_targets() function of usr/share/eselect/modules/profile.eselect prints
11 >>
12 >> -->x64-macos<--
13 >>
14 >> to stderr (which is not what I would have expected usr/bin/arch to output under any circumstances). In the meantime, I've found out.
15 >
16 > Well it doesn't call (/usr)/bin/arch, but instead calls usr/share/eselect/libs/package-manager.bash's arch() function which it inherits with "inherit package-manager". That arch() function basically reduces to "portageq envvar sys-devel/gcc ARCH" which gives (for me as well) x64-macos.
17
18 I concur.
19
20 // Cheers; Johan