GNOME Bugzilla – Bug 590719
Can not build with solaris sh
Last modified: 2009-08-05 02:34:07 UTC
Please describe the problem: Build git-master under Solaris, configure reports following errors: Running ./configure --enable-maintainer-mode --prefix /export/home/halton/work/projects/gnome/gnome-shell/install --libdir /export/home/halton/work/projects/gnome/gnome-shell/install/lib --with-clutter --disable-static --disable-gtk-doc CC=/opt/SUNWspro/bin/cc LDFLAGS=-L/export/home/halton/work/projects/gnome/gnome-shell/install/lib CXX=/opt/SUNWspro/bin/CC --no-create --no-recursion ... ./configure: syntax error at line 32206: `(' unexpected 32205 MUTTER_MINOR_VERSION=27 32206 if test $(( $(echo $MUTTER_MINOR_VERSION) %2)) == "1"; then 32207 stable_version=$(( ($MUTTER_MINOR_VERSION / 2) * 2)) 32208 echo "This is the UNSTABLE branch of mutter" 32209 echo -n "Use 2.$stable_version.x for stable " 32210 echo "(gnome-2-$stable_version branch in Subversion)" 32211 else 32212 echo "This is the stable branch of mutter" 32213 fi The solaris shell won't work with above shell. I'll offer a patch later. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 139854 [details] [review] compatible patch for solaris shell
Rewrote to be a bit simpler then pushed: http://git.gnome.org/cgit/mutter/commit/?id=da934be354e4f438d57f84d61138cd930ad5d7cd
The updated patch is verified on Solaris. Cheers!