Difference between revisions of "Koji Testbed"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 161: | Line 161: | ||
A Koji build will first do a <nowiki>buildSRPMFromSCM</nowiki> job, which will run mock to generate a buildroot, inside of which 'yum groupinstall srpm-build' is run. Later, a <nowiki>buildArch</nowiki> job does the actual building, and here mock runs 'yum groupinstall build'. | A Koji build will first do a <nowiki>buildSRPMFromSCM</nowiki> job, which will run mock to generate a buildroot, inside of which 'yum groupinstall srpm-build' is run. Later, a <nowiki>buildArch</nowiki> job does the actual building, and here mock runs 'yum groupinstall build'. | ||
− | These groups must be created by us first, and populated with package names that we need to have available at this stage | + | These groups must be created by us first, and populated with package names that we need to have available at this stage. |
koji add-tag epel5-basedeps | koji add-tag epel5-basedeps | ||
koji add-group epel5-basedeps build | koji add-group epel5-basedeps build | ||
koji add-group epel5-basedeps srpm-build | koji add-group epel5-basedeps srpm-build | ||
− | + | ||
They need to be populated. Clone from a typical value for the Fedora Koji systems, e.g. | They need to be populated. Clone from a typical value for the Fedora Koji systems, e.g. | ||
− | koji add-group-pkg epel5- | + | koji add-group-pkg epel5-build build `koji -s http://koji.fedoraproject.org/kojihub/ |
list-groups dist-5E-epel-build build | tail -n +2 | cut -d: -f1` | list-groups dist-5E-epel-build build | tail -n +2 | cut -d: -f1` | ||
Be careful to exclude the fedpkg package in srpm-build which pulls in way too much! It includes mock which causes strange failures with conflicting (unix) group ids within the buildroot. | Be careful to exclude the fedpkg package in srpm-build which pulls in way too much! It includes mock which causes strange failures with conflicting (unix) group ids within the buildroot. | ||
− | koji add-group-pkg epel5- | + | koji add-group-pkg epel5-build srpm-build `koji -s http://koji.fedoraproject.org/kojihub/ |
list-groups dist-5E-epel-build srpm-build | tail -n +2 | cut -d: -f1 | grep -v fedpkg` | list-groups dist-5E-epel-build srpm-build | tail -n +2 | cut -d: -f1 | grep -v fedpkg` | ||
Line 190: | Line 190: | ||
− | + | Since the srpm-build and build do not vary much between distributions, | |
− | + | we create a separate tag and use inheritance to save work for the Fedora branches. | |
− | + | This does not hold true for EPEL branches, which are not inheriting from one another. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
for i in 18 19 20 ; do | for i in 18 19 20 ; do |