http://qs1969.pair.com?node_id=1186219


in reply to How to patch this module?

If you're going to manually patch a distribution, you forego most of the automation that CPAN provides you and have to do the steps manually:

  1. Download and unpack the distribution. If in a hurry, you can let CPAN do that for you:
    cpanm --look Devel::CallParser

    or

    cpan CPAN> look Devel::CallParser </li> <li>Patch the distribution: <c> patch < rt110623.patch
  2. Test the distribution:
    perl Makefile.PL make make test
  3. Install the distribution:
    make install
  4. Keep a backup of the current directory, for the next installation

Update: Corrected invocations of tools, as spotted by ibm1620

Replies are listed 'Best First'.
Re^2: How to patch this module?
by ultranerds (Hermit) on Mar 28, 2017 at 09:32 UTC
    Hi,

    Thanks :)

    I just tried the method you said, but it seems to "hang" on the 2nd step:
    root@mail:~# cd Devel-CallParser-0.002/
    root@mail:~/Devel-CallParser-0.002# patch ../fix.patch
    ^X^C
    Any ideas?

    Oh, and I also agree about not being able to get the best out of the CPAN system - but unfortunately until they fix the bug in the official release, I can't use it :(

    Thanks!

    Andy

      I don't know what format the patch file is in and how your patch command expects its input.

      The patch command I know expects its input on stdin, which is why I showed the suspected command line as

      patch < whatever.patch

      Maybe your patch command is different.

        Sorry, I missed the < part of your example :) Works now! Thanks
Re^2: How to patch this module?
by ibm1620 (Hermit) on May 10, 2022 at 20:33 UTC
    Should that be cpanm --look Devel::CallParser ?