Mercurial > hg > orthanc
annotate OrthancFramework/Resources/ThirdParty/patch/NOTES.txt @ 5023:c8c98389080f
use constant for multiply occurring string
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 17 Jun 2022 07:23:57 +0200 |
parents | d25f4c0fa160 |
children |
rev | line source |
---|---|
1586
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
1 =========== |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
2 INFORMATION |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
3 =========== |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
4 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
5 This is a precompiled version of the "patch" standard tool for |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
6 Windows. It was compiled using the MSYS framework. |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 |
1547
5e65349c896b
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1539
diff
changeset
|
8 The binaries originate from the "Git for Windows 1.9.5" package |
1586
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
9 (https://msysgit.github.io/). The build instructions have been |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
10 provided on the discussion group of Git for Windows [1]. They are |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
11 copied/pasted below for reference. |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
12 |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 |
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 |
1586
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
15 ================ |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
16 UPSTREAM PROJECT |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
17 ================ |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
18 |
1547
5e65349c896b
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1539
diff
changeset
|
19 URL to the upstream project: |
1537
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 http://savannah.gnu.org/projects/patch/ |
fbf763bb1fa3
error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
1586
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
22 License of patch: GPLv2 (GNU General Public License v2) |
1539 | 23 |
1547
5e65349c896b
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1539
diff
changeset
|
24 Copyright (C) 1988 Larry Wall "with lots o' patches by Paul Eggert" |
5e65349c896b
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1539
diff
changeset
|
25 Copyright (C) 1997 Free Software Foundation, Inc. |
1586
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
26 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
27 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
28 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
29 ====================== |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
30 BUILD INSTRUCTIONS [1] |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
31 ====================== |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
32 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
33 The easiest way to find out about this is to install the Git SDK, then |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
34 run |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
35 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
36 pacman -Qu $(which patch.exe) |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
37 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
38 to find out which package contains the `patch.exe` binary. It so happens |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
39 to be patch.2.7.5-1 at the moment. Since this is an MSys2 package (not a |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
40 MinGW one, otherwise the patch utility would be in /mingw64/bin/, not |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
41 /usr/bin/), this package is built from the recipes in |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
42 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
43 https://github.com/msys2/MSYS2-packages |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
44 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
45 The `patch` package is obviously built from the subdirectory |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
46 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
47 https://github.com/Alexpux/MSYS2-packages/tree/master/patch |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
48 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
49 and the PKGBUILD file specifies that the source is fetched from |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
50 ftp://ftp.gnu.org/gnu/patch/patch-2.7.5.tar.xz: |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
51 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
52 https://github.com/Alexpux/MSYS2-packages/blob/900744becd072f687029b0f830ab6fe95cf533d6/patch/PKGBUILD#L14 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
53 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
54 and then these two patches are applied before building: |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
55 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
56 https://github.com/Alexpux/MSYS2-packages/blob/900744becd072f687029b0f830ab6fe95cf533d6/patch/msys2-patch-2.7.1.patch |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
57 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
58 and |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
59 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
60 https://github.com/Alexpux/MSYS2-packages/blob/900744becd072f687029b0f830ab6fe95cf533d6/patch/msys2-patch-manifest.patch |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
61 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
62 As you can see, some light changes are applied, i.e. `patch.exe` will |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
63 always write in binary mode with MSys2, and the executable will have a |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
64 manifest embedded that allows it to run as non-administrator. |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
65 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
66 Ciao, |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
67 Johannes Schindelin |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
68 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
69 |
e088bc2c3a1a
notes about patch.exe
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1547
diff
changeset
|
70 [1] https://groups.google.com/d/msg/git-for-windows/xWyVr4z6Ri0/6RKeV028EAAJ |