After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590719 - Can not build with solaris sh
Can not build with solaris sh
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
git master
Other All
: Normal major
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-04 10:48 UTC by Halton Huo
Modified: 2009-08-05 02:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
compatible patch for solaris shell (830 bytes, patch)
2009-08-04 12:02 UTC, Halton Huo
none Details | Review

Description Halton Huo 2009-08-04 10:48:38 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:
Comment 1 Halton Huo 2009-08-04 12:02:31 UTC
Created attachment 139854 [details] [review]
compatible patch for solaris shell
Comment 2 Owen Taylor 2009-08-04 15:20:20 UTC
Rewrote to be a bit simpler then pushed:

http://git.gnome.org/cgit/mutter/commit/?id=da934be354e4f438d57f84d61138cd930ad5d7cd
Comment 3 Halton Huo 2009-08-05 02:34:07 UTC
The updated patch is verified on Solaris. Cheers!