After extracting the spec file out an srpm and editing it, how does one execute $rpmbuild --rebuild package.srpm and use the new spec file as a non-root user inside a home dir build root?
Thanks! jlc
On Wed, Apr 9, 2008 at 5:24 PM, Joseph L. Casale jcasale@activenetwerx.com wrote:
After extracting the spec file out an srpm and editing it, how does one execute $rpmbuild --rebuild package.srpm and use the new spec file as a non-root user inside a home dir build root?
You don't. You do "rpmbuild -ba <new specfile>"
Regards, Tim
You don't. You do "rpmbuild -ba <new specfile>"
Regards, Tim
Hi, I read that, but I assumed it required the source to be unpacked. I tried it and I recieved the following error while trying to compile xen 3.2 srpm under CentOS 5.1x64:
error: Bad exit status from /var/tmp/rpm-tmp.42788 (%build)
Cleaning out the /var/tmp dir fixed it? Is that normal/fluke?
Thanks! jlc
On Wed, Apr 9, 2008 at 9:27 AM, Joseph L. Casale jcasale@activenetwerx.com wrote:
You don't. You do "rpmbuild -ba <new specfile>"
Regards, Tim
Hi, I read that, but I assumed it required the source to be unpacked. I tried it and I recieved the following error while trying to compile xen 3.2 srpm under CentOS 5.1x64:
error: Bad exit status from /var/tmp/rpm-tmp.42788 (%build)
May I ask one question? If you do not edit the spec file and run the same rpmbuild -ba command against the original spec, would it build without errors?
Akemi
May I ask one question? If you do not edit the spec file and run the same rpmbuild -ba command against the original spec, would it build without errors?
Akemi
Good question :) It does need an edit though to build regardless under x64 so I would assume the build would simply error out on the hvm related issue. It worked and I have rpms now!
jlc