Re: findjava requirement

2003-09-26 Thread Jan Schulz
Hallo Ben, I have no idea, *when* my mail will arrive at the list (the last mails took four days each :( ), but anyway... * Ben Burton wrote: >Right. So when you have single command-line arguments that could >contain spaces and/or quotes, things can become very hairy very quickly. Yes. Bot are

Re: findjava requirement

2003-09-26 Thread Jan Schulz
Hallo Ben, I have no idea, *when* my mail will arrive at the list (the last mails took four days each :( ), but anyway... * Ben Burton wrote: >Right. So when you have single command-line arguments that could >contain spaces and/or quotes, things can become very hairy very quickly. Yes. Bot are

Re: findjava requirement

2003-09-26 Thread Jan Schulz
Hallo Ben, I've sent already an answer to this mail, but it seems that it never got out... * Ben Burton wrote: >If writing it in Perl means we're more confident in its correctness in >all cases, I say let's do it. I have no idea about perl, so it's either my sh or someone elses perl :) >Afte

Re: findjava requirement

2003-09-26 Thread Jan Schulz
Hallo Ben, I've sent already an answer to this mail, but it seems that it never got out... * Ben Burton wrote: >If writing it in Perl means we're more confident in its correctness in >all cases, I say let's do it. I have no idea about perl, so it's either my sh or someone elses perl :) >Afte

Re: findjava requirement

2003-09-26 Thread Ben Burton
> Bash (that's what it is written in currently. But I guess, that plain > sh isn't different here) will seperate all 'words' in your > commandline, if you don't quote them. Words in this case means, > everything, which is seperated by one of the chars in $IFS. Right. So when you have single comm

Re: findjava requirement

2003-09-26 Thread Ben Burton
> Bash (that's what it is written in currently. But I guess, that plain > sh isn't different here) will seperate all 'words' in your > commandline, if you don't quote them. Words in this case means, > everything, which is seperated by one of the chars in $IFS. Right. So when you have single comm

Re: findjava requirement

2003-09-26 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >On the other hand, Perl deals with things like quoting and other >problems resulting from unanticipated command-line arguments somewhat >better than sh does (e.g., you can start the JVM by passing its >command-line arguments as an array, not by some piece of sh blac

Re: findjava requirement

2003-09-26 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >On the other hand, Perl deals with things like quoting and other >problems resulting from unanticipated command-line arguments somewhat >better than sh does (e.g., you can start the JVM by passing its >command-line arguments as an array, not by some piece of sh blac

Re: Documenting "Debian JAVA_HOME" [was: Re: findjava requirement]

2003-09-24 Thread Jan Schulz
Hallo Grzegorz, * Grzegorz B. Prokopski wrote: >Is anyone willing to create "Debian Java_Home" document draft? >Or maybe you don't like the idea? Before you do that, please read the discussion, which has taken place since my first proposal. The first one did try to mandate a 'java-environment' an

Re: findjava requirement

2003-09-24 Thread T. Alexander Popiel
In message: <[EMAIL PROTECTED]> "T. Alexander Popiel" <[EMAIL PROTECTED]> writes: > >Inserting and/or modifying does get complex; shift and unshift >and modifying IFS quickly become instrumental. That should be '...shift and set and modifying...'. Today has not been a good day for a

Re: findjava requirement

2003-09-24 Thread T. Alexander Popiel
In message: <[EMAIL PROTECTED]> Ben Burton <[EMAIL PROTECTED]> writes: > >> FWIW, the black magic is "$*" (including the quotes). > >Do you mean "$@"? If so, this (and "$*") become somewhat more >troublesome when you need to modify command-line arguments or insert >your own. Yes, I

Re: Documenting "Debian JAVA_HOME" [was: Re: findjava requirement]

2003-09-24 Thread Jan Schulz
Hallo Grzegorz, * Grzegorz B. Prokopski wrote: >Is anyone willing to create "Debian Java_Home" document draft? >Or maybe you don't like the idea? Before you do that, please read the discussion, which has taken place since my first proposal. The first one did try to mandate a 'java-environment' an

Re: findjava requirement

2003-09-24 Thread Jan Schulz
Hallo Ean, * Ean Schuessler wrote: >For instance, I can now set JAVA_HOME on my machine to /usr/lib/kaffe >and run the standard startup scripts for Catalina, JBoss or OFBiz and >they will make a real attempt to run. Of course, there are still >shortfalls in the base class libraries but that is a

Re: findjava requirement

2003-09-24 Thread T. Alexander Popiel
In message: <[EMAIL PROTECTED]> "T. Alexander Popiel" <[EMAIL PROTECTED]> writes: > >Inserting and/or modifying does get complex; shift and unshift >and modifying IFS quickly become instrumental. That should be '...shift and set and modifying...'. Today has not been a good day for a

Re: findjava requirement

2003-09-24 Thread T. Alexander Popiel
In message: <[EMAIL PROTECTED]> Ben Burton <[EMAIL PROTECTED]> writes: > >> FWIW, the black magic is "$*" (including the quotes). > >Do you mean "$@"? If so, this (and "$*") become somewhat more >troublesome when you need to modify command-line arguments or insert >your own. Yes, I

Re: findjava requirement

2003-09-24 Thread Ben Burton
> FWIW, the black magic is "$*" (including the quotes). Do you mean "$@"? If so, this (and "$*") become somewhat more troublesome when you need to modify command-line arguments or insert your own. Ben.

Re: findjava requirement

2003-09-24 Thread Jan Schulz
Hallo Ean, * Ean Schuessler wrote: >For instance, I can now set JAVA_HOME on my machine to /usr/lib/kaffe >and run the standard startup scripts for Catalina, JBoss or OFBiz and >they will make a real attempt to run. Of course, there are still >shortfalls in the base class libraries but that is a

Re: findjava requirement

2003-09-24 Thread Ben Burton
> FWIW, the black magic is "$*" (including the quotes). Do you mean "$@"? If so, this (and "$*") become somewhat more troublesome when you need to modify command-line arguments or insert your own. Ben. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Co

Re: findjava requirement

2003-09-24 Thread T. Alexander Popiel
In message: <[EMAIL PROTECTED]> Ben Burton <[EMAIL PROTECTED]> writes: > >[...] some piece of sh black magic >that gets the quotes right and separates arguments - some of which >may contain spaces - at exactly the right places [1]). FWIW, the black magic is "$*" (including the quotes

Re: findjava requirement

2003-09-24 Thread T. Alexander Popiel
In message: <[EMAIL PROTECTED]> Ben Burton <[EMAIL PROTECTED]> writes: > >[...] some piece of sh black magic >that gets the quotes right and separates arguments - some of which >may contain spaces - at exactly the right places [1]). FWIW, the black magic is "$*" (including the quotes

Re: findjava requirement

2003-09-24 Thread Ben Burton
> What is findjava going to be written in again? Perl? That would suck if > that's the case. Surely we can find a way to launch a Java language > runtime without using the Perl language runtime. On the other hand, Perl deals with things like quoting and other problems resulting from unanticipated

Re: findjava requirement

2003-09-24 Thread Ben Burton
> What is findjava going to be written in again? Perl? That would suck if > that's the case. Surely we can find a way to launch a Java language > runtime without using the Perl language runtime. On the other hand, Perl deals with things like quoting and other problems resulting from unanticipated

Re: findjava requirement

2003-09-22 Thread Jan Schulz
Hallo Etienne, * Etienne Gagnon wrote: >libraries in /usr/lib/sablevm, and its executable in /usr/bin. Where >shouls JAVA_HOME point? [rhetorical question] Mandated by the new policy would be to point the JVM property (System.get...) java.home to /usr/lib/sablevm. In there should be the 'java-s

Re: findjava requirement

2003-09-22 Thread Jan Schulz
Hallo Etienne, * Etienne Gagnon wrote: >libraries in /usr/lib/sablevm, and its executable in /usr/bin. Where >shouls JAVA_HOME point? [rhetorical question] Mandated by the new policy would be to point the JVM property (System.get...) java.home to /usr/lib/sablevm. In there should be the 'java-s

Documenting "Debian JAVA_HOME" [was: Re: findjava requirement]

2003-09-22 Thread Grzegorz B. Prokopski
On Mon, 2003-09-22 at 13:32, Ean Schuessler wrote: > We want Java programs to run the interpreter using a common commandline > and directory layout. Many Java programs rely on the JAVA_HOME layout Well - it's abvious that we *don't want* every single program to separately support each single JVM.

Documenting "Debian JAVA_HOME" [was: Re: findjava requirement]

2003-09-22 Thread Grzegorz B. Prokopski
On Mon, 2003-09-22 at 13:32, Ean Schuessler wrote: > We want Java programs to run the interpreter using a common commandline > and directory layout. Many Java programs rely on the JAVA_HOME layout Well - it's abvious that we *don't want* every single program to separately support each single JVM.

Re: findjava requirement

2003-09-22 Thread Ean Schuessler
We want Java programs to run the interpreter using a common commandline and directory layout. Many Java programs rely on the JAVA_HOME layout even though it is an ill-defined non-standard. The path of least resistance is to formalize a definition of this standard and then tune up the behavior of pa

Re: findjava requirement

2003-09-22 Thread Ean Schuessler
We want Java programs to run the interpreter using a common commandline and directory layout. Many Java programs rely on the JAVA_HOME layout even though it is an ill-defined non-standard. The path of least resistance is to formalize a definition of this standard and then tune up the behavior of pa

Re: findjava requirement

2003-09-22 Thread Jan Schulz
Hallo Ean, * Ean Schuessler wrote: >> After having this discussion, because they are not 'similar enough' to >> rely on the alternative system. >Well, they *could be* similar enough if we specify exactly what Debian >expects a JAVA_HOME setup to provide. It's not the java.home or anything else. T

Re: findjava requirement

2003-09-22 Thread Etienne Gagnon
Dalibor Topic wrote: I think that JAVA_HOME is quite pointless, as the only good use for it seems to be to locate JNI headers. It's an ill-defined ad-hoc 'standard' that isn't even supported by Sun. Programs that rely on JAVA_HOME to be able to access internals of the VM are inherently broken, the

Re: findjava requirement

2003-09-22 Thread Jan Schulz
Hallo Ean, * Ean Schuessler wrote: >> After having this discussion, because they are not 'similar enough' to >> rely on the alternative system. >Well, they *could be* similar enough if we specify exactly what Debian >expects a JAVA_HOME setup to provide. It's not the java.home or anything else. T

Re: findjava requirement

2003-09-22 Thread Etienne Gagnon
Dalibor Topic wrote: I think that JAVA_HOME is quite pointless, as the only good use for it seems to be to locate JNI headers. It's an ill-defined ad-hoc 'standard' that isn't even supported by Sun. Programs that rely on JAVA_HOME to be able to access internals of the VM are inherently broken, they

Re: findjava requirement

2003-09-22 Thread Dalibor Topic
--- Ean Schuessler <[EMAIL PROTECTED]> wrote: > I'm still not clear on why we cannot require every VM to provide a more > specifically detailed version of the JAVA_HOME ad hoc standard. We > should have a document that lists all of the $JAVA_HOME/bin/..foo.. > $JAVA_HOME/lib/..bar.. locations tha

Re: findjava requirement

2003-09-22 Thread Dalibor Topic
--- Ean Schuessler <[EMAIL PROTECTED]> wrote: > I'm still not clear on why we cannot require every VM to provide a more > specifically detailed version of the JAVA_HOME ad hoc standard. We > should have a document that lists all of the $JAVA_HOME/bin/..foo.. > $JAVA_HOME/lib/..bar.. locations tha

Re: findjava requirement

2003-09-21 Thread Ean Schuessler
On Sun, 2003-09-21 at 17:03, Jan Schulz wrote: > sh. bash in this case, as I have not enough knowledge to make sure > thats 'sh-only'. Well, we can count on bash being there so that's ok. > After having this discussion, because they are not 'similar enough' to > rely on the alternative system.

Re: findjava requirement

2003-09-21 Thread Ean Schuessler
On Sun, 2003-09-21 at 17:03, Jan Schulz wrote: > sh. bash in this case, as I have not enough knowledge to make sure > thats 'sh-only'. Well, we can count on bash being there so that's ok. > After having this discussion, because they are not 'similar enough' to > rely on the alternative system.

Re: findjava requirement

2003-09-21 Thread Jan Schulz
Hallo Ean, * Ean Schuessler wrote: >What is findjava going to be written in again? Perl? sh. bash in this case, as I have not enough knowledge to make sure thats 'sh-only'. >I'm still not clear on why we cannot require every VM to provide a more >specifically detailed version of the JAVA_HOME a

Re: findjava requirement

2003-09-21 Thread Jan Schulz
Hallo Ean, * Ean Schuessler wrote: >What is findjava going to be written in again? Perl? sh. bash in this case, as I have not enough knowledge to make sure thats 'sh-only'. >I'm still not clear on why we cannot require every VM to provide a more >specifically detailed version of the JAVA_HOME a

Re: findjava requirement

2003-09-21 Thread Ean Schuessler
What is findjava going to be written in again? Perl? That would suck if that's the case. Surely we can find a way to launch a Java language runtime without using the Perl language runtime. I'm still not clear on why we cannot require every VM to provide a more specifically detailed version of the

Re: findjava requirement

2003-09-21 Thread Ean Schuessler
What is findjava going to be written in again? Perl? That would suck if that's the case. Surely we can find a way to launch a Java language runtime without using the Perl language runtime. I'm still not clear on why we cannot require every VM to provide a more specifically detailed version of the

Re: findjava requirement

2003-09-21 Thread Jan Schulz
Hallo Dalibor, * Dalibor Topic wrote: >Hm, this is another 'stupid by design' issue. Sun has specified jni.h but >hasn't specified the contents of jni_md.h. So it shouldn't be needed to build >JNI apps. But Sun's jni.h apparently includes jni_md.h without specifying its >search path. Unfortunately

Re: findjava requirement

2003-09-21 Thread Jan Schulz
Hallo Dalibor, * Dalibor Topic wrote: >Hm, this is another 'stupid by design' issue. Sun has specified jni.h but >hasn't specified the contents of jni_md.h. So it shouldn't be needed to build >JNI apps. But Sun's jni.h apparently includes jni_md.h without specifying its >search path. Unfortunately

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-21 Thread Dalibor Topic
--- Jan Schulz <[EMAIL PROTECTED]> wrote: > >> The 'findjava' algo was described in one of my mail. > >Hmm, I remember seeing it but I don't remember anyone suggesting that it > >be made compulsory. > > Dalibor argued quire havily for it :) Yes, I did. I think if debian had a java runtime selec

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-21 Thread Dalibor Topic
--- Jan Schulz <[EMAIL PROTECTED]> wrote: > >> The 'findjava' algo was described in one of my mail. > >Hmm, I remember seeing it but I don't remember anyone suggesting that it > >be made compulsory. > > Dalibor argued quire havily for it :) Yes, I did. I think if debian had a java runtime selec

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-19 Thread Jan Schulz
Hallo Ben, I like academic discusions :) * Ben Burton wrote: >> * editors or other interactive things (telnet, www-browser) >> * different version of the same tool (autoconf, gcc, shells) >> * apps which do not require commandline apps (x-session-manager) >> * things which behave the same (x-curs

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-19 Thread Jan Schulz
Hallo Ben, I like academic discusions :) * Ben Burton wrote: >> * editors or other interactive things (telnet, www-browser) >> * different version of the same tool (autoconf, gcc, shells) >> * apps which do not require commandline apps (x-session-manager) >> * things which behave the same (x-curs

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Ben Burton
> IMO the 'alternative system' is not used for this. Looking what > alternatives are installed in my system, they are either > * editors or other interactive things (telnet, www-browser) > * different version of the same tool (autoconf, gcc, shells) > * apps which do not require commandline apps (

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Ben Burton
> IMO the 'alternative system' is not used for this. Looking what > alternatives are installed in my system, they are either > * editors or other interactive things (telnet, www-browser) > * different version of the same tool (autoconf, gcc, shells) > * apps which do not require commandline apps (

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >> So we understand something differen when we talk about the >> 'alternative system' :). IMO your usecase would be called 'default >> system'. >Hmm? By "alternative system' I'm talking about packages using >update-alternatives in thier postinst scripts, etc. me to

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Ben Burton
> >Well, IMO the alternative system exists so that users don't need to > >learn how each different package works around it in its own different > >way. Instead it provides a standard system for setting system-wide > >defaults. > > So we understand something differen when we talk about the > 'alt

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >> So we understand something differen when we talk about the >> 'alternative system' :). IMO your usecase would be called 'default >> system'. >Hmm? By "alternative system' I'm talking about packages using >update-alternatives in thier postinst scripts, etc. me to

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, I've just uploade a new java_scripts.tar.gz package, with all the changes from today: * included the /etc/... possebility * the old scripts still refered to 'package.jars' files insetad of just 'package' * instead of the jars files I added a unit test script: test_java-scripts. Edit

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >Well, IMO the alternative system exists so that users don't need to >learn how each different package works around it in its own different >way. Instead it provides a standard system for setting system-wide >defaults. So we understand something differen when we ta

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Ben Burton
> >Well, IMO the alternative system exists so that users don't need to > >learn how each different package works around it in its own different > >way. Instead it provides a standard system for setting system-wide > >defaults. > > So we understand something differen when we talk about the > 'alt

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, I've just uploade a new java_scripts.tar.gz package, with all the changes from today: * included the /etc/... possebility * the old scripts still refered to 'package.jars' files insetad of just 'package' * instead of the jars files I added a unit test script: test_java-scripts. Edit

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >Well, IMO the alternative system exists so that users don't need to >learn how each different package works around it in its own different >way. Instead it provides a standard system for setting system-wide >defaults. So we understand something differen when we ta

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Ben Burton
> IMO you don't need to use teh alternative system, if you just 'work > around' it. YMMV... Well, IMO the alternative system exists so that users don't need to learn how each different package works around it in its own different way. Instead it provides a standard system for setting system-wide

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >We're talking about using it by default _if_and_only_if_ it's in the >list of known working JVMs. This is exactly the same thing you were >wanting from the findjava script. Your argument about incompatible JVMs >is not relevant to the point at hand, and if it were

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Ben Burton
> IMO you don't need to use teh alternative system, if you just 'work > around' it. YMMV... Well, IMO the alternative system exists so that users don't need to learn how each different package works around it in its own different way. Instead it provides a standard system for setting system-wide

Re: findjava requirement (was: 4. RfD for a new debian java policy)

2003-09-18 Thread Jan Schulz
Hallo Ben, * Ben Burton wrote: >We're talking about using it by default _if_and_only_if_ it's in the >list of known working JVMs. This is exactly the same thing you were >wanting from the findjava script. Your argument about incompatible JVMs >is not relevant to the point at hand, and if it were