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

Brian Stinson brian at bstinson.com
Sat Jun 27 00:02:57 UTC 2015


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. 

Cheers!
Brian 


More information about the CentOS-devel mailing list