You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by michaellee163 <mi...@163.com> on 2012/12/26 04:36:22 UTC

回复: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢

同样的错误。

OS  RHEL6.2  


>> 出现如下错误:
>> Applying: BUILD: Make CloudStack buildable with nonoss libs
>> error: patch failed: client/pom.xml:104
>> error: client/pom.xml: patch does not apply
>> error: patch failed: client/tomcatconf/components.xml.in:171
>> error: client/tomcatconf/components.xml.in: patch does not apply
>> error: patch failed: console-proxy/pom.xml:50
>> error: console-proxy/pom.xml: patch does not apply
>> error: deps/pom.xml: does not exist in index
>> error: patch failed: patches/pom.xml:50
>> error: patches/pom.xml: patch does not apply
>> error: patch failed: pom.xml:155
>> error: pom.xml: patch does not apply




michaellee163

发件人: Gavin Lee
发送时间: 2012-12-25 22:31
收件人: cloudstack-users-cn
主题: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
你可以参照jenkin里4.0及4.0.1的Build命令行输出, 以RHEL6.3 (CentOS6.3)大概总结一下命令如下:
1. git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
2. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63  //到源码根目录
3.  mkdir -p ../patches; cd ../patches
4. wget http://bhaisaab.org/patches/cloudstack/0001-BUILD-Make-CloudStack-buildable-with-nonoss-libs.patch
5.  wget http://bhaisaab.org/patches/cloudstack/0002-BUILD-nonoss-libs-for-CloudStack.patch
6. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目录
7. git am ../patches/0001-BUILD-Make-CloudStack-buildable-with-nonoss-libs.patch
../patches/0002-BUILD-nonoss-libs-for-CloudStack.patch
8. cd deps
9. ./install-non-oss.sh
10. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目录
11. mvn -P deps -Dnonoss //这一步将完成编译
12. ./waf rpm --prerelease=4.0.1 --build-number=11
--package-version=4.0.1   //这一步将完成打包RPM

我按照上述的步骤编译,比较顺.


