Suggestion for addition (Solaris fix, BSD fix?)

59 views
Skip to first unread message

peterh

unread,
Apr 5, 2013, 9:25:33 AM4/5/13
to ticktick...@googlegroups.com


The TickTick.sh script depends on GNU grep so it will not work on Solaris unless the following is added to the script:



# We need the GNU version of 'grep' !!
# Set up some defaults:
GREP=grep
EGREP=egrep

if [ `uname` == "SunOS" ]; then
  GREP=ggrep
  EGREP=gegrep
fi


Then everywhere in the script where 'grep' or 'egrep' is used I've replaced with $GREP and $EGREP.


Note to those who may find this posting:


On Solaris 10 GNU grep is installed by default and lives in /usr/sfw/bin. Note that the binaries have a prefixed 'g'.

On Solaris 11 GNU grep is installed by default in global zones but doesn't (by default) make it into the local zones. To install in local zone simply do 'pkg install gnu-grep'. In Solaris 11 the GNU tool chain is already part of the default path but with a 'g' prefixed on the binary (except for the cases where there's no name clash)


All yours.


Peter

Chris McKenzie

unread,
Apr 15, 2013, 2:46:48 PM4/15/13
to ticktick...@googlegroups.com
oh right ... i never got back to that. let me see if I can get an ISO

Peter Hansson

unread,
Apr 25, 2013, 3:26:16 AM4/25/13
to ticktick...@googlegroups.com
Sorry for the long response time on this one.

I use Oracle's Solaris (not any of the spinoffs).
Contrary to what people think Solaris 10 or Solaris 11 are both free downloads from Oracle (as long as you don't use it for production).

http://www.oracle.com/technetwork/server-storage/solaris10/downloads/index.html
http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html



Yes, Solaris lives happily inside VirtualBox .. as you would expect.
Indeed this is probably how most people would test stuff in Solaris, including myself. Even if I have access to lots of Solaris environments at work I still find it useful to test out stuff in VirtualBox in an environment where I have full control over the baseline.




From: Chris McKenzie <kristo...@gmail.com>
To: ticktick...@googlegroups.com
Sent: Monday, April 15, 2013 8:46 PM
Subject: Re: Suggestion for addition (Solaris fix, BSD fix?)

--
You received this message because you are subscribed to a topic in the Google Groups "TickTick" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ticktick-project/iWGYvVsevG8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ticktick-proje...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Chris McKenzie

unread,
Apr 25, 2013, 4:07:44 AM4/25/13
to ticktick...@googlegroups.com
Oh I did get an iso and an install and even got git on it ... but I keep forgetting to get around to this thing.  Probably in the next 24 hours.
You received this message because you are subscribed to the Google Groups "TickTick" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ticktick-proje...@googlegroups.com.

Chris McKenzie

unread,
Nov 14, 2013, 8:55:49 AM11/14/13
to ticktick...@googlegroups.com
Hi Peter,

I Finally remembered to do this. Works well. I copy/pasted the code from the bug and included a reference to it in the comments.  Thanks again!

~chris.


On Friday, April 5, 2013 6:25:33 AM UTC-7, peterh wrote:
Reply all
Reply to author
Forward
0 new messages