Subject: mk/java-env.mk problem with sablevm-classpath
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 03/09/2005 12:08:42
--5I6of5zJg18YgZEa
Content-Type: multipart/mixed; boundary="DocE+STaALJfprDB"
Content-Disposition: inline


--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,

I'm having a problem building lang/sablevm-classpath (and problably also
sablevm-classpath-gui), because they include mk/java-env.mk without
defining JAVA_WRAPPERS. This make the build fails at the end, with an
error like: make: don't know how to build work/.ALTERNATIVES

I've patched locally mk/java-env.mk to get rid of this problem (just
moving the endif part of a  =20
=2Eif !empty(JAVA_WRAPPERS)
=2Eendif=09

to the end of the file, since all this code is there to handle
JAVA_WRAPPERS.
Is this a good fix ?

I also tried to change the include from java-env to java-vm, but it
seems it is not the correct thing to do.

regards,
antoine

--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="java-env.mk.diff"
Content-Transfer-Encoding: quoted-printable

Index: mk/java-env.mk
=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/mk/java-env.mk,v
retrieving revision 1.4
diff -b -u -r1.4 java-env.mk
--- mk/java-env.mk	30 Jan 2005 23:18:38 -0000	1.4
+++ mk/java-env.mk	9 Mar 2005 11:10:32 -0000
@@ -37,7 +37,6 @@
=20
 .if !empty(JAVA_WRAPPERS)
 INSTALLATION_DIRS+=3D	bin
-.endif
=20
 ALTERNATIVES_SRC=3D	${WRKDIR}/.ALTERNATIVES
 ${WRKDIR}/.ALTERNATIVES:
@@ -78,6 +77,7 @@
=20
 .endfor
 .undef w
+.endif
=20
 # Handle the ${PREFIX}/java shared directory automatically.
 USE_PKGINSTALL=3D		YES

--DocE+STaALJfprDB--

--5I6of5zJg18YgZEa
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFCLtk64VqmoGDE/mwRAoCXAJ9FuOmtcuC11q9y6KYe5hyxxxUqngCfd13y
GeR8Kph/q33PZSpyWqOejZ4=
=PkKb
-----END PGP SIGNATURE-----

--5I6of5zJg18YgZEa--