[yocto] Error applying patch - openvswitch

Rajasekaran, Monica Monica.Rajasekaran at us.fujitsu.com
Wed Jun 22 11:25:07 PDT 2016


Hi Ross,

After applying the patches, I brought up my openvswitch which works correctly alongside the controller but I don’t see any of the print statements I added to view the changes inside. Is there a way to check the updated source code with my patch in the target machine ?

Thanks,
Monica

From: Rajasekaran, Monica
Sent: Wednesday, June 22, 2016 10:16 AM
To: 'Burton, Ross' <ross.burton at intel.com>
Cc: yocto at yoctoproject.org
Subject: RE: [yocto] Error applying patch - openvswitch

Hi Ross,

Thanks for your reply. I placed both original and updated files in the same directory where the original is and ran the command to generate patch file. Locations were updated correctly and it worked.

Thanks,
Monica

From: Burton, Ross [mailto:ross.burton at intel.com]
Sent: Wednesday, June 22, 2016 9:40 AM
To: Rajasekaran, Monica <Monica.Rajasekaran at us.fujitsu.com<mailto:Monica.Rajasekaran at us.fujitsu.com>>
Cc: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: Re: [yocto] Error applying patch - openvswitch


On 22 June 2016 at 15:34, Rajasekaran, Monica <Monica.Rajasekaran at us.fujitsu.com<mailto:Monica.Rajasekaran at us.fujitsu.com>> wrote:
|diff --git data/users/mrajase/l100_label_based_r100poc/repo/poky/build/tmp/work/core2-64-enea-linux/openvswitch/2.0.0-r0/openvswitch-2.0.0/ofproto/ofproto.c data/users/mrajase/extra/ofproto.c
|index ea812ad..76c355f 100644
|--- data/users/mrajase/l100_label_based_r100poc/repo/poky/build/tmp/work/core2-64-enea-linux/openvswitch/2.0.0-r0/openvswitch-2.0.0/ofproto/ofproto.c
|+++ data/users/mrajase/extra/ofproto.c

This is the problem, your filename paths are messed up because of how you generated the patch: it looks like your data/ directory is git-managed so git did what you told it and generated a patch with the full paths in.

The easy solution here is to use "devtool modify" (see the manual) but you can hand-edit the patch to remove everything from data/ to 2.0.0-r0/ and it should apply.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160622/22c7f4b7/attachment.html>


More information about the yocto mailing list