Project

General

Profile

Actions

Bug #13946

open

Broken ditaa package makes it difficult to build docs in Trusty

Added by Nathan Cutler over 8 years ago. Updated over 4 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The ditaa package in Trusty appears to be seriously broken:

root@db3f2b436579:/# ditaa --help
/usr/bin/ditaa: line 1: $'PK\003\004': command not found
/usr/bin/ditaa: line 2: syntax error near unexpected token `)'
/usr/bin/ditaa: line 2: `�)�>   META-INF/PK'

As a result, it is impossible to build the documentation on Trusty because ./admin/build-doc fails.

Ah, but what is this?

root@db3f2b436579:/# file /usr/bin/ditaa
/usr/bin/ditaa: symbolic link to `../share/ditaa/ditaa.jar'

Workaround is to replace /usr/bin/ditaa (which is a symlink to the jar file) with a bash script:

#!/bin/sh
java -jar /usr/share/ditaa/ditaa.jar "$@" 

After this change, ditaa works just fine:

root@db3f2b436579:/# ditaa ditaa-test ditaa-test.out

ditaa version 0.9, Copyright (C) 2004--2009  Efstathios (Stathis) Sideris

Running with options:
Reading file: ditaa-test
Locale: en_US
Dialog.bold
Rendering to file: ditaa-test.out
Done in 0sec
root@db3f2b436579:/# file ditaa-test.out
ditaa-test.out: PNG image data, 140 x 98, 8-bit/color RGB, non-interlaced
Actions #1

Updated by Nathan Cutler over 8 years ago

  • Subject changed from ditaa package broken in Trusty to Broken ditaa package makes it difficult to build docs in Trusty
Actions #2

Updated by Nathan Cutler over 8 years ago

Obviously this is an upstream bug.

Actions #3

Updated by Nathan Cutler over 8 years ago

The bug has already been reported upstream: https://bugs.launchpad.net/ubuntu/+source/ditaa/+bug/1498832

Actions #4

Updated by Patrick Donnelly over 4 years ago

  • Status changed from 15 to Fix Under Review
Actions

Also available in: Atom PDF