Wednesday, October 27, 2010

BUILDING WITH KOJI

KOJI Setup
We use Koji to build a package on different architectures such as i386, x86_64, ppc32, and ppc64. This will allow us to check if the rpm package we created will work on different machines with different architectures. When building for the 'Fedora Project' they will provide you with a certificate so you could use their servers. Using Koji can also be a good way to monitor errors and to get stats of how long it takes to build.
root#yum install fedora-packager
The command uses to help maintain and setup koji environment. So, it will be included in the main koji packager.
And, default the koji tool authenticates to the central server uing Kerberos.
Firstly,We can create an account with Fedora Project. click here to start creatting account. And, We get certificate of Fedora project.

click here start creating your account
Your account is done click here create your certificate
Then, save it your build user's home directory. Let's install Koji as root before we do anything else.
Run this build user.
user#fedora-packager-setup
[ycshon@localhost ~]$ fedora-packager-setup
Setting up Fedora packager environment
You need a client certificate from the Fedora Account System, lets get one now
FAS Username: ycshon
FAS Password:
Saved: /home/ycshon/.fedora-server-ca.cert
Linking: ~/.fedora-server-ca.cert to ~/.fedora-upload-ca.cert
Wrote sparc koji config file
Wrote arm koji config file
Wrote alpha koji config file
Wrote s390 koji config file
Wrote hppa koji config file
Wrote ppc koji config file
Wrote mips koji config file
Setting up Browser Certificates
Enter Export Password:
Verifying - Enter Export Password:

Browser certificate exported to ~/fedora-browser-cert.p12
To import the certificate into Firefox:

Edit -> Preferences -> Advanced
Click "View Certificates"
On "Your Certificates" tab, click "Import"
Select ~/fedora-browser-cert.p12
Type the export passphrase you chose earlier

Once imported, you should see a certificate named "Fedora Project".
Your username should appear underneath this.


We can build for all Fedora-supported architectures
user#koji build dist-f12 --scratch phpMyAdmin*.src.rpm
Now, We should be able to click the webpage
So, user will need to run fedora-packager-setup with own certificates.


Koji is the software that builds packages for the Fedora project . To download the source code, report bugs, join the mailing list etc., see the Koji project website .

No comments:

Post a Comment