Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: Re: ~amd64 vs. ~x86
Date: Tue, 29 Nov 2005 17:46:26
Message-Id: pan.2005.11.29.17.25.54.723127@cox.net
In Reply to: Re: [gentoo-amd64] Re: ~amd64 vs. ~x86 by Tres Melton
1 Tres Melton posted <1133280913.26819.51.camel@×××××××××.org>, excerpted
2 below, on Tue, 29 Nov 2005 09:15:13 -0700:
3
4 > So the issue is do ebuilds use CHOST or KEYWORD to key the build for. I
5 > don't know enough about portage to say for sure but I thought they all
6 > used CHOST. If there is one that uses the KEYWORD then link me bud. :p
7
8 That's possible. I'm talking about the use tests seen in ebuilds, ie
9 "if use x86; then" type tests. If you can say definitively that these use
10 CHOST not keywords, then I'll take your word for it, but I always though
11 it tested keywords (particularly since amd64 would be x86_64 CHOST,
12 right? unless the use macro does the conversion from common/gentoo-speak
13 to chost-speak internally?) but I could certainly be incorrect as it's not
14 something I've specifically traced.
15
16 Both of these from xorg-x11-6.8.99.15-r4.ebuild, host_def_setup section:
17
18 Test for amd64 (won't be run if x86)
19
20 # Enable i810 on x86_64 (RH #126687)
21 if use amd64; then
22 echo "#define XF86ExtraCardDrivers i810" >> ${HOSTCONF}
23 fi
24
25 Test for x86 or alpha (won't be run if amd64)
26
27 if use x86 || use alpha; then
28 # build with glide3 support? (build the tdfx_dri.o module)
29 if use 3dfx; then
30 echo "#define HasGlide3 YES" >> ${HOSTCONF}
31 fi
32 # This won't work unless we can disable building the tdfx stuff
33 # entirely :/
34 # use_build 3dfx HasGlide3
35 fi
36
37 As I said earlier, these sorts of tests tend to be most common in packages
38 like toolchain (gcc/binutils/etc) and X, but they do occasionally occur
39 elsewhere, as with x86-optimized assembly in media codec applications,
40 for instance. (No specific instances to point out as I've not looked, but
41 that's the generally given example when pointing out where arch specific
42 code might be used, even between x86 hardware versions,
43 386/586/686/mmx/3dnow/sse/sse2/sse3/whatever, tho of course on x86, gentoo
44 has USE flags for that sort of optimization, where needed.)
45
46 --
47 Duncan - List replies preferred. No HTML msgs.
48 "Every nonfree program has a lord, a master --
49 and if you use the program, he is your master." Richard Stallman in
50 http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
51
52
53 --
54 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] Re: Re: ~amd64 vs. ~x86 Patrick McLean <chutzpah@××××××××××.ca>