Another issue I've just come across: I can no longer build for
i586 target arch.
Fix:
--- /usr/sbin/mock.orig 2010-08-03 22:04:48.000000000 +0100
+++ /usr/sbin/mock 2010-08-10 11:26:00.018451269 +0100
@@ -369,9 +369,9 @@
config_opts['online'] = options.online
legal_arches = {
- 'i386' : ('i386', 'i686'),
- 'i686' : ('i386', 'i686'),
- 'x86_64' : ('i386', 'i686', 'x86_64'),
+ 'i386' : ('i386', 'i586', 'i686'),
+ 'i686' : ('i386', 'i586', 'i686'),
+ 'x86_64' : ('i386', 'i586', 'i686',
'x86_64'),
'ppc' : ('ppc'),
'ppc64' : ('ppc', 'ppc64'),
'sparc' : ('sparc'),
another is noarch which we fixed this way:
--- /usr/sbin/mock.old 2010-08-10 22:54:35.000000000 -0600
+++ /usr/sbin/mock 2010-08-07 13:09:27.000000000 -0600
@@ -559,7 +559,8 @@
set_config_opts_per_cmdline(config_opts, options, args)
# verify that we're not trying to build an arch that we can't
- check_arch_combination(config_opts['rpmbuild_arch'])
+ if config_opts['rpmbuild_arch'] != "noarch":
+ check_arch_combination(config_opts['rpmbuild_arch'])
# default /etc/hosts contents
if not config_opts['use_host_resolv'] and not
config_opts['files'].has_key('etc/hosts'):