[CentOS-devel] [NFV SIG][CBS] Question building DPDK

Sat Jun 27 00:13:47 UTC 2015
Joseph Gasparakis <joseph.gasparakis at intel.com>


On Fri, 26 Jun 2015, Brian Stinson wrote:

> On Jun 26 16:42, Joseph Gasparakis wrote:
> > Hi all,
> > 
> > I have some questions as this is the first time I am using CBS :-)
> > 
> > First of all I have done all the prework on my .koji directory and I have 
> > verified I can build:
> > 
> > <snap>
> > [jgaspara at jg-vm ~]$ koji list-permissions --mine 
> > build
> > </snap>
> > 
> > I am trying to build DPDK 2.0 (commit id 493db80afd) and I (believe I) 
> > have successfully created a dpdk package for 
> > nfv7-opnfv-arno-[testing|release]:
> > 
> > <snap>
> > [jgaspara at jg-vm ~]$ koji add-pkg --owner "jgasparakis" 
> > nfv7-opnfv-arno-testing dpdk
> > [jgaspara at jg-vm ~]$ koji add-pkg --owner "jgasparakis" 
> > nfv7-opnfv-arno-release dpdk
> > </snap>
> > 
> > Then, I suppose I need to kick off a git build, but it seems like I need 
> > to somehow add the DPDK git tree to the permitted SCMs for CBS:
> > 
> > <snap>
> > 
> > [jgaspara at jg-vm ~]$ koji build nfv7-opnfv-arno-el7 
> > "git+http://dpdk.org/git/dpdk?#493db80afd009eea35ee7d95ad4aba49df5113a3"
> > Created task: 15451
> > Task info: http://cbs.centos.org/koji/taskinfo?taskID=15451
> > Watching tasks (this may be safely interrupted)...
> > 15451 build (nfv7-opnfv-arno-el7, 
> > /git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): open 
> > (x86_64-2.cbs.centos.org)
> >   15452 buildSRPMFromSCM 
> > (/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): free
> > 15451 build (nfv7-opnfv-arno-el7, 
> > /git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): open 
> > (x86_64-2.cbs.centos.org) -> FAILED: BuildError: dpdk.org:/git/dpdk is not 
> > in the list of allowed SCMs
> >   1 free  0 open  0 done  1 failed
> >   15452 buildSRPMFromSCM 
> > (/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): free -> FAILED: 
> > BuildError: dpdk.org:/git/dpdk is not in the list of allowed SCMs
> >   0 free  0 open  0 done  2 failed
> > 
> > 15451 build (nfv7-opnfv-arno-el7, 
> > /git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3) failed
> > 
> > </snap>
> > 
> > Am I right? If so can someone please change permissions for the repo or 
> > let me know how I can add the repo to the allowed ones? If not 
> > can you point me to what I am doing wrong? :-)
> > 
> > Again, the DPDK repo is http://dpdk.org/git/dpdk, the commit id that 
> > matches tag v2.0.0 is 493db80afd009eea35ee7d95ad4aba49df5113a3 and the 
> > spec file lives in pkg/dpdk.spec. I am assuming CBS will pick it up and 
> > create the rpm based on that spec file.
> > 
> > Thanks!
> > 
> > Joseph
> > 
> 
> Hi Joseph, 
> 
> You are correct that we will (eventually) be building things in the CBS
> from SCM, but we will only be building packages that are present in
> git.centos.org.
> 
> We're working on a couple of upgrades that will allow us to get new
> packages added to git.centos.org more easily, but that work isn't
> finished yet. In the meantime, you can take your sources from your git
> repo and build a source RPM on your workstation. From there you can
> upload your work and build in the CBS with the following incantation:
> 
> $ koji build nvf7-opnfv-arno-el7 <path_to_your_srpm>
> 
> If you have any questions, or need anything else speak up here or feel
> free to pop into #centos-devel on Freenode. 

Great! At least I am not completely confused :-) Ok, will build the srpm 
then and take it from there, thanks Brian!

Before I go back to my cave, can you suggest any up to date howto pages 
for CBS/koji? http://wiki.centos.org/HowTos/CommunityBuildSystem has been 
mentioned to me, but it is really a quickstart page and also is talking 
about git builds which if I am reading correctly your reply are not there 
yet, at least not for new packages...

> 
> Cheers!
> Brian 
> _______________________________________________
> CentOS-devel mailing list
> CentOS-devel at centos.org
> http://lists.centos.org/mailman/listinfo/centos-devel
>