Bug#698998: felix-main: felix-framework requires java-wrappers to be installed, but it's not listed as a dependency

Sjors Gielen debianbts at sjorsgielen.nl
Sat Jan 26 01:44:26 UTC 2013


Package: felix-main
Version: 4.0.1-2
Severity: important

felix-main includes a script called "felix-framework", which is a short-hand
for starting the Felix framework in one go. This script sources the file
/usr/lib/java-wrappers/java-wrappers.sh without checking whether that file
exists. The file comes from the java-wrappers package, but that package is not
listed as a dependency for felix-main. This causes using the felix-framework
tool to fail if java-wrappers is not installed.

Two solutions are possible: java-wrappers can be added as a run-time dependency
for the felix-main package, or a check can be added to the tool not to source
the /usr/lib/java-wrappers/java-wrappers.sh file if it doesn't exist.

Without the felix-framework short-hand, the Felix framework can still be used
by calling "java -jar /usr/share/felix-framework/bin/felix.jar" yourself.
Therefore I'm giving this bug Severity: important for breaking a normal
use-case but not breaking the pacakge completely.

    sjors at foo:~$ felix-framework
    /usr/bin/felix-framework: 9: .: Can't open /usr/lib/java-wrappers/java-wrappers.sh
    sjors at foo:~$ sudo apt-get install java-wrappers
    […]
    sjors at foo:~$ felix-framework
    […]
    Welcome to Apache Felix Gogo
    
    g!

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

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages felix-main depends on:
ii  libfelix-bundlerepository-java  1.6.6-1
ii  libfelix-gogo-command-java      0.12.0-2
ii  libfelix-gogo-runtime-java      0.10.0-2
ii  libfelix-gogo-shell-java        0.10.0-2
ii  libfelix-main-java              4.0.1-2

felix-main recommends no packages.

Versions of packages felix-main suggests:
pn  libfelix-main-java-doc  <none>

-- no debconf information



More information about the pkg-java-maintainers mailing list