opencontrail第三方rpm打包方式

OS:CentOS6.6

目的:为opencontrail提供所需要的第三方软件包

准备条件:暂时无


方法:

[root@gdc1000 rpm]# yum install -y spectool mock

sudo usermod -g mock z

2 切换到z用户

sudo chmod 777 /BUILD

git clone https://github.com/Juniper/contrail-third-party-packages.git


3 make && make all

4 错误解决

#mock instructions
mock -r epel-6-x86_64-contrail --buildsrpm --sources specs/ifmap-server/ --spec specs/ifmap-server/ifmap-server.spec --resultdir=/home/gftp/contrail/contrail-third-party-packages/upstream/rpm/../../../BUILD
ERROR: Must be member of 'mock' group to run mock! (['gftp'])
Traceback (most recent call last):
  File "/usr/sbin/mock", line 860, in <module>
    main(retParams)
  File "/usr/sbin/mock", line 586, in main
    groupcheck()
  File "/usr/sbin/mock", line 543, in groupcheck
    raise RuntimeError, "Must be member of 'mock' group to run mock! (%s)" % members
RuntimeError: Must be member of 'mock' group to run mock! (['gftp'])
make: *** [ifmap-server] Error 1
[gftp@gdc1000 rpm]$
修改方法:将z用户加入mock组


你可能感兴趣的:(opencontrail第三方rpm打包方式)