pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/37019: [fix] lang/stalin doesn't build in current



On Mon, 24 Sep 2007 00:35:04 +0900, Manuel Bouyer 
<bouyer%antioche.eu.org@localhost> wrote:

> On Sun, Sep 23, 2007 at 02:33:16PM +0400, Aleksej Saushev wrote:
>> "OBATA Akio" <obache%netbsd.org@localhost> writes:
>>
>> >  Added follwing line to lang/stalin/Makefile also fixes this problem?
>> >
>> >  CPPFLAGS+=3D      -I${BUILDLINK_PREFIX.boehm-gc}/include/gc
>>
>> Except for optimisation flags, I still have to add "CFLAGS=-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
===================================================================
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} == "sparc")
-CFLAGS:=               ${CFLAGS:C/-O[0-9]*/-O0/}
+.if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "amd64") || 
(${MACHINE_ARCH} == "i386" && ${OS_VERSION:R} >= 4)
+BUILDLINK_TRANSFORM+=  rename:-O[0-9]*:-O0
  .endif
  CPPFLAGS+=             -I${BUILDLINK_PREFIX.boehm-gc}/include/gc




Home | Main Index | Thread Index | Old Index