From owner-freebsd-java@FreeBSD.ORG Sun Oct 14 14:57:18 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0470416A469 for ; Sun, 14 Oct 2007 14:57:18 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3A12713C481 for ; Sun, 14 Oct 2007 14:57:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l9EEvAlq066238 for ; Sun, 14 Oct 2007 15:57:10 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <47122E46.2080203@infracaninophile.co.uk> Date: Sun, 14 Oct 2007 15:57:10 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.6 (X11/20070803) MIME-Version: 1.0 To: freebsd-java@freebsd.org X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 14 Oct 2007 15:57:10 +0100 (BST) X-Virus-Scanned: ClamAV 0.91.2/4540/Sun Oct 14 02:43:55 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on happy-idiot-talk.infracaninophile.co.uk Subject: mysql-connector-java-5.1.5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 14:57:18 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Dear all, I'm trying to produce some patches to upgrade the databases/mysql-connector-java port to the most recent GA version -- 5.1.5. Unfortunately, things on the 5.1 branch are significantly different to the 5.0 branch, and I'm running into a Catch 22 situation. Compiling the part of the driver that provides JDBC3.0 functionality (which is essentially the same as the 5.0 version of the driver) works fine with diablo-jdk1.5. Compiling the part of the driver that provides JDBC4.0 functionality however requires Java 6. Unfortunately though, compiling the JDBC3.0 code doesn't work with Java 6. It seems I need to have multiple java versions installed and to switch between them for different targets from build.xml I can't see how to make this work with the bsd.java.mk setup in ports. If anyone cares to take a look, I've a copy of the port as a work in progress at http://www.infracaninophile.co.uk/mysql-connector-java-5.1.5.tbz I have switched the preferences in the port so that the default is to install the pre-compiled .jar file directly from the distfile. In order to turn on the compilation step you now need to do: make -DWITH_COMPILE You'll need java/jdk16 installed for that. Any suggestions? Or should I just give up on trying to have the ports system compile the driver? Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHEi5F8Mjk52CukIwRCH19AJ9wGzI5C/oRm+yp+EyHLK0OhF12/wCglZ+7 KWiPNsbIG0e18Mt9eZQZIog= =AiW8 -----END PGP SIGNATURE-----