Subject: Re: pkg/37522: Diffs to update lang/squeak to 3.9
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-bugs
Date: 12/16/2007 13:10:02
The following reply was made to PR pkg/37522; it has been noted by GNATS.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/37522: Diffs to update lang/squeak to 3.9
Date: Sun, 16 Dec 2007 22:06:34 +0900
> --#ifdef __sparc
> -+#if defined(__sparc) && !defined(__NetBSD__)
> +-#ifdef __sun__
> ++#if defined(__sun__) && !defined(__NetBSD__) /* is __NetBSD__ necc w=
ith __sun__? */
If this part is for Solaris, just "#ifdef __sun" is enough.
See pkgsrc guide 19.5.1.
> Index: patches/patch-ak
> =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/squeak/patches/patch-ak,v
> retrieving revision 1.1
> diff -w -b -u -r1.1 patch-ak
> --- patches/patch-ak 26 Apr 2004 07:10:16 -0000 1.1
> +++ patches/patch-ak 7 Dec 2007 01:42:22 -0000
> @@ -1,8 +1,8 @@
> $NetBSD: patch-ak,v 1.1 2004/04/26 07:10:16 fredb Exp $
>---- platforms/unix/vm-sound-NetBSD/sqUnixSoundNetBSD.c 1969-12-31 18:0=
0:00.000000000 -0600
> -+++ platforms/unix/vm-sound-NetBSD/sqUnixSoundNetBSD.c 2004-04-25 15:=
05:47.000000000 -0500
> -@@ -0,0 +1,378 @@
> +--- platforms/unix/vm-sound-NetBSD/sqUnixSoundNetBSD.c.orig 2007-12-0=
6 18:47:09.000000000 -0600
> ++++ platforms/unix/vm-sound-NetBSD/sqUnixSoundNetBSD.c
> +@@ -0,0 +1,379 @@
> +/* sqUnixSoundNetBSD.c -- sound support for NetBSD
> + *
> + * Copyright (C) 1996-2002 Ian Piumarta and other authors/contribu=
tors
> @@ -42,6 +42,7 @@
> +
> +#include "sq.h"
> +#include "aio.h"
> ++#include "sqaio.h"
> +
> +#include <stdio.h>
> +#include <unistd.h>
On NetBSD 4.0:
cc -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -I/usr/X11R6/include -I/us=
r/include -fomit-frame-pointer -DLSB_FIRST=3D1 -DHAVE_CONFIG_H -I/pkg_co=
mp/obj/pkgsrc/lang/squeak/default/build -I/pkg_comp/obj/pkgsrc/lang/sque=
ak/default/Squeak-3.9-8/platforms/unix/vm -I/pkg_comp/obj/pkgsrc/lang/sq=
ueak/default/Squeak-3.9-8/platforms/Cross/vm -I/pkg_comp/obj/pkgsrc/lang=
/squeak/default/Squeak-3.9-8/platforms/unix/src/vm -I/usr/pkg/include -D=
GLX_GLXEXT_LEGACY -I/usr/X11R6/include -I/usr/include -c /pkg_comp/obj/p=
kgsrc/lang/squeak/default/Squeak-3.9-8/platforms/unix/vm-sound-NetBSD/sq=
UnixSoundNetBSD.c -fPIC -DPIC -DPIC -o sqUnixSoundNetBSD.o
/pkg_comp/obj/pkgsrc/lang/squeak/default/Squeak-3.9-8/platforms/unix/vm-=
sound-NetBSD/sqUnixSoundNetBSD.c:39:17: error: aio.h: No such file or di=
rectory
gmake[1]: *** [sqUnixSoundNetBSD.lo] Error 1
gmake: *** [vm-sound-NetBSD.la] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/lang/squeak
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/squeak
After removing '#include "aio.h"', build fine on NetBSD 4.0.
Does it need to include "aio.h" on NetBSD-current?
And ${PREFIX}/lib/squeak/npsqueakrun is bash script.
If this script really used, need USE_TOOLS+=3Dbash:run.
-- =
"Of course I love NetBSD":-)
OBATA Akio / obache@NetBSD.org