Skip to content

Commit 56a261b

Browse files
authored
Merge pull request #230 from git-for-windows/msys2-runtime-754b26f8483bf6b333fd01d58dad4341e4b6d8a8
msys2-runtime: update to 3.6.1-1
2 parents e97cbb1 + 93578b2 commit 56a261b

File tree

55 files changed

+149
-645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+149
-645
lines changed

msys2-runtime/0001-Add-MSYS2-triplet.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 90f0b2f7fb7f45e4cb7a9f68d0363238255d8b60 Mon Sep 17 00:00:00 2001
1+
From be88bf581b370c45c96bf14f8286e02c61a4cf45 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 20:40:45 +0300

msys2-runtime/0002-Fix-msys-library-name-in-import-libraries.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 3949c156122acec609e9b14a06081f096d40682a Mon Sep 17 00:00:00 2001
1+
From b00015672a4c3b7054c8d497bd5dfd5c20af97b6 Mon Sep 17 00:00:00 2001
22
From: Kaleb Barrett <[email protected]>
33
Date: Sun, 14 Mar 2021 18:58:55 -0500
44
Subject: [PATCH 02/N] Fix msys library name in import libraries

msys2-runtime/0003-Rename-dll-from-cygwin-to-msys.patch

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ae1dc7cd646de0e1e258cef787eac0797fb108c8 Mon Sep 17 00:00:00 2001
1+
From c6ac7c6b6e57836b47e1e563660567d0f702de41 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:09:17 +0300
@@ -223,7 +223,7 @@ index f4c09be..e19b7d3 100644
223223
static int _fmode;
224224

225225
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc
226-
index fb70524..7367d29 100644
226+
index 10bd0ac..f9c9fe2 100644
227227
--- a/winsup/cygwin/dlfcn.cc
228228
+++ b/winsup/cygwin/dlfcn.cc
229229
@@ -147,8 +147,13 @@ collect_basenames (pathfinder::basenamelist & basenames,
@@ -241,10 +241,10 @@ index fb70524..7367d29 100644
241241
/* ... using original basename with new suffix. */
242242
basenames.appendv (basename, baselen, ext, extlen, NULL);
243243
diff --git a/winsup/cygwin/dll_init.cc b/winsup/cygwin/dll_init.cc
244-
index 1a04751..7c5f8cc 100644
244+
index b8f38b5..a62f65a 100644
245245
--- a/winsup/cygwin/dll_init.cc
246246
+++ b/winsup/cygwin/dll_init.cc
247-
@@ -874,7 +874,11 @@ dll_dllcrt0_1 (VOID *x)
247+
@@ -903,7 +903,11 @@ dll_dllcrt0_1 (VOID *x)
248248
}
249249

250250
extern "C" void
@@ -277,7 +277,7 @@ index 7303f7e..6ccc19a 100644
277277
w32len = cygheap->installation_key.Length / sizeof (WCHAR);
278278
if (w32len
279279
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
280-
index 2e25aa2..dfbb935 100644
280+
index 49fc166..a2a589e 100644
281281
--- a/winsup/cygwin/exceptions.cc
282282
+++ b/winsup/cygwin/exceptions.cc
283283
@@ -526,14 +526,14 @@ int exec_prepared_command (PWCHAR command)
@@ -298,10 +298,10 @@ index 2e25aa2..dfbb935 100644
298298
break;
299299
}
300300
diff --git a/winsup/cygwin/fhandler/pipe.cc b/winsup/cygwin/fhandler/pipe.cc
301-
index ac8bbe7..3537180 100644
301+
index e35d523..506dd09 100644
302302
--- a/winsup/cygwin/fhandler/pipe.cc
303303
+++ b/winsup/cygwin/fhandler/pipe.cc
304-
@@ -785,7 +785,11 @@ fhandler_pipe::close (int flag)
304+
@@ -790,7 +790,11 @@ fhandler_pipe::close (int flag)
305305
return ret;
306306
}
307307

