Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2003 15:15:36 +0100 (CET)
From:      Palle Girgensohn <girgen@pingpong.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48878: postgresql-jdbc build problem fixed
Message-ID:  <200303031415.h23EFaUY081547@palle.girgensohn.se>

next in thread | raw e-mail | index | archive | help

>Number:         48878
>Category:       ports
>Synopsis:       postgresql-jdbc build problem fixed
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 03 06:20:05 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn <girgen@pingpong.net>
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
PING PONG
>Environment:
System: FreeBSD palle.girgensohn.se 4.7-RC FreeBSD 4.7-RC #0: Sun Sep 29 17:21:22 CEST 2002     root@palle.girgensohn.se:/usr/local/obj/usr/src/sys/STORDATAN  i386


	
>Description:
Fix for ports/47866, ports/48610 & ports/46768:

postgresql-jdbc failed to build when certain older versions of the jar file was
installed in /usr/local/share/java/classes, since ant loads all jar files in
that directory. This is really a problem with the FreeBSD ant run-script, but
me and the maintainer of ant agree that keeping this behaviour in ant makes
life easier for more people. Hence, fix the build.xml in postgresql, and add
includeAntRuntime="no" to the javac task in the compile target. This makes
ant ignore the classpath from the ant script.
>How-To-Repeat:
	
>Fix:
patch and add this patch-file:

--- /dev/null	Mon Mar  3 15:06:03 2003
+++ files/patch-src::interfaces::jdbc::build.xml	Mon Mar  3 12:14:56 2003
@@ -0,0 +1,11 @@
+--- src/interfaces/jdbc/build.xml~	Sun Oct 20 02:10:55 2002
++++ src/interfaces/jdbc/build.xml	Mon Mar  3 12:10:37 2003
+@@ -101,7 +101,7 @@
+ 
+   <!-- This is the core of the driver.  It is common for all three versions. -->
+   <target name="compile" depends="prepare,check_versions,driver">
+-    <javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
++    <javac includeAntRuntime="no" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
+       <include name="${package}/**" />
+ 
+       <exclude name="${package}/jdbc1/**" unless="jdbc1"/>
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303031415.h23EFaUY081547>