Subject: Re: pkg/36208: pkgsrc 2007Q1 devel/SDL does not build if an old devel/yasm installed
To: None <wiz@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Thomas Klausner <wiz@NetBSD.org>
List: pkgsrc-bugs
Date: 05/19/2007 19:55:01
The following reply was made to PR pkg/36208; it has been noted by GNATS.

From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/36208: pkgsrc 2007Q1 devel/SDL does not build if an old devel/yasm installed
Date: Sat, 19 May 2007 21:50:10 +0200

 --+xNpyl7Qekk2NvDX
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Tue, Apr 24, 2007 at 10:45:00PM +0000, hbent@cs.oberlin.edu wrote:
 > If devel/yasm older than 0.6 is installed, devel/SDL from pkgsrc
 > 2007Q1 fails on the MMX assembly:
 ...
 > >How-To-Repeat:
 > As stated above, build devel/SDL with a version of devel/yasm before 0.6.
 > >Fix:
 > I think you just have to inhibit detection of yasm if it's an old
 > version, but I'm not sure how to do that.  I worked around the problem
 > by uninstalling yasm entirely and letting SDL build with nasm. 
 
 Since SDL seems to prefer yasm to nasm, why not switch it to yasm?
 
 Could you please try the attached patch?
 
 Thanks,
  Thomas
 
 --+xNpyl7Qekk2NvDX
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="SDL.diff"
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/devel/SDL/Makefile,v
 retrieving revision 1.76
 diff -u -r1.76 Makefile
 --- Makefile	9 Jan 2007 15:06:28 -0000	1.76
 +++ Makefile	19 May 2007 19:49:14 -0000
 @@ -27,7 +27,7 @@
  
  .if ${MACHINE_ARCH} == "i386" && ${OPSYS} != "SunOS"
  .  include "../../devel/binutils/buildlink3.mk"
 -BUILD_DEPENDS+=		nasm>=0.98:../../devel/nasm
 +BUILD_DEPENDS+=		yasm>=0.6.0:../../devel/yasm
  NASMFLAGS_ELF=		-f elf
  NASMFLAGS_a.out=	-f aoutb
  .else
 
 --+xNpyl7Qekk2NvDX--