@@ -314,7 +314,7 @@ index ac8bbe7..3537180 100644
314314
/* Create a pipe, and return handles to the read and write ends,
315315
just like CreatePipe, but ensure that the write end permits
316316
diff --git a/winsup/cygwin/fhandler/pty.cc b/winsup/cygwin/fhandler/pty.cc
317-
index e61a1c8..ebb9dbc 100644
317+
index 3128b92..0969b2f 100644
318318
--- a/winsup/cygwin/fhandler/pty.cc
319319
+++ b/winsup/cygwin/fhandler/pty.cc
320320
@@ -875,7 +875,11 @@ fhandler_pty_slave::open (int flags, mode_t)
@@ -341,7 +341,7 @@ index e61a1c8..ebb9dbc 100644
341341
&cygheap->installation_key, get_minor ());
342342
pipe_request req = { GetCurrentProcessId () };
343343
pipe_reply repl;
344-
@@ -2021,7 +2029,11 @@ fhandler_pty_master::close (int flag)
344+
@@ -2024,7 +2032,11 @@ fhandler_pty_master::close (int flag)
345345
pipe_reply repl;
346346
DWORD len;
347347

@@ -353,7 +353,7 @@ index e61a1c8..ebb9dbc 100644
353353
&cygheap->installation_key, get_minor ());
354354
acquire_output_mutex (mutex_timeout);
355355
if (master_ctl)
356-
@@ -2927,7 +2939,11 @@ fhandler_pty_master::setup ()
356+
@@ -2930,7 +2942,11 @@ fhandler_pty_master::setup ()
357357

358358
/* Create master control pipe which allows the master to duplicate
359359
the pty pipe handles to processes which deserve it. */
@@ -365,7 +365,7 @@ index e61a1c8..ebb9dbc 100644
365365
&cygheap->installation_key, unit);
366366
master_ctl = CreateNamedPipe (buf, PIPE_ACCESS_DUPLEX
367367
| FILE_FLAG_FIRST_PIPE_INSTANCE,
368-
@@ -3816,7 +3832,11 @@ fhandler_pty_slave::transfer_input (tty::xfer_dir dir, HANDLE from, tty *ttyp,
368+
@@ -3819,7 +3835,11 @@ fhandler_pty_slave::transfer_input (tty::xfer_dir dir, HANDLE from, tty *ttyp,
369369
{
370370
char pipe[MAX_PATH];
371371
__small_sprintf (pipe,
@@ -436,7 +436,7 @@ index 1e4cf98..b77598b 100644
436436
} \
437437
} \
438438
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
439-
index 0228074..0bd0256 100644
439+
index f4f908f..37122d4 100644
440440
--- a/winsup/cygwin/include/cygwin/version.h
441441
+++ b/winsup/cygwin/include/cygwin/version.h
442442
@@ -510,7 +510,11 @@ details. */

msys2-runtime/0004-Add-functionality-for-converting-UNIX-paths-in-argum.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 894b05ef767c95400be2406c28988e4d06f3e0a8 Mon Sep 17 00:00:00 2001
1+
From 4bb3f5dcfa50bcf955df54d1975cfd3388306946 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:17:46 +0300

msys2-runtime/0005-Add-functionality-for-changing-OS-name-via-MSYSTEM-e.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 70c8b732241944068aea4a958c42a39337476a0b Mon Sep 17 00:00:00 2001
1+
From 2a7153d171a579324b2fc0c83e491952ed7764b2 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:29:01 +0300

msys2-runtime/0006-Move-root-to-usr.-Change-sorting-mount-points.-By-de.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 83c84acd7c46696e4ddd5df8ce3f097de85a61d3 Mon Sep 17 00:00:00 2001
1+
From 25add3b86d2346d019e810a732bd05675c12cf19 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:45:06 +0300

msys2-runtime/0007-Instead-of-creating-Cygwin-symlinks-use-deep-copy-by.patch

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From aebb0471f35665f3fab4c574c273ac7769cd757a Mon Sep 17 00:00:00 2001
1+
From b127b7469e05d0d974ae0f89626522e01a138443 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:47:21 +0300
@@ -22,8 +22,8 @@ Co-authored-by: Jeremy Drake <[email protected]>
2222
---
2323
winsup/cygwin/environ.cc | 4 +
2424
winsup/cygwin/globals.cc | 3 +-
25-
winsup/cygwin/path.cc | 268 +++++++++++++++++++++++++++++++++++++++
26-
3 files changed, 274 insertions(+), 1 deletion(-)
25+
winsup/cygwin/path.cc | 250 +++++++++++++++++++++++++++++++++++++++
26+
3 files changed, 256 insertions(+), 1 deletion(-)
2727

2828
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
2929
index b9f7e05..5fb3f53 100644
@@ -62,7 +62,7 @@ index d8e058f..b7e0e21 100644
6262
bool winjitdebug = false;
6363

6464
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
65-
index 0e7ebdf..251c6a6 100644
65+
index 0e7ebdf..d8e456a 100644
6666
--- a/winsup/cygwin/path.cc
6767
+++ b/winsup/cygwin/path.cc
6868
@@ -1722,6 +1722,171 @@ conv_path_list (const char *src, char *dst, size_t size,
@@ -237,7 +237,7 @@ index 0e7ebdf..251c6a6 100644
237237
/* Create a symlink from FROMPATH to TOPATH. */
238238

239239
extern "C" int
240-
@@ -2034,6 +2199,102 @@ symlink_wsl (const char *oldpath, path_conv &win32_newpath)
240+
@@ -2034,6 +2199,84 @@ symlink_wsl (const char *oldpath, path_conv &win32_newpath)
241241
return 0;
242242
}
243243

@@ -247,25 +247,7 @@ index 0e7ebdf..251c6a6 100644
247247
+ tmp_pathbuf tp;
248248
+ path_conv win32_oldpath;
249249
+
250-
+ /* **BEGIN** replace this with
251-
+ resolve_symlink_target (oldpath, win32_newpath. win32_oldpath);
252-
+ when rebasing over 5a706ff0fceb83fd1fe7f072fc28a741fdde65f2
253-
+ (probably Cygwin 3.6) */
254-
+ /* The symlink target is relative to the directory in which the
255-
+ symlink gets created, not relative to the cwd. Therefore we
256-
+ have to mangle the path quite a bit before calling path_conv.*/
257-
+ if (isabspath (oldpath))
258-
+ win32_oldpath.check (oldpath, PC_SYM_NOFOLLOW, stat_suffixes);
259-
+ else
260-
+ {
261-
+ size_t len = strrchr (win32_newpath.get_posix (), '/')
262-
+ - win32_newpath.get_posix () + 1;
263-
+ char *absoldpath = tp.t_get ();
264-
+ stpcpy (stpncpy (absoldpath, win32_newpath.get_posix (), len),
265-
+ oldpath);
266-
+ win32_oldpath.check (absoldpath, PC_SYM_NOFOLLOW, stat_suffixes);
267-
+ }
268-
+ /* **END** */
250+
+ resolve_symlink_target (oldpath, win32_newpath, win32_oldpath);
269251
+ if (win32_oldpath.error)
270252
+ {
271253
+ set_errno (win32_oldpath.error);
@@ -340,7 +322,7 @@ index 0e7ebdf..251c6a6 100644
340322
int
341323
symlink_worker (const char *oldpath, path_conv &win32_newpath, bool isdevice)
342324
{
343-
@@ -2101,6 +2362,13 @@ symlink_worker (const char *oldpath, path_conv &win32_newpath, bool isdevice)
325+
@@ -2101,6 +2344,13 @@ symlink_worker (const char *oldpath, path_conv &win32_newpath, bool isdevice)
344326
case WSYM_nfs:
345327
res = symlink_nfs (oldpath, win32_newpath);
346328
__leave;

msys2-runtime/0008-Automatically-rewrite-TERM-msys-to-TERM-cygwin.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b7e7e107a5c443d11ac51e9a15f40f6a4305feb8 Mon Sep 17 00:00:00 2001
1+
From 07e2ec8f36d080e1f7443b2658d0b17d871a9307 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:48:54 +0300

msys2-runtime/0009-Do-not-convert-environment-for-strace.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 511ebb14dc75bf6df92c01633c4b3f5cbf805436 Mon Sep 17 00:00:00 2001
1+
From ccb8cb97309edd55bb8753073a6030bf20a9b643 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
33
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <[email protected]>
44
Date: Sun, 14 Apr 2019 21:50:55 +0300

msys2-runtime/0010-strace.cc-Don-t-set-MSYS-noglob.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 89f33bd736e7403e0be6fd5b8cf66588119bb280 Mon Sep 17 00:00:00 2001
1+
From 712d8de47182b4c4239051a288e0ffbb50a94cfe Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <[email protected]>
33
Date: Sun, 23 Aug 2015 20:47:30 +0100
44
Subject: [PATCH 10/N] strace.cc: Don't set MSYS=noglob

0 commit comments

Comments
 (0)