From: Keir Fraser Subject: Re: Re: [PATCH] [Xend/Xm/ACM] [1/2] Implement legacy XML-RPC interface for ACM commands Date: Tue, 04 Dec 2007 23:15:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1123132965==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1123132965== Content-type: multipart/alternative; boundary="B_3279654911_5386410" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3279654911_5386410 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit On 4/12/07 12:39, "Stefan Berger" wrote: > xen-devel-bounces@lists.xensource.com wrote on 12/04/2007 06:33:42 AM: > >> > Both these patches are reported as corrupt by 'patch'. This one on line >> 1159 >> > of the patch; the other one on line 99. In both cases the immediately >> > preceding chunk fails to apply. > > I just took the ones I posted with the mail program and they worked find. Also > the ones I received back from the email list are ok. > If it's just two hunks that are corrupted, can you delete those hunks and > commit it and I'll diff the trees and resend the missing parts? The errors I get are below, and occur with patch version 2.5.4 and 2.5.9. I suppose it could conceivably be metamail screwing up the patches when I extract them from the raw emails. Perhaps try resending the pair of patches in a zip file? -- Keir viper:xen64.hg$ patch -p2 <../tmp/security_commands_through_xend.diff patching file tools/python/xen/xend/server/XMLRPCServer.py patching file tools/python/xen/xm/addlabel.py patching file tools/python/xen/xm/rmlabel.py patching file tools/python/xen/util/xsm/acm/acm.py patching file tools/python/xen/xm/resources.py patching file tools/python/xen/xm/getlabel.py patching file tools/python/xen/xm/labels.py patching file tools/python/xen/xm/main.py Hunk #4 FAILED at 2459. 1 out of 4 hunks FAILED -- saving rejects to file tools/python/xen/xm/main.py.rej missing header for unified diff at line 1159 of patch can't find file to patch at input line 1159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- | 'rmlabel', -------------------------- File to patch: viper:xen64.hg$ patch -p2 <../tmp/xend_acm_new_storage_path.diff patching file tools/python/xen/xend/XendOptions.py patching file tools/python/xen/xend/XendXSPolicyAdmin.py Hunk #4 FAILED at 101. 1 out of 4 hunks FAILED -- saving rejects to file tools/python/xen/xend/XendXSPolicyAdmin.py.rej missing header for unified diff at line 99 of patch can't find file to patch at input line 99 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- | try: -------------------------- File to patch: --B_3279654911_5386410 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Re: [PATCH] [Xend/Xm/ACM] [1/2] Implement legacy XML= -RPC interface for ACM commands On 4/= 12/07 12:39, "Stefan Berger" <stefanb@us.ibm.com> wrote:

xen-devel-bounces@lists.xensource.co= m wrote on 12/04/2007 06:= 33:42 AM:

> Both these patches are reported as corrupt by 'patch'. This one on lin= e 1159
> of the patch; the other one on line 99. In both cases the immediately<= BR> > preceding chunk fails to apply.


I just took the ones I posted with = the mail program and they worked find. Also the ones I received back from th= e email list are ok.
If it's just two hunks that are cor= rupted, can you delete those hunks and commit it and I'll diff the trees and= resend the missing parts?


The errors I get are below, and occur with patch version 2.5.4 and 2.5.9. I= suppose it could conceivably be metamail screwing up the patches when I ext= ract them from the raw emails. Perhaps try resending the pair of patches in = a zip file?

 -- Keir

viper:xen64.hg$ patch -p2 <../tmp/security_commands_through_xend.diff patching file tools/python/xen/xend/server/XMLRPCServer.py
patching file tools/python/xen/xm/addlabel.py
patching file tools/python/xen/xm/rmlabel.py
patching file tools/python/xen/util/xsm/acm/acm.py
patching file tools/python/xen/xm/resources.py
patching file tools/python/xen/xm/getlabel.py
patching file tools/python/xen/xm/labels.py
patching file tools/python/xen/xm/main.py
Hunk #4 FAILED at 2459.
1 out of 4 hunks FAILED -- saving rejects to file tools/python/xen/xm/main.= py.rej
missing header for unified diff at line 1159 of patch
can't find file to patch at input line 1159
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|     'rmlabel',
--------------------------
File to patch:

viper:xen64.hg$ patch -p2 <../tmp/xend_acm_new_storage_path.diff
patching file tools/python/xen/xend/XendOptions.py
patching file tools/python/xen/xend/XendXSPolicyAdmin.py
Hunk #4 FAILED at 101.
1 out of 4 hunks FAILED -- saving rejects to file tools/python/xen/xend/Xen= dXSPolicyAdmin.py.rej
missing header for unified diff at line 99 of patch
can't find file to patch at input line 99
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|         try:
--------------------------
File to patch:
--B_3279654911_5386410-- --===============1123132965== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1123132965==--