Opened 5 years ago

Closed 5 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@…

Description

Hi,

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

$ dpkg -L libpostgis-java | grep jar
/usr/share/java/postgis-jdbc-2.1.0~rc1.jar
/usr/share/java/postgis.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.

Hamish

Change history (6)

comment:1 Changed 5 years ago by kalxas

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

comment:2 in reply to:  1 Changed 5 years ago by hamish

Replying to kalxas:

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

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

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

Hamish

comment:3 Changed 5 years ago by hamish

Cc: johan.vandewauw@… added

comment:4 Changed 5 years ago by kalxas

Milestone: OSGeoLive7.9OSGeoLive8.0

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

comment:5 Changed 5 years ago by darkblueb

in build 11555, I noticed in the log:

===============================================================
Starting "install_osm.sh" ...
===============================================================
Reading package lists...
Building dependency tree...
...


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

Get:2 http://ppa.launchpad.net/osgeolive/nightly/ubuntu/ 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 Changed 5 years ago by kalxas

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.