Difference between revisions of "Koji Testbed"
From PDP/Grid Wiki
Jump to navigationJump to searchLine 135: | Line 135: | ||
=== Steps to follow if you need to do this from scratch === | === Steps to follow if you need to do this from scratch === | ||
+ | |||
+ | '''Unfortunately this is no longer current, as the setup changed several times.''' | ||
A dump of the history to see what steps are required | A dump of the history to see what steps are required | ||
− | + | koji add-tag epel5 | |
− | + | koji add-tag --parent epel5 --arches "i386 x86_64" dist-epel5-build | |
− | + | koji add-external-repo -t epel5-build \ | |
dist-epel5-external-repo http://mirrors.nl.eu.kernel.org/fedora-epel/5/\$arch/ | dist-epel5-external-repo http://mirrors.nl.eu.kernel.org/fedora-epel/5/\$arch/ | ||
− | + | koji add-external-repo -t epel5-build dist-epel5-buildsys-macros-repo \ | |
http://buildsys.fedoraproject.org/buildgroups/rhel5/\$arch/ | http://buildsys.fedoraproject.org/buildgroups/rhel5/\$arch/ | ||
− | + | koji add-external-repo -t dist-epel5-build dist-epel5-centos5-repo \ | |
http://spiegel.nikhef.nl/mirror/centos/5/os/\$arch/ | http://spiegel.nikhef.nl/mirror/centos/5/os/\$arch/ | ||
− | + | koji add-target epel5 epel5-build epel5-candidates | |
'''NOTE''': the buildsys external repo is ONLY needed on EPEL5 to provide the correct buildsys-macros package. The standard CentOS package causes the dist macro to expand to el5.centos. By providing this external Fedora repo and putting it before the centos5 repo, the correct buildsys-macros is installed. See also [https://fedoraproject.org/wiki/Koji/KojiMisc#.25dist_tags https://fedoraproject.org/wiki/Koji/KojiMisc#.25dist_tags]. | '''NOTE''': the buildsys external repo is ONLY needed on EPEL5 to provide the correct buildsys-macros package. The standard CentOS package causes the dist macro to expand to el5.centos. By providing this external Fedora repo and putting it before the centos5 repo, the correct buildsys-macros is installed. See also [https://fedoraproject.org/wiki/Koji/KojiMisc#.25dist_tags https://fedoraproject.org/wiki/Koji/KojiMisc#.25dist_tags]. | ||
If needed (i.e. when the ordering turns out to be wrong) we can provide explicit priorities using a -p flag to add-external-repo. Check with | If needed (i.e. when the ordering turns out to be wrong) we can provide explicit priorities using a -p flag to add-external-repo. Check with | ||
Line 153: | Line 155: | ||
These groups are going to be passed to 'yum groupinstall' when the buildroot is created. | These groups are going to be passed to 'yum groupinstall' when the buildroot is created. | ||
− | + | koji add-group epel5-build build | |
− | + | koji add-group epel5-build 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 -s http://koji.fedoraproject.org/kojihub/ list-groups dist-5E-epel-build | |
Use the output to produce a proper list of packages. Be careful to exclude the fedpkg package which pulls in way too much! It includes mock which causes strange failures with conflicting group ids within the buildroot. | Use the output to produce a proper list of packages. Be careful to exclude the fedpkg package which pulls in way too much! It includes mock which causes strange failures with conflicting group ids within the buildroot. | ||
− | + | koji add-group-pkg epel5-build build `cat epel5-build-pkgs ` | |
− | + | koji add-group-pkg epel5-build srpm-build `cat epel5-srpm-build-pkgs ` | |
Don't forget to add the package! | Don't forget to add the package! |