ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Wed Jun 19, 2013 11:35 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
PostPosted: Thu Apr 26, 2007 1:29 pm 
Offline

Joined: Mon Nov 27, 2006 5:11 pm
Posts: 7
While in general things are running great on Solaris, there are several installation issues that I have come across:

1) All the scripts start with "#!/bin/sh" when really they are bash scripts (Linux's /bin/sh is a link to bash), with bash syntax, we really should be using /bin/bash at the start of the scripts.

2) The xdg-email and xdg-open scripts are never called - they appear to be attempted to be run as "open" and "email" - creating a symbolic link solved this problem for me, but I think this should be fixed in the Java code.

3) xdg-email uses awk, but on Solaris nawk should be used since it's more like gawk (linux's AWK) - specifically I was getting incorrect output for the sprintf calls in there and ending up with the body of my e-mails being link "This%%02Xis" instead of "This is".

I would fix these issue my self if I could, but I don't have access to any sources :wink: - roll on open sourcing!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 9:56 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Ok I will fix these problems for Solaris.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 8:07 am 
Offline

Joined: Mon Nov 27, 2006 5:11 pm
Posts: 7
Excellent, thanks!

BTW, for the record, since I reported this before, I'm using Java 1.6 with TR2.0Gamma and it's saving user preferences just fine... :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 03, 2007 3:48 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Quote:
1) All the scripts start with "#!/bin/sh" when really they are bash scripts (Linux's /bin/sh is a link to bash), with bash syntax, we really should be using /bin/bash at the start of the scripts.


Is this necessary?

Quote:
2) The xdg-email and xdg-open scripts are never called - they appear to be attempted to be run as "open" and "email" - creating a symbolic link solved this problem for me, but I think this should be fixed in the Java code.


I will change the code to call the xdg scripts when on Solaris. Do they work ok? Did you need to make any changes?

Quote:
3) xdg-email uses awk, but on Solaris nawk should be used since it's more like gawk (linux's AWK) - specifically I was getting incorrect output for the sprintf calls in there and ending up with the body of my e-mails being link "This%%02Xis" instead of "This is".


As per 2, did you get the xdg-email working on Solaris? Can you provide the changed xdg scripts.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 03, 2007 10:01 am 
Offline

Joined: Mon Nov 27, 2006 5:11 pm
Posts: 7
Jeremy wrote:
Quote:
1) All the scripts start with "#!/bin/sh" when really they are bash scripts (Linux's /bin/sh is a link to bash), with bash syntax, we really should be using /bin/bash at the start of the scripts.


Is this necessary?


Yes, I'm afraid so - otherwise the syntax will need to change in the scripts.

Jeremy wrote:
Quote:
2) The xdg-email and xdg-open scripts are never called - they appear to be attempted to be run as "open" and "email" - creating a symbolic link solved this problem for me, but I think this should be fixed in the Java code.


I will change the code to call the xdg scripts when on Solaris. Do they work ok? Did you need to make any changes?


I did make a few, as you can see at the URL below.

Jeremy wrote:
Quote:
3) xdg-email uses awk, but on Solaris nawk should be used since it's more like gawk (linux's AWK) - specifically I was getting incorrect output for the sprintf calls in there and ending up with the body of my e-mails being link "This%%02Xis" instead of "This is".


As per 2, did you get the xdg-email working on Solaris? Can you provide the changed xdg scripts.


Yep, you can download them at : http://blogs.sun.com/dar/resource/solaris_changes.tgz


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 12:03 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Thank you. I will incorporate the changed scripts. Probably make a Solaris distribution.

On anoter note. Do you know if there is any way to run other platforms under Solaris - like with VMWare or Parallels? I am thinking of developing on a different box - havn't used Solaris yet.

I know you can have VMWare on Linux and have Solaris VMs but I want my development machine to be as fast as possible and I also want to test for other platforms.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 10:47 am 
Offline

Joined: Mon Nov 27, 2006 5:11 pm
Posts: 7
Jeremy wrote:
Thank you. I will incorporate the changed scripts. Probably make a Solaris distribution.


Ah, I don't think there is a need for that - the changes between Solaris and Linux for a Java app are almost non-existent as long as it's understood what he differences are (e.g. the shell scripts and awk vs nawk)... Another platform for you to deliver on would be simply too much effort I think.

I'm happy to help in any way I can for testing if you wish...

Jeremy wrote:
On anoter note. Do you know if there is any way to run other platforms under Solaris - like with VMWare or Parallels? I am thinking of developing on a different box - havn't used Solaris yet.


Oh, how many times have I wished for this - you can run Solaris IN Parallels (if you take the latest Solaris Express builds).

Unfortunately VMWare see Solaris only in the context of servers, so never ported it as a Host app.

We are working on Xen support, with Solaris as the Dom0, this should be out later this year., and this allows for virtualisation and is quite fast. You can see this at http://www.opensolaris.org/os/community/xen/

Jeremy wrote:
I know you can have VMWare on Linux and have Solaris VMs but I want my development machine to be as fast as possible and I also want to test for other platforms.


I do so many times wish that I could do this too - but I've settled with multi-boot for now since I don't have to do it too often.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 11:03 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Quote:
Jeremy wrote:
... Probably make a Solaris distribution.

Ah, I don't think there is a need for that - the changes between Solaris and Linux for a Java app are almost non-existent as long as it's understood what he differences are (e.g. the shell scripts and awk vs nawk)... Another platform for you to deliver on would be simply too much effort I think. Probably make a Solaris distribution.


Will your modified scripts work in Linux as well as Solaris? Otherwise I guess we could call the different scripts depending on OS.

And thanks for the Solaris info.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 11:17 am 
Offline

Joined: Mon Nov 27, 2006 5:11 pm
Posts: 7
The only part that will not is the call to nawk, but that could be replaced with something along the lines of :

Code:
if [ -x /usr/bin/nawk ]; then
   AWK=/usr/bin/nawk
else
  AWK=/usr/bin/awk
fi

$AWK '.... script here'



Darren


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 11:34 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Excellent - thank you.

_________________
ThinkingRock Developer


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group