Chapter 29. Problems applying a patch

All patches provided by eCosCentric should apply cleanly to your specific version of eCosPro. On the rare occassion that a patch does not apply cleanly, here is a list of error messages and how to handle them. If you are still unable to apply the patch or do not see the error message listed here, please report this issue on the eCosCentric Bugzilla website.

Cannot find file

can't find file to patch at input line nnn. File to patch:
No file to patch. Skipping patch. n out of n hunks ignored.

First make sure that you used the right patch command line, as shown above. If that still did not work, try with a higher n in -pn, up until maybe 6. To try without actually applying the patch, add --dry-run to the command line. With this option the patch is not actually applied but you get all the messages as if the patch were really applied. This allows you to determine whether there would be any errors, without having to the files from backup every time.

When you no longer get the error messages about not finding the file to patch, then you have found the right number for -p and you can repeat the command without --dry-run to actually apply the patch.

2017-02-09
Documentation license for this page: eCosPro License