| 1 |
Changes in 2.01 |
| 2 |
--------------- |
| 3 |
|
| 4 |
General |
| 5 |
|
| 6 |
* Used IO::File instead of IO. |
| 7 |
|
| 8 |
* Use binmode for all files, to prevent unicode problems with newer |
| 9 |
perls. |
| 10 |
|
| 11 |
* Modified a few things that required Perl 5.005, so it now runs |
| 12 |
under 5.004. |
| 13 |
|
| 14 |
* Calculate separate checksums for the patch data and the whole patch |
| 15 |
file. Do not complain if the checksum for the patch file is wrong, |
| 16 |
if the checksum for the patch data is okay. |
| 17 |
This allows modification of the preamble of the patch file without |
| 18 |
affecting the integrity checking mechanism. |
| 19 |
|
| 20 |
* Restructured the files in the kit, and added a test program. |
| 21 |
|
| 22 |
* A warning is given when installing on Solaris, since the 'patch' |
| 23 |
program on Solaris (at least the versions I have access to) is |
| 24 |
buggy to the extent that it is unusable. |
| 25 |
|
| 26 |
* Small fixes to avoid warnings under Perl 5.8.x and later. |
| 27 |
|
| 28 |
Makepatch |
| 29 |
|
| 30 |
* Some systems need to set environment variable TMPDIR (or TEMP) to |
| 31 |
designate a location for temporary files. |
| 32 |
|
| 33 |
Overall changes in makepatch version 2.0 |
| 34 |
---------------------------------------- |
| 35 |
|
| 36 |
General |
| 37 |
|
| 38 |
* The makepatch package now consists of two programs: 'makepatch' and |
| 39 |
'applypatch'. 'makepatch' generates the patch kit (using the 'diff' |
| 40 |
program), 'applypatch' applies it (using the 'patch' program). |
| 41 |
|
| 42 |
Makepatch |
| 43 |
|
| 44 |
* To avoid most common problems with buggy versions of the 'patch' |
| 45 |
program, the patch data is relocated to the current directory. |
| 46 |
This obsoletes the command line options -fixpath and -fixallpath. |
| 47 |
|
| 48 |
As a consequence, when a patch is generated from two directories, |
| 49 |
e.g.: |
| 50 |
|
| 51 |
makepatch src-1.0 src-1.1 > the-patch |
| 52 |
|
| 53 |
it must be applied *IN* the directory src-1.0, e.g. |
| 54 |
|
| 55 |
cd src-1.0; applypatch the-patch |
| 56 |
|
| 57 |
When fed to patch directly, no -p option should be used: |
| 58 |
|
| 59 |
cd src-1.0; patch < the-patch |
| 60 |
|
| 61 |
* (Initial) program options can be specified in environment variable |
| 62 |
MAKEPATCHINIT, and in preferences files /etc/makepatchrc, |
| 63 |
$HOME/.makepatchrc and ./.makepatchrc. The latter file name can be |
| 64 |
overridden with a '-rcfile' option in MAKEPATCHINIT. |
| 65 |
|
| 66 |
* Makepatch can take standard source archives (.tar.gz, .tar.bz2, |
| 67 |
.tar or .zip) as input instead of the sources directories. |
| 68 |
The -extract command line option can be used to change or add |
| 69 |
extraction rules. |
| 70 |
|
| 71 |
* MANIFEST files are automatically used unless suppressed with the |
| 72 |
new -nomanifest option. |
| 73 |
|
| 74 |
* Files can be excluded from the process with the new command line |
| 75 |
options -exclude, -exclude_regex, -exclude-vc. |
| 76 |
|
| 77 |
Applypatch |
| 78 |
|
| 79 |
* The generated patch kit is the concatenation of |
| 80 |
- a shell preamble; |
| 81 |
- the actual 'patch' input; |
| 82 |
- a data section for 'applypatch'. |
| 83 |
|
| 84 |
* When applied through 'applypatch', the patch kit will be |
| 85 |
extensively verified for integrity. Heuristics are applied to the |
| 86 |
current directory to verify that it is indeed the expected source |
| 87 |
directory. This directory is prepared for the patching, i.e. new |
| 88 |
files and directories are created if required. Next, the patch data |
| 89 |
is passed to the 'patch' program for the actual patching. Finally |
| 90 |
file modes and timestamps are adjusted. |
| 91 |
|
| 92 |
Example: |
| 93 |
applypatch -d src-1.0 the-patch |
| 94 |
|
| 95 |
* When the patch kit is run as a shell script, it will prepare the |
| 96 |
current directory by creating / removing files and directories as |
| 97 |
required. The patch kit should then be fed to the 'patch' program. |
| 98 |
|
| 99 |
Example: |
| 100 |
cd src-1.0; sh < the-patch; patch < the-patch |
| 101 |
|
| 102 |
* When the patch kit is fed to the 'patch' program, the files in the |
| 103 |
current directory will be patched. If the directory has not been |
| 104 |
prepared (e.g. by running the kit as a shell script) the results |
| 105 |
will very much depend on your 'patch' program. |
| 106 |
|
| 107 |
Example: |
| 108 |
patch -d src-1.0 < the-patch |
| 109 |
|