Changes

Jump to navigation Jump to search
→‎Installing Mock: Just use Shad's config files
Line 25: Line 25:  
  # Add yourself to the 'mock' group that will have now been created
 
  # Add yourself to the 'mock' group that will have now been created
 
  $ sudo usermod -G mock [youraccount]
 
  $ sudo usermod -G mock [youraccount]
The mock package creates an /etc/mock directory with configs for various OS versions (mostly Fedoras). The first thing you want to tweak there is the site-defaults.cfg file which sets up various defaults for all your builds. Mine now looks like this:
     −
# /etc/mock/site-defaults.cfg
+
The mock package creates an /etc/mock directory with configs for various OS versions (mostly Fedoras). Shad has provided working configurations for SME Server here http://mirror.canada.pialasse.com/contribs/slords/mock/
   −
# Set this to true if you've installed python-ctypes
+
Copy all the .cfg files into /etc/mock including overwriting the site-defaults.cfg
config_opts['internal_setarch'] = True
  −
 
  −
# Turn off ccache since it was causing errors I haven't bothered debugging
  −
config_opts['plugin_conf']['ccache_enable'] = False
  −
 
  −
# (Optional) Fake the build hostname to report
  −
config_opts['use_host_resolv'] = False
  −
config_opts['files']['etc/hosts'] = """
  −
127.0.0.1 buildbox.openfusion.com.au nox.openfusion.com.au localhost
  −
"""
  −
config_opts['files']['etc/resolv.conf'] = """
  −
nameserver 127.0.0.1
  −
"""
  −
 
  −
Alternatively Shad has provided configuration for SME Server here http://mirror.canada.pialasse.com/contribs/slords/mock/ the links to the repositories need to be updated to a relevant (local) mirror
      
==== Setting up building enviroment ====
 
==== Setting up building enviroment ====

Navigation menu