[SCM] postgis branch, master, updated. upstream/2.0.1-72-gacacf66

2013-08-07 Thread Markus Wanner
The following commit has been merged in the master branch:
commit 192c1bde88d7fbd40353f1b14bb02ff4170946c4
Author: Markus Wanner mar...@bluegap.ch
Date:   Wed Aug 7 15:19:20 2013 +0200

Revert most of 5ad5a075: we do not want libpostgis-java to be an
architecture dependent package. Keeps the 'mvn clean' vs 'rm'
change.

diff --git a/debian/changelog b/debian/changelog
index b176a5a..4500650 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,5 @@
 postgis (2.0.3-7) UNRELEASED; urgency=low
 
-  * Switch back to depend on default-jdk. To work around gcj-jdk
-incompatibilities, restrict libpostgis-java to the same set of
-architectures that support openjdk 6 and newer.
-  * Adjust rules to build libpostgis-java only on architectures that
-support it.
   * Use a simple rm rather than invoking maven. Allows us to move all java
 related Build-Depends back to Build-Depends-Indep.
 
diff --git a/debian/control b/debian/control
index e466dbd..a79bf16 100644
--- a/debian/control
+++ b/debian/control
@@ -10,10 +10,11 @@ Build-Depends: debhelper (= 8), dpkg-dev (= 1.16.1~), 
autotools-dev,
  imagemagick, libcunit1-dev, dblatex, libxml2-dev (= 2.5.0~),
  libgtk2.0-dev, libgdal-dev (= 1.6.0~) | libgdal1-dev (= 1.6.0~),
  postgresql-server-dev-all, postgresql-common (= 146), postgresql
-Build-Depends-Indep: default-jdk, libpostgresql-jdbc-java, fastjar,
- libjts-java (= 1.7), maven2, libmaven-clean-plugin-java,
- libmaven-jar-plugin-java, libsurefire-java,
- libmaven-compiler-plugin-java, libmaven-resources-plugin-java
+Build-Depends-Indep: openjdk-7-jdk | openjdk-6-jdk,
+ libpostgresql-jdbc-java, fastjar, libjts-java (= 1.7), maven2,
+ libmaven-clean-plugin-java, libmaven-jar-plugin-java,
+ libsurefire-java, libmaven-compiler-plugin-java,
+ libmaven-resources-plugin-java
 Standards-Version: 3.9.4
 Homepage: http://postgis.refractions.net/
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/postgis.git
@@ -49,8 +50,7 @@ Description: Geographic objects support for PostgreSQL -- 
documentation
  This package contains the PostGIS documentation.
 
 Package: libpostgis-java
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 lpia mips mipsel
- powerpc powerpcspe ppc64 s390 s390x sh4 sparc sparc64
+Architecture: all
 Section: java
 Depends: libpostgresql-jdbc-java, ${misc:Depends}
 Suggests: postgresql-9.1-postgis-2.0
diff --git a/debian/control.in b/debian/control.in
index d02d1ce..f98c340 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -10,10 +10,11 @@ Build-Depends: debhelper (= 8), dpkg-dev (= 1.16.1~), 
autotools-dev,
  imagemagick, libcunit1-dev, dblatex, libxml2-dev (= 2.5.0~),
  libgtk2.0-dev, libgdal-dev (= 1.6.0~) | libgdal1-dev (= 1.6.0~),
  postgresql-server-dev-all, postgresql-common (= 146), postgresql
-Build-Depends-Indep: default-jdk, libpostgresql-jdbc-java, fastjar,
- libjts-java (= 1.7), maven2, libmaven-clean-plugin-java,
- libmaven-jar-plugin-java, libsurefire-java,
- libmaven-compiler-plugin-java, libmaven-resources-plugin-java
+Build-Depends-Indep: openjdk-7-jdk | openjdk-6-jdk,
+ libpostgresql-jdbc-java, fastjar, libjts-java (= 1.7), maven2,
+ libmaven-clean-plugin-java, libmaven-jar-plugin-java,
+ libsurefire-java, libmaven-compiler-plugin-java,
+ libmaven-resources-plugin-java
 Standards-Version: 3.9.4
 Homepage: http://postgis.refractions.net/
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/postgis.git
@@ -49,8 +50,7 @@ Description: Geographic objects support for PostgreSQL -- 
documentation
  This package contains the PostGIS documentation.
 
 Package: libpostgis-java
-Architecture: alpha amd64 armel armhf arm64 i386 ia64 lpia mips mipsel
- powerpc powerpcspe ppc64 s390 s390x sh4 sparc sparc64
+Architecture: all
 Section: java
 Depends: libpostgresql-jdbc-java, ${misc:Depends}
 Suggests: postgresql-NEWEST_PGVERSION-postgis-2.0
