FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 05-23-2012, 11:05 PM
Jeremy Davis
 
Default Questions regarding Koji, fedpkg and SCM

Hello List,
I hope I picked the correct*mailing*list to ask these types of questions.
In my environment we are trying to setup a koji build system using the same structure that you all use for the Fedora project. This involves using fedpkg (modified for our environment) to import the SRPM into the SCM and then tell koji to build. We have everything working with our environment but have to do a couple of things manually. Mainly the SCM creation and adding a tag for the package in koji before the user is allow to add their srpm to the SCM and build with koji (get the error that it can't tag if a tag is not created before hand). Once we create the SCM and add the tag into Koji everything works as it should based on the documentation I have read.

My question is this. Do you by chance have any tools that automate the SCM creation and koji tag adding? Is this how you all manage packages in Fedora? Do you have to manually create SCM and koji tags when a user wants to add a new package to Fedora? Any assistance you could provide would be greatly appreciated.*

Note: This is for an internal package build system for my company and will only be used as such. I am willing to share what I have done as the fedpkg will also be used to push the packages into our Spacewalk environment and also push those packages to systems within Spacewalk (with some custom code that I am adding to fedpkg and renaming that command to fit into our naming convention).

Thank you for your time and have a great day!
Regards,Jeremy*
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 
Old 05-23-2012, 11:45 PM
Clint Savage
 
Default Questions regarding Koji, fedpkg and SCM

On Wed, May 23, 2012 at 5:05 PM, Jeremy Davis <jdavis4102@gmail.com> wrote:
> Hello List,
>
> I hope I picked the correct*mailing*list to ask these types of questions.
>
> In my environment we are trying to setup a koji build system using the same
> structure that you all use for the Fedora project. This involves using
> fedpkg (modified for our environment) to import the SRPM into the SCM and
> then tell koji to build. We have everything working with our environment but
> have to do a couple of things manually. Mainly the SCM creation and adding a
> tag for the package in koji before the user is allow to add their srpm to
> the SCM and build with koji (get the error that it can't tag if a tag is not
> created before hand). Once we create the SCM and add the tag into Koji
> everything works as it should based on the documentation I have read.
>
> My question is this. Do you by chance have any tools that automate the SCM
> creation and koji tag adding? Is this how you all manage packages in Fedora?
> Do you have to manually create SCM and koji tags when a user wants to add a
> new package to Fedora? Any assistance you could provide would be greatly
> appreciated.
>
> Note: This is for an internal package build system for my company and will
> only be used as such. I am willing to share what I have done as the fedpkg
> will also be used to push the packages into our Spacewalk environment and
> also push those packages to systems within Spacewalk (with some custom code
> that I am adding to fedpkg and renaming that command to fit into our naming
> convention).
>
> Thank you for your time and have a great day!
>
> Regards,
> Jeremy

Jeremy,

I think the list for this is actually buildsys@, but for the sake of
being helpful, I'll answer here.

Currently, I run a koji server too, for a project called GoOSe Linux
(http://gooseproject.org and our site is horrible looking, please be
kind). To prepare any package for inclusion to koji, I've written a
component of our tool, called Skein, which is roughly based upon
fedpkg as well (https://github.com/gooseproject/skein). The specific
functions I use are skein request, skein query and the most important,
skein grant.

Essentially, there are 3 basic things needed to build with koji. A
lookaside cache (a location in which to store the source tarball or
other large bits), a scm repository with at least the spec file and
any patches, and a way to tag the package in koji. Koji has an XML-RPC
api that is pretty extensive for this (koji list-api will help) but
essentially, when someone runs skein grant pkg-name, it creates the
directories for the lookaside cache, creates the github repository and
then tags the package in koji according to a configuration or passed
in argument.

It was pretty simple to write, but feel free to grab the code and
reuse at your leisure. If you have any questions, please feel free to
email me off-list as well.

Cheers,

Clint
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 
Old 05-24-2012, 10:06 PM
Kevin Fenzi
 
Default Questions regarding Koji, fedpkg and SCM

On Wed, 23 May 2012 17:05:40 -0600
Jeremy Davis <jdavis4102@gmail.com> wrote:

> Hello List,
>
> I hope I picked the correct mailing list to ask these types of
> questions.

As noted, the buildsys list might be better.
>
> In my environment we are trying to setup a koji build system using
> the same structure that you all use for the Fedora project. This
> involves using fedpkg (modified for our environment) to import the
> SRPM into the SCM and then tell koji to build. We have everything
> working with our environment but have to do a couple of things
> manually. Mainly the SCM creation and adding a tag for the package in
> koji before the user is allow to add their srpm to the SCM and build
> with koji (get the error that it can't tag if a tag is not created
> before hand). Once we create the SCM and add the tag into Koji
> everything works as it should based on the documentation I have read.
>
> My question is this. Do you by chance have any tools that automate
> the SCM creation and koji tag adding? Is this how you all manage
> packages in Fedora? Do you have to manually create SCM and koji tags
> when a user wants to add a new package to Fedora? Any assistance you
> could provide would be greatly appreciated.

Yes, we use bugzilla to review packages, then we have a script that
takes the approved packages list and processes the new package requests
from it. It's available at:

http://git.fedorahosted.org/git/?p=fedora-infrastructure.git;a=blob;f=scripts/process-git-requests/process-git-requests;h=37ebbc9c6b1fec0338d082e077bef8856fc1dd2 1;hb=29e87a22fac82df08e7b31563be5b4bca01f821d

It calls our package database and then goes to the packages machine and
creates the git repo with the needed branches.

Hope that helps some.

kevin
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 
Old 05-24-2012, 10:21 PM
Jeremy Davis
 
Default Questions regarding Koji, fedpkg and SCM

Thank you all for your assistance. Both of these items is what I was looking for. Thank you for your time and have a great day!

On Thu, May 24, 2012 at 4:06 PM, Kevin Fenzi <kevin@scrye.com> wrote:

On Wed, 23 May 2012 17:05:40 -0600

Jeremy Davis <jdavis4102@gmail.com> wrote:



> Hello List,

>

> I hope I picked the correct mailing list to ask these types of

> questions.



As noted, the buildsys list might be better.

>

> In my environment we are trying to setup a koji build system using

> the same structure that you all use for the Fedora project. This

> involves using fedpkg (modified for our environment) to import the

> SRPM into the SCM and then tell koji to build. We have everything

> working with our environment but have to do a couple of things

> manually. Mainly the SCM creation and adding a tag for the package in

> koji before the user is allow to add their srpm to the SCM and build

> with koji (get the error that it can't tag if a tag is not created

> before hand). Once we create the SCM and add the tag into Koji

> everything works as it should based on the documentation I have read.

>

> My question is this. Do you by chance have any tools that automate

> the SCM creation and koji tag adding? Is this how you all manage

> packages in Fedora? Do you have to manually create SCM and koji tags

> when a user wants to add a new package to Fedora? Any assistance you

> could provide would be greatly appreciated.



Yes, we use bugzilla to review packages, then we have a script that

takes the approved packages list and processes the new package requests

from it. It's available at:



http://git.fedorahosted.org/git/?p=fedora-infrastructure.git;a=blob;f=scripts/process-git-requests/process-git-requests;h=37ebbc9c6b1fec0338d082e077bef8856fc1dd2 1;hb=29e87a22fac82df08e7b31563be5b4bca01f821d




It calls our package database and then goes to the packages machine and

creates the git repo with the needed branches.



Hope that helps some.



kevin


_______________________________________________

infrastructure mailing list

infrastructure@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/infrastructure


_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 

Thread Tools




All times are GMT. The time now is 06:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org