Bug#557685: libspring-web-2.5-java: Add dependencies to classpath

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#557685: libspring-web-2.5-java: Add dependencies to classpath

Onkar Shinde-3
Package: libspring-web-2.5-java
Version: 2.5.6.SEC01-6
Severity: normal

Please add the dependencies of this package to the classpath so that (build)rdepends don't have to specifically take into consideration those depedencies.
This can be solved by adding appropriate jar file names (with full path if necessary) in a 'Class-Path' entry to MANIFEST.MF. You can either patch the upstream manifest file or create the classpath entry on the fly. Refer to [1] and [2] for examples.

[1] http://svn.debian.org/viewsvn/pkg-java/trunk/commons-httpclient/debian/patches/04_fix_classpath.patch?revision=11036&view=markup
[2] http://svn.debian.org/viewsvn/pkg-java/trunk/libxstream-java/debian/patches/01_fix_classpath.diff?revision=10995&view=markup


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.30-2-powerpc
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libspring-web-2.5-java depends on:
ii  default-jre [java2-runtime 1.6-33        Standard Java or Java compatible R
ii  libspring-context-2.5-java 2.5.6.SEC01-6 modular Java/J2EE application fram
ii  openjdk-6-jre [java2-runti 6b16-4        OpenJDK Java runtime, using Hotspo

Versions of packages libspring-web-2.5-java recommends:
pn  libaxis-java                  <none>     (no description available)
ii  libcommons-httpclient-java    3.1-8      A Java(TM) library for creating HT
pn  libstruts1.2-java             <none>     (no description available)

Versions of packages libspring-web-2.5-java suggests:
pn  glassfish-appserv             <none>     (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#557685: libspring-web-2.5-java: Add dependencies to classpath

Damien Raude-Morvan-3
On Tue, 24 Nov 2009 00:09:13 +0530, Onkar Shinde <[hidden email]>
wrote:

Hi Onkar,

> Please add the dependencies of this package to the classpath so that
> (build)rdepends don't have to specifically take into consideration those
> depedencies.

Nice idea, I'll try to do that on Spring Framework JARs (12).

BTW, did someone already used tools out there to automate this ?
- build 'Class-Path' entry from CDBS DEB_JARS variable (with excluding
capabilities - junit, antlr, ant-*)
- or use 'Class-Path' entry from JAR to generate Depends field in
debian/control
- or use Maven pom.xml "dependencies" to generate Depends field AND
'Class-Path' entry

I've found java-propose-classpath on Debian wiki
(http://wiki.debian.org/Java/Packaging) but I've never used it.
And it seems only

Without some tooling, maintaining all this (POM/Depends field/Class-Path
entry) in sync by hand seems very error-prone.

Cheers,
--
Damien



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#557685: libspring-web-2.5-java: Add dependencies to classpath

Onkar Shinde-2
On Tue, Nov 24, 2009 at 8:27 PM, Damien Raude-Morvan
<[hidden email]> wrote:

> On Tue, 24 Nov 2009 00:09:13 +0530, Onkar Shinde <[hidden email]>
> wrote:
>
> Hi Onkar,
>
>> Please add the dependencies of this package to the classpath so that
>> (build)rdepends don't have to specifically take into consideration those
>> depedencies.
>
> Nice idea, I'll try to do that on Spring Framework JARs (12).
>
> BTW, did someone already used tools out there to automate this ?
> - build 'Class-Path' entry from CDBS DEB_JARS variable (with excluding
> capabilities - junit, antlr, ant-*)
> - or use 'Class-Path' entry from JAR to generate Depends field in
> debian/control
> - or use Maven pom.xml "dependencies" to generate Depends field AND
> 'Class-Path' entry
>
> I've found java-propose-classpath on Debian wiki
> (http://wiki.debian.org/Java/Packaging) but I've never used it.
> And it seems only
>
> Without some tooling, maintaining all this (POM/Depends field/Class-Path
> entry) in sync by hand seems very error-prone.

jh_depends and jh_classpath from javahelper may be useful. I have
never used those tools personally.


Onkar



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]