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 ( ...
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)

This bug was filed:

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-
sudo sed -i '1i\Document: jde\nSection: Apps\/Programming;' ./jde-
cd jde-
sudo debian/rules binary
cd ..
sudo dpkg -i jde_2.3.5.1-2_all.deb

The patch for jde- 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] all

According to the diff.gz:

--- jde-
+++ jde-
@@ -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: