You are not logged in.
I've got a package for Cacao and JamVM. The problem is if Proprietary Java is installed it creates BOOTCLASSPATH & CLASSPATH environment variables. If they are set then Cacao & JamVM will not operate, so the variables have to be unset.
So Here's my question:
Should I make sure those variables are unset, or should I echo a message that tells the user to make sure they aren't set?
If I should unset those variables: what would be an acceptible way to do that?
Offline
Can't you write a wrapper script that does all this automatically?
Offline
Can't you write a wrapper script that does all this automatically?
you mean just write a bash script that unsets those, and then calls the apps?
Offline
Yeah
pseudo for jamvm.sh
set classpaths
/usr/share/jamvm/bin/jamvm [args]
reset classpaths
The user types jamvm myclass and it calls the script, sets the new paths, passes the args to jamvm, and once completed, puts the old paths back.
Would this not do?
Offline
Yeah
pseudo for jamvm.sh
set classpaths /usr/share/jamvm/bin/jamvm [args] reset classpaths
The user types jamvm myclass and it calls the script, sets the new paths, passes the args to jamvm, and once completed, puts the old paths back.
Would this not do?
Yes that would work indeed. However, how do I pass the args to jamvm effectively?
EDIT: nvmd, I figured it out. So if I use that script. How would I use it in the PKGBUILD, and where would I put JamVM now?
Would i just use --prefix=/usr/share (or something like that?). And have the .install copy the script to /usr/bin?
Offline
Look at other PKGBUILDs that come with a wrapper shell script. There's one for Jacman. And I think there's one for jedit too that passes arguments.
Offline
Look at other PKGBUILDs that come with a wrapper shell script. There's one for Jacman. And I think there's one for jedit too that passes arguments.
Okay cool. Thanks for the wisdom.
Offline
arooaroo wrote:Look at other PKGBUILDs that come with a wrapper shell script. There's one for Jacman. And I think there's one for jedit too that passes arguments.
Okay cool. Thanks for the wisdom.
Gulp. No one's said that to me before!
Offline
Bison wrote:arooaroo wrote:Look at other PKGBUILDs that come with a wrapper shell script. There's one for Jacman. And I think there's one for jedit too that passes arguments.
Okay cool. Thanks for the wisdom.
Gulp. No one's said that to me before!
AH! Now I don't know if I should even unset those variables. You can technical use those with cacao, but it messes things up if you let proprietary java set those (which it did on mine).
So should I wrap the program? or let the user worry about it and echo a message.
Offline