On Mon, Dec 24, 2012 at 10:46 AM, Edison Su <Ed...@citrix.com> wrote:
> 如果你是用的master branch, 请参考https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html
>
>> -----Original Message-----
>> From: michaellee163 [mailto:michaellee163@163.com]
>> Sent: Friday, December 21, 2012 2:41 AM
>> To: cloudstack-users-cn@incubator.apache.org
>> Subject: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
>>
>> 各位好!
>>
>>   4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢。
>>   下面是我的做法和日志。
>>
>> 第一步获取源码
>>   git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
>> 第二步:mvn -P deps
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache CloudStack ................................. SUCCESS [1.356s] [INFO]
>> Apache CloudStack Utils ........................... SUCCESS [5.883s] [INFO] Apache
>> CloudStack API ............................. SUCCESS [1.926s] [INFO] Apache
>> CloudStack Core ............................ SUCCESS [0.788s] [INFO] Apache
>> CloudStack Agents .......................... SUCCESS [0.694s] [INFO] Apache
>> CloudStack SystemVM Patches ................ SUCCESS [0.559s] [INFO] Apache
>> CloudStack Console Proxy ................... SUCCESS [3.345s] [INFO] Apache
>> CloudStack Server .......................... SUCCESS [17.438s] [INFO] Apache
>> CloudStack Usage Server .................... SUCCESS [1.622s] [INFO] Apache
>> XenSource XAPI ............................. SUCCESS [1.891s] [INFO] Apache
>> CloudStack Plugin POM ...................... SUCCESS [0.215s] [INFO] Apache
>> CloudStack Plugin - User Concentrated Pod Deployment Planner  SUCCESS
>> [0.461s] [INFO] Apache CloudStack Plugin - User Dispersing Deployment
>> Planner  SUCCESS [0.426s] [INFO] Apache CloudStack Plugin - Host Allocator
>> Random .. SUCCESS [0.355s] [INFO] Apache CloudStack Plugin - Hypervisor
>> OracleVM .... SUCCESS [0.423s] [INFO] Apache CloudStack Plugin - Open
>> vSwitch ........... SUCCESS [0.348s] [INFO] Apache CloudStack Plugin -
>> Hypervisor Xen ......... SUCCESS [0.454s] [INFO] Apache CloudStack Plugin -
>> Hypervisor KVM ......... SUCCESS [2.869s] [INFO] Apache CloudStack Plugin -
>> Network Elastic Load Balancer  SUCCESS [0.511s] [INFO] Apache CloudStack
>> Plugin - Network Nicira NVP ..... SUCCESS [2.340s] [INFO] Apache CloudStack
>> Plugin - Storage Allocator Random  SUCCESS [0.336s] [INFO] Apache
>> CloudStack Plugin - User Authenticator LDAP  SUCCESS [0.447s] [INFO]
>> Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [0.275s] [INFO]
>> Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS [0.378s]
>> [INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted
>> SUCCESS [0.690s] [INFO] CloudStack Dns Notifier Example ...................
>> SUCCESS [0.295s] [INFO] Apache CloudStack AWS API Bridge ..................
>> SUCCESS [29.903s] [INFO] Apache CloudStack Client UI .......................
>> SUCCESS [8.862s] [INFO] Apache CloudStack Test ............................ SUCCESS
>> [1.545s] [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESS
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 1:27.168s
>> [INFO] Finished at: Fri Dec 21 18:29:59 CST 2012 [INFO] Final Memory:
>> 35M/284M [INFO] -----------------------------------------------------------------------
>> -
>> [WARNING] The requested profile "deps" could not be activated because it
>> does not exist.
>>
>> 其中deps下只有  install-non-oss.sh  和 XenServerJava文件夹
>> 第三步:
>> Make sure you've the following nonoss jars from respective vendors in deps/:
>>
>>      deps/cloud-iControl.jar
>>      deps/cloud-manageontap.jar
>>      deps/cloud-netscaler-sdx.jar
>>      deps/cloud-netscaler.jar
>>      deps/vmware-apputils.jar
>>      deps/vmware-vim.jar
>>      deps/vmware-vim25.jar
>> 第四步:
>> git am https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
>> nonoss.patch
>>   出现如下错误:
>> /usr/libexec/git-core/git-am: line 157:
>> https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch: No
>> such file or directory
>> 第五步:
>> wget  https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
>> nonoss.patch
>> git am 4.0-nonoss.patch
>>
>> 出现如下错误:
>> Applying: BUILD: Make CloudStack buildable with nonoss libs
>> error: patch failed: client/pom.xml:104
>> error: client/pom.xml: patch does not apply
>> error: patch failed: client/tomcatconf/components.xml.in:171
>> error: client/tomcatconf/components.xml.in: patch does not apply
>> error: patch failed: console-proxy/pom.xml:50
>> error: console-proxy/pom.xml: patch does not apply
>> error: deps/pom.xml: does not exist in index
>> error: patch failed: patches/pom.xml:50
>> error: patches/pom.xml: patch does not apply
>> error: patch failed: pom.xml:155
>> error: pom.xml: patch does not apply
>> Patch failed at 0001 BUILD: Make CloudStack buildable with nonoss libs When
>> you have resolved this problem run "git am --resolved".
>> If you would prefer to skip this patch, instead run "git am --skip".
>> To restore the original branch and stop patching run "git am --abort".
>>
>>
>>
>>
>>
>>
>> michaellee163



-- 
Gavin

RE: 回复: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢

Posted by Edison Su <Ed...@citrix.com>.
Git checkout origin/4.0 -b 4.0

> -----Original Message-----
> From: michaellee163 [mailto:michaellee163@163.com]
> Sent: Wednesday, December 26, 2012 12:57 AM
> To: cloudstack-users-cn@incubator.apache.org
> Subject: 回复: 回复: 4.0-nonoss.patch 出现错误,请问什么原因,如何解
> 决,谢谢
> 
> 
> 
>    对比一下patch文件与本地文件,发现应该是版本不对。
>    4.0.0这个版本如何用git下载?
> 
> 
> 
> 
> 
> 
> michaellee163
> 
> 发件人: fanshuangm
> 发送时间: 2012-12-26 14:18
> 收件人: cloudstack-users-cn@incubator.apache.org
> 主题: 回复: 回复: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,
> 谢谢
> 你只用用apache yum 源安装比较简单
> 
> 
> 
> 
> fanshuangm
> 
> 发件人: michaellee163
> 发送时间: 2012-12-26 11:36
> 收件人: cloudstack-users-cn@incubator.apache.org
> 主题: 回复: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,
> 谢谢
> 同样的错误。
> 
> OS  RHEL6.2
> 
> 
> >> 出现如下错误:
> >> Applying: BUILD: Make CloudStack buildable with nonoss libs
> >> error: patch failed: client/pom.xml:104
> >> error: client/pom.xml: patch does not apply
> >> error: patch failed: client/tomcatconf/components.xml.in:171
> >> error: client/tomcatconf/components.xml.in: patch does not apply
> >> error: patch failed: console-proxy/pom.xml:50
> >> error: console-proxy/pom.xml: patch does not apply
> >> error: deps/pom.xml: does not exist in index
> >> error: patch failed: patches/pom.xml:50
> >> error: patches/pom.xml: patch does not apply
> >> error: patch failed: pom.xml:155
> >> error: pom.xml: patch does not apply
> 
> 
> 
> 
> michaellee163
> 
> 发件人: Gavin Lee
> 发送时间: 2012-12-25 22:31
> 收件人: cloudstack-users-cn
> 主题: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
> 你可以参照jenkin里4.0及4.0.1的Build命令行输出, 以RHEL6.3
> (CentOS6.3)大概总结一下命令如下:
> 1. git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> 2. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63  //到源码
> 根目录
> 3.  mkdir -p ../patches; cd ../patches
> 4. wget http://bhaisaab.org/patches/cloudstack/0001-BUILD-Make-
> CloudStack-buildable-with-nonoss-libs.patch
> 5.  wget http://bhaisaab.org/patches/cloudstack/0002-BUILD-nonoss-libs-
> for-CloudStack.patch
> 6. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目
> 录
> 7. git am ../patches/0001-BUILD-Make-CloudStack-buildable-with-nonoss-
> libs.patch
> ../patches/0002-BUILD-nonoss-libs-for-CloudStack.patch
> 8. cd deps
> 9. ./install-non-oss.sh
> 10. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码
> 目录
> 11. mvn -P deps -Dnonoss //这一步将完成编译
> 12. ./waf rpm --prerelease=4.0.1 --build-number=11
> --package-version=4.0.1   //这一步将完成打包RPM
> 
> 我按照上述的步骤编译,比较顺.
> 
> 
> On Mon, Dec 24, 2012 at 10:46 AM, Edison Su <Ed...@citrix.com> wrote:
> > 如果你是用的master branch,
> > 请参考https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html
> >
> >> -----Original Message-----
> >> From: michaellee163 [mailto:michaellee163@163.com]
> >> Sent: Friday, December 21, 2012 2:41 AM
> >> To: cloudstack-users-cn@incubator.apache.org
> >> Subject: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
> >>
> >> 各位好!
> >>
> >>   4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢。
> >>   下面是我的做法和日志。
> >>
> >> 第一步获取源码
> >>   git clone
> >> https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> >> 第二步:mvn -P deps
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] Reactor Summary:
> >> [INFO]
> >> [INFO] Apache CloudStack ................................. SUCCESS
> >> [1.356s] [INFO] Apache CloudStack Utils ...........................
> >> SUCCESS [5.883s] [INFO] Apache CloudStack API
> >> ............................. SUCCESS [1.926s] [INFO] Apache
> >> CloudStack Core ............................ SUCCESS [0.788s] [INFO]
> >> Apache CloudStack Agents .......................... SUCCESS [0.694s]
> >> [INFO] Apache CloudStack SystemVM Patches ................ SUCCESS
> >> [0.559s] [INFO] Apache CloudStack Console Proxy ...................
> >> SUCCESS [3.345s] [INFO] Apache CloudStack Server
> >> .......................... SUCCESS [17.438s] [INFO] Apache CloudStack
> >> Usage Server .................... SUCCESS [1.622s] [INFO] Apache
> >> XenSource XAPI ............................. SUCCESS [1.891s] [INFO]
> >> Apache CloudStack Plugin POM ...................... SUCCESS [0.215s]
> >> [INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment
> >> Planner  SUCCESS [0.461s] [INFO] Apache CloudStack Plugin - User
> >> Dispersing Deployment Planner  SUCCESS [0.426s] [INFO] Apache
> >> CloudStack Plugin - Host Allocator Random .. SUCCESS [0.355s] [INFO]
> >> Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [0.423s]
> >> [INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS
> >> [0.348s] [INFO] Apache CloudStack Plugin - Hypervisor Xen .........
> >> SUCCESS [0.454s] [INFO] Apache CloudStack Plugin - Hypervisor KVM
> >> ......... SUCCESS [2.869s] [INFO] Apache CloudStack Plugin - Network
> >> Elastic Load Balancer  SUCCESS [0.511s] [INFO] Apache CloudStack
> >> Plugin - Network Nicira NVP ..... SUCCESS [2.340s] [INFO] Apache
> >> CloudStack Plugin - Storage Allocator Random  SUCCESS [0.336s] [INFO]
> >> Apache CloudStack Plugin - User Authenticator LDAP  SUCCESS [0.447s]
> >> [INFO] Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS
> [0.275s] [INFO] Apache CloudStack Plugin - User Authenticator Plain Text
> SUCCESS [0.378s] [INFO] Apache CloudStack Plugin - User Authenticator
> SHA256 Salted SUCCESS [0.690s] [INFO] CloudStack Dns Notifier
> Example ...................
> >> SUCCESS [0.295s] [INFO] Apache CloudStack AWS API Bridge ..................
> >> SUCCESS [29.903s] [INFO] Apache CloudStack Client UI .......................
> >> SUCCESS [8.862s] [INFO] Apache CloudStack Test
> >> ............................ SUCCESS [1.545s] [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] BUILD SUCCESS
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] Total time: 1:27.168s
> >> [INFO] Finished at: Fri Dec 21 18:29:59 CST 2012 [INFO] Final Memory:
> >> 35M/284M [INFO]
> >> ---------------------------------------------------------------------
> >> --
> >> -
> >> [WARNING] The requested profile "deps" could not be activated because
> >> it does not exist.
> >>
> >> 其中deps下只有  install-non-oss.sh  和 XenServerJava文件夹
> >> 第三步:
> >> Make sure you've the following nonoss jars from respective vendors in
> deps/:
> >>
> >>      deps/cloud-iControl.jar
> >>      deps/cloud-manageontap.jar
> >>      deps/cloud-netscaler-sdx.jar
> >>      deps/cloud-netscaler.jar
> >>      deps/vmware-apputils.jar
> >>      deps/vmware-vim.jar
> >>      deps/vmware-vim25.jar
> >> 第四步:
> >> git am https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
> >> nonoss.patch
> >>   出现如下错误:
> >> /usr/libexec/git-core/git-am: line 157:
> >> https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch:
> >> No such file or directory
> >> 第五步:
> >> wget  https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
> >> nonoss.patch
> >> git am 4.0-nonoss.patch
> >>
> >> 出现如下错误:
> >> Applying: BUILD: Make CloudStack buildable with nonoss libs
> >> error: patch failed: client/pom.xml:104
> >> error: client/pom.xml: patch does not apply
> >> error: patch failed: client/tomcatconf/components.xml.in:171
> >> error: client/tomcatconf/components.xml.in: patch does not apply
> >> error: patch failed: console-proxy/pom.xml:50
> >> error: console-proxy/pom.xml: patch does not apply
> >> error: deps/pom.xml: does not exist in index
> >> error: patch failed: patches/pom.xml:50
> >> error: patches/pom.xml: patch does not apply
> >> error: patch failed: pom.xml:155
> >> error: pom.xml: patch does not apply
> >> Patch failed at 0001 BUILD: Make CloudStack buildable with nonoss
> >> libs When you have resolved this problem run "git am --resolved".
> >> If you would prefer to skip this patch, instead run "git am --skip".
> >> To restore the original branch and stop patching run "git am --abort".
> >>
> >>
> >>
> >>
> >>
> >>
> >> michaellee163
> 
> 
> 
> --
> Gavin

回复: 回复: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢

Posted by michaellee163 <mi...@163.com>.

   对比一下patch文件与本地文件,发现应该是版本不对。
   4.0.0这个版本如何用git下载?
   





michaellee163

发件人: fanshuangm
发送时间: 2012-12-26 14:18
收件人: cloudstack-users-cn@incubator.apache.org
主题: 回复: 回复: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
你只用用apache yum 源安装比较简单




fanshuangm

发件人: michaellee163
发送时间: 2012-12-26 11:36
收件人: cloudstack-users-cn@incubator.apache.org
主题: 回复: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
同样的错误。

OS  RHEL6.2  


>> 出现如下错误:
>> Applying: BUILD: Make CloudStack buildable with nonoss libs
>> error: patch failed: client/pom.xml:104
>> error: client/pom.xml: patch does not apply
>> error: patch failed: client/tomcatconf/components.xml.in:171
>> error: client/tomcatconf/components.xml.in: patch does not apply
>> error: patch failed: console-proxy/pom.xml:50
>> error: console-proxy/pom.xml: patch does not apply
>> error: deps/pom.xml: does not exist in index
>> error: patch failed: patches/pom.xml:50
>> error: patches/pom.xml: patch does not apply
>> error: patch failed: pom.xml:155
>> error: pom.xml: patch does not apply




michaellee163

发件人: Gavin Lee
发送时间: 2012-12-25 22:31
收件人: cloudstack-users-cn
主题: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
你可以参照jenkin里4.0及4.0.1的Build命令行输出, 以RHEL6.3 (CentOS6.3)大概总结一下命令如下:
1. git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
2. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63  //到源码根目录
3.  mkdir -p ../patches; cd ../patches
4. wget http://bhaisaab.org/patches/cloudstack/0001-BUILD-Make-CloudStack-buildable-with-nonoss-libs.patch
5.  wget http://bhaisaab.org/patches/cloudstack/0002-BUILD-nonoss-libs-for-CloudStack.patch
6. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目录
7. git am ../patches/0001-BUILD-Make-CloudStack-buildable-with-nonoss-libs.patch
../patches/0002-BUILD-nonoss-libs-for-CloudStack.patch
8. cd deps
9. ./install-non-oss.sh
10. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目录
11. mvn -P deps -Dnonoss //这一步将完成编译
12. ./waf rpm --prerelease=4.0.1 --build-number=11
--package-version=4.0.1   //这一步将完成打包RPM

我按照上述的步骤编译,比较顺.


On Mon, Dec 24, 2012 at 10:46 AM, Edison Su <Ed...@citrix.com> wrote:
> 如果你是用的master branch, 请参考https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html
>
>> -----Original Message-----
>> From: michaellee163 [mailto:michaellee163@163.com]
>> Sent: Friday, December 21, 2012 2:41 AM
>> To: cloudstack-users-cn@incubator.apache.org
>> Subject: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
>>
>> 各位好!
>>
>>   4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢。
>>   下面是我的做法和日志。
>>
>> 第一步获取源码
>>   git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
>> 第二步:mvn -P deps
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache CloudStack ................................. SUCCESS [1.356s] [INFO]
>> Apache CloudStack Utils ........................... SUCCESS [5.883s] [INFO] Apache
>> CloudStack API ............................. SUCCESS [1.926s] [INFO] Apache
>> CloudStack Core ............................ SUCCESS [0.788s] [INFO] Apache
>> CloudStack Agents .......................... SUCCESS [0.694s] [INFO] Apache
>> CloudStack SystemVM Patches ................ SUCCESS [0.559s] [INFO] Apache
>> CloudStack Console Proxy ................... SUCCESS [3.345s] [INFO] Apache
>> CloudStack Server .......................... SUCCESS [17.438s] [INFO] Apache
>> CloudStack Usage Server .................... SUCCESS [1.622s] [INFO] Apache
>> XenSource XAPI ............................. SUCCESS [1.891s] [INFO] Apache
>> CloudStack Plugin POM ...................... SUCCESS [0.215s] [INFO] Apache
>> CloudStack Plugin - User Concentrated Pod Deployment Planner  SUCCESS
>> [0.461s] [INFO] Apache CloudStack Plugin - User Dispersing Deployment
>> Planner  SUCCESS [0.426s] [INFO] Apache CloudStack Plugin - Host Allocator
>> Random .. SUCCESS [0.355s] [INFO] Apache CloudStack Plugin - Hypervisor
>> OracleVM .... SUCCESS [0.423s] [INFO] Apache CloudStack Plugin - Open
>> vSwitch ........... SUCCESS [0.348s] [INFO] Apache CloudStack Plugin -
>> Hypervisor Xen ......... SUCCESS [0.454s] [INFO] Apache CloudStack Plugin -
>> Hypervisor KVM ......... SUCCESS [2.869s] [INFO] Apache CloudStack Plugin -
>> Network Elastic Load Balancer  SUCCESS [0.511s] [INFO] Apache CloudStack
>> Plugin - Network Nicira NVP ..... SUCCESS [2.340s] [INFO] Apache CloudStack
>> Plugin - Storage Allocator Random  SUCCESS [0.336s] [INFO] Apache
>> CloudStack Plugin - User Authenticator LDAP  SUCCESS [0.447s] [INFO]
>> Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [0.275s] [INFO]
>> Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS [0.378s]
>> [INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted
>> SUCCESS [0.690s] [INFO] CloudStack Dns Notifier Example ...................
>> SUCCESS [0.295s] [INFO] Apache CloudStack AWS API Bridge ..................
>> SUCCESS [29.903s] [INFO] Apache CloudStack Client UI .......................
>> SUCCESS [8.862s] [INFO] Apache CloudStack Test ............................ SUCCESS
>> [1.545s] [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESS
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 1:27.168s
>> [INFO] Finished at: Fri Dec 21 18:29:59 CST 2012 [INFO] Final Memory:
>> 35M/284M [INFO] -----------------------------------------------------------------------
>> -
>> [WARNING] The requested profile "deps" could not be activated because it
>> does not exist.
>>
>> 其中deps下只有  install-non-oss.sh  和 XenServerJava文件夹
>> 第三步:
>> Make sure you've the following nonoss jars from respective vendors in deps/:
>>
>>      deps/cloud-iControl.jar
>>      deps/cloud-manageontap.jar
>>      deps/cloud-netscaler-sdx.jar
>>      deps/cloud-netscaler.jar
>>      deps/vmware-apputils.jar
>>      deps/vmware-vim.jar
>>      deps/vmware-vim25.jar
>> 第四步:
>> git am https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
>> nonoss.patch
>>   出现如下错误:
>> /usr/libexec/git-core/git-am: line 157:
>> https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch: No
>> such file or directory
>> 第五步:
>> wget  https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
>> nonoss.patch
>> git am 4.0-nonoss.patch
>>
>> 出现如下错误:
>> Applying: BUILD: Make CloudStack buildable with nonoss libs
>> error: patch failed: client/pom.xml:104
>> error: client/pom.xml: patch does not apply
>> error: patch failed: client/tomcatconf/components.xml.in:171
>> error: client/tomcatconf/components.xml.in: patch does not apply
>> error: patch failed: console-proxy/pom.xml:50
>> error: console-proxy/pom.xml: patch does not apply
>> error: deps/pom.xml: does not exist in index
>> error: patch failed: patches/pom.xml:50
>> error: patches/pom.xml: patch does not apply
>> error: patch failed: pom.xml:155
>> error: pom.xml: patch does not apply
>> Patch failed at 0001 BUILD: Make CloudStack buildable with nonoss libs When
>> you have resolved this problem run "git am --resolved".
>> If you would prefer to skip this patch, instead run "git am --skip".
>> To restore the original branch and stop patching run "git am --abort".
>>
>>
>>
>>
>>
>>
>> michaellee163



-- 
Gavin

回复: 回复: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢

Posted by fanshuangm <fa...@yahoo.com.cn>.
你只用用apache yum 源安装比较简单




fanshuangm

发件人: michaellee163
发送时间: 2012-12-26 11:36
收件人: cloudstack-users-cn@incubator.apache.org
主题: 回复: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
同样的错误。

OS  RHEL6.2  


>> 出现如下错误:
>> Applying: BUILD: Make CloudStack buildable with nonoss libs
>> error: patch failed: client/pom.xml:104
>> error: client/pom.xml: patch does not apply
>> error: patch failed: client/tomcatconf/components.xml.in:171
>> error: client/tomcatconf/components.xml.in: patch does not apply
>> error: patch failed: console-proxy/pom.xml:50
>> error: console-proxy/pom.xml: patch does not apply
>> error: deps/pom.xml: does not exist in index
>> error: patch failed: patches/pom.xml:50
>> error: patches/pom.xml: patch does not apply
>> error: patch failed: pom.xml:155
>> error: pom.xml: patch does not apply




michaellee163

发件人: Gavin Lee
发送时间: 2012-12-25 22:31
收件人: cloudstack-users-cn
主题: Re: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
你可以参照jenkin里4.0及4.0.1的Build命令行输出, 以RHEL6.3 (CentOS6.3)大概总结一下命令如下:
1. git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
2. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63  //到源码根目录
3.  mkdir -p ../patches; cd ../patches
4. wget http://bhaisaab.org/patches/cloudstack/0001-BUILD-Make-CloudStack-buildable-with-nonoss-libs.patch
5.  wget http://bhaisaab.org/patches/cloudstack/0002-BUILD-nonoss-libs-for-CloudStack.patch
6. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目录
7. git am ../patches/0001-BUILD-Make-CloudStack-buildable-with-nonoss-libs.patch
../patches/0002-BUILD-nonoss-libs-for-CloudStack.patch
8. cd deps
9. ./install-non-oss.sh
10. cd /home/jenkins/build/workspace/build-4.0.1-nonoss-rhel63 //回源码目录
11. mvn -P deps -Dnonoss //这一步将完成编译
12. ./waf rpm --prerelease=4.0.1 --build-number=11
--package-version=4.0.1   //这一步将完成打包RPM

我按照上述的步骤编译,比较顺.


On Mon, Dec 24, 2012 at 10:46 AM, Edison Su <Ed...@citrix.com> wrote:
> 如果你是用的master branch, 请参考https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html
>
>> -----Original Message-----
>> From: michaellee163 [mailto:michaellee163@163.com]
>> Sent: Friday, December 21, 2012 2:41 AM
>> To: cloudstack-users-cn@incubator.apache.org
>> Subject: 4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢
>>
>> 各位好!
>>
>>   4.0-nonoss.patch 出现错误,请问什么原因,如何解决,谢谢。
>>   下面是我的做法和日志。
>>
>> 第一步获取源码
>>   git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
>> 第二步:mvn -P deps
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache CloudStack ................................. SUCCESS [1.356s] [INFO]
>> Apache CloudStack Utils ........................... SUCCESS [5.883s] [INFO] Apache
>> CloudStack API ............................. SUCCESS [1.926s] [INFO] Apache
>> CloudStack Core ............................ SUCCESS [0.788s] [INFO] Apache
>> CloudStack Agents .......................... SUCCESS [0.694s] [INFO] Apache
>> CloudStack SystemVM Patches ................ SUCCESS [0.559s] [INFO] Apache
>> CloudStack Console Proxy ................... SUCCESS [3.345s] [INFO] Apache
>> CloudStack Server .......................... SUCCESS [17.438s] [INFO] Apache
>> CloudStack Usage Server .................... SUCCESS [1.622s] [INFO] Apache
>> XenSource XAPI ............................. SUCCESS [1.891s] [INFO] Apache
>> CloudStack Plugin POM ...................... SUCCESS [0.215s] [INFO] Apache
>> CloudStack Plugin - User Concentrated Pod Deployment Planner  SUCCESS
>> [0.461s] [INFO] Apache CloudStack Plugin - User Dispersing Deployment
>> Planner  SUCCESS [0.426s] [INFO] Apache CloudStack Plugin - Host Allocator
>> Random .. SUCCESS [0.355s] [INFO] Apache CloudStack Plugin - Hypervisor
>> OracleVM .... SUCCESS [0.423s] [INFO] Apache CloudStack Plugin - Open
>> vSwitch ........... SUCCESS [0.348s] [INFO] Apache CloudStack Plugin -
>> Hypervisor Xen ......... SUCCESS [0.454s] [INFO] Apache CloudStack Plugin -
>> Hypervisor KVM ......... SUCCESS [2.869s] [INFO] Apache CloudStack Plugin -
>> Network Elastic Load Balancer  SUCCESS [0.511s] [INFO] Apache CloudStack
>> Plugin - Network Nicira NVP ..... SUCCESS [2.340s] [INFO] Apache CloudStack
>> Plugin - Storage Allocator Random  SUCCESS [0.336s] [INFO] Apache
>> CloudStack Plugin - User Authenticator LDAP  SUCCESS [0.447s] [INFO]
>> Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [0.275s] [INFO]
>> Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS [0.378s]
>> [INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted
>> SUCCESS [0.690s] [INFO] CloudStack Dns Notifier Example ...................
>> SUCCESS [0.295s] [INFO] Apache CloudStack AWS API Bridge ..................
>> SUCCESS [29.903s] [INFO] Apache CloudStack Client UI .......................
>> SUCCESS [8.862s] [INFO] Apache CloudStack Test ............................ SUCCESS
>> [1.545s] [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESS
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 1:27.168s
>> [INFO] Finished at: Fri Dec 21 18:29:59 CST 2012 [INFO] Final Memory:
>> 35M/284M [INFO] -----------------------------------------------------------------------
>> -
>> [WARNING] The requested profile "deps" could not be activated because it
>> does not exist.
>>
>> 其中deps下只有  install-non-oss.sh  和 XenServerJava文件夹
>> 第三步:
>> Make sure you've the following nonoss jars from respective vendors in deps/:
>>
>>      deps/cloud-iControl.jar
>>      deps/cloud-manageontap.jar
>>      deps/cloud-netscaler-sdx.jar
>>      deps/cloud-netscaler.jar
>>      deps/vmware-apputils.jar
>>      deps/vmware-vim.jar
>>      deps/vmware-vim25.jar
>> 第四步:
>> git am https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
>> nonoss.patch
>>   出现如下错误:
>> /usr/libexec/git-core/git-am: line 157:
>> https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-nonoss.patch: No
>> such file or directory
>> 第五步:
>> wget  https://cwiki.apache.org/CLOUDSTACK/building.data/4.0-
>> nonoss.patch
>> git am 4.0-nonoss.patch
>>
>> 出现如下错误:
>> Applying: BUILD: Make CloudStack buildable with nonoss libs
>> error: patch failed: client/pom.xml:104
>> error: client/pom.xml: patch does not apply
>> error: patch failed: client/tomcatconf/components.xml.in:171
>> error: client/tomcatconf/components.xml.in: patch does not apply
>> error: patch failed: console-proxy/pom.xml:50
>> error: console-proxy/pom.xml: patch does not apply
>> error: deps/pom.xml: does not exist in index
>> error: patch failed: patches/pom.xml:50
>> error: patches/pom.xml: patch does not apply
>> error: patch failed: pom.xml:155
>> error: pom.xml: patch does not apply
>> Patch failed at 0001 BUILD: Make CloudStack buildable with nonoss libs When
>> you have resolved this problem run "git am --resolved".
>> If you would prefer to skip this patch, instead run "git am --skip".
>> To restore the original branch and stop patching run "git am --abort".
>>
>>
>>
>>
>>
>>
>> michaellee163



-- 
Gavin