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

From: Mark Hobley (markhobley_at_hotpop.deletethisbit.com)
Date: 07/22/05


Date: Fri, 22 Jul 2005 12:08:03 GMT

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/


Relevant Pages

  • Re: Booting from usb hard disk
    ... The following patch should work. ... Patching file kern/vfs_mount.c using Plan A... ... Hunk #1 succeeded at 1353. ... GEOM_LABEL: Label for provider ad0 is ufsid/49adccdba5f8e304. ...
    (freebsd-current)
  • Upgrade succeded from 3.8 to 3.9
    ... and restored data again. ... The next patch looks like a unified diff to me... ... Patching file etc/lynx.cfg using Plan A... ... Hunk #1 succeeded at 5. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Linux-2.6.27-rc5, drm errors in log
    ... but how do I get that specific patch? ... patching file firmware/Makefile ... reporter, and at 2.6.27-rc1 it is still doing it. ...
    (Linux-Kernel)
  • Re: Linux-2.6.27-rc5, drm errors in log
    ... but how do I get that specific patch? ... patching file firmware/Makefile ... of reporter, and at 2.6.27-rc1 it is still doing it. ...
    (Linux-Kernel)
  • Re: Upgrade succeded from 3.8 to 3.9
    ... The next patch looks like a unified diff to me... ... Patching file etc/lynx.cfg using Plan A... ... Hunk #1 succeeded at 5. ...
    (comp.unix.bsd.openbsd.misc)