diff --git a/debian/rules b/debian/rules
index b383076..8d0a77f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -48,12 +48,7 @@ DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture 
-qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-# Whether or not to build the JDBC parts the arch supports openjdk 6 or
-# newer.
-ARCH_SUPPORTS_JDBC_PKG=$(shell grep-dctrl -sArchitecture \
-   --pattern=libpostgis-jdbc $(CURDIR)/debian/control.in \
-   | grep $(DEB_BUILD_ARCH))
-JAVA_HOME=/usr/lib/jvm/default-java
+JAVA_HOME=/usr/lib/jvm/default-jdk
 
 # Use maven in offline mode and with the local Debian repo
 MVN = mvn --offline -Dmaven.repo.local=/usr/share/maven-repo
@@ -105,9 +100,7 @@ build-arch-stamp: configuration-stamp
 build-indep: build-indep-stamp
 build-indep-stamp: configuration-stamp
 #  PostGIS JDBC (with debug support)
-   if [ -n $(ARCH_SUPPORTS_JDBC_PKG) ]; then \
-   cd $(CURDIR)/java/jdbc  $(MVN) package; \
-   fi
+   cd $(CURDIR)/java/jdbc  $(MVN) package
 

[SCM] postgis branch, master, updated. upstream/2.0.1-72-gacacf66

2013-08-07 Thread Markus Wanner
The following commit has been merged in the master branch:
commit acacf66410f804d2924e3d59d277e4e7691ffae1
Author: Markus Wanner mar...@bluegap.ch
Date:   Wed Aug 7 15:52:33 2013 +0200

* Let rules check for different OpenJDK versions supported and set
  JAVA_HOME accordingly.

diff --git a/debian/changelog b/debian/changelog
index 4500650..0aedfca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 postgis (2.0.3-7) UNRELEASED; urgency=low
 
+  * Let rules check for different OpenJDK versions supported and set
+JAVA_HOME accordingly.
   * Use a simple rm rather than invoking maven. Allows us to move all java
 related Build-Depends back to Build-Depends-Indep.
 
diff --git a/debian/control b/debian/control
index a79bf16..314d141 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Build-Depends: debhelper (= 8), dpkg-dev (= 1.16.1~), 
autotools-dev,
  imagemagick, libcunit1-dev, dblatex, libxml2-dev (= 2.5.0~),
  libgtk2.0-dev, libgdal-dev (= 1.6.0~) | libgdal1-dev (= 1.6.0~),
  postgresql-server-dev-all, postgresql-common (= 146), postgresql
-Build-Depends-Indep: openjdk-7-jdk | openjdk-6-jdk,
+Build-Depends-Indep: openjdk-8-jdk | openjdk-7-jdk | openjdk-6-jdk,
  libpostgresql-jdbc-java, fastjar, libjts-java (= 1.7), maven2,
  libmaven-clean-plugin-java, libmaven-jar-plugin-java,
  libsurefire-java, libmaven-compiler-plugin-java,
diff --git a/debian/control.in b/debian/control.in
index f98c340..3ca9bb0 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -10,7 +10,7 @@ Build-Depends: debhelper (= 8), dpkg-dev (= 1.16.1~), 
autotools-dev,
  imagemagick, libcunit1-dev, dblatex, libxml2-dev (= 2.5.0~),
  libgtk2.0-dev, libgdal-dev (= 1.6.0~) | libgdal1-dev (= 1.6.0~),
  postgresql-server-dev-all, postgresql-common (= 146), postgresql
-Build-Depends-Indep: openjdk-7-jdk | openjdk-6-jdk,
+Build-Depends-Indep: openjdk-8-jdk | openjdk-7-jdk | openjdk-6-jdk,
  libpostgresql-jdbc-java, fastjar, libjts-java (= 1.7), maven2,
  libmaven-clean-plugin-java, libmaven-jar-plugin-java,
  libsurefire-java, libmaven-compiler-plugin-java,
diff --git a/debian/rules b/debian/rules
index 8d0a77f..6d05dfb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -48,7 +48,18 @@ DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture 
-qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-JAVA_HOME=/usr/lib/jvm/default-jdk
+# Determine JAVA_HOME to use. Depends on which Build-Depends-Indep
+# variant has been used.
+JAVA_HOME = /usr/lib/jvm/java-8-openjdk-$(DEB_BUILD_ARCH)
+ifeq ($(wildcard $(JAVA_HOME)),)
+  JAVA_HOME=/usr/lib/jvm/java-7-openjdk-$(DEB_BUILD_ARCH)
+  ifeq ($(wildcard $(JAVA_HOME)),)
+JAVA_HOME=/usr/lib/jvm/java-6-openjdk-$(DEB_BUILD_ARCH)
+ifeq ($(wildcard $(JAVA_HOME)),)
+  $(error Cannot detect JAVA_HOME in $(JAVA_HOME))
+endif
+  endif
+endif
 
 # Use maven in offline mode and with the local Debian repo
 MVN = mvn --offline -Dmaven.repo.local=/usr/share/maven-repo

-- 
PostGIS for PostgreSQL

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel