Re: Manifests are dangerous (Re: Symlinking jars is dangerous)

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 06:10:43PM -0700, Joe Emenaker wrote: > > > My turn to say "tread carefully". > > > > Symlinking jars can be dangerous, because jars can contain a Class-path: > > line in their manifests. These Class-path: lines contain relative > > references to other jars. > > I'm not re

Re: j2se1.3 now in /Incoming

2001-09-18 Thread Ben Burton
Hi. I checked out the j2se1.3 packages and they look great; good work on finally getting them in debian proper. :) I do have one question, and you're going to hate me for it but I'm going to ask it anyway. What are we doing about the java2 dependency issue? There was a long thread about this r

Re: Summary of the idéas.

2001-09-18 Thread Ben Burton
> I'd have thought program-specific jars are by definition, not shared, > and therefore do not belong on /usr/share? False. In java there's precious little difference between programs and binaries; they're often both jar files where the program simply has a class hiding somewhere with a main() m

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 05:45:14PM -0700, Joe Emenaker wrote: > > > I have half a gig of open source Java on my hdd, which amounts to a lot > > of projects. With this scheme, I'd spend half my life twiddling the > > JAVA_PROJ_LIB variable to point to whichever project I'm currently > > interested

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Anders Jackson
Jeff Turner <[EMAIL PROTECTED]> writes: > On Wed, Sep 19, 2001 at 03:35:20AM +0200, Anders Jackson wrote: > > Jeff Turner <[EMAIL PROTECTED]> writes: > > > > [...] > > > > > As long as it's not purely additive. I want to be able to remove stuff > > > from the classpath, not just add my stuff. Th

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Wed, Sep 19, 2001 at 03:35:20AM +0200, Anders Jackson wrote: > Jeff Turner <[EMAIL PROTECTED]> writes: > > [...] > > > As long as it's not purely additive. I want to be able to remove stuff > > from the classpath, not just add my stuff. There are various subtle > > problems that can occur othe

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 12:40:01PM -0700, Joe Emenaker wrote: > > > > I would argue all classpath manipulation should be done in JVM/compiler > > > startup scripts and Java application startup scripts. > > > > I think you're right. > > Me, too. And this has been what I've been pushing for from th

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Anders Jackson
Jeff Turner <[EMAIL PROTECTED]> writes: [...] > As long as it's not purely additive. I want to be able to remove stuff > from the classpath, not just add my stuff. There are various subtle > problems that can occur otherwise: Make /usr/bin/java a modified version of your proj.sh, wher you add th

Re: Symlinking jars is dangerous (Re: The evils of /usr/share/java/repository)

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 07:13:49PM -0500, Ben Burton wrote: > > > Another point about lib/ext. The JVM treats all jars in lib/ext as > > priveleged, like java.lang.*. > > It goes beyond this; policy should not say *anything* about lib/ext at all > because our system has to support all available J

Manifests are dangerous (Re: Symlinking jars is dangerous)

2001-09-18 Thread Joe Emenaker
> My turn to say "tread carefully". > > Symlinking jars can be dangerous, because jars can contain a Class-path: > line in their manifests. These Class-path: lines contain relative > references to other jars. I'm not really an advocate of the symlinking idea, but am I the only one that thinks tha

Re: Summary of the idéas.

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 02:44:00PM +0200, Ola Lundqvist wrote: > Hi > > I'll try to summarize what have come up so far during the > discussion. [snip good stuff] > To discuss: > --- > > * Should we allow library packages to provide different versions? > Like libxalan2 that provides bot

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Joe Emenaker
> I have half a gig of open source Java on my hdd, which amounts to a lot > of projects. With this scheme, I'd spend half my life twiddling the > JAVA_PROJ_LIB variable to point to whichever project I'm currently > interested in. Well, you can mitigate this by making JAVA_PROJ_LIB something like

Re: Manifests are dangerous (Re: Symlinking jars is dangerous)

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 06:10:43PM -0700, Joe Emenaker wrote: > > > My turn to say "tread carefully". > > > > Symlinking jars can be dangerous, because jars can contain a Class-path: > > line in their manifests. These Class-path: lines contain relative > > references to other jars. > > I'm not r

Re: Symlinking jars is dangerous (Re: The evils of /usr/share/java/repository)

2001-09-18 Thread Ben Burton
> Another point about lib/ext. The JVM treats all jars in lib/ext as > priveleged, like java.lang.*. It goes beyond this; policy should not say *anything* about lib/ext at all because our system has to support all available JVMs, not just sun ports. Think kaffe, orp, etc. Ben.

Re: j2se1.3 now in /Incoming

2001-09-18 Thread Ben Burton
Hi. I checked out the j2se1.3 packages and they look great; good work on finally getting them in debian proper. :) I do have one question, and you're going to hate me for it but I'm going to ask it anyway. What are we doing about the java2 dependency issue? There was a long thread about this

Re: Summary of the idéas.

2001-09-18 Thread Ben Burton
> I'd have thought program-specific jars are by definition, not shared, > and therefore do not belong on /usr/share? False. In java there's precious little difference between programs and binaries; they're often both jar files where the program simply has a class hiding somewhere with a main()

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 05:45:14PM -0700, Joe Emenaker wrote: > > > I have half a gig of open source Java on my hdd, which amounts to a lot > > of projects. With this scheme, I'd spend half my life twiddling the > > JAVA_PROJ_LIB variable to point to whichever project I'm currently > > interested

Symlinking jars is dangerous (Re: The evils of /usr/share/java/repository)

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 02:15:04PM -0700, Bill Wohler wrote: > Ben Burton <[EMAIL PROTECTED]> writes: > > /usr/share/java/foo-version.jar > > /usr/share/java/foo.jar -> foo-version.jar > > Tread carefully. This could have unpredictable results. > > The extension directory $JAVA_HOME/jre/lib/e

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Anders Jackson
Jeff Turner <[EMAIL PROTECTED]> writes: > On Wed, Sep 19, 2001 at 03:35:20AM +0200, Anders Jackson wrote: > > Jeff Turner <[EMAIL PROTECTED]> writes: > > > > [...] > > > > > As long as it's not purely additive. I want to be able to remove stuff > > > from the classpath, not just add my stuff. T

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 12:40:01PM -0700, Joe Emenaker wrote: > > > > I would argue all classpath manipulation should be done in JVM/compiler > > > startup scripts and Java application startup scripts. > > > > I think you're right. > > Me, too. And this has been what I've been pushing for from t

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Wed, Sep 19, 2001 at 03:35:20AM +0200, Anders Jackson wrote: > Jeff Turner <[EMAIL PROTECTED]> writes: > > [...] > > > As long as it's not purely additive. I want to be able to remove stuff > > from the classpath, not just add my stuff. There are various subtle > > problems that can occur oth

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Anders Jackson
Jeff Turner <[EMAIL PROTECTED]> writes: [...] > As long as it's not purely additive. I want to be able to remove stuff > from the classpath, not just add my stuff. There are various subtle > problems that can occur otherwise: Make /usr/bin/java a modified version of your proj.sh, wher you add t

Re: Symlinking jars is dangerous (Re: The evils of /usr/share/java/repository)

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 07:13:49PM -0500, Ben Burton wrote: > > > Another point about lib/ext. The JVM treats all jars in lib/ext as > > priveleged, like java.lang.*. > > It goes beyond this; policy should not say *anything* about lib/ext at all > because our system has to support all available

Manifests are dangerous (Re: Symlinking jars is dangerous)

2001-09-18 Thread Joe Emenaker
> My turn to say "tread carefully". > > Symlinking jars can be dangerous, because jars can contain a Class-path: > line in their manifests. These Class-path: lines contain relative > references to other jars. I'm not really an advocate of the symlinking idea, but am I the only one that thinks th

Re: Summary of the idéas.

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 02:44:00PM +0200, Ola Lundqvist wrote: > Hi > > I'll try to summarize what have come up so far during the > discussion. [snip good stuff] > To discuss: > --- > > * Should we allow library packages to provide different versions? > Like libxalan2 that provides bo

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Joe Emenaker
> I have half a gig of open source Java on my hdd, which amounts to a lot > of projects. With this scheme, I'd spend half my life twiddling the > JAVA_PROJ_LIB variable to point to whichever project I'm currently > interested in. Well, you can mitigate this by making JAVA_PROJ_LIB something like

j2se1.3 now in /Incoming

2001-09-18 Thread Stephen Zander
The following just entered .../Incoming. I'd like to thank Matthias Klose for all his work. He is largely responsible for the existence of these packages. There will be sparc and ppc packages in .../Incoming shortly. -BEGIN PGP SIGNED MESSAGE- Format: 1.7 Date: Thu, 13 Sep 2001 01:13:

Re: Symlinking jars is dangerous (Re: The evils of /usr/share/java/repository)

2001-09-18 Thread Ben Burton
> Another point about lib/ext. The JVM treats all jars in lib/ext as > priveleged, like java.lang.*. It goes beyond this; policy should not say *anything* about lib/ext at all because our system has to support all available JVMs, not just sun ports. Think kaffe, orp, etc. Ben. -- To UNSUBSCR

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Bill Wohler
Ben Burton <[EMAIL PROTECTED]> writes: > /usr/share/java/foo-version.jar > /usr/share/java/foo.jar -> foo-version.jar Tread carefully. This could have unpredictable results. The extension directory $JAVA_HOME/jre/lib/ext currently points to /usr/share/java, so /usr/share/java is serving as

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Ben Burton
> > /usr/share/java/foo-version.jar > > /usr/share/java/foo.jar -> foo-version.jar > > Tread carefully. This could have unpredictable results. > > The extension directory $JAVA_HOME/jre/lib/ext currently points to > /usr/share/java, so /usr/share/java is serving as the extension > director

Symlinking jars is dangerous (Re: The evils of /usr/share/java/repository)

2001-09-18 Thread Jeff Turner
On Tue, Sep 18, 2001 at 02:15:04PM -0700, Bill Wohler wrote: > Ben Burton <[EMAIL PROTECTED]> writes: > > /usr/share/java/foo-version.jar > > /usr/share/java/foo.jar -> foo-version.jar > > Tread carefully. This could have unpredictable results. > > The extension directory $JAVA_HOME/jre/lib/

Re: Large-scale java policy violations

2001-09-18 Thread Ola Lundqvist
On Tue, Sep 18, 2001 at 02:07:09PM -0500, Adam Heath wrote: > On Mon, 17 Sep 2001, Per Bothner wrote: > > > Stefan Gybas wrote: > > > > > Basically yes, but IMHO this should be the decision of the local admin > > > and not of the package maintainer. How could he know ig his package > > > contains

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Joe Emenaker
> > I would argue all classpath manipulation should be done in JVM/compiler > > startup scripts and Java application startup scripts. > > I think you're right. Me, too. And this has been what I've been pushing for from the get-go. > 1) What happens when classpath conflicts arise? Say I've insta

j2se1.3 now in /Incoming

2001-09-18 Thread Stephen Zander
The following just entered .../Incoming. I'd like to thank Matthias Klose for all his work. He is largely responsible for the existence of these packages. There will be sparc and ppc packages in .../Incoming shortly. -BEGIN PGP SIGNED MESSAGE- Format: 1.7 Date: Thu, 13 Sep 2001 01:13

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Ben Burton
> > /usr/share/java/foo-version.jar > > /usr/share/java/foo.jar -> foo-version.jar > > Tread carefully. This could have unpredictable results. > > The extension directory $JAVA_HOME/jre/lib/ext currently points to > /usr/share/java, so /usr/share/java is serving as the extension > directo

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Bill Wohler
Ben Burton <[EMAIL PROTECTED]> writes: > /usr/share/java/foo-version.jar > /usr/share/java/foo.jar -> foo-version.jar Tread carefully. This could have unpredictable results. The extension directory $JAVA_HOME/jre/lib/ext currently points to /usr/share/java, so /usr/share/java is serving as

Re: Large-scale java policy violations

2001-09-18 Thread Adam Heath
On Mon, 17 Sep 2001, Per Bothner wrote: > Stefan Gybas wrote: > > > Basically yes, but IMHO this should be the decision of the local admin > > and not of the package maintainer. How could he know ig his package > > contains "standard" jars? This means that no package should automatically > > put j

Re: Large-scale java policy violations

2001-09-18 Thread Ola Lundqvist
On Tue, Sep 18, 2001 at 02:07:09PM -0500, Adam Heath wrote: > On Mon, 17 Sep 2001, Per Bothner wrote: > > > Stefan Gybas wrote: > > > > > Basically yes, but IMHO this should be the decision of the local admin > > > and not of the package maintainer. How could he know ig his package > > > contains

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Mark Eichin
Just to chime in, as an occasional java user (ie. "oh, this program is in java, what do I have to figure out to run it -- oh, I can just apt-get install these java libs") I agree - installed java packages *should* be no less usable than installed C or Perl libraries. Perhaps that implies that the

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Joe Emenaker
> > I would argue all classpath manipulation should be done in JVM/compiler > > startup scripts and Java application startup scripts. > > I think you're right. Me, too. And this has been what I've been pushing for from the get-go. > 1) What happens when classpath conflicts arise? Say I've inst

Re: Large-scale java policy violations

2001-09-18 Thread Adam Heath
On Mon, 17 Sep 2001, Per Bothner wrote: > Stefan Gybas wrote: > > > Basically yes, but IMHO this should be the decision of the local admin > > and not of the package maintainer. How could he know ig his package > > contains "standard" jars? This means that no package should automatically > > put

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Mark Eichin
Just to chime in, as an occasional java user (ie. "oh, this program is in java, what do I have to figure out to run it -- oh, I can just apt-get install these java libs") I agree - installed java packages *should* be no less usable than installed C or Perl libraries. Perhaps that implies that th

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Sat, Sep 15, 2001 at 08:54:19PM -0400, Andrew Pimlott wrote: > On Thu, Sep 13, 2001 at 08:55:04PM +1000, jeff wrote: > > But I'll spare you that ranting; let's just say I think it's a > > horrifically bad idea to have a free-for-all in one's classpath. > > I tend to agree, though I should point

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
Joe, On Mon, Sep 17, 2001 at 07:13:46PM -0700, Joe Emenaker wrote: > > > On Mon, Sep 17, 2001 at 01:40:16PM -0700, Joe Emenaker wrote: > > My solution to the above problem is at: > > > > http://newgate.socialchange.net.au/~jeff/jpe/ [snip] > The lynchpin to what I'm proposing is that narrower-s

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Mon, Sep 17, 2001 at 01:40:16PM -0700, Joe Emenaker wrote: > > Why not just put the jars in /usr/share/java, keep the system classpath > > completely clean, and let the startup scripts for individual apps choose > which > > to include? > > Well, keep in mind that the original e-mail that starte

Summary of the idéas.

2001-09-18 Thread Ola Lundqvist
Hi I'll try to summarize what have come up so far during the discussion. Naming conventions: === Package naming: --- * Java programs should be named as any ordinary debian packages. * Libraries must (?) have the name lib[version]-java (where the version part is

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Sat, Sep 15, 2001 at 08:54:19PM -0400, Andrew Pimlott wrote: > On Thu, Sep 13, 2001 at 08:55:04PM +1000, jeff wrote: > > But I'll spare you that ranting; let's just say I think it's a > > horrifically bad idea to have a free-for-all in one's classpath. > > I tend to agree, though I should poin

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
Joe, On Mon, Sep 17, 2001 at 07:13:46PM -0700, Joe Emenaker wrote: > > > On Mon, Sep 17, 2001 at 01:40:16PM -0700, Joe Emenaker wrote: > > My solution to the above problem is at: > > > > http://newgate.socialchange.net.au/~jeff/jpe/ [snip] > The lynchpin to what I'm proposing is that narrower-

Re: The evils of /usr/share/java/repository

2001-09-18 Thread Jeff Turner
On Mon, Sep 17, 2001 at 01:40:16PM -0700, Joe Emenaker wrote: > > Why not just put the jars in /usr/share/java, keep the system classpath > > completely clean, and let the startup scripts for individual apps choose > which > > to include? > > Well, keep in mind that the original e-mail that start

Re: Large-scale java policy violations

2001-09-18 Thread Ola Lundqvist
On Mon, Sep 17, 2001 at 11:51:10PM +0200, Stefan Gybas wrote: > Ola Lundqvist wrote: > > > Yes it bothers me too. What bothers me more is that someone (I > > do not remember who) told me that I should name my package > > libxalan2-java instead of lib-xalan2-java. > > > This was probably me. I ha

Summary of the idéas.

2001-09-18 Thread Ola Lundqvist
Hi I'll try to summarize what have come up so far during the discussion. Naming conventions: === Package naming: --- * Java programs should be named as any ordinary debian packages. * Libraries must (?) have the name lib[version]-java (where the version part i

Re: Large-scale java policy violations

2001-09-18 Thread Ola Lundqvist
On Mon, Sep 17, 2001 at 11:51:10PM +0200, Stefan Gybas wrote: > Ola Lundqvist wrote: > > > Yes it bothers me too. What bothers me more is that someone (I > > do not remember who) told me that I should name my package > > libxalan2-java instead of lib-xalan2-java. > > > This was probably me. I h