Commit Graph

189 Commits

Author SHA1 Message Date
Jeremy Drake
c1d7dd3a2e msys2-runtime: update ctrl-c handling for ARM64.
msys2/msys2-runtime#47
2021-07-01 16:10:12 -07:00
Jeremy Drake
1decd13054 msys2-runtime: update patch for getprocaddr 2021-06-25 00:20:28 -07:00
Johannes Schindelin
0394a7f1ec msys2-runtime: bump pkgrel
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-06-22 11:28:18 +02:00
Johannes Schindelin
0e1a96a9c0 msys2-runtime: do not fall back to ExitProcess() on Ctrl+C
As long as the return value of `CtrlRoutine` indicates that it has been
handled, do not insist on the process to go away. This is in line with
`SIGINT` handlers on Linux/Unix/macOS that can prevent the process from
terminating on the process' side.

This brings over https://github.com/msys2/msys2-runtime/pull/50 into
MSYS2-packages.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-06-22 11:09:27 +02:00
Jeremy Drake
b44f8b33eb msys2-runtime: patch to fix ctrl-c handling 2021-06-21 16:15:25 -07:00
Naveen M K
f7457b07b9 msys2-runtime: copy usr/libexec folder also
it was missed in https://github.com/msys2/MSYS2-packages/pull/2547
2021-06-18 22:36:47 +05:30
Christoph Reiter
7fbc294a72 msys2-runtime: bump pkgrel 2021-06-18 15:19:17 +02:00
Johannes Schindelin
18472f9dc3 msys2-runtime: handle Ctrl+C with MINGW executables
The idea is that we handle Ctrl+C not by terminating the processes
(which would reflect `kill -KILL`, not `kill -INT`) but by imitating
what Windows does in a CMD window: we inject a remote thread that runs
the `CtrlRoutine` function. This lets the `atexit()` handlers and the
ConsoleCtrlEvent handlers do their job.

This commit brings the goodness from
https://github.com/msys2/msys2-runtime/pull/31 over into MSYS2-packages,
which cherry-picked and edited the patches from Git for Windows.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-06-18 13:03:48 +02:00
Jeremy Drake
4e7a1f3011 msys2-runtime: add arm64 FAST_CWD warning fix. 2021-05-22 22:33:59 -07:00
Orgad Shaneh
8e32f0f7ae msys2-runtime: Update 2021-05-20 09:00:38 +03:00
Christoph Reiter
7ecabe03f1 msys2-runtime: Update 2021-05-06 06:34:07 +02:00
Christoph Reiter
bd2ba45509 msys2-runtime: backport another fix for hanging pipes
See #2471
2021-05-03 18:02:07 +02:00
Orgad Shaneh
31b2ff1708 msys2-runtime: Backport fix for symlink resolving
Reported here: https://cygwin.com/pipermail/cygwin/2021-April/248307.html
2021-05-03 11:11:10 +03:00
Christoph Reiter
28aa374794 msys2-runtime: bring back the uname change lost in the last rebase 2021-04-01 20:31:41 +02:00
Johannes Schindelin
a9ad014634 msys2-runtime: make default Windows error reporting an opt-in
Unless `MSYS` contains `winjitdebug`, with this change we won't show
that annoying message box e.g. when a DLL is missing.

