From owner-freebsd-java Thu Dec 13 0:28:35 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 8D0CB37B405; Thu, 13 Dec 2001 00:28:26 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fBD8SNg03244; Thu, 13 Dec 2001 09:28:23 +0100 (CET) (envelope-from ernst) Message-Id: <200112130828.fBD8SNg03244@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: EuroNet Internet B.V. To: Dave Glowacki , freebsd-gnats-submit@FreeBSD.ORG, java@FreeBSD.ORG Subject: Re: ports/32223: Port databases/mysql-jdbc-mm is quite outdated Date: Thu, 13 Dec 2001 09:28:23 +0100 X-Mailer: KMail [version 1.3] References: <200112122055.fBCKt7k25350@hyde.ssec.wisc.edu> In-Reply-To: <200112122055.fBCKt7k25350@hyde.ssec.wisc.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm not going to commit this one because we would be moving from a working port to a broken port. I prefer having an older version that works over a newer version that doesn't work. And would not it be possible to instruct the user to download the specified files from java.sun.com in a way similar to the way the JDK ports ask the user to download the distfiles? Ernst On Wednesday 12 December 2001 21:55, Dave Glowacki wrote: > Here is the latest version of the mysql-jdbc-mm port. > It builds everything from source, but is currently > marked BROKEN because two essential .jar files included > in the distribution are corrupted, so the port cannot > build. I'm hoping that the next version of the > distribution file will contain usable .jar files. > > In order to build the port, a user would need to download > jdbc2_0-stdext.jar from http://java.sun.com/products/jdbc/download.html > under the JDBC 2.0 Optional Package section, and > jta-spec1_0_1.jar from http://java.sun.com/products/jta/. > The JTA jar file must be extracted from the downloaded > zip file and renamed to jta-spec1_0_1.jar > > After both files have been downloaded, the Makefile needs > to be edited to remove the BROKEN line. > > After this, the user should run 'make extract'. When that > finishes, the two downloaded jar files should be copied to > work/mm.mysql-2.0.8/lib. After this, the build will proceed > as normal. > > diff -ru mysql-jdbc-mm.old/Makefile mysql-jdbc-mm/Makefile > --- mysql-jdbc-mm.old/Makefile Fri Jun 1 06:49:08 2001 > +++ mysql-jdbc-mm/Makefile Wed Dec 12 12:18:11 2001 > @@ -5,29 +5,68 @@ > # $FreeBSD: ports/databases/mysql-jdbc-mm/Makefile,v 1.7 2001/06/01 > 11:49:08 jeh Exp $ # > > +BROKEN= Distribution contains bad JAR files. > + > PORTNAME= mysql-jdbc-mm > -PORTVERSION= 1.2c > +PORTVERSION= 2.0.8 > CATEGORIES= databases java > -MASTER_SITES= http://mmmysql.sourceforge.net/dist/ > -DISTNAME= mm.mysql.jdbc-${PORTVERSION} > +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > +MASTER_SITE_SUBDIR= mmmysql > +DISTNAME= mm.mysql-${PORTVERSION} > +EXTRACT_SUFX= -you-must-unjar-me.jar > > MAINTAINER= dglo@SSEC.WISC.EDU > > -BUILD_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk > +BUILD_DEPENDS= ${JAVA_HOME}/bin/javac:${PORTSDIR}/java/jdk13 \ > + ant:${PORTSDIR}/devel/jakarta-ant > +RUN_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk13 > + > +JAVA_HOME?= ${PREFIX}/jdk1.3.1 > + > +EXTRACT_CMD= ${JAVA_HOME}/bin/jar > +EXTRACT_BEFORE_ARGS= -xf > > -ALL_TARGET= jar > +post-patch: > + @(cd ${WRKSRC}; ${MV} build.xml build.xml.patched; \ > + ${SED} -e "s;%%WRKSRC%%;${WRKSRC};g" -e "s;%%PREFIX%%;${PREFIX};g" \ > + < build.xml.patched > build.xml) > + @(cd ${WRKSRC}; ${MV} j1c j1c.patched; \ > + ${SED} "s;%%PREFIX%%;${PREFIX};g" < j1c.patched > j1c; \ > + ${CHMOD} 555 j1c) > + > +do-build: > + @(cd ${WRKSRC}; ${SETENV} JAVA_HOME=${JAVA_HOME} ant clean dist) > +.if !defined(NOPORTDOCS) > + @(cd ${WRKSRC}; ${MKDIR} doc; \ > + ${JAVA_HOME}/bin/javadoc -d doc -package \ > + -classpath > ${WRKSRC}:${WRKSRC}/lib/jdbc2_0-stdext.jar:${WRKSRC}/lib/jta-spec1_0_1.jar: >${CLASSPATH} \ + org.gjt.mm.mysql org.gjt.mm.mysql.jdbc2) > +.endif > > do-install: > @${MKDIR} ${PREFIX}/share/java/classes > - @${INSTALL_DATA} ${WRKSRC}/mysql_comp.jar ${LOCALBASE}/share/java/classes > - > -post-install: > + @${INSTALL_DATA} > ${WRKSRC}/build/mm.mysql-${PORTVERSION}/mm.mysql-${PORTVERSION}-bin.jar \ > + ${PREFIX}/share/java/classes/mm.mysql-${PORTVERSION}.jar > + @${INSTALL_DATA} ${WRKSRC}/lib/jdbc2_0-stdext.jar \ > + ${PREFIX}/share/java/classes/ > + @${INSTALL_DATA} ${WRKSRC}/lib/jta-spec1_0_1.jar \ > + ${PREFIX}/share/java/classes/ > .if !defined(NOPORTDOCS) > @${MKDIR} ${PREFIX}/share/doc/mysql-jdbc > @(cd ${WRKSRC}/doc && ${TAR} -c -f - .) \ > > | (cd ${PREFIX}/share/doc/mysql-jdbc && ${TAR} --unlink -x -f -) > > +.endif > + > +post-install: > + @${ECHO} share/java/classes/mm.mysql-${PORTVERSION}.jar >> ${TMPPLIST} > + @${ECHO} share/java/classes/jdbc2_0-stdext.jar >> ${TMPPLIST} > + @${ECHO} share/java/classes/jta-spec1_0_1.jar >> ${TMPPLIST} > +.if !defined(NOPORTDOCS) > @(cd ${PREFIX} \ > && find share/doc/mysql-jdbc -type f -print >> ${TMPPLIST}) > + @${ECHO} "@dirrm share/doc/mysql-jdbc" >> ${TMPPLIST} > .endif > + @${ECHO} "@unexec ${RMDIR} %D/share/java/classes 2>/dev/null || true" >> > ${TMPPLIST} + @${ECHO} "@unexec ${RMDIR} %D/share/java 2>/dev/null || true" > >> ${TMPPLIST} > > .include > diff -ru mysql-jdbc-mm.old/distinfo mysql-jdbc-mm/distinfo > --- mysql-jdbc-mm.old/distinfo Sat Apr 29 20:09:57 2000 > +++ mysql-jdbc-mm/distinfo Fri Nov 30 11:19:55 2001 > @@ -1 +1 @@ > -MD5 (mm.mysql.jdbc-1.2c.tar.gz) = b04aa7f3048c2ebb169ee88ce19a6a4c > +MD5 (mm.mysql-2.0.8-you-must-unjar-me.jar) = > b496f9ad5be7afb21d3f05902b2805a0 diff -ru > mysql-jdbc-mm.old/files/patch-Makefile mysql-jdbc-mm/files/patch-Makefile > --- mysql-jdbc-mm.old/files/patch-Makefile Fri Jun 1 06:49:08 2001 +++ > mysql-jdbc-mm/files/patch-Makefile Wed Dec 12 12:39:45 2001 > @@ -1,21 +0,0 @@ > ---- Makefile.orig Sun May 27 12:10:22 2001 > -+++ Makefile Sun May 27 12:16:18 2001 > -@@ -3,14 +3,16 @@ > - # $Id: Makefile,v 1.2 1998/08/25 04:02:25 mmatthew Exp $ > - # > - > --JAVAC = /usr/local/jdk118/bin/javac > -+JAVA_HOME = /usr/local/jdk1.1.8 > -+JAVAC = JAVA_HOME=$(JAVA_HOME) CLASSPATH= $(JAVA_HOME)/bin/javac > -+JAR = JAVA_HOME=$(JAVA_HOME) CLASSPATH= $(JAVA_HOME)/bin/jar > - JAVAC_FLAGS =-O -g > - > - all: > - $(JAVAC) $(JAVAC_FLAGS) org/gjt/mm/mysql/*.java > - > - jar: all > -- jar -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf > mysql_comp.jar org/gjt/mm/mysql/*.class -+ $(JAR) -cv0f mysql_uncomp.jar > org/gjt/mm/mysql/*.class; $(JAR) -cvf mysql_comp.jar > org/gjt/mm/mysql/*.class - > - clean: > - rm -f org/gjt/mm/mysql/*.class org/gjt/mm/mysql/*~ > diff -ru mysql-jdbc-mm.old/files/patch-build.xml > mysql-jdbc-mm/files/patch-build.xml --- > mysql-jdbc-mm.old/files/patch-build.xml Wed Dec 12 12:39:28 2001 +++ > mysql-jdbc-mm/files/patch-build.xml Fri Nov 30 14:29:35 2001 > @@ -0,0 +1,21 @@ > +--- build.xml.orig Fri Nov 30 11:00:04 2001 > ++++ build.xml Fri Nov 30 11:03:37 2001 > +@@ -1,7 +1,7 @@ > + > + > +- > +- > ++ > ++ > + > + > + > +@@ -51,7 +51,7 @@ > + > + > + executable="${javac.1.1}"> +- ++ + > + > + > diff -ru mysql-jdbc-mm.old/files/patch-j1c mysql-jdbc-mm/files/patch-j1c > --- mysql-jdbc-mm.old/files/patch-j1c Wed Dec 12 12:39:28 2001 > +++ mysql-jdbc-mm/files/patch-j1c Thu Nov 29 18:00:12 2001 > @@ -0,0 +1,10 @@ > +--- j1c.orig Thu Nov 29 16:26:08 2001 > ++++ j1c Thu Nov 29 16:26:36 2001 > +@@ -0,0 +1,7 @@ > ++#!/bin/sh > ++ > ++JAVAC_1=%%PREFIX%%/jdk1.1.8/bin/javac > ++ > ++unset JAVA_HOME LD_LIBRARY_PATH LD_PRELOAD CLASSPATH > ++ > ++exec "$JAVAC_1" "$@" > diff -ru mysql-jdbc-mm.old/pkg-plist mysql-jdbc-mm/pkg-plist > --- mysql-jdbc-mm.old/pkg-plist Sat Jan 29 16:23:06 2000 > +++ mysql-jdbc-mm/pkg-plist Thu Nov 29 18:00:12 2001 > @@ -1 +1 @@ > -share/java/classes/mysql_comp.jar > + > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message