[libvirt-users] Building an RPM

Hi, I have downloaded libvirt-0.9.11 and compiled it on my RHEL 6.2 system. I am trying to build a binary RPM for distribution, I am not sure what the best way to go about doing this is. http://libvirt.org/FAQ.html suggests that I try 'make rpm', however that ends in the below error: missing XHTML1 DTD cp: cannot stat `./api.html': No such file or directory make[2]: *** [distdir] Error 1 rm news.html.tmp goals.html.tmp archnetwork.html.tmp formatsecret.html.tmp drvopenvz.html.tmp windows.html.tmp testtck.html.tmp drvlxc.html.tmp apps.html.tmp docs.html.tmp formatstorageencryption.html.tmp drvvbox.html.tmp formatdomain.html.tmp php.html.tmp drvhyperv.html.tmp errors.html.tmp hacking.html.tmp format.html.tmp hooks.html.tmp api.html.tmp storage.html.tmp formatcaps.html.tmp relatedlinks.html.tmp compiling.html.tmp index.html.tmp archdomain.html.tmp downloads.html.tmp auth.html.tmp archnode.html.tmp hvsupport.html.tmp bugs.html.tmp java.html.tmp locking.html.tmp logging.html.tmp testapi.html.tmp formatnetwork.html.tmp bindings.html.tmp uri.html.tmp drvtest.html.tmp sitemap.html.tmp drvqemu.html.tmp contact.html.tmp formatnwfilter.html.tmp intro.html.tmp drvxen.html.tmp drvesx.html.tmp drvvmware.html.tmp testsuites.html.tmp devguide.html.tmp firewall.html.tmp architecture.html.tmp migration.html.tmp todo.html.tmp formatsnapshot.html.tmp formatstorage.html.tmp internals.html.tmp deployment.html.tmp api_extension.html.tmp drvuml.html.tmp virshcmdref.html.tmp csharp.html.tmp python.html.tmp drvremote.html.tmp archstorage.html.tmp remote.html.tmp drivers.html.tmp formatnode.html.tmp make[2]: Leaving directory `/home/user/libvirt-0.9.11/docs' make[1]: *** [distdir] Error 1 make[1]: Leaving directory `/home/user/libvirt-0.9.11' make: *** [rpm] Error 2 Any clue on how to proceed? I am not sure why api.html is missing, since this is a clean untar of the 0.9.11 tar file, and './configure;make;make install' all worked without any issues. Thanks!

On Wed, Apr 18, 2012 at 08:52:21PM -0700, John Wayne wrote:
Hi,
I have downloaded libvirt-0.9.11 and compiled it on my RHEL 6.2 system. I am trying to build a binary RPM for distribution, I am not sure what the best way to go about doing this is. http://libvirt.org/FAQ.html suggests that I try 'make rpm', however that ends in the below error:
[...]
Any clue on how to proceed? I am not sure why api.html is missing, since this is a clean untar of the 0.9.11 tar file, and './configure;make;make install' all worked without any issues.
Try rpmbuild -ta libvirt-0.9.11.tar.gz "make rpm" is more for people working out of a git checkout, ou may end up with missing dependancies leading to a failure to "make dist". rpmbuild may raise a number of missing dependencies that you may have to supply locally first before actually making a build. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

Hi, I had tried that and found numerous packages that were needed as a pre-req, so I thought of trying the make rpm route. Anyway, I went back to rpmbuild -ta and installed all the pre-req packages, RHEL has them in their repo so it made it easier than I though. Except for "numad is needed by libvirt-0.9.11-1.el6.x86_64", and I can't find numad RHEL rpm, I am not sure where to get numad source code to compile? Thanks ----- Original Message ----- From: Daniel Veillard <veillard@redhat.com> To: John Wayne <m01z04-libvirt@yahoo.com> Cc: "libvirt-users@redhat.com" <libvirt-users@redhat.com> Sent: Thursday, April 19, 2012 12:24 AM Subject: Re: [libvirt-users] Building an RPM On Wed, Apr 18, 2012 at 08:52:21PM -0700, John Wayne wrote:
Hi,
I have downloaded libvirt-0.9.11 and compiled it on my RHEL 6.2 system. I am trying to build a binary RPM for distribution, I am not sure what the best way to go about doing this is. http://libvirt.org/FAQ.html suggests that I try 'make rpm', however that ends in the below error:
[...]
Any clue on how to proceed? I am not sure why api.html is missing, since this is a clean untar of the 0.9.11 tar file, and './configure;make;make install' all worked without any issues.
Try rpmbuild -ta libvirt-0.9.11.tar.gz "make rpm" is more for people working out of a git checkout, ou may end up with missing dependancies leading to a failure to "make dist". rpmbuild may raise a number of missing dependencies that you may have to supply locally first before actually making a build. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

At 04/20/2012 08:32 AM, John Wayne Wrote:
Hi,
I had tried that and found numerous packages that were needed as a pre-req, so I thought of trying the make rpm route. Anyway, I went back to rpmbuild -ta and installed all the pre-req packages, RHEL has them in their repo so it made it easier than I though. Except for "numad is needed by libvirt-0.9.11-1.el6.x86_64", and I can't find numad RHEL rpm, I am not sure where to get numad source code to compile?
I donot find it too, so I build libvirt like this: rpmbuild --define "_without-numad 1" -ba ... Thanks Wen Congyang
Thanks
----- Original Message ----- From: Daniel Veillard <veillard@redhat.com> To: John Wayne <m01z04-libvirt@yahoo.com> Cc: "libvirt-users@redhat.com" <libvirt-users@redhat.com> Sent: Thursday, April 19, 2012 12:24 AM Subject: Re: [libvirt-users] Building an RPM
On Wed, Apr 18, 2012 at 08:52:21PM -0700, John Wayne wrote:
Hi,
I have downloaded libvirt-0.9.11 and compiled it on my RHEL 6.2 system. I am trying to build a binary RPM for distribution, I am not sure what the best way to go about doing this is. http://libvirt.org/FAQ.html suggests that I try 'make rpm', however that ends in the below error:
[...]
Any clue on how to proceed? I am not sure why api.html is missing, since this is a clean untar of the 0.9.11 tar file, and './configure;make;make install' all worked without any issues.
Try rpmbuild -ta libvirt-0.9.11.tar.gz
"make rpm" is more for people working out of a git checkout, ou may end up with missing dependancies leading to a failure to "make dist".
rpmbuild may raise a number of missing dependencies that you may have to supply locally first before actually making a build.
Daniel
participants (3)
-
Daniel Veillard
-
John Wayne
-
Wen Congyang