Saturday, November 27, 2010

Building packages using Koji

Koji:

Koji is a client-server system which allows you to queue builds within the Fedora build farm. This permits you to test whether your package builds on several different architectures, which is especially useful when you don't otherwise have access to the machines of that architecture.

Installed Koji using:

yum install fedora-packager

fedora-packager provides useful scripts to help maintain and setup your koji environment. Additionally, it includes dependencies on the Koji CLI, so it will be installed when you install fedora-packager.

After the installation the following command needs to be run in order to do the initial koji setup.

/usr/bin/fedora-packager-setup

to be able to generate certificates so the user can log on to the web interface for koji.

command to install a package using koji is :

koji build dist-f12 --scratch vim-7.2.446-2.fc14.src.rpm

the file is uploaded to the server and then built. here are the results for my vim built.

Uploading srpm: vim-7.2.446-2.fc14.src.rpm
[====================================] 100% 00:01:39   9.57 MiB  98.52 KiB/sec
Created task: 2630305
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=2630305
Watching tasks (this may be safely interrupted)...
2630305 build (dist-f12, vim-7.2.446-2.fc14.src.rpm): open (ppc08.phx2.fedoraproject.org)
  2630312 buildArch (vim-7.2.446-2.fc14.src.rpm, i686): open (x86-11.phx2.fedoraproject.org)
  2630309 buildArch (vim-7.2.446-2.fc14.src.rpm, ppc): open (ppc04.phx2.fedoraproject.org)
  2630311 buildArch (vim-7.2.446-2.fc14.src.rpm, ppc64): open (ppc09.phx2.fedoraproject.org)
  2630310 buildArch (vim-7.2.446-2.fc14.src.rpm, x86_64): open (x86-09.phx2.fedoraproject.org)
  2630310 buildArch (vim-7.2.446-2.fc14.src.rpm, x86_64): open (x86-09.phx2.fedoraproject.org) -> closed
  0 free  4 open  1 done  0 failed
  2630312 buildArch (vim-7.2.446-2.fc14.src.rpm, i686): open (x86-11.phx2.fedoraproject.org) -> closed
  0 free  3 open  2 done  0 failed
  2630309 buildArch (vim-7.2.446-2.fc14.src.rpm, ppc): open (ppc04.phx2.fedoraproject.org) -> closed
  0 free  2 open  3 done  0 failed

^[[B^[2630305 build (dist-f12, vim-7.2.446-2.fc14.src.rpm): open (ppc08.phx2.fedoraproject.org) -> closed
  0 free  1 open  4 done  0 failed
  2630311 buildArch (vim-7.2.446-2.fc14.src.rpm, ppc64): open (ppc09.phx2.fedoraproject.org) -> closed
  0 free  0 open  5 done  0 failed

2630305 build (dist-f12, vim-7.2.446-2.fc14.src.rpm) completed successfully

No comments:

Post a Comment