cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rayees Namathponnan <>
Subject CloudStack 4.2 – Build and Packaging on RHEL 5.4
Date Tue, 23 Jul 2013 03:24:07 GMT
Hi All,

I am trying to create  4.2  build and  then package on RHEL 5.4,  initially  faced some issue
with RPM “topdir”,  fixed those issue in local machine (changes are below)

mkdir -p $RPMDIR/SPECS
+mkdir -p $RPMDIR/BUILD

(cd ../../; tar -c --exclude .git --exclude dist  .  | tar -C $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION
-x )
@@ -55,7 +56,7 @@ mkdir -p $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION
 cp cloud.spec $RPMDIR/SPECS
-(cd $RPMDIR; rpmbuild -ba SPECS/cloud.spec "-D_topdir $RPMDIR" "$DEFVER" "$DEFREL" "$DEFPRE")
+(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "$DEFVER" "$DEFREL" "$DEFPRE" -ba SPECS/cloud.spec)

After fixing this, I am able to start the build; unfortunately build getting failed during
packaging; observed below error

Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix)
<= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires(pre): /bin/sh
Requires: /bin/bash /usr/bin/python cloudstack-management = 4.2.0
Obsoletes: cloud-aws-api < 4.1.0
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/cloudstack-4.2.0-SNAPSHOT-SNAPSHOT.el5-build
error: Could not open /root/jenkins/build/workspace/XXXXX-4.2-rhel5/XXXXXX/cloudstack/dist/rpmbuild/SRPMS/cloudstack-4.2.0-SNAPSHOT.el5.src.rpm:
No such file or directory
cp: cannot stat `/root/jenkins/build/workspace/XXXXXX-4.2-rhel5/XXXXXX/cloudstack/dist/rpmbuild/RPMS/x86_64/*.rpm':
No such file or directory

Here build unable to find “SRPMS/cloudstack-4.2.0-SNAPSHOT.el5.src.rpm”; I physically
checked on the build path;  I cannot the folder “RPMS and SRPMS” under … cloudstack/dist/rpmbuild;

Any idea about this ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message