[freeside-commits] freeside/rpm/build/mock centos-5-i386.cfg, NONE, 1.1 centos-5-x86_64.cfg, NONE, 1.1 defaults.cfg, NONE, 1.1 logging.ini, NONE, 1.1 site-defaults.cfg, NONE, 1.1 sles-10-i386.cfg, NONE, 1.1 sles-10-x86_64.cfg, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Thu Jul 8 02:32:16 PDT 2010


Update of /home/cvs/cvsroot/freeside/rpm/build/mock
In directory wavetail.420.am:/tmp/cvs-serv32484/mock

Added Files:
	centos-5-i386.cfg centos-5-x86_64.cfg defaults.cfg logging.ini 
	site-defaults.cfg sles-10-i386.cfg sles-10-x86_64.cfg 
Log Message:
checking in more of the rpm build system (is that it?)

--- NEW FILE: site-defaults.cfg ---
# mock defaults
# vim:tw=0:ts=4:sw=4:et:
#
# This config file is for site-specific default values that apply across all
# configurations. Options specified in this config file can be overridden in
# the individual mock config files.
#
# The defaults.cfg delivered by default has NO options set. Only set options
# here if you want to override the defaults.
#
# Entries in this file follow the same format as other mock config files.
# config_opts['foo'] = bar

#############################################################################
#
# Things that we recommend you set in defaults.cfg:
#
# config_opts['basedir'] = '/var/lib/mock/'
# config_opts['cache_topdir'] = '/var/cache/mock'
#  Note: the path pointed to by basedir and cache_topdir must be owned 
#        by group 'mock' and must have mode: g+rws
# config_opts['rpmbuild_timeout'] = 0
# config_opts['use_host_resolv'] = True

# You can configure log format to pull from logging.ini formats of these names:
# config_opts['build_log_fmt_name'] = "unadorned"
# config_opts['root_log_fmt_name']  = "detailed"
# config_opts['state_log_fmt_name'] = "state"
#
# mock will normally set up a minimal chroot /dev.
# If you want to use a pre-configured /dev, disable this and use the bind-mount
# plugin to mount your special /dev
# config_opts['internal_dev_setup'] = True
#
# internal_setarch defaults to 'True' if the python 'ctypes' package is
#  available. It is in the python std lib on >= python 2.5. On older versions,
#  it is available as an addon. On systems w/o ctypes, it will default to
#  'False'
# config_opts['internal_setarch'] = False
#
# the cleanup_on_* options allow you to automatically clean and remove the
# mock build directory, but only take effect if --resultdir is used.
# config_opts provides fine-grained control. cmdline only has big hammer
#
# config_opts['cleanup_on_success'] = 1
# config_opts['cleanup_on_failure'] = 1

#############################################################################
#
# plugin related. Below are the defaults. Change to suit your site
# policy. defaults.cfg is a good place to do this.
#
# NOTE: Some of the caching options can theoretically affect build
#  reproducability. Change with care.
#
# config_opts['plugin_conf']['ccache_enable'] = True
# config_opts['plugin_conf']['ccache_opts']['max_cache_size'] = '4G'
# config_opts['plugin_conf']['ccache_opts']['dir'] = "%(cache_topdir)s/%(root)s/ccache/"
# config_opts['plugin_conf']['yum_cache_enable'] = True
# config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 30
# config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/yum_cache/"
# config_opts['plugin_conf']['root_cache_enable'] = True
# config_opts['plugin_conf']['root_cache_opts']['max_age_days'] = 15
# config_opts['plugin_conf']['root_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/root_cache/"
# config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "gzip"
# config_opts['plugin_conf']['root_cache_opts']['extension'] = ".gz"
#
# bind mount plugin is enabled by default but has no configured directories to mount
# config_opts['plugin_conf']['bind_mount_enable'] = True
# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' ))
#
# config_opts['plugin_conf']['tmpfs_enable'] = False
# config_opts['plugin_conf']['tmpfs_opts'] = {'required_ram_mb': 1024}

#############################################################################
#
# Things that you can change, but we dont recommend it:
# config_opts['chroothome'] = '/builddir'
# config_opts['clean'] = True

#############################################################################
#
# Things that are best suited for individual chroot config files:
#
# MUST SET (in individual chroot cfg file):
# config_opts['root'] = 'name-of-yum-build-dir'
# config_opts['target_arch'] = 'i386'
# config_opts['yum.conf'] = ''
#
# CAN SET, defaults usually work ok:
# config_opts['chroot_setup_cmd'] = 'install buildsys-build'
# config_opts['log_config_file'] = 'logging.ini'
# config_opts['more_buildreqs']['srpm_name-version-release'] = 'dependencies'
# config_opts['macros']['Add_your_macro_name_here'] = "add macro value here"
# config_opts['files']['path/name/no/leading/slash'] = "put file contents here."
# config_opts['chrootuid'] = os.getuid()
# config_opts['chrootgid'] = grp.getgrnam("mock")[2]
# config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d %(home)s -n %(user)s' # Fedora/RedHat

--- NEW FILE: sles-10-i386.cfg ---
#!/usr/bin/python -tt

