OpenSolaris is an open source project created by Sun Microsystems to build a developer community around Solaris technology. The software will be the basis for the next Solaris operating system, and is available under the Common Development and Distribution License (CDDL). Sun has an official OpenSolaris distribution.
The OpenSolaris Wine Community Group has resources for Wine on OpenSolaris.
Wine 1.0.1 is available in the OpenSolaris /contrib repository.
Prerequisites
OpenSolaris 2009.06 or later is recommended.
The easiest method to build Wine is to use spec-files-extra (SFE). SFE includes a pkgbuild package recipe for the development releases of Wine called SFEwine.
Thomas Wagner's bootstrap script for SFE will automatically set up the SFE build environment, including pkgbuild and the Common Build Environment (JDS or Desktop CBE).
Attempting to build SFEwine will list any missing dependencies (pkgbuild is not able to automatically install them yet).
The following packages are needed on top of the default configuration (with the entire cluster installed). If you've removed any packages, you might need to install more than this list.
- gcc-dev
- SUNWaudh
- SUNWcups
- SUNWdbus-devel
- SUNWjpg-devel
- SUNWgnome-camera-devel
- SUNWgnutls-include
- SUNWncurses-devel
- SUNWpng-devel
- SUNWsane-backend
- SUNWxorg-headers
- SUNWxwinc
pfexec pkg install gcc-dev SUNWaudh SUNWcups SUNWjpg-devel SUNWgnome-camera-devel SUNWgnutls-devel SUNWncurses-devel SUNWpng-devel SUNWsane-backend SUNWxorg-headers SUNWxwinc
Or use http://winezeug.googlecode.com/svn/trunk/install-wine-deps.sh
MP3 decoding support in Wine development releases requires mpg123. SFEmpg123 will be installed when you build SFEwine. Sun Audio support requires the libaudioio, while snv_115 or newer can use Wine's built-in OSS driver. SFElibaudioio will be installed when you build SFEwine.
Git is needed if you are not building from a source tarball. If you wish to build Wine from a development repository checkout, install SUNWgit.
pfexec pkg install SUNWgit
Building Wine
If any steps are unclear, here are general instructions on setting up and using pkgbuild: http://pkgbuild.wiki.sourceforge.net/pkgbuild+on+OpenSolaris
If you're using SFE, run:
# For Desktop CBE 1.7.0 and later: # . /opt/dtbld/bin/bldenv.sh # OR with JDS CBE 1.6.2: . /opt/jdsbld/bin/bldenv.sh pkgtool build --download --autodeps SFEwine.spec
If the build fails because of missing dependencies, install the missing packages (see above).
When the build completes, both SFEwine and SFEwine-devel packages will be created and SFEwine will be installed automatically. If you don't wish to install the package, use "build-only" instead of "build".
The following script builds Wine manually:
#!/bin/sh CFLAGS="-g -Os -march=i586 -mtune=prescott -pipe -fno-omit-frame-pointer -I/usr/X11/include -I/usr/gnu/include -I/usr/sfw/include -Xlinker -i" CC="/usr/bin/gcc" LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib" LD="/usr/ccs/bin/ld" PATH="/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/ccs/bin:/usr/sfw/bin:$PATH" export CFLAGS export LDFLAGS export CPPFLAGS export CC export LD export PATH ./configure --prefix=/opt/wine make depend make
You'll see a lot of: warning: visibility attribute not supported in this configuration; ignored which are harmless.
Optionally:
pfexec make install
To install Wine to /opt/wine.
Problems
If you encounter an issue with Wine on OpenSolaris, you should file a bug on the Wine Bugzilla. Questions can be sent to the SFEwine maintainer or the desktop-discuss mailing list.
TODO: LDAP/capi support. They're currently missing in the repository. Bugs are filed, so we'll see what happens. You could compile yourself, but most people don“t need those supported anyway.
Also, be aware of a few other bugs: http://bugs.winehq.org/buglist.cgi?quicksearch=opensolaris
Especially bugs 14185, 15699, and 15706.
