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>
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>
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>
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>
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>
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>
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>
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>
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.
Fixesmsys2/msys2-runtime#214