﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
202	buildpack updates for Solaris OS	Huw Lewis	Dave Offiler	"Feedback from Johannes Fritzer (Uni Graz) relating to buildpack script. He is using it to build ROPP on Solaris OS. 

While we don't have access to this for testing, we can at least test that the suggested fixes/workarounds don't break existing supported systems and implement as appropriate.

{{{
In order to properly run on Solaris OS, the ./buildpack script 
requires the following modification 
(which makes ./buildpack compatible with Linux and (!) Solaris OS):

sed -i -e '173s/ls -q --color=never /ls /'  buildpack                                     

sed -i -e '224s/ls -dq --color=never /ls -d /' buildpack
}}}

{{{
Since I am using ROPP on Linux and Solaris, I have found on Solaris one minor problem 
with statements like v=$(expr index -4.0.1 -) in buildpack, at lines 177, 179, 227 and 229, which give an ""expr: syntax error"".

By replacing e.g. ""v=$(expr index $f -)"" with v=`index $f -` and adding an alternate index function 
(as found on http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2009-06/msg00643.html)

#     alternate index function:   index()
#                                 {
#                                 case $1 in
#                                 *$2*) idx=${1%%$2*}
#                                 echo $(( ${#idx} + 1 ))
#                                 ;;
#                                 *) echo 0 ;;
#                                 esac
#                                 }

solves the problem and is compatible with both, Linux and Solaris.

}}}"	enhancement	closed	normal	4.1	Build	4.0	fixed	buildpack	huw.lewis@…