import os

config_opts['root'] = 'sles-10-i386'
config_opts['basedir'] = '/var/lib/mock/'
config_opts['chroot'] = '/usr/sbin/mock-helper chroot'
config_opts['mount'] = '/usr/sbin/mock-helper mount'
config_opts['umount'] = '/usr/sbin/mock-helper umount'
config_opts['rm'] = '/usr/sbin/mock-helper rm'
config_opts['mknod'] = '/usr/sbin/mock-helper mknod'
config_opts['yum'] = '/usr/sbin/mock-helper yum'
config_opts['runuser'] = '/bin/su'
config_opts['chroot_setup_cmd'] = 'groupinstall build build-minimal build-base'
config_opts['chrootuser'] = 'mockbuild'
config_opts['chrootgroup'] = 'users'
config_opts['chrootuid'] = os.geteuid()
config_opts['chrootgid'] = os.getegid()
config_opts['chroothome'] = '/builddir'
config_opts['clean'] = True
config_opts['target_arch'] = 'i386'
config_opts['use_cache'] = 1


config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1

# repos

[base]
name=base
#baseurl=http://hb.linuxdev.us.dell.com/pub/yum/sles10/base/i386/
#baseurl=http://redshank.elirion.net/sles
baseurl=file:///home/rsiddall/mock/repos/sles10/i386

[build]
name=build
#baseurl=http://hb.linuxdev.us.dell.com/pub/yum/sles10/base/i386/
#baseurl=http://grosbeak.elirion.net/repo/sles/10/build/i386/
baseurl=file:///home/rsiddall/public_html/repo/sles/10/build/i386

[groups]
name=groups
#baseurl=http://hb.linuxdev.us.dell.com/pub/yum/mock/buildgroups/sles10/i386/
#baseurl=http://redshank.elirion.net/slesgroup/sles10/i386/
baseurl=file:///home/rsiddall/mock/buildgroups/sles10/i386

"""




--- NEW FILE: logging.ini ---
[formatters]
keys: detailed,simple,unadorned,state
 
[handlers]
keys: simple_console,detailed_console,unadorned_console,simple_console_warnings_only
 
[loggers]
keys: root,build,state,mock
 
[formatter_state]
format: %(asctime)s - %(message)s

[formatter_unadorned]
format: %(message)s
 
[formatter_simple]
format: %(levelname)s: %(message)s
 
;useful for debugging:
[formatter_detailed]
format: %(levelname)s %(filename)s:%(lineno)d:  %(message)s
 
[handler_unadorned_console]
class: StreamHandler
args: []
formatter: unadorned
level: INFO

[handler_simple_console]
class: StreamHandler
args: []
formatter: simple
level: INFO

[handler_simple_console_warnings_only]
class: StreamHandler
args: []
formatter: simple
level: WARNING

[handler_detailed_console]
class: StreamHandler
args: []
formatter: detailed
level: WARNING

; usually dont want to set a level for loggers
; this way all handlers get all messages, and messages can be filtered
; at the handler level
;
; all these loggers default to a console output handler
; 
[logger_root]
level: NOTSET
handlers: simple_console

; mock logger normally has no output
;  catches stuff like mock.trace_decorator and mock.util
;  dont normally want to propagate to root logger, either
[logger_mock]
level: NOTSET
handlers: 
qualname: mock
propagate: 1

[logger_state]
level: NOTSET
; unadorned_console only outputs INFO or above
handlers: unadorned_console
qualname: mock.Root.state
propagate: 0

[logger_build]
level: NOTSET
handlers: simple_console_warnings_only
qualname: mock.Root.build
propagate: 0

; the following is a list mock logger qualnames used within the code:
; 
;  qualname: mock.util
;  qualname: mock.uid
;  qualname: mock.trace_decorator


--- NEW FILE: centos-5-x86_64.cfg ---
#!/usr/bin/python -tt
import os

config_opts['root'] = 'centos-5-x86_64'
config_opts['target_arch'] = 'x86_64'


config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
exclude=[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz]*.i*86 g[abcdefghijkmnopqrstuvwxyz]*.i?86 glib2.i?86 glib.i?86 *-devel.i?86
# repos

[os]
name=os
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os
#baseurl=http://mirror.centos.org/centos/5/os/x86_64/
baseurl=file:///home/rsiddall/mock/repos/centos/5/os/x86_64/

[updates]
name=updates
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates
#baseurl=http://mirror.centos.org/centos/5/updates/x86_64/
baseurl=file:///home/rsiddall/mock/repos/centos/5/updates/x86_64/

[groups]
name=groups
baseurl=http://dev.centos.org/centos/buildsys/5/
"""


config_opts['macros'] = """
%_topdir /builddir/build
%_rpmfilename  %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

# Change the next two lines to reflect yourself.

%packager  Freeside Internet Services, Inc. <rpm at freeside.biz>
#%vendor   
#%distribution 

# please change this to reflect the Distro Tree and Repo hosting packages!
#%dist    <distro>.<yourtag> 
%centos_ver     5

#%_smp_mflags   -j1

"""



