public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Adam Dinwoodie <adam@dinwoodie.org>
To: cygwin@cygwin.com
Cc: ASSI <Stromeko@nexgo.de>, Andrey Repin <anrdaemon@yandex.ru>
Subject: Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot
Date: Mon, 8 Nov 2021 20:49:09 +0000	[thread overview]
Message-ID: <CA+kUOanm+sQsY2HJcxJmaGpjcPoTes55QL34iru5Hnz0LPNchg@mail.gmail.com> (raw)
In-Reply-To: <797980938.20211108193050@yandex.ru>

On Mon, 8 Nov 2021 at 16:36, Andrey Repin via Cygwin <cygwin@cygwin.com> wrote:
>
> Greetings, ASSI!
>
> > Brian via Cygwin writes:
> >> 1.  Install git version 2.33.0 via the Cygwin installer (only the CLI).
> >> 2.  Download the GCM-Core 2.0.567 release zip file (
> >> https://github.com/microsoft/Git-Credential-Manager-Core/releases/) and
> >> extract somewhere.
> >> 3.  Copy all *.exe and *.dll files to your Cygwin /usr/libexec/git-core/
> >> directory.
>
> > This is wrong on so many levels that I don't even know where to start.
>
> Well, then start somewhere?

This is mixing Cygwin and non-Cygwin binaries in a way that will make
debugging problems difficult. Applications compiled for Cygwin have
different styles of interfaces to those compiled for native Windows,
as they're using Cygwin's approximations to Linux APIs, so it's not
safe to rely on them working together seamlessly.

> >> Please let me know if there are any other steps you think might be missing.
>
> > You either need to have a proper Cygwin package and/or wrappers to put
> > into Cygwin that use the Windows executables.
>
> The git itself is a wrapper in this case.

Cygwin Git is not inherently an appropriate wrapper to allow Cygwin
applications to seamlessly communicate with non-Cygwin Windows
applications. Naively mixing the two will work sometimes, but it's
reasonable to expect problems due to, for example, the fact that a
native Windows application and a Cygwin application will have very
different ideas about the absolute path to a given file.

In this case, it looks like the change of behaviour was an unintended
side-effect of changes made to the Cygwin DLL, and the folk working on
the DLL have found a way to get things working as expected for Brian.
Nonetheless I agree with Achim, and in general I wouldn't expect the
steps Brian was taking to work reliably anyway. I would expect that,
to get things working within Cygwin's design paradigms, one would need
to either (a) compile GCM as a Cygwin application, (b) not use Cygwin
at all and instead swap to Git for Windows, or (c) write a shim
application that uses native Windows APIs to talk to GCM and
*nix-style Cygwin APIs to talk to Cygwin Git.

  reply	other threads:[~2021-11-08 20:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04 15:02 Brian
2021-11-05  3:39 ` Takashi Yano
     [not found]   ` <CAEv6GOA-y58YrftXgEgFrjqtOTHmfdu2Vrq76Lwn0suZpZ=U9w@mail.gmail.com>
2021-11-05  8:05     ` Takashi Yano
2021-11-05 13:42       ` Brian
2021-11-05 19:41         ` Takashi Yano
2021-11-05 20:08           ` Ken Brown
2021-11-06 16:22             ` Ken Brown
2021-11-05 21:32           ` Brian
2021-11-06  6:24         ` ASSI
2021-11-08 16:30           ` Andrey Repin
2021-11-08 20:49             ` Adam Dinwoodie [this message]
2021-11-08 23:18               ` Brian Koontz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+kUOanm+sQsY2HJcxJmaGpjcPoTes55QL34iru5Hnz0LPNchg@mail.gmail.com \
    --to=adam@dinwoodie.org \
    --cc=Stromeko@nexgo.de \
    --cc=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).