You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Hieu Le <hi...@gmail.com> on 2012/08/24 05:07:53 UTC
How to create binaries from CS source ?
Hi all,
Anyone can tell me the way to compile source code of CS and release the
binaries ? Can I use the waf command (like waf rpm) ?I have tried waf rpm
but failed to compile.
Thank you for supporting :)
Re: How to create binaries from CS source ?
Posted by Hieu Le <hi...@gmail.com>.
Thank you Hugo, that's very great !
On Mon, Aug 27, 2012 at 2:47 PM, Hugo Trippaers <
HTrippaers@schubergphilis.com> wrote:
> Heya,
>
> The cloud.spec (or actually any of the binary build) of feature branches
> is completely maintained, so you're pretty much on your own there.
>
> I've never tested with the install.sh after building the RPMs, I use chef
> to update cloudstack. Basically just upgrade all the installed cloudstack
> RPMs, that is what does the trick for me.
>
> Cheers,
>
> Hugo
>
>
>
> -----Original Message-----
> From: Hieu Le [mailto:hieulq89@gmail.com]
> Sent: Monday, August 27, 2012 4:08 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: How to create binaries from CS source ?
>
> Thank you Hugo for replying :)
>
> I have tried your method but maybe something is wrong with my system. Here
> is my output:
>
> Processing files: cloud-utils-4.0.0-pre1.el6.x86_64
> Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.mX1fUF
> + umask 022
> + cd /root/autoscale/artifacts/rpmbuild/BUILD
> + cd cloud-4.0.0
> +
>
> DOCDIR=/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
> + export DOCDIR
> + rm -rf
>
> /root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
> + /bin/mkdir -p
>
> /root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
> + cp -pr README.html
>
> /root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
> + cp -pr debian/copyright
>
> /root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
> + exit 0
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
> 3.0.3-1
> Requires: /usr/bin/env
> Obsoletes: vmops-utils < 4.0.0-pre1.el6
> Processing files: cloud-client-ui-4.0.0-pre1.el6.x86_64
> Requires(interp): /bin/sh
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
> 3.0.3-1
> Requires(pre): /bin/sh
> Obsoletes: vmops-client-ui < 4.0.0-pre1.el6 Processing files:
> cloud-server-4.0.0-pre1.el6.x86_64
> Provides: config(cloud-server) = 4.0.0-pre1.el6
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
> 3.0.3-1
> Obsoletes: vmops-server < 4.0.0-pre1.el6 Processing files:
> cloud-agent-scripts-4.0.0-pre1.el6.x86_64
> Processing files: cloud-python-4.0.0-pre1.el6.x86_64
> Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> Requires: /bin/bash /usr/bin/python python(abi) = 2.6 Processing files:
> cloud-deps-4.0.0-pre1.el6.x86_64
> error: File not found:
>
> /root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/java/cloud-libvirt-0.4.5.jar
>
>
> RPM build errors:
> File not found:
>
> /root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/java/cloud-libvirt-0.4.5.jar
> system command rpmbuild failed with error value 1
>
> I'm building binary from ASF repo, branch autoscale. Looking in cloud.spec
> file I see that the version of this file is different with master branch.
> So I switch to 4.0 branch and rebuild it, this time it works like a charm
> :) So I think the problem here is cloud.spec revision.
>
> Another question, after rombuild, I see the list of rpm package. If I want
> to upgrade my CS 3.0.x to CS version which I build rpm from, what do I need
> to do ? Can I replace the rpm from binary distributed version of CS 3.0.x
> and ./install.sh like normal (j/k) :)
>
> Thank you for your supporting.
>
> On Fri, Aug 24, 2012 at 7:38 PM, Hugo Trippaers <
> HTrippaers@schubergphilis.com> wrote:
>
> > Heya,
> >
> > Waf is the tool to use for now. I generally use it in the following way:
> > ./waf --package-version=4.0.0 --release-version=pre1 --verbose
> > rpm
> >
> > Can you mail the output if this goes wrong?
> >
> > Cheers,
> >
> > Hugo
> >
> > -----Original Message-----
> > From: Hieu Le [mailto:hieulq89@gmail.com]
> > Sent: Friday, August 24, 2012 5:08 AM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: How to create binaries from CS source ?
> >
> > Hi all,
> >
> > Anyone can tell me the way to compile source code of CS and release
> > the binaries ? Can I use the waf command (like waf rpm) ?I have tried
> > waf rpm but failed to compile.
> >
> > Thank you for supporting :)
> >
>
>
>
> --
> ..:: Hieu LE ::..
>
> Class: Information System - Course 52
> School of Information and Communication Technology Hanoi University of
> Technology No 1, Dai Co Viet street - Hai Ba Trung district - Hanoi
>
> High Performance Computing Center
> Cloud Computing Group
> Gmail: hieulq89@gmail.com
>
--
..:: Hieu LE ::..
Class: Information System - Course 52
School of Information and Communication Technology
Hanoi University of Technology
No 1, Dai Co Viet street - Hai Ba Trung district - Hanoi
High Performance Computing Center
Cloud Computing Group
Gmail: hieulq89@gmail.com
RE: How to create binaries from CS source ?
Posted by Hugo Trippaers <HT...@schubergphilis.com>.
Heya,
The cloud.spec (or actually any of the binary build) of feature branches is completely maintained, so you're pretty much on your own there.
I've never tested with the install.sh after building the RPMs, I use chef to update cloudstack. Basically just upgrade all the installed cloudstack RPMs, that is what does the trick for me.
Cheers,
Hugo
-----Original Message-----
From: Hieu Le [mailto:hieulq89@gmail.com]
Sent: Monday, August 27, 2012 4:08 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: How to create binaries from CS source ?
Thank you Hugo for replying :)
I have tried your method but maybe something is wrong with my system. Here is my output:
Processing files: cloud-utils-4.0.0-pre1.el6.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.mX1fUF
+ umask 022
+ cd /root/autoscale/artifacts/rpmbuild/BUILD
+ cd cloud-4.0.0
+
DOCDIR=/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ export DOCDIR
+ rm -rf
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ /bin/mkdir -p
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ cp -pr README.html
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ cp -pr debian/copyright
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ exit 0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
3.0.3-1
Requires: /usr/bin/env
Obsoletes: vmops-utils < 4.0.0-pre1.el6
Processing files: cloud-client-ui-4.0.0-pre1.el6.x86_64
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
3.0.3-1
Requires(pre): /bin/sh
Obsoletes: vmops-client-ui < 4.0.0-pre1.el6 Processing files: cloud-server-4.0.0-pre1.el6.x86_64
Provides: config(cloud-server) = 4.0.0-pre1.el6
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
3.0.3-1
Obsoletes: vmops-server < 4.0.0-pre1.el6 Processing files: cloud-agent-scripts-4.0.0-pre1.el6.x86_64
Processing files: cloud-python-4.0.0-pre1.el6.x86_64
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/bash /usr/bin/python python(abi) = 2.6 Processing files: cloud-deps-4.0.0-pre1.el6.x86_64
error: File not found:
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/java/cloud-libvirt-0.4.5.jar
RPM build errors:
File not found:
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/java/cloud-libvirt-0.4.5.jar
system command rpmbuild failed with error value 1
I'm building binary from ASF repo, branch autoscale. Looking in cloud.spec file I see that the version of this file is different with master branch.
So I switch to 4.0 branch and rebuild it, this time it works like a charm
:) So I think the problem here is cloud.spec revision.
Another question, after rombuild, I see the list of rpm package. If I want to upgrade my CS 3.0.x to CS version which I build rpm from, what do I need to do ? Can I replace the rpm from binary distributed version of CS 3.0.x and ./install.sh like normal (j/k) :)
Thank you for your supporting.
On Fri, Aug 24, 2012 at 7:38 PM, Hugo Trippaers < HTrippaers@schubergphilis.com> wrote:
> Heya,
>
> Waf is the tool to use for now. I generally use it in the following way:
> ./waf --package-version=4.0.0 --release-version=pre1 --verbose
> rpm
>
> Can you mail the output if this goes wrong?
>
> Cheers,
>
> Hugo
>
> -----Original Message-----
> From: Hieu Le [mailto:hieulq89@gmail.com]
> Sent: Friday, August 24, 2012 5:08 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: How to create binaries from CS source ?
>
> Hi all,
>
> Anyone can tell me the way to compile source code of CS and release
> the binaries ? Can I use the waf command (like waf rpm) ?I have tried
> waf rpm but failed to compile.
>
> Thank you for supporting :)
>
--
..:: Hieu LE ::..
Class: Information System - Course 52
School of Information and Communication Technology Hanoi University of Technology No 1, Dai Co Viet street - Hai Ba Trung district - Hanoi
High Performance Computing Center
Cloud Computing Group
Gmail: hieulq89@gmail.com
Re: How to create binaries from CS source ?
Posted by Hieu Le <hi...@gmail.com>.
Thank you Hugo for replying :)
I have tried your method but maybe something is wrong with my system. Here
is my output:
Processing files: cloud-utils-4.0.0-pre1.el6.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.mX1fUF
+ umask 022
+ cd /root/autoscale/artifacts/rpmbuild/BUILD
+ cd cloud-4.0.0
+
DOCDIR=/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ export DOCDIR
+ rm -rf
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ /bin/mkdir -p
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ cp -pr README.html
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ cp -pr debian/copyright
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/doc/cloud-utils-4.0.0
+ exit 0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
3.0.3-1
Requires: /usr/bin/env
Obsoletes: vmops-utils < 4.0.0-pre1.el6
Processing files: cloud-client-ui-4.0.0-pre1.el6.x86_64
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
3.0.3-1
Requires(pre): /bin/sh
Obsoletes: vmops-client-ui < 4.0.0-pre1.el6
Processing files: cloud-server-4.0.0-pre1.el6.x86_64
Provides: config(cloud-server) = 4.0.0-pre1.el6
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <=
3.0.3-1
Obsoletes: vmops-server < 4.0.0-pre1.el6
Processing files: cloud-agent-scripts-4.0.0-pre1.el6.x86_64
Processing files: cloud-python-4.0.0-pre1.el6.x86_64
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/bash /usr/bin/python python(abi) = 2.6
Processing files: cloud-deps-4.0.0-pre1.el6.x86_64
error: File not found:
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/java/cloud-libvirt-0.4.5.jar
RPM build errors:
File not found:
/root/autoscale/artifacts/rpmbuild/BUILDROOT/cloud-4.0.0-pre1.el6.x86_64/usr/share/java/cloud-libvirt-0.4.5.jar
system command rpmbuild failed with error value 1
I'm building binary from ASF repo, branch autoscale. Looking in cloud.spec
file I see that the version of this file is different with master branch.
So I switch to 4.0 branch and rebuild it, this time it works like a charm
:) So I think the problem here is cloud.spec revision.
Another question, after rombuild, I see the list of rpm package. If I want
to upgrade my CS 3.0.x to CS version which I build rpm from, what do I need
to do ? Can I replace the rpm from binary distributed version of CS 3.0.x
and ./install.sh like normal (j/k) :)
Thank you for your supporting.
On Fri, Aug 24, 2012 at 7:38 PM, Hugo Trippaers <
HTrippaers@schubergphilis.com> wrote:
> Heya,
>
> Waf is the tool to use for now. I generally use it in the following way:
> ./waf --package-version=4.0.0 --release-version=pre1 --verbose rpm
>
> Can you mail the output if this goes wrong?
>
> Cheers,
>
> Hugo
>
> -----Original Message-----
> From: Hieu Le [mailto:hieulq89@gmail.com]
> Sent: Friday, August 24, 2012 5:08 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: How to create binaries from CS source ?
>
> Hi all,
>
> Anyone can tell me the way to compile source code of CS and release the
> binaries ? Can I use the waf command (like waf rpm) ?I have tried waf rpm
> but failed to compile.
>
> Thank you for supporting :)
>
--
..:: Hieu LE ::..
Class: Information System - Course 52
School of Information and Communication Technology
Hanoi University of Technology
No 1, Dai Co Viet street - Hai Ba Trung district - Hanoi
High Performance Computing Center
Cloud Computing Group
Gmail: hieulq89@gmail.com
RE: How to create binaries from CS source ?
Posted by Hugo Trippaers <HT...@schubergphilis.com>.
Heya,
Waf is the tool to use for now. I generally use it in the following way:
./waf --package-version=4.0.0 --release-version=pre1 --verbose rpm
Can you mail the output if this goes wrong?
Cheers,
Hugo
-----Original Message-----
From: Hieu Le [mailto:hieulq89@gmail.com]
Sent: Friday, August 24, 2012 5:08 AM
To: cloudstack-dev@incubator.apache.org
Subject: How to create binaries from CS source ?
Hi all,
Anyone can tell me the way to compile source code of CS and release the binaries ? Can I use the waf command (like waf rpm) ?I have tried waf rpm but failed to compile.
Thank you for supporting :)