Gentoo Archives: gentoo-ppc-dev

From: Joe McMahon <mcmahon@×××××××××××.edu>
To: gentooppc-dev@g.o
Subject: [gentooppc-dev] patch to get MOL 0.0.63 working ...
Date: Mon, 01 Jul 2002 15:52:42
Message-Id: Pine.LNX.4.44.0207011614030.14026-100000@tribal.metalab.unc.edu
In Reply to: Re: [gentooppc-dev] CUPS not working anymore... by Olivier Reisch
1 Having trouble with 0.9.63 getting a "not enough arguments to
2 expand_stack" while compiling mmu.c? Here's a patch to fix that.
3
4 (*Add* this file to your portage directory)
5 /usr/portage/app-emulation/mol/files:
6
7 --- mol-0.9.63/src/kmod/mmu.c Wed May 1 11:49:40 2002
8 +++ mol-0.9.63/src/kmod/mmu.c.new Mon Jul 1 16:27:42 2002
9 @@ -575,7 +575,7 @@
10 goto good_area;
11 if( !(vma->vm_flags & VM_GROWSDOWN ) )
12 goto bad_area;
13 - if( expand_stack(vma,va))
14 + if( expand_stack(vma,va,NULL))
15 goto bad_area;
16 good_area:
17 // helthy protection checking
18
19 (Patch your *current* mol-0.9.63.ebuild file with this)
20 /usr/portage/app-emulation/mol/mol-0.9.63.ebuild:
21 --- mol-0.9.63.ebuild Mon Jul 1 16:47:17 2002
22 +++ mol-0.9.63.ebuild.new Mon Jul 1 16:46:48 2002
23 @@ -19,6 +19,11 @@
24 fi
25 }
26
27 +src_unpack () {
28 + unpack ${A}; cd ${S}
29 + patch -p1 < ${FILESDIR}/expand_stack_3arg.patch || die
30 +}
31 +
32 src_compile() {
33
34 ./configure --prefix=/usr || die "This is a ppc-only package (time
35 to buy that iBook, no?)"
36
37 That should do it. I was able to compile, set up molrc, and MacOS came
38 right up.
39
40 --- Joe M.