Discussion:
[users] mock and repoforge, /etc/mock/WHAT?
Aleksey Cheusov
2012-01-28 20:32:50 UTC
Permalink
Hello. I'm trying to build some of my packages for repoforge using mock
but I cannot find a configuration file for repoforge under /etc/mock?
I'm running SL-6. Am I missing something?

rpmbuild works fine but I'd like to build packages in clean environment.
What software do you use for bulk builds (massive package builds)?
--
Best regards, Aleksey Cheusov.
Nico Kadel-Garcia
2012-01-30 04:17:13 UTC
Permalink
Post by Aleksey Cheusov
Hello. I'm trying to build some of my packages for repoforge using mock
but I cannot find a configuration file for repoforge under /etc/mock?
I'm running SL-6. Am I missing something?
EPEL has been maintaining that. I follow several steps to make this useful:

* Move aside all the unused setups from /etc/mock/*.cfg to a
/etc/mock/disabled/*.cfg This makes it much easier to pick and choose.
* Repoint the primary repositiries to local repositories. For example,
my 'base' repo for RHEL 6 based systems looks like this:

[base]
name=BaseOS
enabled=1
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
baseurl=http://192.168.1.106/mirrors/scientific/6/x86_64/os/
failovermethod=priority

* Add a repoforge or rpmforge repository in the same .cfg file.

# Specifically added for rpmforge access
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
enabled = 1
protect = 0

* Consider restricting the built-in epel repository if I'm building
repoforge compatible packages. That's a bit tricky and sometimes needs
tuning, due to perl modules with the same components but different
package names or tools like nagios-plugins that are split up
differently for different repositories.
Aleksey Cheusov
2012-01-28 20:32:50 UTC
Permalink
Hello. I'm trying to build some of my packages for repoforge using mock
but I cannot find a configuration file for repoforge under /etc/mock?
I'm running SL-6. Am I missing something?

rpmbuild works fine but I'd like to build packages in clean environment.
What software do you use for bulk builds (massive package builds)?
--
Best regards, Aleksey Cheusov.
Nico Kadel-Garcia
2012-01-30 04:17:13 UTC
Permalink
Post by Aleksey Cheusov
Hello. I'm trying to build some of my packages for repoforge using mock
but I cannot find a configuration file for repoforge under /etc/mock?
I'm running SL-6. Am I missing something?
EPEL has been maintaining that. I follow several steps to make this useful:

* Move aside all the unused setups from /etc/mock/*.cfg to a
/etc/mock/disabled/*.cfg This makes it much easier to pick and choose.
* Repoint the primary repositiries to local repositories. For example,
my 'base' repo for RHEL 6 based systems looks like this:

[base]
name=BaseOS
enabled=1
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
baseurl=http://192.168.1.106/mirrors/scientific/6/x86_64/os/
failovermethod=priority

* Add a repoforge or rpmforge repository in the same .cfg file.

# Specifically added for rpmforge access
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
enabled = 1
protect = 0

* Consider restricting the built-in epel repository if I'm building
repoforge compatible packages. That's a bit tricky and sometimes needs
tuning, due to perl modules with the same components but different
package names or tools like nagios-plugins that are split up
differently for different repositories.

Loading...