Package: tj3
Version: 3.6.0-1
Severity: normal
Tags: patch
Dear Maintainer,
Reports generated by tj3 do not display with the expected css and icons, and do
not run the expected javascript when viewed in a web browser.
This problem can be reproduced with the included tutorial example file:
zcat /usr/share/doc/tj3/examples/Tutorial/tutorial.tjp.gz > /tmp/tutorial.tjp
tj3 /tmp/tutorial.tjp
Open the file /tmp/Overview.html.
When tj3 generates a report, it should copy the css, icons and scripts
directories from its data folder to the report output folder.
This appears not to be happening at the moment, due to the way the path to the
data folder is patched by the package.
The attached patch to the data-search-dirs-debian patch should resolve the
issue.
Thank you.
Christopher Hoskin
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages tj3 depends on:
ii ruby 1:2.3.0+4
ii ruby-mail 2.6.4+dfsg1-1
ii ruby-term-ansicolor 1.3.0-1
tj3 recommends no packages.
tj3 suggests no packages.
-- no debconf information
diff --git a/debian/patches/data-search-dirs-debian.patch b/debian/patches/data-search-dirs-debian.patch
index 56a92ff..a6b6fd5 100644
--- a/debian/patches/data-search-dirs-debian.patch
+++ b/debian/patches/data-search-dirs-debian.patch
@@ -15,7 +15,7 @@ index 11a214be0fea..b853ef86c527 100644
- # always work.
- dirs << File.join(File.dirname(__FILE__), '..', '..', baseDir)
+ # For Debian package:
-+ dirs << '/usr/share/taskjuggler/'
++ dirs << File.join('/usr/share/taskjuggler/', baseDir)
# This hopefully works for all setups. Otherwise we have to add more
# alternative pathes.