<div dir="ltr">Hi Simon,<div><br></div><div style>I'm not sure it's worth trying to get OpenNebula to work in CentOS 5, becuase OpenNebula requires Ruby >= 1.8.7, but CentOS 5 provides Ruby 1.8.5.</div><div style>
<br></div><div style>cheers,<br>Jaime</div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 4, 2013 at 1:54 AM, Simon J Mudd <span dir="ltr"><<a href="mailto:sjmudd@pobox.com" target="_blank">sjmudd@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm trying to get Opennebula RPMs to build on CentOS 5 based on the rpms<br>
which are available here: <a href="https://nazar.karan.org/git/misc/opennebula.git" target="_blank">https://nazar.karan.org/git/misc/opennebula.git</a><br>
and the branch that Jaime Melis wrote for CentOS 6, as I don't currently<br>
have access to a CentOS 6 box to use for OpenNebula testing.<br>
<br>
Looking first to get the CentOS 5 rpms to build I've made the following<br>
preliminary changes which look to be going the right way, and plan<br>
afterwards to fix these so that the build will work on _either_ CentOS 5<br>
or 6:<br>
<br>
diff --git a/SPECS/opennebula.spec b/SPECS/opennebula.spec<br>
index 4780bf1..5fe6236 100644<br>
--- a/SPECS/opennebula.spec<br>
+++ b/SPECS/opennebula.spec<br>
@@ -17,6 +17,13 @@<br>
%define oneadmin_home /var/lib/one<br>
%define oneadmin_uid 9869<br>
%define oneadmin_gid 9869<br>
+# On CentOS 5 %{_initddir} does not exist. See: bug <a href="https://bugzilla.redhat.com/show_bug.cgi?id=455279" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=455279</a><br>
+# - if not defined set it to the %{_initrddir} macro value.<br>
+%if 0%{?_initddir:1}<br>
+# Nothing to do as %{_initddir} is defined<br>
+%else<br>
+%define _initddir %{_initrddir}<br>
+%endif<br>
<br>
Name: opennebula<br>
Summary: Cloud computing solution for Data Center Virtualization<br>
@@ -42,7 +49,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root<br>
################################################################################<br>
<br>
BuildRequires: gcc-c++<br>
-BuildRequires: libcurl-devel<br>
+# centos 5 uses curl-devl as libcurl-devel does not exist<br>
+BuildRequires: curl-devel<br>
BuildRequires: libxml2-devel<br>
BuildRequires: xmlrpc-c-devel<br>
BuildRequires: openssl-devel<br>
@@ -53,7 +61,8 @@ BuildRequires: ruby<br>
BuildRequires: scons<br>
BuildRequires: sqlite-devel<br>
BuildRequires: xmlrpc-c<br>
-BuildRequires: java-1.7.0-openjdk-devel<br>
+## java-1.7.0 appears not to be available for centos 5<br>
+BuildRequires: java-1.6.0-openjdk-devel<br>
<br>
################################################################################<br>
# Requires<br>
@@ -150,6 +159,7 @@ Ruby interface for OpenNebula.<br>
<br>
%package sunstone<br>
Summary: Browser based UI for administrating a OpenNebula cloud<br>
+Group: System<br>
Requires: %{name}-common = %{version}<br>
Requires: %{name}-ruby = %{version}<br>
<br>
@@ -585,6 +595,198 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-eth*<br>
/usr/lib/one/ruby/cloud/econe/EC2QueryClient.rb<br>
/usr/lib/one/ruby/cloud/occi/OCCIClient.rb<br>
<br>
+# Seem to not be defined anywhere ... but not sure which package they should<br>
+# be in.<br>
+%{oneadmin_home}/remotes/auth/dummy/authenticate<br>
+%{oneadmin_home}/remotes/auth/ldap/authenticate<br>
+%{oneadmin_home}/remotes/auth/plain/authenticate<br>
+%{oneadmin_home}/remotes/auth/server_cipher/authenticate<br>
+%{oneadmin_home}/remotes/auth/server_x509/authenticate<br>
+%{oneadmin_home}/remotes/auth/ssh/authenticate<br>
... long list of files here.<br>
+%{oneadmin_home}/remotes/vnm/vmware/VMware.rb<br>
+%{oneadmin_home}/remotes/vnm/vmware/clean<br>
+%{oneadmin_home}/remotes/vnm/vmware/post<br>
+%{oneadmin_home}/remotes/vnm/vmware/pre<br>
+<br>
################################################################################<br>
# Changelog<br>
################################################################################<br>
<br>
The rpmbuild still fails with:<br>
<br>
...<br>
Requires(post): /bin/sh<br>
Requires: bridge-utils config(opennebula-node-kvm) = 3.8.1-2.6 libvirt nfs-utils opennebula-common = 3.8.1 openssh-clients openssh-server qemu-kvm ruby<br>
Processing files: opennebula-context-3.8.1-2.6<br>
Provides: config(opennebula-context) = 3.8.1-2.6<br>
Requires(interp): /bin/sh<br>
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1<br>
Requires(post): /bin/sh<br>
Requires: /bin/bash config(opennebula-context) = 3.8.1-2.6<br>
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/sjmudd/RPM/TMP/opennebula-3.8.1-2.6-root<br>
<br>
<br>
RPM build errors:<br>
File not found by glob: /home/sjmudd/RPM/TMP/opennebula-3.8.1-2.6-root/usr/com/one/*<br>
$<br>
<br>
So I still seem to be missing something. Can anyone point me to what might be wrong,<br>
as basically I'm still pretty unfamiliar with OpenNebula? To which package should the<br>
%{oneadmin_home}/remotes files be packaged, and what's this .../usr/com/one/* prefix?<br>
<br>
Thanks for any pointers as I'd really like to be able to package OpenNebula on CentOS 5<br>
and afterwards Fedora 17 and seem pretty close.<br>
<br>
Regards,<br>
<br>
Simon<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>