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

version graph

Package: felix-main; Maintainer for felix-main is Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>; Source for felix-main is src:felix-main.

Reported by: Sjors Gielen <debianbts@sjorsgielen.nl>

Date: Sat, 26 Jan 2013 01:51:06 UTC

Severity: important

Found in version felix-main/4.0.1-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#698998; Package felix-main. (Sat, 26 Jan 2013 01:51:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sjors Gielen <debianbts@sjorsgielen.nl>:
New Bug report received and forwarded. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (Sat, 26 Jan 2013 01:51:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Sjors Gielen <debianbts@sjorsgielen.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: felix-main: felix-framework requires java-wrappers to be installed, but it's not listed as a dependency
Date: Sat, 26 Jan 2013 02:44:26 +0100
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@foo:~$ felix-framework
    /usr/bin/felix-framework: 9: .: Can't open /usr/lib/java-wrappers/java-wrappers.sh
    sjors@foo:~$ sudo apt-get install java-wrappers
    […]
    sjors@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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>:
Bug#698998; Package felix-main. (Tue, 30 Apr 2013 15:57:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Verica <verica.lcroft@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>. (Tue, 30 Apr 2013 15:57:04 GMT) Full text and rfc822 format available.

Message #10 received at 698998@bugs.debian.org (full text, mbox):

From: Verica <verica.lcroft@gmail.com>
To: 698998@bugs.debian.org
Subject: felix-main: felix-framework requires java-wrappers to be installed, patch
Date: Tue, 30 Apr 2013 17:55:20 +0200
[Message part 1 (text/plain, inline)]
Hello,
I hope this simple patch sample would be of some help.

Kind regards,
Verica Lazova
[felix_framework_without_java-wrappers.patch (text/x-patch, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 10:53:38 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.