in reply to How to patch this module?
Update: This is perhaps a long winded approach, but I think it helps to understand the process in full.
Download the module, extract the archive, then:
wget https://rt.cpan.org/Ticket/Attachment/1576496/841876/0001-Fix-a-p +ad-problem-with-Perl-5.21.4-on-threaded-build.patch marto@shemp ~/Devel-CallParser-0.002 $ patch -p1 < 0001-Fix-a-pad-prob +lem-with-Perl-5.21.4-on-threaded-build.patch patching file lib/Devel/CallParser.xs patching file t/pad2.t
Notice that the patch has created the new file you're looking for (you can see everything the patch does by reading it and following the logic). Then:
marto@shemp ~/Devel-CallParser-0.002 $ cpanm . --> Working on . Configuring Devel-CallParser-0.002 ... OK Building and testing Devel-CallParser-0.002 ... OK Successfully installed Devel-CallParser-0.002 1 distribution installed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to patch this module?
by ultranerds (Hermit) on Mar 28, 2017 at 09:39 UTC | |
by marto (Cardinal) on Mar 28, 2017 at 09:40 UTC | |
by ultranerds (Hermit) on Mar 28, 2017 at 09:45 UTC | |
by marto (Cardinal) on Mar 28, 2017 at 09:47 UTC | |
by ultranerds (Hermit) on Mar 28, 2017 at 09:52 UTC | |
|