Gentoo Archives: gentoo-dev

From: Ferris McCormick <fmccor@g.o>
To: gentoo-dev@l.g.o
Cc: sparc@g.o, Donnie Berkholz <spyderous@g.o>
Subject: Re: [gentoo-dev] Modular X plans
Date: Wed, 10 Aug 2005 15:21:54
Message-Id: 1123687081.8608.50.camel@polylepis.inforead.com
In Reply to: Re: [gentoo-dev] Modular X plans by Ferris McCormick
1 On Wed, 2005-08-10 at 12:46 +0000, Ferris McCormick wrote:
2 > On Tue, 2005-08-09 at 19:40 -0700, Donnie Berkholz wrote:
3 > > -----BEGIN PGP SIGNED MESSAGE-----
4 > > Hash: SHA1
5 > >
6 >
7 > > Good catch. I was going to get to the rest of the GL headers after
8 > > getting Mesa working.
9 >
10 > Another comment about Mesa. Mesa, as distributed, has "built in"
11 > architectures it can build for, and it substitutes its own idea of
12 > appropriate CFLAGS rather than using the user's request. For sparc, at
13 > least, these are not appropriate, as can be seen from current
14 > xorg-x11-6.8.99.15, say, for which libGL does get built using
15 > make.conf's CFLAGS.
16 >
17 OK, now I have looked at the X modular ebuild for mesa-6.3.1.1, and half
18 of what I said is irrelevant.
19 1. The good news: CFLAGS are fine for X11R7 libGL build;
20 2. But to get sparc assembler built correctly, the following patch
21 seems correct:
22 ================================
23 --- /home/cvsroot/gentoo-x86/media-libs/mesa/mesa-6.3.1.1.ebuild
24 2005-08-10 06:42:09.000
25 000000 +0000
26 +++ mesa-6.3.1.1.ebuild 2005-08-10 15:03:22.000000000 +0000
27 @@ -17,7 +17,7 @@
28 http://xorg.freedesktop.org/extras/${LIBDRM_P}.tar.gz"
29 LICENSE="LGPL-2"
30 SLOT="0"
31 -KEYWORDS="~x86"
32 +KEYWORDS="~x86 ~sparc"
33 IUSE="motif"
34
35 RDEPEND="dev-libs/expat
36 @@ -62,6 +62,10 @@
37
38 # Set up linux-dri configs
39 echo "OPT_FLAGS = ${CFLAGS}" >> ${HOSTCONF}
40 + if use sparc; then
41 + echo "ASM_FLAGS = -DUSE_SPARC_ASM" >> ${HOSTCONF}
42 + echo 'ASM_SOURCES = $(SPARC_SOURCES) $(SPARC_API)' >>
43 ${HOSTCONF}
44 + fi
45 echo "CC = $(tc-getCC)" >> ${HOSTCONF}
46 echo "CXX = $(tc-getCXX)" >> ${HOSTCONF}
47 echo "DRM_SOURCE_PATH=\$(TOP)/../${LIBDRM_P}" >> ${HOSTCONF}
48 @@ -72,7 +76,7 @@
49 # Documented in configs/default
50 if use motif; then
51 # Add -lXm
52 - echo "GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
53 $(EXTRA_LIB_PATH) -lXt -lX11 -lXm
54 " >> ${HOSTCONF}
55 + echo 'GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
56 $(EXTRA_LIB_PATH) -lXt -lX11 -lXm
57 ' >> ${HOSTCONF}
58 ============================================
59 (Alternative is to create a complete linux-dri-sparc config file; I can
60 do that if you like.)
61
62 3. I changed the double-quoted echo at GLW_LIB ... to single-quoted
63 echo, because I think we need to pass in the $(LIB_DIR), etc. as-is (at
64 least, the ebuild doesn't know what they are and portage complains
65 otherwise).
66
67 I've also attached the little strawman patch to this note, to make it
68 easier to read. I can file a Bug for the change if you like.
69
70 Regards,
71 Ferris
72
73 --
74 Ferris McCormick (P44646, MI) <fmccor@g.o>
75 Developer, Gentoo Linux (Sparc, Devrel)

Attachments

File name MIME type
S text/plain
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Modular X plans Donnie Berkholz <spyderous@g.o>