mock-1.1.41-3.fc20.noarch.patch

workaround - Davide Principi, 10/27/2014 01:00 PM

Download (5.36 KB)

View differences:

root/usr/share/nethesis/nethserver-devbox/mock/nethserver-iso-x86_64.cfg
2 2
# ISO build mock configuration 
3 3
#
4 4

  
5
sys.path.append(config_path)
6

  
7
import mockyumconf
8

  
9
o = mockyumconf.Params(config_path, config_opts, options)
10

  
11 5
config_opts['target_arch'] = 'x86_64'
12 6
config_opts['root'] = 'nethserver-iso-x86_64'
13 7

  
14
config_opts['chroot_setup_cmd'] = o.get_chroot_setup_cmd((
8
config_opts['chroot_setup_cmd'] = (
15 9
    'install', 
16 10
    '@centos-minimal', 
17 11
    'yum-plugin-downloadonly', 
18 12
    '--disablerepo=*',
19 13
    '--enablerepo=centos-base*',
20 14
    '--enablerepo=nethserver-base,nethserver-updates'
21
))
15
)
22 16

  
23 17
config_opts['plugin_conf']['ccache_enable'] = False
24 18

  
25 19
# Substitute $releasever and $basearch:
26
config_opts['yum.conf'] = o.get_yum_config()
20
config_opts['yum.conf'] = string.Template("""
21
[main]
22
cachedir=/var/cache/yum
23
debuglevel=1
24
logfile=/var/log/yum.log
25
reposdir=/dev/null
26
retries=20
27
obsoletes=1
28
gpgcheck=0
29
assumeyes=1
30
metadata_expire=never
31
mirrorlist_expire=never
32
plugins=1
33
ui_repoid_vars=1
34

  
35
[centos-base]
36
name=CentOS base
37
baseurl=http://pulp.nethserver.org/centos/$releasever/os/$basearch/
38
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
39
enabled=1
40
enablegroups=0
41

  
42
[centos-updates]
43
name=CentOS updates
44
baseurl=http://pulp.nethserver.org/centos/$releasever/updates/$basearch/
45
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
46
enabled=1
47
enablegroups=0
48

  
49
[nethserver-base]
50
name=NethServer base 
51
baseurl=http://pulp.nethserver.org/nethserver/$releasever/base/$basearch/
52
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6
53
enabled=1
54
enablegroups=1
55

  
56
[nethserver-updates]
57
name=NethServer updates
58
baseurl=http://pulp.nethserver.org/nethserver/$releasever/updates/$basearch/
59
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6
60
enabled=1
61
enablegroups=0
62

  
63
[nethserver-testing]
64
name=NethServer testing
65
baseurl=http://pulp.nethserver.org/nethserver/$releasever/testing/$basearch/
66
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6
67
enabled=0
68
enablegroups=0
69

  
70
""").substitute(releasever="6.5", basearch="x86_64")
27 71

  
28 72

  
29 73

  
root/usr/share/nethesis/nethserver-devbox/mock/nethserver-rpm-x86_64.cfg
2 2
# RPM build mock configuration 
3 3
#
4 4

  
5
sys.path.append(config_path)
6

  
7
import mockyumconf
8

  
9
o = mockyumconf.Params(config_path, config_opts, options)
5
import string
10 6

  
11 7
config_opts['target_arch'] = 'x86_64'
8
config_opts['legal_host_arches'] = ('x86_64',)
12 9
config_opts['root'] = 'nethserver-rpm-x86_64'
13

  
14
config_opts['chroot_setup_cmd'] = o.get_chroot_setup_cmd((
15
				'install', 
16
                                '@buildsys-build'
17
				))
18

  
10
config_opts['chroot_setup_cmd'] = ('install', '@buildsys-build')
19 11
config_opts['plugin_conf']['ccache_enable'] = False
20 12

  
21 13
# Substitute $releasever and $basearch:
22
config_opts['yum.conf'] = o.get_yum_config()
14
config_opts['yum.conf'] = string.Template("""
15
[main]
16
cachedir=/var/cache/yum
17
debuglevel=1
18
logfile=/var/log/yum.log
19
reposdir=/dev/null
20
retries=20
21
obsoletes=1
22
gpgcheck=0
23
assumeyes=1
24
metadata_expire=never
25
mirrorlist_expire=never
26
plugins=1
27
ui_repoid_vars=1
28

  
29
[centos-base]
30
name=CentOS base
31
baseurl=http://$host/centos/$releasever/os/$basearch/
32
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
33
enabled=1
34
enablegroups=0
35

  
36
[centos-updates]
37
name=CentOS updates
38
baseurl=http://$host/centos/$releasever/updates/$basearch/
39
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
40
enabled=1
41
enablegroups=0
42

  
43
[nethserver-base]
44
name=NethServer base 
45
baseurl=http://$host/nethserver/$releasever/base/$basearch/
46
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6
47
enabled=1
48
enablegroups=1
49

  
50
[nethserver-updates]
51
name=NethServer updates
52
baseurl=http://$host/nethserver/$releasever/updates/$basearch/
53
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6
54
enabled=1
55
enablegroups=0
56

  
57
[nethserver-testing]
58
name=NethServer testing
59
baseurl=http://$host/nethserver/$releasever/testing/$basearch/
60
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-6
61
enabled=0
62
enablegroups=0
63

  
64
""").substitute(host="pulp.nethserver.org", releasever="6.5", basearch="x86_64")
23 65

  
root/usr/share/nethesis/nethserver-devbox/mock/site-defaults.cfg
70 70
# config_opts['plugin_conf']['bind_mount_enable'] = True
71 71
# config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/host/path', '/bind/mount/path/in/chroot/' ))
72 72
#
73
# config_opts['plugin_conf']['tmpfs_enable'] = False
73
config_opts['plugin_conf']['tmpfs_enable'] = True
74 74
# config_opts['plugin_conf']['tmpfs_opts'] = {'required_ram_mb': 1024}
75 75

  
76 76
#############################################################################