Help with Mock error

Alec Leamas leamas.alec at gmail.com
Tue Mar 13 07:43:01 UTC 2012


On 03/13/2012 07:21 AM, Amit Saha wrote:
> Hello:
>
> I am in the process of building my first package [1], and have got 
> most of it sorted. 'rpmbuild -ba' executes successfully with the 
> current SPEC file[3].
>
> However, the SRPM [2] fails in Mock with the error:
>
> RPM build errors:
>     File not found by glob: 
> /builddir/build/BUILDROOT/python-picloud-2.4.2-3.fc16.i386/usr/bin/*
> Child return code was: 1
>
> I am not sure why? (Having the incorrect %{_bindir}/ in the SPEC file 
> passes successfully).
>
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=799810
> [2] 
> http://amitksaha.fedorapeople.org/contribs/picloud_packaging/python-picloud-2.4.2-3.fc16.src.rpm
> [3] 
> http://amitksaha.fedorapeople.org/contribs/picloud_packaging/python-picloud.spec
>
>
> I am probably missing something very basic here. Kindly suggest.
>
> Thanks!
> Amit
>
The spec most likely doesn't put anything in $RPM_BUILD_ROOT/usr/bin. To 
verify, run rpmbuild -bi <your spec>, and look into 
~/rpmbuild/BUILD/python-picloud-2.4.2* to find out what the thing 
actually installs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20120313/cf584b5b/attachment.html>


More information about the devel mailing list