This is essentially forwarding
https://github.com/msys2/msys2-runtime/pull/35 to MSYS2-packages.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-31 15:14:25 +02:00
Johannes Schindelin
30d9915b43 msys2-runtime: upgrade to v3.2.0
Apart from setting `pkgver` and re-setting `pkgrel`, all of the work was
done by the `./update-patches.sh` script, picking up the patches
prepared in https://github.com/msys2/msys2-runtime/pull/30.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-30 10:21:43 +02:00
Christoph Reiter
edff8901c1 msys2-runtime: improve uname compatibility again 2021-03-24 22:37:48 +01:00
Christoph Reiter
0a30e075ed msys2-runtime: Update (uname change)
With this uname no longer exposes $MSYSTEM directly but just "MSYS" in
an MSYS env and "MINGW" everywhere else.
2021-03-24 19:12:06 +01:00
Christoph Reiter
241620dc5f msys2-runtime: update 2021-03-17 07:46:02 +01:00
Johannes Schindelin
b5829a87d0 msys2-runtime: use the correct import library name
This fixes https://github.com/msys2/msys2-runtime/issues/26

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2021-03-15 11:05:02 +01:00
Christoph Reiter
d88c4706bd Use zstd for all packages now
It's been long enough and everyone should have a pacman that supports it
2020-12-19 17:48:10 +01:00
Christoph Reiter
39481ed0f0 msys2-runtime: refresh patches
For https://github.com/msys2/msys2-runtime/pull/17
2020-11-08 10:31:24 +01:00
Johannes Schindelin
b1c8e2fbc5 msys2-runtime: expose the "deep-copy" symlink behavior via a new mode
This patch synchronizes msys2/MSYS2-packages/msys2-runtime with
msys2/msys2-runtime after merging
https://github.com/msys2/msys2-runtime/pull/16.

We specifically override Cygwin's symlink() behavior to make deep copies
instead of creating a special-crafted system file that Cygwin (MSYS2,
and only those two) will recognize as symbolic link.

The patch to override this behavior is incomplete, though: it hacks up
the WSYM_sysfile code path, which causes all kinds of problems:

- Contrary to the documentation, MSYS=winsymlinks:native won't fall back
  to creating Cygwin-style symbolic links. Instead, it (quite
  surprisingly) creates deep copies instead.

- There is no way to opt into the original Cygwin behavior because that
  code path is now dead code.

- The fact that the WSYM_sysfile code path is modified to do something
  very different from what it is intended to do means that all changes
  that Cygwin makes to that code path have to be inspected, and
  occasionally even more hacks have to be put on top, such as 44bb133,
  where we specifically had to disable Cygwin's code to try creating WSL
  symlinks before falling back to creating system files instead).

Let's fix this by introducing a proper new mode:
MSYS=winsymlinks:deepcopy. This mode is made the default so
that users should be unaffected by this PR.

Users wishing to let the MSYS2 runtime create Cygwin-style
symbolic links can ask for that by setting
MSYS=winsymlinks:sysfile.

By fixing this issue, we can now stop disabling Cygwin's WSL
symlink behavior, too: it is in the sysfile code path and
won't affect the default behavior of the MSYS2 runtime.

