Subject: Re: pkg/37019: [fix] lang/stalin doesn't build in current
To: None <gnats-bugs@netbsd.org>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-bugs
Date: 09/24/2007 21:38:56
On Mon, 24 Sep 2007 00:35:04 +0900, Manuel Bouyer <bouyer@antioche.eu.or=
g> wrote:

> On Sun, Sep 23, 2007 at 02:33:16PM +0400, Aleksej Saushev wrote:
>> "OBATA Akio" <obache@netbsd.org> writes:
>>
>> >  Added follwing line to lang/stalin/Makefile also fixes this proble=
m?
>> >
>> >  CPPFLAGS+=3D3D	-I${BUILDLINK_PREFIX.boehm-gc}/include/gc
>>
>> Except for optimisation flags, I still have to add "CFLAGS=3D-O0".
>
> I can confirm this. In the i386 and amd64 bulk builds I have to kill
> the cc process, because it seems to make no progress after several 10s=

> of hours running.
>
> more specifically, it builds fine on i386 2.1 and 3.1, it fails on
> i386 4.0 and amd64 2.1, 3.1 and 4.0

Then, Is it OK to commit followin patch?

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/lang/stalin/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- Makefile    23 Sep 2007 15:30:23 -0000      1.31
+++ Makefile    24 Sep 2007 12:31:41 -0000
@@ -17,8 +17,8 @@

  .include "../../mk/bsd.prefs.mk"

-.if (${MACHINE_ARCH} =3D=3D "sparc")
-CFLAGS:=3D               ${CFLAGS:C/-O[0-9]*/-O0/}
+.if (${MACHINE_ARCH} =3D=3D "sparc") || (${MACHINE_ARCH} =3D=3D "amd64"=
) || (${MACHINE_ARCH} =3D=3D "i386" && ${OS_VERSION:R} >=3D 4)
+BUILDLINK_TRANSFORM+=3D  rename:-O[0-9]*:-O0
  .endif
  CPPFLAGS+=3D             -I${BUILDLINK_PREFIX.boehm-gc}/include/gc