You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by David Nalley <da...@gnsa.us> on 2013/03/16 18:55:38 UTC
EL6 RPM BuildRequire changes for agent SELinux policy creation
Hi folks, Prasanna in particular:
Prasanna - I have this patch [1] pending. I haven't committed it yet
because I fear that it will break the RPM packaging job on Jenkins.
Sadly, I don't seem to have access to the RPM builders that jenkins
uses.
Specifically I've added the following build requirements:
+BuildRequires: checkpolicy
+BuildRequires: policycoreutils
Can you ensure they get installed on the machine that builds RPMs?
--David
[1] http://people.apache.org/~ke4qqq/0001-CLOUDSTACK-337-adding-packaging-for-this.patch
Re: EL6 RPM BuildRequire changes for agent SELinux policy creation
Posted by Prasanna Santhanam <Pr...@citrix.com>.
On Sat, Mar 16, 2013 at 01:55:38PM -0400, David Nalley wrote:
> Hi folks, Prasanna in particular:
>
> Prasanna - I have this patch [1] pending. I haven't committed it yet
> because I fear that it will break the RPM packaging job on Jenkins.
> Sadly, I don't seem to have access to the RPM builders that jenkins
> uses.
>
> Specifically I've added the following build requirements:
> +BuildRequires: checkpolicy
> +BuildRequires: policycoreutils
>
> Can you ensure they get installed on the machine that builds RPMs?
>
> --David
>
> [1] http://people.apache.org/~ke4qqq/0001-CLOUDSTACK-337-adding-packaging-for-this.patch
The patch didn't apply on master so I applied it by hand: Packaging
fails for rpm
# bash -x package.sh
++ pwd
+ CWD=/home/jenkins/build/workspace/packagetest/packaging/centos63
+ RPMDIR=/home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild
+ PACK_PROJECT=cloudstack
++ grep '^[0-9]\.'
++ cd ../../
++ mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version
+ VERSION=4.1.0-SNAPSHOT
+ echo 4.1.0-SNAPSHOT
+ grep SNAPSHOT
4.1.0-SNAPSHOT
++ cut -d - -f 1
++ echo 4.1.0-SNAPSHOT
+ REALVER=4.1.0
+ DEFVER='-D_ver 4.1.0'
+ DEFPRE='-D_prerelease 1'
+ DEFREL='-D_rel SNAPSHOT'
+ mkdir -p /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild/SPECS
+ mkdir -p /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild/SOURCES/cloudstack-4.1.0-SNAPSHOT
+ cd ../../
+ tar -C /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild/SOURCES/cloudstack-4.1.0-SNAPSHOT -x
+ tar -c --exclude .git --exclude dist .
+ cd /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild/SOURCES/
+ tar -czf cloudstack-4.1.0-SNAPSHOT.tgz cloudstack-4.1.0-SNAPSHOT
+ cp cloud.spec /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild/SPECS
+ cd /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild
+ rpmbuild -ba SPECS/cloud.spec '-D_topdir /home/jenkins/build/workspace/packagetest/packaging/centos63/../../dist/rpmbuild' '-D_ver 4.1.0' '-D_rel SNAPSHOT' '-D_prerelease 1'
error: line 341: Too many names: %post agent ### this is for SELinux policy