[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#728906: pu: package netbeans/7.0.1+dfsg1-6



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu

Hi.

The netbeans package is currently broken due to the openjdk-6-jdk bug #720684.
The associated upstream bug JDK-8021890 is marked as "Won't fix". Broken means
that creation of projects is not possible, which I would consider a severe loss
of functionality.

The new version changes the dependency to openjdk-7-jdk and modifies the
netbeans launcher script to use that jdk. This is not to be taken lightly since
it may trigger an openjdk-7-jdk installation when upgrading.

In addition two bugs of severity important are fixed by adding classpath
arguments in the launcher script.

Note that I am not an uploader but will post an RFS to the Debian Java mailing
list if this is accepted.

Sincerely,
Joachim

changelog:
netbeans (7.0.1+dfsg1-6) stable; urgency=medium

  * Workaround for bug #720684 in openjdk-6-jdk.
      - Changes the jdk dependency to openjdk-7-jdk.
      - Changes the laucher script to use openjdk-7-jdk.
  * Workaround for bug #698514 (Closes: #698514, Closes: #668015).
      Adds a classpath command line argument in the launcher.
  * Workaround for bug #677125 (Closes: #677125, Closes: #653915).
      Adds a classpath command line argument in the launcher.

 -- Joachim Zobel <jz-2013@heute.morgen.de>  Sun, 03 Nov 2013 14:46:31 +0100

-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
diff --git a/debian/control b/debian/control
index ce0b7f7..8223848 100644
--- a/debian/control
+++ b/debian/control
@@ -116,7 +116,7 @@ Description: Java LayoutManager to allow placement in absolute positions
 Package: netbeans
 Architecture: all
 Depends: ${java:Depends}, ${misc:Depends}, libnb-platform13-java (>= 7.0),
- openjdk-6-jdk | java6-sdk | java7-sdk,
+ openjdk-7-jdk,
  libnb-ide14-java (= ${binary:Version}), 
  libnb-java5-java (= ${binary:Version}),
  libnb-apisupport3-java (= ${binary:Version})
Patches that hopefully can be removed after 7.0.1

Patches that hopefully can be removed after 7.0.1
 
Index: netbeans-7.0.1+dfsg1/ide/launcher/unix/netbeans
===================================================================
--- netbeans-7.0.1+dfsg1/ide/launcher/unix/netbeans
+++ netbeans-7.0.1+dfsg1/ide/launcher/unix/netbeans
@@ -174,6 +174,11 @@
 	netbeans_default_options="-J-XX:MaxPermSize=384m ${netbeans_default_options}"
 fi
 
+# "Fixes" #698514 and #677125 by working around.
+netbeans_default_options="${netbeans_default_options} \
+    --cp:a /usr/share/java/svnClientAdapter.jar \
+    --cp:a /usr/share/java/xercesImpl.jar"
+
 launchNbexec() {
     nbexec=`grep -v "^#" "$progdir"/../etc/netbeans.clusters | grep -v "^$" | grep platform | while read X; do
         if expr "$X" : "/.*" >/dev/null; then
@@ -195,6 +200,16 @@
     fi
 }
 
+# Workaround for #720684, which is a broken openjdk-6
+# with a won't fix bug. See JDK-8021890.
+if [ -z "$netbeans_jdkhome" ] ; then
+    # if $netbeans_jdkhome has been set, we respect the choice
+    # Otherwise we use openjdk-7
+    jvmpath=/usr/lib/jvm
+    jdk7=`ls -1 $jvmpath | grep java-7-openjdk | grep -v common | head -1`
+    netbeans_jdkhome=$jvmpath/$jdk7
+fi
+
 # in case of macosx, the apple.laf.useScreenMenuBar property should be ideally in the Info.plist file
 # but it doesn't get propagated into the executed java VM. 
 case "`uname`" in

Reply to: