Message-Id: <201607280106.u6S16pCG003438@delorie.com> Date: Thu, 28 Jul 2016 02:55:08 +0200 From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp-announce AT delorie DOT com]" To: djgpp-announce AT delorie DOT com Subject: ANNOUNCE: Release 2 of the DJGPP port of GNU patch 2.7.5 uploaded. Content-Type: text/plain; charset=ISO-8859-15; format=flowed Reply-To: djgpp AT delorie DOT com This is a port of GNU patch 2.7.5 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. ======================= This is a DJGPP specific bug fix release. It will fix the issues reported in: http://www.delorie.com/archives/browse.cgi?p=djgpp/2016/06/23/00:00:16 Now the function call that will restore the original working directory has been added to the function used as signal handler to be called when SIGINT is raised or the programs aborts for some other reason. Also the reason for the infinite loop has been removed when the program was called with the -d option. Please note that the FSF distribution of patch no longer can be compiled with DJGPP out-of-the-box. If something seems not to work with this port, please report it first at c.o.m.d. and not at bug-patch AT gnu DOT org. The maintainer will have no idea about what I have done. The source package is configured to be build in the "_build" directory. The DJGPP 2.05 version of the port has been compiled using gcc345 and bnu2261b. 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 use of long file names it will not be possible to configure and compile without LFN support. 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.7.1) to this one: ------------------------------------------------------------------------------- Changes in version 2.7.5: * There are users which expect patch to follow symbolic links in the working directory, so patch now again follows symbolic links as long as they do not leave the working directory. Changes until version 2.7.4: * When a file isn't being deleted because the file contents don't match the patch, the resulting message is now "Not deleting file ... as content differs from patch" instead of "File ... is not empty after patch; not deleting". * Function names in hunks (from diff -p) are now preserved in reject files. * Patch no longer follows symbolic links to input and output files. This ensures that symbolic links created by git-style patches cannot cause patch to write outside the working directory (CVE-2015-1196). * Various fixes. ------------------------------------------------------------------------------- The port consists of two packages produced using djdev205 that can be downloaded from ftp.delorie.com and mirrors as (time stamp 2016-07-27): Patch 2.7.5 binary and man format documentation: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/pat275br2.zip Patch 2.7.5 source: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/pat275sr2.zip Send Patch specific bug reports to . Send suggestions and bug reports concerning the DJGPP port to comp.os.msdos.djgpp or . Enjoy. Guerrero, Juan Manuel