Pidora 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-18-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-18-armv6hl.cfg default.cfg

pidora-18-armv6hl

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

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

pidora-18-armv6hl.cfg

config_opts['root'] = 'pidora-18-armv6hl'
config_opts['target_arch'] = 'armv6hl'
config_opts['legal_host_arches'] = ('armv6l')
config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
config_opts['dist'] = 'fc18'  # 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-18&arch=armv6hl
failovermethod=priority

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

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

[local]
name=local
baseurl=http://arm.fedoraproject.org/repos/f18-build/latest/armhfp/
cost=2000
enabled=0

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

[pidora-updates-debuginfo]
name=pidora-updates-debuginfo
mirrorlist=http://pidora.ca/mirrorlist/mirrorlist.cgi?repo=pidora-updates-debuginfo-18&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-18&arch=armv6hl
failovermethod=priority
enabled=0
"""