--- NEW FILE: defaults.cfg ---
# mock defaults
#
# Define default values here.
# These values are overwritten in the /etc/mock/CHROOT.cfg files.
#
# Example:
#
# config_opts['foo'] = bar
config_opts['basedir'] = '/var/lib/mock/'
config_opts['chroot'] = '/usr/sbin/mock-helper chroot'
config_opts['mount'] = '/usr/sbin/mock-helper mount'
config_opts['umount'] = '/usr/sbin/mock-helper umount'
config_opts['rm'] = '/usr/sbin/mock-helper rm'
config_opts['mknod'] = '/usr/sbin/mock-helper mknod'
config_opts['yum'] = '/usr/sbin/mock-helper yum'
config_opts['runuser'] = '/sbin/runuser'
config_opts['chrootuser'] = 'mockbuild'
config_opts['chrootgroup'] = 'mockbuild'
config_opts['chrootuid'] = os.geteuid()
config_opts['chrootgid'] = os.getegid()
config_opts['chroothome'] = '/builddir'
config_opts['clean'] = True

# caching related options
config_opts['rebuild_cache'] = False
config_opts['use_cache'] = False
config_opts['pack_cmd'] = "/usr/sbin/mock-helper pack"
config_opts['unpack_cmd'] = "/usr/sbin/mock-helper unpack"
config_opts['cache_ext'] = ".tar.gz"
config_opts['cache_topdir'] = "root-cache"
config_opts['max_cache_age_days'] = 15

# allow some network tests to run under the chroot
config_opts['files']['/etc/resolv.conf'] = open("/etc/resolv.conf","r").read()
config_opts['files']['/etc/hosts'] = open("/etc/hosts","r").read()

config_opts['chroot_setup_cmd'] = 'install buildsys-build'
#config_opts['chroot_setup_cmd'] = 'groupinstall build'


--- NEW FILE: sles-10-x86_64.cfg ---
#!/usr/bin/python -tt

import os

config_opts['root'] = 'sles-10-x86_64'
config_opts['basedir'] = '/var/lib/mock/'
config_opts['chroot'] = '/usr/sbin/mock-helper chroot'
config_opts['mount'] = '/usr/sbin/mock-helper mount'
config_opts['umount'] = '/usr/sbin/mock-helper umount'
config_opts['rm'] = '/usr/sbin/mock-helper rm'
config_opts['mknod'] = '/usr/sbin/mock-helper mknod'
config_opts['yum'] = '/usr/sbin/mock-helper yum'
config_opts['runuser'] = '/bin/su'
config_opts['chroot_setup_cmd'] = 'groupinstall build build-minimal build-base'
config_opts['chrootuser'] = 'mockbuild'
config_opts['chrootgroup'] = 'users'
config_opts['chrootuid'] = os.geteuid()
config_opts['chrootgid'] = os.getegid()
config_opts['chroothome'] = '/builddir'
config_opts['clean'] = True
config_opts['target_arch'] = 'x86_64'
config_opts['use_cache'] = 1


config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1

# repos

[base]
name=base
#baseurl=http://hb.linuxdev.us.dell.com/pub/yum/sles10/base/x86_64/
#baseurl=http://redshank.elirion.net/sles
baseurl=file:///home/rsiddall/mock/repos/sles10/x86_64

[build]
name=build
#baseurl=http://hb.linuxdev.us.dell.com/pub/yum/sles10/base/x86_64/
#baseurl=http://grosbeak.elirion.net/repo/sles/10/build/x86_64/
baseurl=file:///home/rsiddall/public_html/repo/sles/10/build/x86_64

[groups]
name=groups
#baseurl=http://hb.linuxdev.us.dell.com/pub/yum/mock/buildgroups/sles10/x86_64/
#baseurl=http://redshank.elirion.net/slesgroup/sles10/x86_64/
baseurl=file:///home/rsiddall/mock/buildgroups/sles10/x86_64

"""




--- NEW FILE: centos-5-i386.cfg ---
#!/usr/bin/python -tt
import os
config_opts['root'] = 'centos-5-i386'
config_opts['target_arch'] = 'i386'


config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
logfile=/var/log/yum.log
reposdir=/dev/null
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1

# repos

[os]
name=os
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
#baseurl=http://mirror.centos.org/centos/5/os/i386/
baseurl=file:///home/rsiddall/mock/repos/centos/5/os/i386/

[updates]
name=updates
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
#baseurl=http://mirror.centos.org/centos/5/updates/i386/
baseurl=file:///home/rsiddall/mock/repos/centos/5/updates/i386/

[groups]
name=groups
baseurl=http://dev.centos.org/centos/buildsys/5/

"""

config_opts['macros'] = """
%_topdir /builddir/build
%_rpmfilename  %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

# Change the next two lines to reflect yourself.

%packager  Freeside Internet Services, Inc. <rpm at freeside.biz>
#%vendor   
#%distribution 

# please change this to reflect the Distro Tree and Repo hosting packages!
#%dist    <distro>.<yourtag> 
%centos_ver     5

#%_smp_mflags   -j1

"""







More information about the freeside-commits mailing list