While at it, the indentation of the original patch is fixed,
too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2020-10-22 13:38:14 +02:00
Christoph Reiter
e3d2dae6a3 msys2-runtime: Update patches
See https://github.com/msys2/msys2-runtime/pull/15
2020-09-22 20:16:15 +02:00
Christoph Reiter
906e033002 msys2-runtime: Update to 3.1.7 2020-08-24 08:10:51 +02:00
Johannes Schindelin
526d2fc776 msys2-runtime: fix MSYS=wincmdln and turn it on by default
This ports the patches from https://github.com/msys2/Cygwin/pull/10 to
the actual package definition used to build the `msys2-runtime` package.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2020-08-14 15:11:44 +02:00
Christoph Reiter
bb27db732f msys2-runtime: Update patches
Fixes #2060
2020-08-10 09:41:08 +02:00
Christoph Reiter
a1d708c81d msys2-runtime: add a README to note that the patches are auto generated 2020-08-09 20:29:51 +02:00
Alexey Pavlov
63bc219cc8 msys2-runtime: Update to 3.1.6 2020-07-17 09:56:48 +03:00
Christoph Reiter
6735c1653e msys2-runtime: Fix popen() in chroot (#2003)
See https://github.com/msys2/Cygwin/pull/7

Fixes #1998
2020-06-06 11:55:41 +03:00
Alexey Pavlov
55701ce451 msys2-runtime: Dont create WSL symlinks 2020-06-02 15:37:20 +03:00
Alexey Pavlov
f6fd766e3d msys2-runtime: Update to 3.1.5 2020-06-02 11:19:10 +03:00
David Macek
19bd06b131 [RFC] Cleanup (#1984)
* Remove msys2-runtime dependencies

* Remove `base` group

* Remove some packages from `base-devel` group
2020-06-02 09:28:40 +03:00
Alexey Pavlov
c43fc0c23d msys2-runtime: Updae pkgrel 2020-05-30 12:28:43 +03:00
Christoph Reiter
fa38d385cf Switch to zstd by default except for core packages (#1969)
PKGEXT in PKGBUILD wins over the value set in makepkg.conf
2020-05-22 08:51:02 +03:00
Johannes Schindelin
cc7a95b5a7 msys2-runtime: demote the "pseudo console" support to opt-in (#1964)
To make it easier to experiment with it, we now also support
`MSYS=enable_pcon` (in addition to the equivalent but unintuitive
`MSYS=nodisable_pcon`).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2020-05-20 15:18:57 +03:00
Johannes Schindelin
5dea2a9351 Upgrade the MSYS2 runtime to v3.1.4 (#1953)
* msys2-runtime: add a shell script to generate the patches from msys2/Cygwin

The idea is to commit a change incrementing the `pkgver`, then running
this script, and then amending the commit.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

* msys2-runtime: work around Cygwin's source code containing symlinks

It is a bit unfortunate that MSYS2 substitutes symlinks by deep copies,
by default. Git, for example, claims that it cannot do symlinks, but
Cygwin now needs this. Let's make do with that default.

The strategy we use is simple: we override the auto-detected
`core.symlinks` setting. That will result in a dirty worktree, of
course: deep copies are not symlinks, and `git status` will detect it.
But that does not matter, as the build will now work ("deep" copies of
those header files will work just as well as real symlinks would have
done).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

* msys2-runtime: upgrade to v3.1.4

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2020-05-18 08:55:21 +03:00
Alexey Pavlov
e21e7a9fe1 msys2-runtime: - Fix bug in sec_auth.
- Backport fixes for path conversion from git for windows project. THanks to @dscho.
- Fixes to build with gcc 8+
2019-07-11 15:13:56 +03:00
Ben
a2800be1d1 msys2-runtime: 0026-mkdir-always-check-for-existence.patch (#1687)
Temporary patch until cygwin 3.8.x is integrated.
2019-07-03 10:29:30 +03:00
Alexey Pavlov
2694b20600 msys2-runtime: Propagate TZ environment variable if possible to native applications 2019-06-20 23:40:20 +03:00
Alexey Pavlov
c4bff8a9ff msys2-runtime: Restore loading QueryUnbiasedInterruptTime but from kernel32 2019-05-27 10:10:04 +03:00
Alexey Pavlov
3064420ee3 msys2-runtime: Don't dynamically load QueryUnbiasedInterruptTime when
building with WINNT >= 0x601
2019-05-24 14:20:40 +03:00
J. Peter Mugaas
e96751b148 msys-runtime - 3.0.7 - Update to latest version (#1627) 2019-05-23 08:11:34 +03:00
Alexey Pavlov
d9310fcb58 msys2-runtime: Update to Cygwin's 3.0.6 release 2019-04-15 10:53:36 +03:00
Alexey Pavlov
279c1d2fba msys2-runtime: Update to 2.11.2 Cygwin release 2018-11-26 10:01:01 +03:00
Alexey Pavlov
e5eb8fa4a8 msys2-runtime: Fix using native symlink 2018-09-10 14:27:36 +03:00
Alexey Pavlov
b7ec2196aa msys2-runtime: Update to Cygwin's 2.11.1 release 2018-09-07 09:12:49 +03:00
Jeroen Ooms
5ff7e89abc msys2-runtime: build with crt from gcc, not clang
Fixes #1291.
2018-06-09 01:22:24 +02:00
Paul "TBBle" Hampson
168cdd5314 msys2-runtime: Cherry-pick gcc 7 suport from cygwin
This cherry-picks commit 67609efeb0bcb198463a952a6a214813794a9c2b from
cygwin upstream, see
https://www.mail-archive.com/cygwin-patches@cygwin.com/msg06820.html
2018-04-26 22:44:57 +10:00
Alexey Pavlov
033d66afe7 msys2-runtime: Remove unused options 2018-02-09 14:27:23 +03:00