If i remember correctly these directories are not automagically created on 
redhat 5.x systems.

You need to use the default location in the var directory probably so you need 
to make some changes to the package script to deal with that.

Cheers,

Hugo

Sent from my iPhone

On 23 jul. 2013, at 05:24, Rayees Namathponnan <rayees.namathpon...@citrix.com> 
wrote:

> 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
> mkdir -p $RPMDIR/SOURCES/$PACK_PROJECT-$VERSION
> 
> (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)
> exit
> }
> 
> 
> 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 ?
> 
> 
> Regards,
> Rayees
> 

Reply via email to