On Mon, 7 Mar 2011, Kai Heide wrote: > 2011/3/4 Connie Sieh <[log in to unmask]>: >> On Fri, 4 Mar 2011, Troy Dawson wrote: >> >>> On 03/04/2011 03:15 AM, Kai Heide wrote: >>>> >>>> I can't build software on my SL6, because mock is using the centos6 >>>> repositories which aren't exist. >>>> >>>> Why does mock on SL6 is using centos to build software instead of SL? >>>> this seems a bug for me and should be solved as soon as possible! >>> >>> Considering mock is not part of SL6, I suggest you ask this question to >>> whoever setup mock on your system. >> >> We used the mock that is in EPEL 6 to build all of Scientific Linux 6 . It >> comes with config files for fedora and epel. Use as a template the epel-6 >> config files. Change the urls to point to your repos. > > But how? Like Connie indicated, I have been using this: ------ config_opts['root'] = 'sl-6-i386' config_opts['target_arch'] = 'i686' config_opts['legal_host_arches'] = ('i386', 'i586', 'i686', 'x86_64') config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build' config_opts['dist'] = 'el6' # 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= [base] name=BaseOS baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/i386/os/ [fastbugs] name=fastbugs baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/i386/updates/fastbugs/ [security] name=security baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/i386/updates/security/ [epel] name=epel mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386 failovermethod=priority """ ------ and this: ------ config_opts['root'] = 'sl-6-x86_64' config_opts['target_arch'] = 'x86_64' config_opts['legal_host_arches'] = ('x86_64') config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build' config_opts['dist'] = 'el6' # 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= [base] name=BaseOS baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/x86_64/os/ [fastbugs] name=fastbugs baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/x86_64/updates/fastbugs/ [security] name=security baseurl=http://ftp.scientificlinux.org/linux/scientific/6.0/x86_64/updates/security/ [epel] name=epel mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=x86_64 failovermethod=priority """ ------ Couldn't find mirrorlists before, but they are probably available right now. I am contemplating adding sl6 config-files to mock and maybe we should upstream those. -- -- dag wieers, [log in to unmask], http://dag.wieers.com/ -- dagit linux solutions, [log in to unmask], http://dagit.net/ [Any errors in spelling, tact or fact are transmission errors]