Pidora 19 Mock Config

From CDOT Wiki
Jump to: navigation, search
Pidora-horizontal.png

Pidora Mock Config

Run Mock With Pidora Mock Config

This is to be used on the raspberry pi, specifically Pidora(raspberry pi fedora remix), using the armv6hl architecture.

If you setup a pidora default mock config:

mock --rebuild ./package.src.rpm

OR If you did not setup a default pidora mock config:

mock -r pidora-19-armv6hl --rebuild ./package.src.rpm

Set Default Mock Config

In order to set a default mock config run the commands:

cd /etc/mock
rm default.cfg
ln -s pidora-19-armv6hl.cfg default.cfg

pidora-19-armv6hl

Put the file pidora-19-armv6hl.cfg into the directory /etc/mash/:

/etc/mock/pidora-19-armv6hl.cfg

pidora-19-armv6hl.cfg

config_opts['root'] = 'pidora-19-armv6hl'
config_opts['target_arch'] = 'armv6hl'
#config_opts['legal_host_arches'] = ('armv6l')
config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
config_opts['dist'] = 'fc19' # only useful for --resultdir variable subst

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
syslog_ident=mock
syslog_device=

# repos

[pidora]
name=pidora
#mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-19&arch=armv6hl
baseurl=http://japan.proximity.on.ca/kojifiles/repos/f19-build/latest/armv6hl/
failovermethod=priority

[pidora-updates]
name=pidora-updates
#mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-updates-19&arch=armv6hl
baseurl=http://japan.proximity.on.ca/kojifiles/repos/f19-updates-build/latest/armv6hl/
failovermethod=priority

[pidora-updates-testing]
name=pidora-updates-testing
#mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-updates-testing-19&arch=armv6hl
baseurl=http://japan.proximity.on.ca/kojifiles/repos/f19-updates-testing-build/latest/armv6hl/
failovermethod=priority
enabled=0

[local]
name=local
baseurl=http://japan.proximity.on.ca/kojifiles/repos/f19-build/latest/armv6hl/
cost=2000
enabled=0

[pidora-debuginfo]
name=pidora-debuginfo
mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-debuginfo-19&arch=armv6hl
failovermethod=priority
enabled=0

[pidora-updates-debuginfo]
name=pidora-updates-debuginfo
mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-updates-debuginfo-19&arch=armv6hl
failovermethod=priority
enabled=0

[pidora-updates-testing-debuginfo]
name=pidora-updates-testing-debuginfo
mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-updates-testing-debuginfo-19&arch=armv6hl
failovermethod=priority
enabled=0
"""