Mail Archives: djgpp/2015/07/17/13:17:57
This is a port of GNU patch 2.7.1 to MSDOS/DJGPP.
GNU patch is a program to apply patches to files. It accepts a "patch script",
usually produced by file-comparison utility such as Diff, and produces
modified files by applying this script to old versions of files.
More often than not, Patch is used with text, usually source, files.
But it can also patch binary files, although the patch scripts for binary
files tend to be large.
DJGPP specific changes.
=======================
- There are no user visible DJGPP specific changes compared with the previous
version.
- This is the first port that has been compiled using djdev205. Starting
with this port version I will no longer support neither djdev204 nor djdev203.
- The port has been tested by using it. I have used them only on WinXP.
It has worked flawlessly. I do not konw if this will ever be the case on
FreeDOS. I have never used/tested them in that environment.
- The port has been configured and compiled on WinXP SP3. There is no
guarantee that this may be possible with any other DOS-like OS. Due
to the massive use of long file names it will not be possible to configure
and compile without LFN support. The port has been compiled using gcc510
and bnu225br2.
For further information about GNU patch please read the info docs and NEWS
file.
Here is an extract of the NEWS file showing the user visible changes from
the last port (GNU patch 2.6.1) to this one:
-------------------------------------------------------------------------------
Changes in version 2.7.1:
* Two critical bug fixes in the "diff --git" format support.
* Clarify the message printed when a patch is expected to empty out and delete
a file, but the file does not become empty.
* Various improvements to messages when applying a patch to a file of different
type (regular file vs. symlink), when there are line ending differences (LF
vs. CRLF), and when in --dry-run mode.
* When in the root directory, allow file names that are absolute or that
contain a component of "..".
* New --follow-symlinks option to allow to treat symlinks as files: this was
patch's behavior before version 2.7.
* Ignore when extended attributes cannot be preserved because they are
unsupported or because permission to set them is denied.
* License clarifications in NEWS and README.
* Portability bug fixes.
Changes in version 2.7:
* Patch no longer gets a failed assertion for certain mangled patches.
* Ignore destination file names that are absolute or that contain a component
of "..". This addresses CVE-2010-4651.
* Support for most features of the "diff --git" format, including renames and
copies, permission changes, and symlink diffs. Binary diffs are not
supported yet; patch will complain and skip them.
* Support for double-quoted filenames: when a filename starts with a double
quote, it is interpreted as a C string literal. The escape sequences \\, \",
\a, \b, \f, \n, \r, \t, \v, and \ooo (a three-digit octal number between 0
and 255) are recognized.
* Refuse to apply a normal patch to a symlink. (Previous versions of patch
were replacing the symlink with a regular file.)
* When trying to modify a read-only file, warn about the potential problem
by default. The --read-only command line option allows to change this
behavior.
* Files to be deleted are deleted once the entire input has been processed, not
immediately. This fixes a bug with numbered backup files.
* When a timestamp specifies a time zone, honor that instead of assuming the
local time zone (--set-date) or Universal Coordinated Time (--set-utc).
* Support for nanosecond precision timestamps.
* Many portability and bug fixes.
-------------------------------------------------------------------------------
The port consists of the usual two packages produced using djdev205
that can be downloaded from ftp.delorie.com and mirrors as (time stamp 2015-07-16):
Patch 2.7.1 binary and man format documentation:
ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/pat275br2.zip
Patch 2.7.1 source:
ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/pat275sr2.zip
Send Patch specific bug reports to <bug-patch AT gnu DOT org>.
Send suggestions and bug reports concerning the DJGPP port
to comp.os.msdos.djgpp or <djgpp AT delorie DOT com>.
Enjoy.
Guerrero, Juan Manuel <juan DOT guerrero AT gmx DOT de>
- Raw text -