Opened 10 years ago

Closed 10 years ago

#1310 closed defect (fixed)

libpostgis-java contains wrong jar file

Reported by: hamish Owned by: live-demo@…
Priority: critical Milestone: OSGeoLive8.0
Component: OSGeoLive Keywords: postgis
Cc: johan.vandewauw@…



$ dpkg -l | grep libpostgis-java
 ... version 2.1.1-1~precise3 installed

$ dpkg -L libpostgis-java | grep jar

/usr/share/java/postgis.jar is a symlink which points to a non-existent postgis-jdbc-2.1.1.jar.

so anything trying to use postgis.jar will fail.

a possible work-around:

# fix for package breakage
rm -f /usr/share/java/postgis.jar
ln -s /usr/share/java/postgis-jdbc-2.1.0~rc1.jar /usr/share/java/postgis.jar

'apt-cache policy' shows that the package is installed from the osgeolive ppa.


Change history (6)

comment:1 by kalxas, 10 years ago

I don't think this is used by any software on the disk. Is this really critical?

in reply to:  1 comment:2 by hamish, 10 years ago

Replying to kalxas:

I don't think this is used by any software on the disk.

can you guarantee that? brings in the package as a dependency of osmosis.

for now I've committed the symlink fix in r11234.


comment:3 by hamish, 10 years ago

Cc: johan.vandewauw@… added

comment:4 by kalxas, 10 years ago

Milestone: OSGeoLive7.9OSGeoLive8.0

postgis.jar now shows to the correct file. Has to be fixed in ppa though.

comment:5 by darkblueb, 10 years ago

in build 11555, I noticed in the log:

Starting "" ...
Reading package lists...
Building dependency tree...

The following NEW packages will be installed:
  libplexus-classworlds-java libpostgis-java libpostgresql-jdbc-java

Get:2 trusty/main libpostgis-java all 2.1.3+dfsg-3~tr
usty1 [464 kB]
Selecting previously unselected package libpostgresql-jdbc-java.
Preparing to unpack .../libpostgresql-jdbc-java_9.2-1002-1_all.deb ...
Unpacking libpostgresql-jdbc-java (9.2-1002-1) ...
Selecting previously unselected package libpostgis-java.
Preparing to unpack .../libpostgis-java_2.1.3+dfsg-3~trusty1_all.deb ...
Unpacking libpostgis-java (2.1.3+dfsg-3~trusty1) ...

Setting up libpostgresql-jdbc-java (9.2-1002-1) ...
Setting up libpostgis-java (2.1.3+dfsg-3~trusty1) ...

comment:6 by kalxas, 10 years ago

Resolution: fixed
Status: newclosed

I traced this in alpha4 and seems that the postgis.jar now corectly links to the postgis-jdbc-2.1.3.jar

Note: See TracTickets for help on using tickets.