Bug 48878 - postgresql-jdbc build problem fixed
Summary: postgresql-jdbc build problem fixed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ernst de Haan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-03 14:20 UTC by Palle Girgensohn
Modified: 2003-03-28 13:45 UTC (History)
0 users

See Also:


Attachments
file.diff (697 bytes, patch)
2003-03-03 14:20 UTC, Palle Girgensohn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Palle Girgensohn 2003-03-03 14:20:05 UTC
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.

Fix: patch and add this patch-file:
Comment 1 Ernst de Haan freebsd_committer freebsd_triage 2003-03-04 09:41:53 UTC
State Changed
From-To: open->analyzed

I'll handle this. The PR looks good. 


Comment 2 Ernst de Haan freebsd_committer freebsd_triage 2003-03-04 09:41:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->znerd

I'll handle this. The PR looks good.
Comment 3 ernst.dehaan 2003-03-04 13:10:59 UTC
I can't build the port. A 'make install' gives me:

    [javac] 
/usr/home/ernst/freebsd/ports/databases/postgresql-jdbc/work/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java:56: 
cannot resolve symbol
    [javac] symbol  : method assertNotNull  (java.sql.DatabaseMetaData)
    [javac] location: class org.postgresql.test.jdbc2.DatabaseMetaDataTest
    [javac]                     assertNotNull(dbmd);
    [javac]                         ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 100 errors

Looks like the port depends on junit...

Ernst
Comment 4 Palle Girgensohn 2003-03-04 15:34:31 UTC
Hi Ernst,

Well, whats with the 7.2.1? It should read 7.3.2... Try updating your 
databases/postgresql7 structure.

/Palle

--On tisdag, mars 04, 2003 14.10.59 +0100 Ernst de Haan 
<ernst.dehaan@nl.wanadoo.com> wrote:

> I can't build the port. A 'make install' gives me:
>
>     [javac]
> /usr/home/ernst/freebsd/ports/databases/postgresql-jdbc/work/postgresql-7
> .2.1/src/interfaces/jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.j
> ava:56:  cannot resolve symbol
>     [javac] symbol  : method assertNotNull  (java.sql.DatabaseMetaData)
>     [javac] location: class org.postgresql.test.jdbc2.DatabaseMetaDataTest
>     [javac]                     assertNotNull(dbmd);
>     [javac]                         ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 100 errors
>
> Looks like the port depends on junit...
>
> Ernst
Comment 5 Palle Girgensohn 2003-03-27 22:25:20 UTC
Hi! 
 
Did you forget this PR? 
 
/Palle
Comment 6 Ernst de Haan freebsd_committer freebsd_triage 2003-03-28 13:45:27 UTC
State Changed
From-To: analyzed->closed

Committed, thanks!