Hi all
Hope this is the correct mailing list to ask these questions.
I've being looking at using koji for our in house project. After perusing the docs I have managed to set up a koji server with the web, xml-rpc, kojira and command line client components working. So now I want to do the client side configuration. Our software project is distributed as RPMs (which is what made me look at koji in the first place) and we build three site specific versions from three different branches in CVS.
Reading the ServerBootstrap document on the Fedora wiki has me confused. How do I set up koji to build a set of RPMs from CVS? Our build target is RHEL 4 but so far I have not found any installable RPMs to run kojibuilder on this platform. Does anyone know where I could get a suitable RPM?
To build our project we need to install a set of RPMs into the build environment that setup the libraries and header files used during the build process. How does koji handle this?
Thanks
Zubin
Hi Zubin,
Reading the ServerBootstrap document on the Fedora wiki has me confused. How do I set up koji to build a set of RPMs from CVS?
Well, it doesn't require anything special, if you have a working instance of koji. You have to add an entry in the kojibuilder config file under "allowedSCMs", to allow the CVS checkout. and you can run a build as "koji build <Tag-name> <CVS-SCM>"
You can also check out the chain builds feature. I have a feeling it might be of help to you :)
Our build target is RHEL 4 but so far I have not found any installable RPMs to run kojibuilder on this platform. Does anyone know where I could get a suitable RPM?
Koji is a noarch pacakge. You can pick the fedora RPMs.
To build our project we need to install a set of RPMs into the build environment that setup the libraries and header files used during the build process. How does koji handle this?
Koji will build a SRPM from the CVS checkout. Make sure you have the right entries in BuildRequires and Requires in the spec file and koji will do the rest. (Also, make sure that those RPMs are built and tagged appropriately so that koji can make a repo which can be of use to you)
Jitesh
Thanks for the response Jitesh.
When I look to see what koji requires for install I get:
[zsethna@einstein koji-packages]$ rpm -q --requires -p koji-1.2.0-3.fc7.noarch.rpm
warning: koji-1.2.0-3.fc7.noarch.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
/bin/bash
/usr/bin/python
config(koji) = 1.2.0-3.fc7
pyOpenSSL
python(abi) = 2.5
python-krbV >= 1.0.13
rpm-python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
The problem here is python 2.5 since my build machine runs on RedHat Enterprise Linux 4 (ES) which uses an older version of python and I can't seem to find a python 2.5 RPM that will install on this OS.
Also what is python(abi)? Do I have to install a full python 2.5 RPM to satisfy this dependency?
Zubin
_____
From: fedora-buildsys-list-bounces@redhat.com [mailto:fedora-buildsys-list-bounces@redhat.com] On Behalf Of Jitesh Shah Sent: Tuesday, 24 February 2009 3:32 PM To: Discussion of Fedora build system Subject: Re: Is koji the right build tool for me? and some newbie questions
Hi Zubin,
Reading the ServerBootstrap document on the Fedora wiki has me confused. How do I set up koji to build a set of RPMs from CVS?
Well, it doesn't require anything special, if you have a working instance of koji. You have to add an entry in the kojibuilder config file under "allowedSCMs", to allow the CVS checkout. and you can run a build as "koji build <Tag-name> <CVS-SCM>"
You can also check out the chain builds feature. I have a feeling it might be of help to you :)
Our build target is RHEL 4 but so far I have not found any installable RPMs to run kojibuilder on this platform. Does anyone know where I could get a suitable RPM?
Koji is a noarch pacakge. You can pick the fedora RPMs.
To build our project we need to install a set of RPMs into the build environment that setup the libraries and header files used during the build process. How does koji handle this?
Koji will build a SRPM from the CVS checkout. Make sure you have the right entries in BuildRequires and Requires in the spec file and koji will do the rest. (Also, make sure that those RPMs are built and tagged appropriately so that koji can make a repo which can be of use to you)
Jitesh
Hi Zubin,
The problem here is python 2.5 since my build machine runs on RedHat Enterprise Linux 4 (ES) which uses an older version of python and I can’t seem to find a python 2.5 RPM that will install on this OS.
Well, take the git head of koji and run a "make rpm" in your environment. I am running a koji's version on python 2.4 (and it is working fine).
Also what is python(abi)? Do I have to install a full python 2.5 RPM to satisfy this dependency?
You can do a --nodeps as soon as your dependency reduces to only python(abi). It is provided on fedora's python RPMs.
Zubin
Jitesh
Zubin Sethna wrote:
The problem here is python 2.5 since my build machine runs on RedHat Enterprise Linux 4 (ES) which uses an older version of python and I can't seem to find a python 2.5 RPM that will install on this OS.
Also what is python(abi)? Do I have to install a full python 2.5 RPM to satisfy this dependency?
You will need to rebuild koji under RHEL4 (or at least something more RHEL4-ish) if you want to run it on RHEL4. However....
1) There are some build deps that are missing from RHEL4, you will need to provide them yourself (some may be in epel, others can be rebuilt for RHEL4). I know it is possible to build koji for RHEL4. But...
2) Once built, there are some additional runtime dependencies for koji, some of them indirect (koji-builder requires a recent mock, and mock requires lots of things). I think you can probably get koji-hub and kojira to run under RHEL4 without too much pain. Getting koji-builder on a RHEL4 box is going to be a world of pain (mainly because of mock and yum) -- save yourself the time and use RHEL5 for that.
Deps you'll probably need: createrepo git mock python-cheetah python-elementtree python-krbV python-sqlite python-urlgrabber sqlite yum
Yes, it seems too painful to setup kojibuilder on a RHEL 4 box, mainly due to the different version of python required and all the deps for createrepo and mock. It is possible but as you say too much work. My approach is to setup a 'build proxy' build host and modify my build scripts to log into the appropriate RHEL 4 box to do the actual compilation.
-----Original Message----- From: fedora-buildsys-list-bounces@redhat.com [mailto:fedora-buildsys-list-bounces@redhat.com] On Behalf Of Mike McLean Sent: Wednesday, 25 February 2009 2:12 AM To: Discussion of Fedora build system Subject: Re: Is koji the right build tool for me? and some newbie questions
Zubin Sethna wrote:
The problem here is python 2.5 since my build machine runs on RedHat Enterprise Linux 4 (ES) which uses an older version of python and I can't seem to find a python 2.5 RPM that will install on this OS.
Also what is python(abi)? Do I have to install a full python 2.5 RPM
to
satisfy this dependency?
You will need to rebuild koji under RHEL4 (or at least something more RHEL4-ish) if you want to run it on RHEL4. However....
1) There are some build deps that are missing from RHEL4, you will need to provide them yourself (some may be in epel, others can be rebuilt for
RHEL4). I know it is possible to build koji for RHEL4. But...
2) Once built, there are some additional runtime dependencies for koji, some of them indirect (koji-builder requires a recent mock, and mock requires lots of things). I think you can probably get koji-hub and kojira to run under RHEL4 without too much pain. Getting koji-builder on
a RHEL4 box is going to be a world of pain (mainly because of mock and yum) -- save yourself the time and use RHEL5 for that.
Deps you'll probably need: createrepo git mock python-cheetah python-elementtree python-krbV python-sqlite python-urlgrabber sqlite yum
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
buildsys@lists.fedoraproject.org