Difference between revisions of "Koji Testbed"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 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
  
  99 koji add-tag dist-epel5
+
  koji add-tag epel5
  100 koji add-tag --parent dist-epel5 --arches "i386 x86_64" dist-epel5-build
+
  koji add-tag --parent epel5 --arches "i386 x86_64" dist-epel5-build
  102 koji add-external-repo -t 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/
  103 koji add-external-repo -t dist-epel5-build dist-epel5-buildsys-macros-repo \
+
  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/
  104 koji add-external-repo -t dist-epel5-build dist-epel5-centos5-repo \
+
  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/
  105 koji add-target dist-epel5 dist-epel5-build
+
  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.
  
  106 koji add-group dist-epel5-build build
+
  koji add-group epel5-build build
  107 koji add-group dist-epel5-build srpm-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.
  
  109 koji -s http://koji.fedoraproject.org/kojihub/ list-groups dist-5E-epel-build
+
  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.
  
  112 koji add-group-pkg dist-epel5-build build `cat epel5-build-pkgs `
+
  koji add-group-pkg epel5-build build `cat epel5-build-pkgs `
  114 koji add-group-pkg dist-epel5-build srpm-build `cat epel5-srpm-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!

Revision as of 14:34, 31 July 2013