Changes between Initial Version and Version 1 of Ticket #5408, comment 6


Ignore:
Timestamp:
Mar 24, 2016, 4:41:26 PM (8 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5408, comment 6

    initial v1  
    77The diff compares 2 files.  the newly modified one and the original.  So if the file file4.h needs to be patched, make a copy of the original file and call it say file4.h.org.  Now you have two identical files: file4.h.org and file4.h.  Now make your changes to file4.h and then diff the two files diff -u <original> <modified> >patch-file4.h like this:
    88
     9{{{
    910diff -u file4.h.org file4.h >patch-file4.h
     11}}}
    1012
    1113But in your case you have patchfiles already from fink.  If the patchfiles you have from fink are for the same version of the program and you don't wish to modify them at all then the patches can be used as they are except that the file paths at the top of the file might need to be edited.  Or if the changes are as slight as they look to those files by the readme, or if the DP pgplot port is newer than the fink port the original patches won't work.  In that case you can open the patchfile and see what changes are made by the patch (look at the file and you'll see what I mean) and make those same changes to the same file in the app version you wish to install and diff it against a copy made before the changes.