Patch - Applying a .diff file - How do I do this ? - Linux

This is a discussion on Patch - Applying a .diff file - How do I do this ? - Linux ; I am trying to apply a patch to a tource tarball I have a source tar file checkpw_1.00.orig.tar and a corresponding patch file checkpw_1.00-3.diff Here is what is happening: mark@venus:/u/dev01/checkpw$ ls checkpw_1.00-3.diff checkpw_1.00.orig.tar mark@venus:/u/dev01/checkpw$ patch checkpw_1.00.orig.tar checkpw_1.00-3.diff patching file checkpw_1.00.orig.tar ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Patch - Applying a .diff file - How do I do this ?

  1. Patch - Applying a .diff file - How do I do this ?

    I am trying to apply a patch to a tource tarball

    I have a source tar file checkpw_1.00.orig.tar and a corresponding patch file
    checkpw_1.00-3.diff

    Here is what is happening:

    mark@venus:/u/dev01/checkpw$ ls
    checkpw_1.00-3.diff checkpw_1.00.orig.tar
    mark@venus:/u/dev01/checkpw$ patch checkpw_1.00.orig.tar checkpw_1.00-3.diff
    patching file checkpw_1.00.orig.tar
    patching file run
    patching file errno.diff
    patching file changelog
    patching file checkapoppw.8
    patching file checkpw.8
    patching file checkpw.README.Debian
    patching file checkpw.docs
    patching file checkpw.examples
    patching file control
    patching file copyright
    patching file implicit
    patching file interface.html
    patching file rules
    patching file run
    patching file run
    mark@venus:/u/dev01/checkpw$ ls
    changelog checkpw.8 control interface.html
    checkapoppw.8 checkpw.docs copyright rules
    checkpw_1.00-3.diff checkpw.examples errno.diff run
    checkpw_1.00.orig.tar checkpw.README.Debian implicit

    I wasn't expecting to see all these files present. I was just expecting a
    revised .tar file.

    Has patch extracted everything from the .tar archive ? or do I need to extract
    it now ?

    Can I just remove the .diff and .tar file to be left with the resultant source
    for modification ?

    Is it possible for patch to just apply the .diff to update the tar file without
    extracting any files ?

    Thanks in advance to anyone who can help.

    Regards,

    Mark.

    --
    Mark Hobley
    393 Quinton Road West
    QUINTON
    Birmingham
    B32 1QE

    Telephone: (0121) 247 1596
    International: 0044 121 247 1596

    Email: markhobley at hotpop dot donottypethisbit com

    http://markhobley.yi.org/


  2. Re: Patch - Applying a .diff file - How do I do this ?

    In article , Mark Hobley wrote:
    > I am trying to apply a patch to a tource tarball
    >
    > I have a source tar file checkpw_1.00.orig.tar and a corresponding patch file
    > checkpw_1.00-3.diff
    >

    ....
    > I wasn't expecting to see all these files present. I was just expecting a
    > revised .tar file.
    >
    > Has patch extracted everything from the .tar archive ? or do I need to extract
    > it now ?



    I've always extracted the tar file first and then run patch

    if you want a new tar file after patching you have to make it.

    --

    Bye.
    Jasen

+ Reply to Thread