With a little side of applesauce...

Wednesday, March 12, 2008

Ubuntu Gutsy - jde fails to install

jde was failing to install on Gutsy:

Selecting previously deselected package jde.
(Reading database ... 120077 files and directories currently installed.)
Unpacking jde (from .../archives/jde_2.3.5.1-2_all.deb) ...
Setting up jde (2.3.5.1-2) ...
Error in `/usr/share/doc-base/jde', line 1: the first line does not contain valid `Document' field
dpkg: error processing jde (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
jde
E: Sub-process /usr/bin/dpkg returned an error code (1)


This bug was filed:
http://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg122466.html

This temporary fix is:

sudo dpkg --purge jde
sudo apt-get install cogre cedet-contrib
sudo apt-get source jde
sudo sed -i '1,2d' ./jde-2.3.5.1/debian/jde.doc-base
sudo sed -i '1i\Document: jde\nSection: Apps\/Programming;' ./jde-2.3.5.1/debian/jde.doc-base
cd jde-2.3.5.1/
sudo debian/rules binary
cd ..
sudo dpkg -i jde_2.3.5.1-2_all.deb


The patch for jde-2.3.5.1 is:

--- /tmp/jde.doc-base.orig 2008-03-12 12:23:44.000000000 -0500
+++ debian/jde.doc-base 2008-03-12 12:16:08.000000000 -0500
@@ -1,5 +1,5 @@
-Section: Apps/Programming
Document: jde
+Section: Apps/Programming;
Title: JDEE JDE User's Guide
Author: Paul Kinnucan
Abstract: This guide explains how to use the JDE to develop Java applications


This is fixed in Hardy:

hardy (devel): JDEE, Java Development Environment for Emacs(en) [multiverse]
2.3.5.1-4: all

According to the diff.gz:
http://archive.ubuntu.com/ubuntu/pool/multiverse/j/jde/jde_2.3.5.1-4.diff.gz


--- jde-2.3.5.1.orig/debian/jde.doc-base
+++ jde-2.3.5.1/debian/jde.doc-base
@@ -0,0 +1,14 @@
+Document: jde
+Section: Apps/Programming
+Title: JDEE JDE User's Guide
+Author: Paul Kinnucan
+Abstract: This guide explains how to use the JDE to develop Java applications
+ and applets. The Java Development Environment (JDE) is an Emacs Lisp
+ package that interfaces Emacs to third-party Java application development
+ tools, such as those provided by JavaSoft's Java Development Kit (JDK). The
+ result is an integrated development environment (IDE) comparable in power to
+ many commercial Java IDEs.
+
+Format: HTML
+Index: /usr/share/doc/jde/html/jde-ug/jde-ug.html
+Files: /usr/share/doc/jde/html/jde-ug/*.html

No comments: