in reply to Re: How to apply a patch on Windows?
in thread How to apply a patch on Windows?

Maybe there's a clue to the solution to the OPs problem in there somewhere, but if there is, it went right over my head.

Replies are listed 'Best First'.
Re^3: How to apply a patch on Windows?
by Anonymous Monk on Apr 23, 2010 at 08:37 UTC
    Maybe there's a clue to the solution to the OPs problem in there somewhere, but if there is, it went right over my head.

    Why exactly? I see I posted erroneously extra output, but if you run the batch file, you should be able to follow and learn how patch processes files.

    Its a basic path management problem.

    mnooning specifies -p0 -dNet-Daemon which means cd to Net-Deamon and strip zero leading path parts, so patch looks for Net-Daemon/ChangeLog in Net-Deamon (Net-Deamon/Net-Deamon/ChangeLog) which doesn't exist.

    So mnooning needs to change to -p1, or remove both -p/-d options... or manually enter the correct file path when prompted.

      Why exactly?

      Because without a clue about what I'm meant to be looking for, in that volume of very similar looking lines, it is really hard to pick out the significant bit, -p0 .v. -p1, before my eyes glaze over.

      So mnooning needs to change ...

      Now that I follow. Succinct, clear and to the point.

      Thankyou. I learnt two things.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Yes, the "lesson" was very opaque. Thanks for the help. I had tried different variations, except -p1.
        I wound up doing it by hand. The patch itself introduces an extra opening brace, so it is a bad patch.
        Thanks