Subject: Re: pkg/17785: devel/oaf Makefile fix for Solaris
To: None <julien.letessier@sun.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 07/31/2002 18:43:26
--OBd5C1Lgu00Gd/Tn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 31, 2002 at 09:26:48AM -0700, julien.letessier@sun.com wrote:
> Description: oaf depends on flex and bison to build. these are (?)
> included with NetBSD, but not with Solaris.

you will break this package for other operating systems with this change
because devel/flex is marked as ONLY_FOR_PLATFORM=3DSunOS-*-*.  define
BUILD_DEPENDS for it only for Solaris.  and apparently yacc is good
enough for this package since it doesn't have build dependency on bison
for NetBSD.  can you please test whether is is enough for Solaris as
well?

> 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/devel/oaf/Makefile,v
> retrieving revision 1.17
> diff -u -r1.17 Makefile
> --- Makefile	2002/05/18 10:54:16	1.17
> +++ Makefile	2002/07/31 16:23:52
> @@ -17,6 +17,9 @@
> =20
>  LIBTOOL_OVERRIDE=3D	${WRKSRC}/libtool
  +
  +.include "../../mk/bsd.prefs.mk"
  +
  +.if ${OPSYS} =3D=3D "SunOS"
> +BUILD_DEPENDS+=3D		bison-[0-9]*:../../devel/bison
> +BUILD_DEPENDS+=3D		flex-[0-9]*:../../devel/flex
  +.endif
> +
>  .include "../../devel/popt/buildlink.mk"
>  .include "../../textproc/libxml/buildlink.mk"
>  .include "../../x11/gnome-libs/buildlink.mk"

--OBd5C1Lgu00Gd/Tn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD4DBQE9SBOuiwjDDlS8cmMRAhrxAJj0gbvf26FfAC2FvnfVnYnN+7w1AJ9Y2IdC
6jUi35YVFDvXI2SuLsE4NQ==
=IU2S
-----END PGP SIGNATURE-----

--OBd5C1Lgu00Gd/Tn--