Difference between revisions of "Fedora ARM Secondary Architecture/Mock Config Repo"

From CDOT Wiki
Jump to: navigation, search
(2010.02.24)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:SBR600]][[Category:Fedora ARM Secondary Architecture]]
+
[[Category:Winter 2010 SBR600]][[Category:Fedora ARM Secondary Architecture]]
 
= Description =
 
= Description =
  
Line 5: Line 5:
  
 
= Progress =
 
= Progress =
 +
 +
== 2010.02.24 ==
  
 
As an alternative to creating a comps repo, here is a mock config file:
 
As an alternative to creating a comps repo, here is a mock config file:
  
config_opts['root'] = 'fedora-12-arm'
+
# /etc/mock/fedora-12-arm.cfg
config_opts['target_arch'] = 'armv5tel'
+
 
+
config_opts['root'] = 'fedora-12-arm'
# The chroot_setup_cmd is usually 'groupinstall buildsys-build' but that hasn't been defined for ARM yet.
+
config_opts['target_arch'] = 'armv5tel'
# Instead, the package list is specified here.
+
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config
+
# The chroot_setup_cmd is usually 'groupinstall buildsys-build' but that hasn't been defined for ARM yet.
 
+
# Instead, the package list is specified here.
rpm-build sed shadow-utils tar unzip util-linux-ng which bash curl cvs fedora-release gnupg make redhat-rpm-config rpm-build shadow-utils'
+
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config
config_opts['dist'] = 'fc12'  # only useful for --resultdir variable subst
+
 
+
rpm-build sed shadow-utils tar unzip util-linux-ng which bash curl cvs fedora-release gnupg make redhat-rpm-config rpm-build shadow-utils'
config_opts['yum.conf'] = """
+
config_opts['dist'] = 'fc12'  # only useful for --resultdir variable subst
[main]
+
cachedir=/var/cache/yum
+
config_opts['yum.conf'] = """
debuglevel=1
+
[main]
reposdir=/dev/null
+
cachedir=/var/cache/yum
logfile=/var/log/yum.log
+
debuglevel=1
retries=20
+
reposdir=/dev/null
obsoletes=1
+
logfile=/var/log/yum.log
gpgcheck=0
+
retries=20
assumeyes=1
+
obsoletes=1
 
+
gpgcheck=0
# repos
+
assumeyes=1
 
+
[fedora]
+
# repos
name=fedora
+
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=fedora-12&arch=arm
+
[fedora]
failovermethod=priority
+
name=fedora
 
+
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=fedora-12&arch=arm
[updates-released]
+
# for local building on machines connected to hongkong, comment out the line above and uncomment the one below
name=updates
+
#baseurl=http://hongkong/yum/base/12/arm/
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-released-f12&arch=arm
+
failovermethod=priority
failovermethod=priority
+
"""
+
[updates-released]
 +
name=updates
 +
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-released-f12&arch=arm
 +
# for local building on machines connected to hongkong, comment out the line above and uncomment the one below
 +
#baseurl=http://hongkong/yum/source/12/arm/ failovermethod=priority
 +
"""

Latest revision as of 15:56, 17 April 2010

Description

Mock requires a repository that contains the comps info for the buildsys-build package group.

Progress

2010.02.24

As an alternative to creating a comps repo, here is a mock config file:

# /etc/mock/fedora-12-arm.cfg

config_opts['root'] = 'fedora-12-arm'
config_opts['target_arch'] = 'armv5tel'

# The chroot_setup_cmd is usually 'groupinstall buildsys-build' but that hasn't been defined for ARM yet.
# Instead, the package list is specified here.
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config

rpm-build sed shadow-utils tar unzip util-linux-ng which bash curl cvs fedora-release gnupg make redhat-rpm-config rpm-build shadow-utils'
config_opts['dist'] = 'fc12'  # 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

# repos

[fedora]
name=fedora
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=fedora-12&arch=arm
# for local building on machines connected to hongkong, comment out the line above and uncomment the one below
#baseurl=http://hongkong/yum/base/12/arm/
failovermethod=priority

[updates-released]
name=updates
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-released-f12&arch=arm
# for local building on machines connected to hongkong, comment out the line above and uncomment the one below
#baseurl=http://hongkong/yum/source/12/arm/ failovermethod=priority
"""