308 Commits

Author SHA1 Message Date
Johannes Schindelin
6365cf1bc0 msys2-runtime: upgrade to v3.6.5
This corresponds to https://github.com/msys2/msys2-runtime/pull/313

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-10-10 16:28:18 +02:00
Christoph Reiter
e6a004ff72
msys2-runtime: update patches (#5658)
https://github.com/msys2/msys2-runtime/pull/312
2025-09-22 08:19:15 +02:00
Johannes Schindelin
56b1ad3d0d msys2-runtime: Rebase to Cygwin v3.6.4
This corresponds to https://github.com/msys2/msys2-runtime/pull/304

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-07-16 18:07:43 +02:00
Johannes Schindelin
bdc4ee15d2
msys2-runtime: drop MSYS triplet (#5514)
We now use "x86_64-pc-cygwin" in MSYS2, so this commit is no longer
doing anything, and removing it would simplify rebasing if upstream
rewrites those files. There is the one hunk which changes the dll prefix
from "cyg" to "msys-", but the runtime doesn't have any DLLs which this
affects currently.

This corresponds to https://github.com/msys2/msys2-runtime/pull/303.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-07-14 22:54:15 +02:00
Johannes Schindelin
932551d730
msys2-runtime: stdin flush fix (#5513)
This corresponds to https://github.com/msys2/msys2-runtime/pull/301.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-07-14 12:18:38 +02:00
Johannes Schindelin
ae252e9401 msys2-runtime: backport recent fixes
This corresponds to https://github.com/msys2/msys2-runtime/pull/296.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-07-01 18:43:12 +02:00
Christoph Reiter
b38b2b78f4 Remove all cygwin CHOST changes
Since #5448 CHOST defaults to cygwin now, so this
is no longer needed.
2025-06-27 07:42:37 +02:00
Johannes Schindelin
b4961ddeb9 msys2-runtime: fix creating native symlinks pointing to ..
This commit corresponds to
https://github.com/msys2/msys2-runtime/pull/292.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-06-23 20:21:21 +02:00
Christoph Reiter
95fc0f0cee msys2-runtime: build for cygwin
In theory this means the "0001-Add-MSYS2-triplet.patch" patch
can be dropped.
2025-06-17 22:54:29 +02:00
Jeremy Drake
a1c26fa1bb msys2-runtime: update patches
so that it still build with msys2-w32api 13.0.0
2025-06-12 09:03:27 +02:00
jeremyd2019
5ff4f24a32
msys2-runtime: update to 3.6.3 (#5442) 2025-06-08 07:56:29 +02:00
Christoph Reiter
74bd582aa4
msys2-runtime: Update to 3.6.2 (#5434) 2025-06-03 10:30:37 +02:00
Johannes Schindelin
c6df8e8ed6
msys2-runtime: upgrade to v3.6.2 (#5427)
This corresponds to https://github.com/msys2/msys2-runtime/pull/285

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-05-29 08:47:39 +02:00
Johannes Schindelin
d0ec21c19d
msys2-runtime: re-fix console mode restoring (#5423)
This corresponds to https://github.com/msys2/msys2-runtime/pull/284

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-05-27 23:07:27 +02:00
Mateusz Mikuła
4377bbad90
Duplicate libmsys-2.0 static/import library as libcygwin (#5415)
A step towards #3012
2025-05-25 10:35:12 +02:00
Johannes Schindelin
37d43d257c
msys2-runtime: fix c-ares and libgit2 builds (#5348)
This is a companion of https://github.com/msys2/msys2-runtime/pull/281.
Without this fix, c-ares fails to build, with this symptom:

/usr/include/sys/unistd.h:218:14: error: expected ‘;’ before ‘void’
  218 | static inline void setproctitle_init (int _c, char *_a[], char *_e[]) {}
      |              ^~~~~
      |              ;

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-04-20 21:51:26 +02:00
Jeremy Drake
c99185f414 msys2-runtime: update patches
* msys2/msys2-runtime#278
* msys2/msys2-runtime#279
2025-04-11 10:08:14 -07:00
Christoph Reiter
a3fde923fc Move msys2-runtime-3.6 to msys2-runtime
and make it replace msys2-runtime-3.6
2025-04-10 10:05:41 +02:00
Christoph Reiter
e7673212e1 Move msys2-runtime to msys2-runtime-3.5 2025-04-10 10:05:41 +02:00
Christoph Reiter
a646eea256 Revert "msys2-runtime: update to 3.6.0"
This reverts commit 1b78b87f1880125de9814520a499ed55cd5f2660.
2025-03-31 07:42:01 +02:00
Christoph Reiter
9d03566ee4 Revert "msys2-runtime: console: tty::restore really restores the previous mode"
This reverts commit 04202bd7172105ca79a86731a86b34b4b48f69e9.
2025-03-31 07:42:01 +02:00
Christoph Reiter
b500505e52 Revert "msys2-runtime: backport pipe hang fix"
This reverts commit 6d09519bbf158c31384b0411e1b4dc54407a6039.
2025-03-31 07:42:01 +02:00
Christoph Reiter
55f379c5be Revert "msys2-runtime: more backports"
This reverts commit bb910d908deeaf4747f16db01825f3efb46bba4e.
2025-03-31 07:42:01 +02:00
Christoph Reiter
bb910d908d msys2-runtime: more backports
See https://github.com/msys2/msys2-runtime/issues/272
2025-03-30 11:52:55 +02:00
Christoph Reiter
6d09519bbf msys2-runtime: backport pipe hang fix
See https://github.com/msys2/msys2-runtime/pull/271

So we can build GIMP until we have an upstream fix
2025-03-29 22:43:02 +01:00
Johannes Schindelin
04202bd717 msys2-runtime: console: tty::restore really restores the previous mode
Previously, tty::restore sets the console mode to a predetermined
console mode that is widely common for many non-cygwin console apps.
So, if a non-cygwin app that is started from cygwin process changes
the console mode and executes cygwin sub-process, the console mode
is changed to the predetermined mode rather than being restored the
original mode that is set by the non-cygwin app.
With this patch, the console mode is stored when a cygwin process is
started from non-cygwin app, then tty::restore restores the previous
console mode that is used by the previous non-cygwin app when the
cygwin app exits.

This is a companion of https://github.com/msys2/msys2-runtime/pull/269.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-03-21 17:51:22 +01:00
Johannes Schindelin
30a68e6a73 msys2-runtime: record the correct commit in msys2-runtime.commit
The `HEAD` symbolic ref is supposed to be the one of cygwin/cygwin, not
the one we want to record.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-03-21 17:48:17 +01:00
Jeremy Drake
1b78b87f18 msys2-runtime: update to 3.6.0 2025-03-20 21:34:35 +01:00
Jeremy Drake
930e892fc7 msys2-runtime: record the current msys2-rutime commit
The HEAD commit is recorded by update-patches.sh in
msys2-runtime.commit, and the contents of that file are passed to the
--with-msys2-runtime-commit configure argument, so that uname -r shows
the msys2-runtime commit hash rather than the commit hash of the
upstream Cygwin tag.

Fixes #5223

Co-authored-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-03-20 21:34:35 +01:00
Johannes Schindelin
d234a9b007 msys2-runtime: adjust CWD magic to accommodate for the latest Windows previews
This is a companion of https://github.com/msys2/msys2-runtime/pull/264.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-03-11 08:25:50 +01:00
Christoph Reiter
fe22ee4d05
msys2-runtime: update (#5238)
See https://github.com/msys2/msys2-runtime/pull/262
2025-03-03 15:53:18 +01:00
Jeremy Drake
e5cebcadcc msys2-runtime: add deepcopy symlink improvements
msys2/msys2-runtime#256
2025-02-06 19:55:40 +01:00
Christoph Reiter
2e7d58dd4d msys2-runtime: Update to 3.5.7 2025-01-30 09:18:36 +01:00
Johannes Schindelin
c78ec19593 msys2-runtime: bump to v3.5.6
This corresponds to https://github.com/msys2/msys2-runtime/pull/254.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2025-01-28 08:36:11 +01:00
jeremyd2019
5d4c5d29db
msys2-runtime: update with patches for hang issues. (#5156)
See msys2/msys2-runtime#253
2025-01-23 21:19:47 +01:00
Christoph Reiter
0af6f79367 msys2-runtime: backport signal hang fix
See https://github.com/msys2/msys2-runtime/pull/251
2024-12-26 18:26:06 +01:00
Johannes Schindelin
01bdc2a6ae msys2-runtime: bump to v3.5.5
This corresponds to https://github.com/msys2/msys2-runtime/pull/249.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-12-24 22:43:36 +01:00
Johannes Schindelin
7cfcfbe992 msys2-runtime: uname: add host machine tag to sysname
This backports the `uname` patches from Cygwin where Windows/ARM64 is
indicated by an `-ARM64` suffix.

It corresponds to https://github.com/msys2/msys2-runtime/pull/245 and
https://github.com/msys2/msys2-runtime/pull/244.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-12-05 10:11:40 +01:00
Johannes Schindelin
2e69bb0fc6 msys2-runtime: revert use of CancelSyncronousIo on wait_thread
This change seems to have caused hangs on x86_64, so let's revert it.

Addresses https://github.com/msys2/MSYS2-packages/issues/4340#issuecomment-2491401847
and corresponds to https://github.com/msys2/msys2-runtime/pull/243.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-11-23 11:25:26 +01:00
Johannes Schindelin
d2faf54d9a msys2-runtime: integrate suspendthread fixup
This corresponds to https://github.com/msys2/msys2-runtime/pull/239 and
integrates one minor change of behavior where `remove_proc()` now _also_
tries `CancelSynchronousIo()` before using the big `terminate_thread()`
hammer.

Probably not a very noticeable change of behavior. But still. Better
stay aligned with Cygwin!

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-11-22 11:12:55 +01:00
Christoph Reiter
56e8b5be6f msys2-runtime: Update (suppress proc_waiter error messages)
See https://github.com/msys2/msys2-runtime/pull/236
2024-11-14 09:41:02 +01:00
Christoph Reiter
9d8f56d6a6 msys2-runtime: Update
See https://github.com/msys2/msys2-runtime/pull/234
2024-11-13 21:31:47 +01:00
Christoph Reiter
0a5d492ea6 msys2-runtime: update (arm64 canary crash fix backport)
includes https://github.com/msys2/msys2-runtime/pull/233
2024-11-11 22:52:37 +01:00
Johannes Schindelin
f1898f02ce msys2-runtime: pipe: Fix a regression that raw_write() slows down
This corresponds to https://github.com/msys2/msys2-runtime/pull/227.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-09-04 19:58:18 +02:00
Johannes Schindelin
7005429a56 msys2-runtime: update to v3.5.4
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-08-27 19:03:59 +02:00
Johannes Schindelin
8706aa1811 msys2-runtime: prevent different msys2 runtime versions from sharing cygheaps
This commit corresponds to https://github.com/msys2/msys2-runtime/pull/219.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-07-09 09:11:07 +02:00
Johannes Schindelin
76b0694548 msys2-runtime(update-patches.sh): do generate stable checksums for the Cygwin code
As of v6.1.0, Pacman no longer generates `SKIP` as SHA-256 checksums for
Git repositories, as per the release notes at
https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.1.0/NEWS?ref_type=tags#L21:

> - Add checksum support for git/mercurial/bzr sources

Instead of outputting `SKIP`, Pacman now runs `git -c core.abbrev=no
archive --format tar <branch-or-tag> | sha256sum` and uses the result:
2fc2ab6cf0

Unfortunately, the output of `git archive` is not stable. For one, the
`core.autoCRLF` setting (which defaults to `true` in Git for Windows)
affects the result.

Let's ensure that that `core.autoCRLF` setting is forced to `false`,
with the idea to add other settings as required.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-07-09 09:08:35 +02:00
Johannes Schindelin
a8b44d4f90 msys2-runtime(update-patches.sh): configure the correct remote URL
When initializing the bare `msys2-runtime` repository that usually
`makepkg` would have initialized for us, do configure the remote URL
that subsequent `makepkg` runs will expect because of the one recorded
in `PKGBUILD`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-07-09 09:08:35 +02:00
Christoph Reiter
d1320d119d msys2-runtime: Update (ldd hang fix)
See https://github.com/msys2/msys2-runtime/pull/217
2024-06-03 07:44:37 +02:00
Jeremy Drake
374a194eb9 msys2-runtime: set -Wno-error=maybe-uninitialized
After the update of msys2-w32api from v11.0.1 to current master (and
soon to be v12) we get: winsup/cygwin/exceptions.cc:1736:33: error:
'<anonymous>' may be used uninitialized [-Werror=maybe-uninitialized]

Ignore it like the rest.

Fixes msys2/msys2-runtime#214
2024-05-17 11:21:47 -07:00