| 1 |
NAME |
| 2 |
|
| 3 |
Devel::PatchPerl - Patch perl source a la Devel::PPPort's buildperl.pl |
| 4 |
|
| 5 |
VERSION |
| 6 |
|
| 7 |
version 2.14 |
| 8 |
|
| 9 |
SYNOPSIS |
| 10 |
|
| 11 |
use strict; |
| 12 |
use warnings; |
| 13 |
|
| 14 |
use Devel::PatchPerl; |
| 15 |
|
| 16 |
Devel::PatchPerl->patch_source( '5.6.1', '/path/to/untarred/perl/source/perl-5.6.1' ); |
| 17 |
|
| 18 |
DESCRIPTION |
| 19 |
|
| 20 |
Devel::PatchPerl is a modularisation of the patching code contained in |
| 21 |
Devel::PPPort's buildperl.pl. |
| 22 |
|
| 23 |
It does not build perls, it merely provides an interface to the source |
| 24 |
patching functionality. |
| 25 |
|
| 26 |
FUNCTION |
| 27 |
|
| 28 |
patch_source |
| 29 |
|
| 30 |
Takes two parameters, a perl version and the path to unwrapped perl |
| 31 |
source for that version. It dies on any errors. |
| 32 |
|
| 33 |
If you don't supply a perl version, it will attempt to auto-determine |
| 34 |
the perl version from the specified path. |
| 35 |
|
| 36 |
If you don't supply the path to unwrapped perl source, it will assume |
| 37 |
the current working directory. |
| 38 |
|
| 39 |
determine_version |
| 40 |
|
| 41 |
Takes one optional parameter, the path to unwrapped perl source. It |
| 42 |
returns the perl version of the source code at the given location. It |
| 43 |
returns undef on error. |
| 44 |
|
| 45 |
If you don't supply the path to unwrapped perl source, it will assume |
| 46 |
the current working directory. |
| 47 |
|
| 48 |
PLUGIN SYSTEM |
| 49 |
|
| 50 |
See Devel::PatchPerl::Plugin for details of Devel::PatchPerl's plugin |
| 51 |
system. |
| 52 |
|
| 53 |
PATCHLEVEL |
| 54 |
|
| 55 |
Devel::PatchPerl will normally update the patchlevel.h file in the perl |
| 56 |
source tree to indicate that it has applied local patches. This |
| 57 |
behaviour is negated if it is detected that it is operating in a git |
| 58 |
repository. To override this and update patchlevel.h when in a Git |
| 59 |
repository, set the env var PERL5_PATCHPERL_PATCHLEVEL to a true value. |
| 60 |
|
| 61 |
Alternatively, call patchperl with the --patchlevel option. |
| 62 |
|
| 63 |
CAVEAT |
| 64 |
|
| 65 |
Devel::PatchPerl is intended only to facilitate the building of perls, |
| 66 |
not to facilitate the testing of perls. This means that it will not |
| 67 |
patch failing tests in the perl testsuite. |
| 68 |
|
| 69 |
SEE ALSO |
| 70 |
|
| 71 |
Devel::PPPort |
| 72 |
|
| 73 |
Devel::PatchPerl::Plugin |
| 74 |
|
| 75 |
AUTHOR |
| 76 |
|
| 77 |
Chris Williams <[email protected]> |
| 78 |
|
| 79 |
COPYRIGHT AND LICENSE |
| 80 |
|
| 81 |
This software is copyright (c) 2025 by Chris Williams and Marcus |
| 82 |
Holland-Moritz. |
| 83 |
|
| 84 |
This is free software; you can redistribute it and/or modify it under |
| 85 |
the same terms as the Perl 5 programming language system itself. |
| 86 |
|