Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 240956 | Differences between
and this patch

Collapse All | Expand All

(-)mesa-7.2.ebuild (-3 / +16 lines)
Lines 45-50 IUSE="${IUSE_VIDEO_CARDS} Link Here
45
	debug
45
	debug
46
	doc
46
	doc
47
	pic
47
	pic
48
	hardened
48
	motif
49
	motif
49
	nptl
50
	nptl
50
	xcb
51
	xcb
Lines 105-111 src_unpack() { Link Here
105
		git_src_unpack
106
		git_src_unpack
106
	else
107
	else
107
		unpack ${A}
108
		unpack ${A}
108
		cd "${S}"
109
		cd "${S}" && epatch "${FILESDIR}/7.2-glx_ro_text_segm.patch"
109
	fi
110
	fi
110
111
111
	# Don't compile debug code with USE=-debug - bug #125004
112
	# Don't compile debug code with USE=-debug - bug #125004
Lines 148-155 src_compile() { Link Here
148
	# Deactivate assembly code for pic build
149
	# Deactivate assembly code for pic build
149
	myconf="${myconf} $(use_enable !pic asm)"
150
	myconf="${myconf} $(use_enable !pic asm)"
150
151
151
	# Sparc assembly code is not working
152
	if  use sparc; then
152
	myconf="${myconf} $(use_enable !sparc asm)"
153
		  elog "Mesa assembly code is currently generally disabled on sparc"	
154
		  myconf="${myconf} --disable-asm"
155
	fi
156
157
	if use hardened && use x86; then
158
		 # Make glx text segments readonly on hardened
159
		 myconf="${myconf} --enable-glx-rts"
160
		 elog "Mesa assembly code is currently generally disabled on hardened x86"	
161
		 # some hithereto unknown part of mesa's x86 assembly code is
162
		 # broken by readonly text segments
163
		 myconf="${myconf} --disable-asm"
164
	fi
153
165
154
	myconf="${myconf} --disable-glut"
166
	myconf="${myconf} --disable-glut"
155
167
Lines 165-170 src_compile() { Link Here
165
	myconf="${myconf} $(use_enable motif glw)"
177
	myconf="${myconf} $(use_enable motif glw)"
166
	myconf="${myconf} $(use_enable motif)"
178
	myconf="${myconf} $(use_enable motif)"
167
179
180
	eautoreconf
168
	econf ${myconf} || die
181
	econf ${myconf} || die
169
	emake || die
182
	emake || die
170
}
183
}

Return to bug 240956