Rpmbuild question.

Jim Lynch jim at fayettedigital.com
Fri May 4 15:32:10 UTC 2012


I am attempting to  generate an .rpm file from a spec file that works OK 
on cents 4 and 5.  But fails miserably on 6.

Here's the %files section of the spec file:


%files
%defattr(-,root,root)
/usr/local/bin/logpoll
/etc/cron.daily/logpoll_cron
/etc/cron.d/logpoll_cmd

When I do a rpmbuild -bb logpoll.spec

I get a bunch of messages, "file not found"  that reference (for example)


rpmbuild -bb logpoll.spec
Processing files: logpoll-1-62.x86_64
error: File not found: 
/home/jim/rpmbuild/BUILDROOT/logpoll-1-62.x86_64/usr/local/bin/logpoll
error: File not found: 
/home/jim/rpmbuild/BUILDROOT/logpoll-1-62.x86_64/etc/cron.daily/logpoll_cron
error: File not found: 
/home/jim/rpmbuild/BUILDROOT/logpoll-1-62.x86_64/etc/cron.d/logpoll_cmd

I'm guessing something in the configuration changed.  I tried rpmbuild 
--buildroot=/ -bb logpoll.spec
and

rpmbuild --buildroot='' -bb logpoll.spec

But it complained that the buildroot can't be /.

Can anyone tell me how I can get rpmbuild back to working like it did 
before?

Thanks,
Jim.



More information about the Rpm-list mailing list