Bug#775987: maven: Maven depends on openjdk exclusively

2015-01-22 Thread Laurens Blankers
Package: maven
Version: 3.0.5-2
Severity: minor

Dear Java Maintainer,

I noticed that the maven package in jessie depends on 
{default-jre|java5-runtime}[-headless]. Which results in openjdk-7-jre being
pulled in even if an alternative JRE/JDK is installed. In my case the JDK 
installed is oracle-java7-jdk (using make-jpkg from java-package).

The ant package (also in jessie) doesn't exhibit this problem because it
also depends on java7-runtime-headless (which is provided by 
oracle-java7-jdk).

Although both will still install openjdk if oracle-java8-{jdk,jre} is
installed.

My suggestion would be to have both maven and ant depends on the virtual
package java-runtime-headless, since this is provided by all JREs and JDKs
including the once created by make-jpkg.

Sincererly,

Laurens

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages maven depends on:
ii  default-jre [java5-runtime]  2:1.7-52
ii  default-jre-headless [java5-runtime-headless]2:1.7-52
ii  libaether-java   1.13.1-2
ii  libcommons-cli-java  1.2-3
ii  libcommons-codec-java1.9-1
ii  libcommons-httpclient-java   3.1-10.2
ii  libcommons-logging-java  1.2-1
ii  libguava-java17.0-1
ii  libplexus-cipher-java1.5-4
ii  libplexus-classworlds2-java  2.5.2-1
ii  libplexus-containers1.5-java 1.5.5-6
ii  libplexus-interpolation-java 1.19-1
ii  libplexus-sec-dispatcher-java1.3.1-6
ii  libplexus-utils2-java3.0.15-1
ii  libsisu-guice-java   3.2.4-1
ii  libsisu-ioc-java 2.3.0-5
ii  libwagon2-java   2.7-1
ii  openjdk-7-jre [java5-runtime]7u71-2.5.3-2
ii  openjdk-7-jre-headless [java5-runtime-headless]  7u71-2.5.3-2
ii  oracle-java7-jdk [java5-runtime-headless]7u71

maven recommends no packages.

maven suggests no packages.

-- no debconf information

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#775987: java-package: Java 8 packages should provide java5-runtime[-headless]

2015-01-22 Thread Laurens Blankers
On 22-1-2015 16:23, Emmanuel Bourg wrote:
 I'm reassigning this issue to java-package. If you have some time to
 work on a patch for make-jpkg that would be nice (with a loop
 generating the dependencies from 5 to n).
Attached is a simple patch against HEAD. It is not the prettiest
solution, but I believe it works.

Laurens
diff --git a/lib/jdk.sh b/lib/jdk.sh
index 8858bb6..1c75876 100644
--- a/lib/jdk.sh
+++ b/lib/jdk.sh
@@ -13,12 +13,18 @@ j2sdk_control() {
 # No browser on ARM yet
 java_browser_plugin=
 fi
+for i in `seq 5 ${j2se_release}`;
+do
+provides_runtime=${provides_runtime} java${i}-runtime,
+provides_headless=${provides_headless} java${i}-runtime-headless,
+provides_sdk=${provides_sdk} java${i}-sdk,
+done
 cat  EOF
 Package: $j2se_package
 Architecture: any
 Depends: \${misc:Depends}, $depends
 Recommends: netbase
-Provides: java-virtual-machine, java-runtime, java2-runtime, 
java${j2se_release}-runtime, java$((${j2se_release}-1))-runtime, 
java$((${j2se_release}-2))-runtime, $java_browser_plugin java-compiler, 
java2-compiler, java-runtime-headless, java2-runtime-headless, 
java${j2se_release}-runtime-headless, 
java$((${j2se_release}-1))-runtime-headless, 
java$((${j2se_release}-2))-runtime-headless, java-sdk, java2-sdk, 
java$((${j2se_release}-2))-sdk, java$((${j2se_release}-1))-sdk, 
java${j2se_release}-sdk
+Provides: java-virtual-machine, java-runtime, java2-runtime, $provides_runtime 
$java_browser_plugin java-compiler, java2-compiler, java-runtime-headless, 
java2-runtime-headless, $provides_headless java-sdk, java2-sdk, $provides_sdk
 Description: $j2se_title
  The Java(TM) SE JDK is a development environment for building
  applications, applets, and components that can be deployed on the
diff --git a/lib/jre.sh b/lib/jre.sh
index b19e6ce..93aed8b 100644
--- a/lib/jre.sh
+++ b/lib/jre.sh
@@ -1,12 +1,17 @@
 
 j2re_control() {
 j2se_control
+for i in `seq 5 ${j2se_release}`;
+do
+provides_runtime=${provides_runtime} java${i}-runtime,
+provides_headless=${provides_headless} java${i}-runtime-headless,
+done
 cat  EOF
 Package: $j2se_package
 Architecture: any
 Depends: \${misc:Depends}, \${shlibs:Depends}
 Recommends: netbase
-Provides: java-virtual-machine, java-runtime, java2-runtime, 
java${j2se_release}-runtime, java$((${j2se_release}-1))-runtime, 
java$((${j2se_release}-2))-runtime, java-runtime-headless, 
java2-runtime-headless, java${j2se_release}-runtime-headless, 
java$((${j2se_release}-1))-runtime-headless, 
java$((${j2se_release}-2))-runtime-headless, java-browser-plugin
+Provides: java-virtual-machine, java-runtime, java2-runtime, $provides_runtime 
java-runtime-headless, java2-runtime-headless, $provides_headless 
java-browser-plugin
 Description: $j2se_title
  The Java(TM) SE Runtime Environment contains the Java virtual machine,
  runtime class libraries, and Java application launcher that are
__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#775987: maven: Maven depends on openjdk exclusively

2015-01-22 Thread Laurens Blankers
Hi Emanual,

You're right. The problem only occurs with Java 8 not 7. If I modify
make-jpkg to also include release-3 the problem is resolved.

The way make-jpkg determines which virtual packages is provides is
currently hard-coded for Java 7, so there is also a problem for Java 6
(java4-runtime will be provided) as well as for any version beyond 9.

What would you like me to do? Close this issue create a new one on
java-package? Move this issue (how?)? How about the ant package, it
depends also on java{6,7}-runtime, which is not wrong, but not necessary
either, is that also a separate bug?

Laurens

On 22-1-2015 13:50, Emmanuel Bourg wrote:
 Hi Laurens,

 Thank you for the report. I think this is actually an issue with
 java-package. The package generated by make-jpkg provides
 javan-runtime[-headless] with n covering the last 3 versions. So for
 Java 8 it provides java{6,7,8}-runtime but not java5-runtime as required
 by maven.

 We should modify make-jpkg and provide all runtimes since Java 5.

 Emmanuel Bourg

__
This is the maintainer address of Debian's Java team
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#445848: Bug #445848

2008-04-26 Thread Laurens Blankers
severity 445848 important
thanks

This is rather important because it prevents tomcat from starting.

Adding /usr/share/java/commons-logging.jar to JSVC_CLASSPATH in 
/etc/init.d/tomcat5.5 resolves (or at least works around) the problem.

Laurens



___
pkg-java-maintainers mailing list
pkg-java-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers