Permalink
Browse files

updated solaris template+ fixed a typo in the scancode

  • Loading branch information...
1 parent fe3295a commit 1de5a7974a2f92640dc56d7b139fdd25ee379f11 @jedi4ever committed May 3, 2011
Showing with 25 additions and 7 deletions.
  1. +1 −1 lib/veewee/scancode.rb
  2. +1 −0 lib/veewee/session.rb
  3. +23 −6 templates/solaris-11-express-i386-experimental/postinstall.sh
@@ -77,7 +77,7 @@ def self.string_to_keycode(thestring)
k['B'] = '2a 30 aa b0' ; k['N'] = '2a 31 aa b1' ; k['M'] = '2a 32 aa b2';
k[',']= '33 b3' ; k['.']='34 b4'; k['/'] = '35 b5' ;k[':'] = '2a 27 aa a7';
- k['%'] = '2a 06 aa '; k['_'] = '2a 0c aa 8c';
+ k['%'] = '2a 06 aa 86'; k['_'] = '2a 0c aa 8c';
k['&'] = '2a 08 aa 88';
k['('] = '2a 0a aa 8a';
k[')'] = '2a 0b aa 8b';
@@ -500,6 +500,7 @@ def self.create_vm(boxname,force=false)
#Exec and system stop the execution here
Veewee::Shell.execute("#{command}")
+
#Set a shared folder for validation
if !File.exists?(@validation_dir)
FileUtils.mkdir(File.expand_path(@validation_dir))
@@ -7,15 +7,14 @@ yes|/usr/sbin/pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil-`uname -p`.pkg
/opt/csw/bin/pkgutil -U
-# yes|/opt/csw/bin/pkgutil -i CSWruby
-# used SUNWspro
-# has entries in /opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb
-# luckily there is another one
+# We need some header stuff and so on to get gcc going
+# Tip thx to - https://wiki.chipp.ch/twiki/bin/view/CmsTier3/InstallationSolaris
+/usr/bin/pkg install SUNWarc SUNWsfwhea SUNWhea SUNWtoo
+/usr/bin/pkg install math/header-math
+yes|/opt/csw/bin/pkgutil -i CSWgsed
yes|/opt/csw/bin/pkgutil -i CSWruby18-gcc4
yes|/opt/csw/bin/pkgutil -i CSWruby18-dev
-
-# prevents ":in `require': no such file to load -- mkmf (LoadError)"
yes|/opt/csw/bin/pkgutil -i CSWrubygems
# These are needed to get a compiler working
@@ -24,11 +23,29 @@ export PATH=/opt/csw/bin/:$PATH
export PATH=/opt/csw/gcc4/bin/:$PATH
yes | /opt/csw/bin/pkgutil -i CSWgcc4core
+
+
yes | /opt/csw/bin/pkgutil -i CSWgcc4g++
yes | /opt/csw/bin/pkgutil -i CSWreadline
yes | /opt/csw/bin/pkgutil -i CSWzlib
yes | /opt/csw/bin/pkgutil -i CSWossldevel
+# prevents ":in `require': no such file to load -- mkmf (LoadError)"
+# yes|/opt/csw/bin/pkgutil -i CSWruby
+# used SUNWspro
+# has entries in /opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb
+# luckily there is another one
+# For some reason these don't get installed ok, we need to give them a slight kick again
+yes | /opt/csw/bin/pkgutil -i CSWgcc4core
+yes|/opt/csw/bin/pkgutil -i CSWruby18-gcc4
+
+# no solaris2.11 .... mkheaders here ! needs some fixing ??
+# /opt/csw/gcc4/libexec/gcc/i386-pc-solaris2.10/4.3.3/install-tools/mkheaders
+/opt/csw/gcc4/libexec/gcc/i386-pc-solaris2.8/4.3.3/install-tools/mkheaders
+
+/opt/csw/sbin/alternatives --display rbconfig18
+/opt/csw/sbin/alternatives --set rbconfig18 /opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb.gcc4
+
/opt/csw/bin/gem install puppet --no-ri --no-rdoc
/opt/csw/bin/gem install chef --no-ri --no-rdoc

0 comments on commit 1de5a79

Please sign in to comment.