annotate Framework/Orthanc/Resources/ThirdParty/patch/NOTES.txt @ 18:6ce90b8abc5a

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