Bug 144406 - games-strategy/glest does not use MAKEOPTS
Bug#: 144406 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: pml.gentoo@mrtvfuencxozd.org
Component: Games
URL: 
Summary: games-strategy/glest does not use MAKEOPTS
Keywords:  
Status Whiteboard: 
Opened: 2006-08-19 05:07 0000
Description:   Opened: 2006-08-19 05:07 0000
glest is using jam instead of make.
because of this (probably) MAKEOPTS is not used.

from what I saw,
make and jam have 'at least' -j in common.

As I use distcc, this is very usefull. (this will be true even without distcc
as  gentoo guide advise to have -j[N] even on single proc pc)

I tried replacing in the ebuild : 

jam || die "jam failed"

by 

JAMOPTS=`echo ${MAKEOPTS} |sed -e "s/.*\(-j ?[0-9]*\).*/\1/"`
jam ${JAMOPTS} || die "jam failed"

it worked very well and save me time.

some other MAKEOPTS (I only use this one) might be usefull, but to be sure, the
above code will filter and only keep the one I know works.

------- Comment #1 From Tristan Heaven 2006-08-19 05:31:29 0000 -------
There is an ebuild on bug #118911 which does, and also has some other fixes.

------- Comment #2 From Mr. Bones. 2006-08-28 13:00:21 0000 -------
Should be fixed by glest-2.0.0-r1, thanks to Tristan Heaven