Upstream no longer manually strips the cygwin dll and creates
a debug file since https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=99bb3e937a0fdbc1e3acbdc7cefb31e54a89a6ac
This means the debug info now moved from msys2-runtime-devel to msys2-runtime
staying in the DLL.
We don't really want to install/ship debug infos by default, so we could either
re-implement the debug info extraction manually again, or let makepkg build a
separate "-debug" package, or just strip everything.
Since the later is the least work and the least special compared to other packages,
just enable stripping.
When updating the patches we apply on top of the Cygwin runtime, it is
possible that nothing needs to be done. Be explicit about that.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In MSYS2 <-> MINGW transitions, we convert a couple of environment
variables between Unix and Windows styles, most notably `PATH`.
In the Git for Windows project, we realized that the environment
variables `SHELL` and `ORIGINAL_PATH` need the same treatment. These
patches have proved their worth for years, and it is time for them to be
integrated back into the actual MSYS2 runtime.
This should fix https://github.com/msys2/msys2-runtime/issues/43.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
For now adds a "provides=(msys2-devel)" to gcc to keep installation
working and install the same set of packages.
Next step is to makedepend on gcc where needed and remove msys2-devel
from the docs.
In some cases this will introduce cycles which could likely be cleaned
up by only depending on some unix tools instead of the whole autotools.
Rebuilding doesn't make much sense at this point since it just adds a subset
of base-devel which is still installed by default.
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>
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>