Screen, Emacs and irssi aren't included in Solaris, and the Sun Freeware versions tend to be out of date. Blastwave usually pulls in too many depends. You can compile screen, irssi and emacs without any additional depends on SXCE 90 and you get to use SS12.
Here's how you compile them on SXCE 90 using Sun Studio 12.
- Install Sun Studio 12. If you have SXCE, just use the Developer Tools installer from the DVD.
- Export a PATH that includes Sun Studio (you can also just export CC):
PATH=/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/usr/sbin:/opt/SUNWspro/bin
export PATH - Download and untar the sources
- ./configure --prefix=/usr/local; gmake; su; gmake install
Look for the offending line:
# if defined(linux) || defined(__convex__) || (BSD >= 199103)
setenv(var, value, 1);
# else
setenv(var, value);
# endif /* linux || convex || BSD >= 199103 */
#endif /* USESETENV */
Better yet (pkgsrc):
- Index: misc.c
- --- misc.c.orig 2003-12-05 14:45:41 +0100
- +++ misc.c 2006-07-13 18:00:46 +0200
- @@ -613,7 +613,7 @@
- */
- # endif /* NEEDSETENV */
- #else /* USESETENV */
- -# if defined(linux) || defined(__convex__) || (BSD >= 199103)
- +# if defined(linux) || defined(__convex__) || (BSD >= 199103) || defined(__sun)
- setenv(var, value, 1);
- # else
- setenv(var, value);
Now screen will compile. You can also make packages.
Other software such as top, smartctl (smartmontools) and so on all compiles cleanly without the need for 3rd party depends.
1 comments:
I much prefer this method:
# if defined(linux) || defined(__convex__) || (BSD >= 199103) || defined(__sun)
setenv(var, value, 1);
# else
setenv(var, value);
# endif /* linux || convex || BSD >= 199103 */
#endif /* USESETENV */
Post a Comment